Thanks for your answer. I'm sorry for the long delay before my reply, I wasn't able to work on this project until now.
I'm using Linux lucid 2.6.35.3-1129-g691c08a #7 PREEMPT Wed Nov 16 14:33:06 BRST 2011 armv7l GNU/Linux.
I tried to launch the video with gstreamer to make sure the pipeline works fine before using it inside the openCV application,
gst-launch filesrc location=video.avi ! decodebin2 name=dec ! queue ! ffmpegcolorspace ! autovideosink
and this is what I get:
Setting pipeline to PAUSED ...
MFW_GST_V4LSINK_PLUGIN 2.0.3-1-179-e630aa8d build on Sep 28 2011 15:04:02.
Pipeline is PREROLLING ...
Aiur: 2.0.3-1-179-e630aa8d
Core: AVI_PARSER_03.02.00 build on Jul 11 2011 09:49:53
mime: video/x-msvideo
file: lib_avi_parser_arm11_elinux.3.0.so.3.2.1
Content Info:
URI:
file://video.avi
Idx File:
/home/lucid/.aiur/video.avi.aidx
Seekable : Yes
Size(byte): 36107876
Movie Info:
Seekable : Yes
Live : No
Duration : 0:01:40.000000000
ReadMode : File
Track : 1
Track 00[Video]: Disabled
Codec: 0, SubCodec: 0
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin2:dec/GstAiurDemux:aiurdemux0: GStreamer encountered a general stream error.
Additional debug info:
aiurdemux.c(3872): aiurdemux_pull_task (): /GstPipeline:pipeline0/GstDecodeBin2:dec/GstAiurDemux:aiurdemux0:
streaming stopped, reason error, state 2
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Total rendered:0
[--->FINALIZE aiurdemux
[--->FINALIZE v4l_sink
Freeing pipeline ...
I checked on my laptop and the gstreamer pipeline works fine. Am i missing a file or something ?