07-10-2020, 11:38 AM
I have tried for days to get that workaround to work, without luck.
This line doesn't work on my RPI4, for some reason. I guess there's a difference between PI 3B and 4, since mine isn't working, or are you using an older version PI software?
ffmpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video5
Dequeued v4l2 buffer contains 687112 bytes, but 691200 were expected. Flags: 0x00002001.
Then I got this to work a little in OAP & VLC:
ffmpeg -f rawvideo -video_size "720x480" -i /dev/video0 -fv4l2 -pix_fmt yuv422 /dev/video1
But is giving me a green flickering tint, which I asked about here:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=279608&p=1693495&hilit=green+tinted#p1693495
And finally with Gstreamer, everything was working fine in VLC, but a black screen in OAP
gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoconvert ! video/x-raw, format=\(string\)I420 ! v4l2sink device=/dev/video5
So, getting a bit fed up with this now, and I don't want to wait a month or two for a new grabber, that maybe, maybe not is working arriving from China :/
Most companies doesn't write what chip is inside, so kinda lottery to buy something online from a shop closer than China.
This line doesn't work on my RPI4, for some reason. I guess there's a difference between PI 3B and 4, since mine isn't working, or are you using an older version PI software?
ffmpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video5
Dequeued v4l2 buffer contains 687112 bytes, but 691200 were expected. Flags: 0x00002001.
Then I got this to work a little in OAP & VLC:
ffmpeg -f rawvideo -video_size "720x480" -i /dev/video0 -fv4l2 -pix_fmt yuv422 /dev/video1
But is giving me a green flickering tint, which I asked about here:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=279608&p=1693495&hilit=green+tinted#p1693495
And finally with Gstreamer, everything was working fine in VLC, but a black screen in OAP
gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoconvert ! video/x-raw, format=\(string\)I420 ! v4l2sink device=/dev/video5
So, getting a bit fed up with this now, and I don't want to wait a month or two for a new grabber, that maybe, maybe not is working arriving from China :/
Most companies doesn't write what chip is inside, so kinda lottery to buy something online from a shop closer than China.