mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 423 forks source link

-O argument with v4l2 device returns just first frame when capture #309

Closed CyberKachok closed 1 year ago

CyberKachok commented 1 year ago

Describe the bug After creating device using v4l2loopback i am trying to run v4l2server using v4l2rtspserver -O /dev/video5 -W 1920 -H 1080 -F 30 -P 7447 /dev/video0, rtsp stream works but when i am trying to capture /dev/video5 i get just first frame.

Desktop (please complete the following information):

mpromonet commented 1 year ago

Hi,

The -O option was more for debug purpose, I will probably remove it.

Best Regards, Michel.

CyberKachok commented 1 year ago

Hi, @mpromonet, I was able to use it, it is very usefull if you want to stream with minimum delay and get frames for another program on device, additional reencoding from one virtual camera to another using ffmpeg helped me.

mpromonet commented 1 year ago

Hi,

Using v4l2loopback as a source, allow you to connect multiple consumer.

Best Regards, Michel.

CyberKachok commented 1 year ago

@mpromonet Yeah, but in my case using v4l2loopback as a source for rtspserver multiplied the delay, hope you will left -O option)