Here is my solution:
First apply quirk.
In /etc/modprobe.d/uvcvideo.conf add line:
Code: Select all
options uvcvideo quirks=128
Code: Select all
<Feed feed0.ffm>
File /tmp/feed0.ffm
FileMaxSize 1M
Launch ffmpeg -y -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 5 -i /dev/video0 -c copy feed0.ffm
ACL allow 192.168.1.100
</Feed>
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1M
Launch ffmpeg -y -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 5 -i /dev/video1 -c copy feed1.ffm
ACL allow 192.168.1.100
</Feed>
#Video 0
<Stream video0.mpg>
Feed feed0.ffm
Format mjpeg
VideoBitRate 6144
NoDefaults
VideoFrameRate 5
VideoSize 1920x1080
VideoGopSize 24
VideoHighQuality
VideoCodec mjpeg
NoAudio
ACL allow 192.168.1.100
</Stream>
# Video 1
<Stream video1.mpg>
Feed feed1.ffm
Format mjpeg
VideoBitRate 6144
NoDefaults
VideoFrameRate 5
VideoSize 1920x1080
VideoGopSize 24
VideoHighQuality
VideoCodec mjpeg
NoAudio
ACL allow 192.168.1.100
</Stream>