popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.02k stars 333 forks source link

omxplayer works with rpi3b+ but not with rpi4B-4Gb #783

Closed regie-techno closed 4 years ago

regie-techno commented 4 years ago

Hello everybody

I am appalled: I just received a raspberry pi4 4Gb with raspbian buster last version. I cannot play a video with omxplayer, while I can play it on a raspberry pi3B + without any concern. After rpi-update, no more success ! I had doubts about the file transfer: suddenly, I read the file on a USB stick. On the RPI3B +, no problem. On the RPI4, that does not want. Here is the log

14:03:04 T:18446744072402652494 DEBUG: DllBcm: Using omx system library 14:03:04 T:18446744072402653622 DEBUG: DllOMX: Using omx system library 14:03:04 T:18446744072402654234 DEBUG: DllAvFormat: Using libavformat system library 14:03:04 T:18446744072402655668 DEBUG: DBus connection succeeded 14:03:04 T:18446744072402656456 DEBUG: Keyboard: DBus connection succeeded 14:03:04 T:18446744072402656609 DEBUG: OMXThread::Create - Thread with id -1387290944 started 14:03:04 T:18446744072402656731 DEBUG: DllAvUtilBase: Using libavutil system library 14:03:04 T:18446744072402656757 DEBUG: DllAvCodec: Using libavcodec system library 14:03:04 T:18446744072402656774 DEBUG: DllAvFormat: Using libavformat system library 14:03:06 T:18446744072404351736 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x1a22b60 14:03:06 T:18446744072404358166 DEBUG: OMXClock::OMXStop 14:03:06 T:18446744072404358278 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 14:03:06 T:18446744072404358454 DEBUG: DllAvUtilBase: Using libavutil system library 14:03:06 T:18446744072404358476 DEBUG: DllAvCodec: Using libavcodec system library 14:03:06 T:18446744072404358494 DEBUG: DllAvFormat: Using libavformat system library 14:03:06 T:18446744072404359710 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_decode input port 130 output port 131 m_handle 0x1a23a70 14:03:06 T:18446744072404359888 ERROR: COMXCoreComponent::SetParameter - OMX.broadcom.video_decode failed with omx_err(0x80001005) 14:03:06 T:18446744072404360418 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.video_decode handle 0x1a23a70 14:03:06 T:18446744072404360566 DEBUG: OMXClock::OMXStop 14:03:06 T:18446744072404364090 DEBUG: OMXThread::Run - Exited thread with id -1387290944 14:03:06 T:18446744072404364385 DEBUG: OMXThread::StopThread - Thread stopped 14:03:06 T:18446744072404366490 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x1a22b60

Does someone have an idea ?

popcornmix commented 4 years ago

What is the codec used in file? e.g. post output of mediainfo.

regie-techno commented 4 years ago

the codec is yuv420p but it works fine with rpi3B+ I need explanations about that point.

popcornmix commented 4 years ago

yuv420p is not a codec. h264, mpeg2 etc are codecs. sudo apt install mediainfo mediainfo and paste output here.

regie-techno commented 4 years ago

here is the output of mediainfo

General Complete name : videos/Game.of.Thrones.S08E05.SUBFRENCH.HDTV.XviD-EXTREME.avi Format : AVI Format/Info : Audio Video Interleave File size : 648 MiB Duration : 1 h 14 min Overall bit rate : 1 213 kb/s Writing application : Lavf54.63.104

Video ID : 0 Format : MPEG-4 Visual Format profile : Simple@L3 Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 1 h 14 min Bit rate : 1 008 kb/s Width : 720 pixels Height : 404 pixels Display aspect ratio : 16:9 Frame rate : 24.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.144 Stream size : 539 MiB (83%) Writing library : XviD 64

Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Format settings : Joint stereo / MS Stereo Codec ID : 55 Codec ID/Hint : MP3 Duration : 1 h 14 min Bit rate mode : Constant Bit rate : 192 kb/s Channel(s) : 2 channels Sampling rate : 48.0 kHz Compression mode : Lossy Stream size : 103 MiB (16%) Alignment : Aligned on interleaves Interleave, duration : 24 ms (0.58 video frame) Interleave, preload duration : 24 ms

popcornmix commented 4 years ago

Pi4 doesn't have hardware support for mpeg4. But it is fast enough to decode in software but omxplayer doesn't support that.

omxplayer is actually deprecated and using vlc is recommended (which should play this file fine).

regie-techno commented 4 years ago

ok ! I understand. Does Pi3 have hardware support for mpeg4 ? Indeed vlc works fine ! So to use omxplayer with rpi4, do I have tu use H264 video files ?,

popcornmix commented 4 years ago

On pi4 omxplayer only supports h264.

regie-techno commented 4 years ago

ok ! thanks for your reply !