eroji / rtsp2mjpg

RTSP to MJPEG stream conversion using FFmpeg and FFserver
99 stars 41 forks source link

error while decoding freezes container #23

Open mkilinskidev opened 3 years ago

mkilinskidev commented 3 years ago

Hello! After several minutes of work, in docker logs, there are some errors. Unfortunately, the container freezes after them and I can't get my stream. I need to restart the container. Is it possible to fix that?

[rtsp @ 0x7f14559b3460] Undefined type (31) [h264 @ 0x563b93f24fe0] cabac decode of qscale diff failed at 52 32 [h264 @ 0x563b93f24fe0] error while decoding MB 52 32, bytestream 4731 [h264 @ 0x563b9407f040] Increasing reorder buffer to 1 [swscaler @ 0x56505741e0a0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x561744c46460] deprecated pixel format used, make sure you did set range correctly [h264 @ 0x5617448aba00] error while decoding MB 43 18, bytestream -5 [h264 @ 0x560de12773a0] error while decoding MB 27 13, bytestream -5 [h264 @ 0x7f20f036f7c0] Increasing reorder buffer to 1 [h264 @ 0x560de12773a0] cabac decode of qscale diff failed at 54 18 [h264 @ 0x560de12773a0] error while decoding MB 54 18, bytestream 256 [h264 @ 0x7f20f036f7c0] error while decoding MB 68 62, bytestream -7 [h264 @ 0x560de12773a0] cabac decode of qscale diff failed at 91 54 [h264 @ 0x560de12773a0] error while decoding MB 91 54, bytestream 231

dataworxx commented 3 years ago

same here

eroji commented 3 years ago

Are you using WiFi while running this?

mkilinskidev commented 3 years ago

Are you using WiFi while running this?

What do you mean? Docker is working on VPS in Germany, camera is in Poland and my website is hosted in Poland too. I am watching the the stream on my website using the cable, not WiFi.

It could be something with host machine. I've changed VPS from Oracle 1CPU/1GB RAM to 4CPU/8GB RAM and for two days it is ok... Maybe it's a coincidence, I don't know...

eroji commented 3 years ago

I ask because latency and packet quality plays an important role in ffmpeg being able to keep up with the transcoding. Also, ffserver can be very sensitive how stable the transcoded stream is. In my case when I was using WiFi and there were packet loss happening which cause my stream to die. However after I switched to wired it was very stable. Do keep in mind that it was running on local network.

mkilinskidev commented 3 years ago

I see... it can be a latency problem. As I wrote, ffserver works in Germany and the camera is in Poland...