Writing to loopback device?

119 views
Skip to first unread message

JoeHillen

unread,
Jan 5, 2011, 3:47:10 AM1/5/11
to WebcamStudio
Hi,

I am trying to find a way to write to the loopback device directly
without using webcamstudio. I have been using ws4gl for a while and
the only thing I need it for is to send videos to /dev/video0.

A problem I keep running into is that ws4gl crashes or hangs if a
video is corrupt (I'm guessing this is a problem with gstreamer), but
it is also the only video loopback device I can find that is still
maintained and works with my kernel.

I recently found out that it is possible to have mplayer output to a
v4l2 device using a command such as:

mplayer -vo driver=v4l2:device=/dev/video0 video.avi

Unfortunately, this doesn't seem to work, and there doesn't seem to be
any other device that ws4gl uses.

Any ideas?

Patrick Balleux

unread,
Jan 5, 2011, 7:27:13 PM1/5/11
to WebcamStudio
Hi,

The 1st version of WebcamStudio was actually a script. I think you
can find what you need with this script: http://www.ws4gl.org/history/the-original-webcamstudio

The major problem is to find where is mjpegtools_yuv_to_v4l. I
remember finding it on the web somewhere, but did not keep a copy.

Also, I read that there is a component called V4L2Sink in the
gstreamer framework that should do the trick. Tried a few time but
never got it to work...

Also look for the AVLD project, hard to compile, but really simple to
use: http://allonlinux.free.fr/Projets/AVLD/

Hope this help

Patrick
Reply all
Reply to author
Forward
0 new messages