<div dir="ltr">I am trying to decode a live h264 stream on a raspberry Pi.  I have built ffmpeg with the latest git head, and configured it to run the h264_mmal decoder.  However, if I feed it with a live stream at 1280x720p50 it says it's receiving 1280x720p23.98.  If I do the same with the standard h264 codec rather than the h264_mmal codec then it finds the frame rate correctly.  Is there anything in the mmal codec that would stop it finding the frame rate?<div><br></div><div>I know the example below is using ffmpeg, not the libav libraries, but the ultimate goal is to use the libav libraries, but running ffmpeg is just a quicker way of testing initially.<br><div><br></div><div><font face="monospace">pi@raspberrypi:~/FFmpeg $ ffmpeg -c:v h264_mmal -i udp://@:10020 -c:a copy -f rawvideo output.avi<br>ffmpeg version N-95725-g45f03cdd20 Copyright (c) 2000-2019 the FFmpeg developers<br>  built with gcc 8 (Raspbian 8.3.0-6+rpi1)<br>  configuration: --prefix=/usr --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-mmal --enable-decoder=h264_mmal --disable-decoder=h264 --enable-shared<br>  WARNING: library configuration mismatch<br>  postproc    configuration: --arch=armel --target-os=linux --enable-gpl --enable-mmal --enable-omx --enable-omx-rpi --enable-nonfree --enable-decoder=h264_mmal --enable-encoder=h264_omx --enable-libx265 --enable-shared<br>  libavutil      56. 35.101 / 56. 35.101<br>  libavcodec     58. 62.100 / 58. 62.100<br>  libavformat    58. 35.100 / 58. 35.100<br>  libavdevice    58.  9.100 / 58.  9.100<br>  libavfilter     7. 66.100 /  7. 66.100<br>  libswscale      5.  6.100 /  5.  6.100<br>  libswresample   3.  6.100 /  3.  6.100<br>  libpostproc    55.  6.100 / 55.  6.100<br>[h264_mmal @ 0x1c6f690] non-existing PPS 0 referenced<br>    Last message repeated 24 times<br>[h264_mmal @ 0x1c6f690] Changing output format.<br>Input #0, mpegts, from 'udp://@:10020':<br>  Duration: N/A, start: 71908.828644, bitrate: N/A<br>  Program 1<br>    Stream #0:0[0x1100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 50 tbr, 90k tbn, 23.98 tbc<br>    Stream #0:1[0x1110]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 192 kb/s<br>File 'output.avi' already exists. Overwrite? [y/N] y<br>Stream mapping:<br>  Stream #0:0 -> #0:0 (h264 (h264_mmal) -> rawvideo (native))<br>Press [q] to stop, [?] for help<br>[h264_mmal @ 0x1c71610] Did not get output frame from MMAL.<br>Error while decoding stream #0:0: Unknown error occurred<br>[h264_mmal @ 0x1c71610] Did not get output frame from MMAL.<br>Error while decoding stream #0:0: Unknown error occurred<br>Output #0, rawvideo, to 'output.avi':<br>  Metadata:<br>    encoder         : Lavf58.35.100<br>    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 552960 kb/s, 50 fps, 50 tbn, 50 tbc<br>    Metadata:<br>      encoder         : Lavc58.62.100 rawvideo<br>frame=   28 fps=0.0 q=-0.0 size=   37632kB time=00:00:00.56 bitrate=550502.4kbit</font></div><div><font face="monospace">frame=   61 fps= 58 q=-0.0 size=   82176kB time=00:00:01.22 bitrate=551791.6kbitframe=   93 fps= 54 q=-0.0 size=  125440kB time=00:00:01.86 bitrate=552475.5kbit</font></div><div><font face="monospace">frame=   95 fps= 42 q=-0.0 size=  128000kB time=00:00:01.90 bitrate=551882.1kbit</font></div><div><font face="monospace">frame=  111 fps= 39 q=-0.0 size=  149760kB time=00:00:02.22 bitrate=552627.9kbit</font></div><div><font face="monospace">frame=  118 fps= 35 q=-0.0 size=  159232kB time=00:00:02.36 bitrate=552724.0kbit</font></div><div><font face="monospace">frame=  125 fps= 32 q=-0.0 size=  168704kB time=00:00:02.50 bitrate=552809.3kbit</font></div><div><font face="monospace">frame=  131 fps= 30 q=-0.0 size=  176640kB time=00:00:02.62 bitrate=552303.4kbit</font></div><div><font face="monospace">frame=  149 fps= 13 q=-0.0 size=  200960kB time=00:00:02.98 bitrate=552437.7kbit</font></div><div><font face="monospace">frame=  180 fps= 15 q=-0.0 size=  242944kB time=00:00:03.60 bitrate=552832.6kbit</font></div><div><font face="monospace">frame=  218 fps= 18 q=-0.0 size=  294144kB time=00:00:04.36 bitrate=552666.9kbit</font></div><div><font face="monospace">frame=  239 fps= 19 q=-0.0 size=  322560kB time=00:00:04.78 bitrate=552805.8kbit</font></div><div><font face="monospace">frame=  242 fps= 19 q=-0.0 Lsize=  326700kB time=00:00:04.84 bitrate=552960.0kbits/s dup=54 drop=0 speed=0.373x<br>video:326700kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%<br></font></div><div><br></div></div><div>Regards,</div><div>Simon Brown</div></div>