Hi,
I am trying desperately to create a virtual video device (v4l2), meaning something like /dev/video0 that when accessing it (say, with xawtv or whatever) I get a certain video file played.
I am trying to do this with vloopback.
After doing modprobe vloopback, the vloopback input device declared is /dev/video0 and the output device is /dev/video1.
I am trying to do this:
Code:
mencoder vid.avi -nosound -vf scale=320:240 -ovc raw -of rawvideo -o /dev/video0
and then to view the movie with this:
Code:
xawtv -c /dev/video1
But the output from xawtv that I am getting is:
Code:
[cv@myhost ~]$ xawtv -c /dev/video1
This is xawtv-3.95, running on Linux/x86_64 (2.6.34-ARCH)
xinerama 0: 1280x1024+0+0
WARNING: No DGA direct video mode for this display.
can't open /dev/video1: Invalid argument
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video1: Invalid argument
v4l2: open /dev/video1: Invalid argument
v4l: open /dev/video1: Invalid argument
no video grabber device available
The relevant lines from dmesg:
Code:
Linux video capture interface: v2.00
[vloopback_init] : video4linux loopback driver v1.4-trunk
[vloopback_init] : Loopback 0 registered, input: video0, output: video1
[vloopback_init] : Loopback 0 , Using 2 buffers
Does anyone know why this doesn't work?
Anyone knows of a better way to get this working?
Any help will be greatly appreciated...
Thanks a lot
fiod