umlaeute / v4l2loopback

v4l2-loopback device
GNU General Public License v2.0
3.71k stars 529 forks source link

yuv4mpeg_to_v4l2 quits prematurely #4

Closed jessor closed 13 years ago

jessor commented 13 years ago

Thanks for this fork!

I'm trying to stream video and screencaptures with this. Unfortunately, yuv4mpeg_to_v4l2 quits right after i send yuv data to the pipe:

./yuv4mpeg_to_v4l2 /dev/video0 < pipe
write: Success

Sometimes I see a short flickering on the v4l2 device when I start sending. I set this up according to https://github.com/umlaeute/v4l2loopback/wiki/Mplayer, tried sending data from mplayer as well as vlc.

Any idea?

umlaeute commented 13 years ago

thanks for your report.

unfortunately i cannot reprduce this at all. could you please post step-by-step instructions what you are doing (eventually providing the source you want to feed)

you might also want to raise the "debug" level of the driver (add 'debug=1' (or 2) to the module parameters), and see if dmesg gives you any clues

jessor commented 13 years ago

Yea, turns out i didn't read the instructions right and the problem occured because the device was already being fed. Thanks for the debug hint :)

Btw, something like cvlc --vout=yuv --yuv-yuv4mpeg2 --yuv-chroma=I420 --yuv-file=pipe screen:// --screen-width 640 --screen-height 360 --screen-fps 3 --screen-caching 200 --screen-top 75 works, too (which is fun in google hangouts).