Segmentation fault when capture a video from a file (avi 24-Bit RGB)

asked 2013-10-23 02:07:08 -0500

Ayush gravatar image

updated 2013-10-23 02:42:12 -0500

berak gravatar image

i am trying to play a video using opencv from a file but its giving seg-fault (which is 24-bit RGB , 640 x 480 Pixels) but same code is working fine for ( Divx mpeg-4 version 4 with 640 x 480) can anybody give me solution for this i am using a code from here

edit retag flag offensive close merge delete

Comments

Hi Ayush, try this tutorial: http://docs.opencv.org/doc/tutorials/highgui/video-write/video-write.html. You can display src with imshow().

Daniil Osokin gravatar imageDaniil Osokin ( 2013-10-23 14:19:44 -0500 )edit