Open wryun opened 9 months ago
Hello,
Repeatedly switch between a pixelated image and a black blank image (every second or so)
How do you perform this action? do you physically move the camera? do you physically move something in front of the camera? or is it hardware-based?
in this case mediamtx itself is generating the stream
MediaMTX is still using the Raspberry Pi hardware encoder to perform that action. As written in the Raspberry Pi forum, the hardware encoder doesn't support generating B-frames, therefore setting an additional V4L parameter would be useless.
Sorry I missed this earlier. I just put that image on my phone and used a sheet of paper to hide it repeatedly.
I haven't looked into exactly what is causing it, but I'm considering just patching the MediaMTX to ignore the supposed 'b-frames' (since the main issue is that this causes it to completely drop the stream).
Which version are you using?
v1.4.0
Which operating system are you using?
Describe the issue
When using a rpiCamera source at 640x480@10fps and flipping the image repeatedly, it's apparently possible to generate b-frames (which cause the WebRTC stream to break).
This was sort of raised as #1491, but in this case mediamtx itself is generating the stream, so there's the hope it would generate a stream without b-frames (some v4l2 option?). Interestingly, supposedly the rpi encoder block should not generate b-frames, which makes me wonder if something else is going on:
https://forums.raspberrypi.com/viewtopic.php?t=231368 https://github.com/raspberrypi/picamera2/issues/871
Describe how to replicate the issue
Did you attach the server logs?
yes
Did you attach a network dump?
no