Repository navigation
[h264_mmal @ 0xa882cba0] MMAL error 2 on control port #33
Description
Activity
Using App Image, get the same thing.
root@splashpi:~# ./UltraGrid-20190821.glibc2.24-armhf.AppImage --tool uv -d sdl --param force-lavd-decoder=h264_mmal UltraGrid 1.5+ (master rev 5cd05268 built Aug 21 2019 04:54:23) Display device : sdl Capture device : none Audio capture : none Audio playback : none MTU : 1500 B Video compression: none Audio codec : PCM Network protocol : UltraGrid RTP Audio FEC : none Video FEC : none Created new RTP session with SSRC 0x4f71b38a. [SDL] Using driver: x11 SDL2 initialized successfully. Display initialized-sdl Video capture initialized-none Created new RTP session with SSRC 0x164bb7b7. [SDL] Reconfigure to size 512x512 [video dec.] New incoming video format detected: 1920x1080 @30.00p, codec H.264 [SDL] Using renderer: opengl [lavd] Decoder not found: h264_mmal [lavd] Using decoder: h264did a re-install of Raspian Full. It now tries to use h264_mmal but fails with this:
[video dec.] Successfully reconfigured display to 1920x1080 @30.00p, codec UYVY
[lavd] Using decoder: h264_mmal
[video dec.] Successfully reconfigured display to 1920x1080 @30.00p, codec UYVY
[lavd] Using decoder: h264_mmal
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.Hi, after several tries I make the MMAL decoding somehow work - setting
gpu_mem=128to config.txt (i. a. here; can be done withraspi-config) and using the Raspberry PI default DE worked for me. Xorg with Openbox started directly from console did give me the error even with increased GPU memory, IIRC.However, the performance is not so good, so I'd have some questions for you – which device you use? If RPI 4 (I currently use 3B), would it be possible for you to do some tests? Since I don't think that the main problem is with decoding but rather displaying, I'd like to ask you whether you could try a playback of arbitrary H.264 1080p video with mpv and ffmpeg (ffplay).
Just shortly - for me, both distro mpv and FFMPEG perform quite poorly with default parameters. Omxplayer, on the other hand, worked fine. I'd suspect that using the accelerated decoding is not the main problem, the bottleneck may be perhaps feeding the uncompressed video to the GPU (no matter how decoded).
Thanks,
MartinHi Martin,
Fresh install of Raspian Buster Full on RPi4 (4GB). gpu_mem=512
I made a 1920x1080 H264 file from one of my un-compressed sources, using HandBrake defaults (expect for fps, set that to Source).
Omxplayer is very clean, perfect playback, almost no CPU usage.
ffplay -vcodec h264_mmal: 100% CPU lots of tearing
mpv was basically the same.UV using nightly AppImage -d sdl --param force-lavd-decoder=h264_mmal
[video dec.] Successfully reconfigured display to 1920x1080 @30.00p, codec UYVY
[lavd] Using decoder: h264_mmal
[video dec.] Successfully reconfigured display to 1920x1080 @30.00p, codec UYVY
[lavd] Using decoder: h264_mmal
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.
[lavd] Error while decoding frame (rc == -11): Resource temporarily unavailable.Pi is no longer in my use case. Closing.
RPi4 running latest Raspbian Buster.
UV compiled from Master. FFMPEG provided by OS.
vcgencmd codec_enabled H264
without MMAL video does play, but really low frame rate. With MMAL, fails.