Please, i am using opencv 2.4.9 on ubuntu 14.04 and i try to read/write an uncopressed video but it gives me a segfaults on cvQueryFrame(capture) when i try to open a rawvideo. Can help me?
for the OpenCV tools that enable video read/write operations you can have a look at http://docs.opencv.org/2.4.9/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-videocapture
Regarding the supported video formats (since "raw" video is a bit unclear to me) please check http://answers.opencv.org/question/10741/videocapture-format-supported-by-opencv/ and http://www.fourcc.org/codecs.php
Mr Sampath Kumar, i don't have problem with image/video processing in OpenCV so my question is not basic, but i have problem exactly with avi video without codec and it seems to be a bug on OpenCV
You can change FOURCC field to -1 when you open the video writer. Then, it will prompt you for the type of output you desire, and you can select the uncompressed video. Here is the relevant code:
Normally all video sequences are stored in any one of the compressed format.For example .avi and cif or qcif form. you can select any one of the video converters.
Ffmpeg is a solution for the creation of uncompressed video using jpgs or pngs, but is there any suggestion to use videowriter class for uncompressed video during runtime like reading rtp packets and saving them as uncompressed avi. If we use file operations for saving each image, we drop some of the frames. Fourcc codec value for uncompressed avi is needed.