mpromonet / v4l2rtspserver

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

-f format option and codecs #233

Closed neurogoth closed 3 years ago

neurogoth commented 3 years ago

Can you provide here an perhaps update the documentation with clear examples on how the "-f" option can be used ? Can the v4l2-ctl "fmt" string be passed through it ? I really can't understand what can be passed to that argument.

Also, does this tool support any other codec other than H.264 ?

neurogoth commented 3 years ago

Ok - I found in other comments that "-f" keeps the existing format set on the device. I think this could be stated more clearly - and also "-f" ... can we get an example of input for in that use of the arg.

mpromonet commented 3 years ago

Hi @neurogoth

This is describe in the README and in the -h :

     -f       : V4L2 capture using current capture format (-W,-H are ignored)
     -fformat : V4L2 capture using format (-W,-H are used)

Feel free to submit a clearer description using a Pull Request.

About the argument, there is no format limitation, the argument is the fourcc, then it could be H264, VP90, JPEG,.... this depends on the video capture capabilities.

Best Regards, Michel.