I'm trying to capture h264 with ffmpeg and send it to my virtual device. I can capture YUYV and send it with this command:
ffmpeg -f video4linux2 -s 1920x1080 -i /dev/video0 -vcodec copy -f v4l2 /dev/video3
Then I tried this to capture h264 instead of YUYV:
ffmpeg -f video4linux2 -input_format h264 -s 1920x1080 -i /dev/video0 -vcodec copy -f v4l2 /dev/video3
Then ffmpeg returns the error statement:
V4l2 output device supports only a single raw video stream
Does anybody know the correct command or what's wrong?