I won't take much time from you...
I am streaming a fragmented mp4 from ffmpeg with this command-line
ffmpeg \
-f video4linux2 \
-video_size 640x480 \
-framerate 60 \
-i /dev/video0 \
-c:v h264_omx \
-b:v 500k \
-movflags frag_keyframe+empty_moov \
-f mp4 udp://192.168.1.196:1234
Then on my host (the IP from above) I use a simple ffplay command-line
ffplay -fflags nobuffer udp://0.0.0.0:1234
The results are pretty good with a latency of half a second.
The problem is that after, let's say, 30s, the video freezes but everything is still sending frames and receiving frames.
I discovered that at streaming time some frames are being dropped and being FMP4..... frames dropped may cause this?
I would like to know how to prevent this freezing because if I increase the fps to 90 (which reduces the latency to 350ms) the video freezes earlier (frames being dropped before)
Thanks