sultanalarif / ossbuild

Automatically exported from code.google.com/p/ossbuild
0 stars 0 forks source link

dshowvideosrc not working with DV camera #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When trying "gst-launch dshowvideosrc ! queue ! decodebin ! autovideosink" 
without camera plugged in, everything works fine (with built-in webcam).

But, when I try to do the same with DV camera plugged in, I get this:

C:\Program Files\OSSBuild\GStreamer\v0.10.6\bin>gst-launch.exe dshowvideosrc ! 
queue ! decodebin ! autovideosink
0:00:05.366400000  4744   008D6BE8 ERROR          dshowvideosrc 
gstdshowvideosrc.cpp:897:gst_dshowvideosrc_getcaps_from_streamc
ps: Failed to retrieve IAMStreamConfig (error=0x80004002)
Setting pipeline to PAUSED ...
0:00:05.444400000  4744   008D6BE8 ERROR          dshowvideosrc 
gstdshowvideosrc.cpp:751:gst_dshowvideosrc_set_caps: Can't conn
ct capture filter with fakesink filter (error=0x80070057)
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstDshowVideoSrc:dshowvideosrc0: 
Could not negotiate format
Additional debug info:
..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2719): gst_base_src_start 
(): /GstPipeline:pipeline0/GstDshowVideoSrc:dsho
videosrc0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

Original issue reported on code.google.com by gregory....@gmail.com on 19 Oct 2010 at 3:15

GoogleCodeExporter commented 8 years ago
That's a know bug in the dshowvideosrc element. You need to force the following 
caps:
"video/x-dv, systemstream=true"

The element exposes both systemstrem=true and systemstream=false, whilst it 
only provides the first one but negotiates with the second one. 

I'll try to fix it inverting the order in the get_caps() functions

Original comment by ylatuya on 19 Oct 2010 at 3:36

GoogleCodeExporter commented 8 years ago
ohhh, and try using ffdemux_dv ! ffdec_dv instead, that will fix the 
negotiation issue too

Original comment by ylatuya on 19 Oct 2010 at 5:21

GoogleCodeExporter commented 8 years ago
Is there a bug filed upstream for this?

Original comment by david.g.hoyt on 19 Oct 2010 at 8:06

GoogleCodeExporter commented 8 years ago
Is this fixed?

Original comment by david.g.hoyt on 23 Mar 2011 at 8:50