Send DV stream through v4l2sink / v4l2loopback
Bug Track
bugtrack at web.de
Fri Oct 11 15:00:58 CEST 2013
Hi all!
Sorry for the HTML formatting in my last mail, now as plain text:
I'm using gstreamer 1.2.0 on gentoo linux, together with v4l2loopback 0.7.1 and would like to realize the following setup:
The video of a DV camera (PAL, 50i or 25F) connected via firewire shall be pushed into v4l2loopback (presumably using v4l2sink?) so that other v4l2 programs can read the video, as if it was from a webcam.
In my case gst-launch-1.0 v4l2src ... and firefox (for WebRTC) should work for reading.
For reading from /dev/video0 (for testing purposes) i use the following command:
$ gst-launch-1.0 v4l2src device=/dev/video0 ! xvimagesink
When filling /dev/video0 using
$ gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video0
the viewing works, and i see the testvideo in the xvimagesink (using the v4l2loopback device!)
Sending the dv stream to a xvimagesink without pushing it throught v4l2loopback using
$ gst-launch-1.0 dv1394src ! queue ! decodebin ! xvimagesink
works too. I get some warnings (http://dpaste.com/hold/1413173/) but i see the video from the camera.
When running
$ gst-launch-1.0 dv1394src ! queue ! decodebin ! v4l2sink device=/dev/video0
I see the same warnings (http://dpaste.com/hold/1413174/) on the sender's side, however, reading from /dev/video0 using
$ gst-launch-1.0 v4l2src device=/dev/video0 ! xvimagesink
doesn't work anymore: I get an ERROR message: Device '/dev/video0' is not a capture device (http://dpaste.com/hold/1413175/).
And indeed, it seems as if caps are different: http://dpaste.com/hold/1413176/ for the dv sent to v4l2sink, and http://dpaste.com/hold/1413177/ for the videotestsrc sent to v4l2sink.
Thus it seems, as if i need to get the capture-caps somehow into the gst-pipe?
Can anyone give me a hint how to do that / where to look for a solution?
Thanks in advance!
Regards,
SimAV
More information about the gstreamer-devel
mailing list