off end of available video

17 views
Skip to first unread message

Attila Erős

unread,
Nov 19, 2012, 8:07:06 AM11/19/12
to openr...@googlegroups.com
Hello,

after these commands

dd if=/dev/zero of=d1 bs=1 count=1 seek=1G of=buf
./v4l2_ingest /dev/video0 buf

i've got this message:

1+0 records in
1+0 records out
1 byte (1 B) copied, 6.5789e-05 s, 15.2 kB/s
/dev/video0: UNKNOWN/GENERIC (driver saa7134)
w=704 h=480
field=4
queue v4l2 buffer: Cannot allocate memory


./playoutd buf

i've got this message:
off end of available video

./sdl_gui buf
All buffers ready. Initializing SDL...No protocol specified
No protocol specified
init kbd.
No joystick found. Auto-control will probably not work.
Failed to set video mode!


What's wrong? 

Andrew Armenia

unread,
Nov 19, 2012, 5:59:12 PM11/19/12
to openr...@googlegroups.com
First, your saa7134 card is not being recognized, so you may need to put a card=x argument in your modules.conf. I think for the card I used, "options saa7134 card=33,33,33,33" worked. If buffer allocation is failing (the "cannot allocate memory" message), try changing the number of buffers at line 94 of v4l2_ingest.cpp to a smaller number like 16 or 8.

If SDL is saying that it cannot set the video mode, make sure you are running it from within an X session. If not, the GUI will not work.

-Andrew

Attila Erős

unread,
Nov 20, 2012, 8:28:04 AM11/20/12
to openr...@googlegroups.com
Dear Andrew,

Thank you for replay!

Now I have another capture card, and that works with TVtime. 
My problem is:

./v4l2_ingest /dev/video0 buf

/dev/video0: BT878 video (Winfast VC100) (driver bttv)
w=720 h=480
field=4
queue v4l2 buffer: Invalid argument

./playoutd buf
off end of available video
off end of available video
off end of available video

I want to stream the output to the standard VGA display. How can do that?

Thanks Attila

Andrew Armenia

unread,
Nov 28, 2012, 5:57:26 PM11/28/12
to openr...@googlegroups.com
Hi Attila,

Sorry for the delay in getting back to you. If you are not able to get it to work with the Winfast card it might be because that driver doesn't support direct memory-mapped I/O. If that is the problem you may need to change v4l2_ingest to use read() to get data from the card instead of the V4L2 mmap() I/O mechanism.

If you want to stream the output to VGA, you can make playoutd output the raw 4:2:2 video stream to standard output; you can pipe this into mplayer to get it on the screen e.g. `./playoutd buf | mplayer -demuxer rawvideo -rawvideo uyvy:ntsc -`. You need to change line 449 of playoutd.cpp to `out = new StdoutOutput(&evtq);` and recompile to make this happen.

Hope this helps,


-Andrew
Reply all
Reply to author
Forward
0 new messages