GlowInTheDark
Posts: 582
Joined: Sat Nov 09, 2019 12:14 pm

Problem with omxplayer in Buster OS

Tue Jun 30, 2020 2:19 am

I have an old (over 10 years old) digital camera, that I use to make videos (MP4 files) with. It works fine.

The videos play just fine with omxplayer in Jessie. Most of my Pis are running Jessie, so this is all good.

However, the videos created on the camera do not work on Buster. When I try to play the video file (one that works just fine in Jessie) in Buster, omxplayer just exits immediately (with the usual "Have a nice day") and exits with status 1.

Other videos (stuff downloaded from YouTube, mostly) work fine in Buster.

What is missing/broken in the Buster version of omxplayer?

(Is there some missing codec or something?)
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

gkreidl
Posts: 6307
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 6:48 am

Post the output of mediainfo for one of these videos.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

GlowInTheDark
Posts: 582
Joined: Sat Nov 09, 2019 12:14 pm

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 7:35 am

gkreidl wrote:
Tue Jun 30, 2020 6:48 am
Post the output of mediainfo for one of these videos.
What is "mediainfo"? If that is supposed to be a command, it is a command not found.

Also note: The video plays fine in VLC on Buster and also in VLC under Windows. This is, of course, not at all surprising. But it would be good to get it to work with omxplayer.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26434
Joined: Sat Jul 30, 2011 7:41 pm

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 7:54 am

Is this on a Pi4?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

GlowInTheDark
Posts: 582
Joined: Sat Nov 09, 2019 12:14 pm

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 8:24 am

Yes.

And I do recall, when I originally posted, that there was something weird about omxplayer on the Pi4.
I can't remember now what that weirdness was.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

gkreidl
Posts: 6307
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 9:24 am

mediainfo is a tool for checking details of media files. You can install it with
sudo apt install mediainfo

It will show us, which codec is used in your video files.

I suppose it uses either MPEG2 or H263 (xvid etc.). These hardware codecs are missing on the RPi 4 and explain why omxplayer, which is restricted to HW codecs), cannot play the files.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

GlowInTheDark
Posts: 582
Joined: Sat Nov 09, 2019 12:14 pm

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 4:48 pm

Interesting.

So, it really is a hardware limitation of the Pi4?

I can live with that. As is usual in these kinds of threads, it actually has nothing to do with version of OS or version of omxplayer, then?

Kids - don't throw your old PIs away...
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

User avatar
rpdom
Posts: 17008
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 5:13 pm

GlowInTheDark wrote:
Tue Jun 30, 2020 4:48 pm
So, it really is a hardware limitation of the Pi4?
If you mean "Are those codecs no longer supported by a hardware decoder on the Pi 4?", Yes. The Pi 4B CPUs are plenty fast enough to decode those in software without a problem. omxplayer only uses the hardware decodes. VLC should have no trouble.
Unreadable squiggle

andrum99
Posts: 1202
Joined: Fri Jul 20, 2012 2:41 pm

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 5:49 pm

GlowInTheDark wrote:
Tue Jun 30, 2020 4:48 pm
So, it really is a hardware limitation of the Pi4?
Not really. omxplayer is purely a tool to allow you to play videos using the built-in video codecs in the GPU. If the codec for the particular type of video you are trying to play is not enabled, it won't work. As has been stated already, some codecs are disabled on Pi 4 because the ARMs are now fast enough to do the decode in software. (And presumably it would have added to the cost-per-device to ship them with those hardware codecs enabled, due to licensing costs). Obviously this means some videos will play using omxplayer on Pi 0 to 3 that will not play using omxplayer on Pi 4.

gkreidl
Posts: 6307
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 7:07 pm

Just for comparison:

HW codecs on my RPi 4:
H264 VP8 VP6 VORB THRA MJPG FLAC PCM

On my RPi 3B:
H264 H263 WVC1 MPG4 MPG2 VP8 VP6 VORB THRA MJPG FLAC PCM
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

GlowInTheDark
Posts: 582
Joined: Sat Nov 09, 2019 12:14 pm

Re: Problem with omxplayer in Buster OS

Tue Jun 30, 2020 8:41 pm

Really. omxplayer is purely a tool to allow you to play videos using the built-in video codecs in the GPU. If the codec for the particular type of video you are trying to play is not enabled, it won't work. This is a hardware limitation of the PI4 model. As has been stated already, some codecs are disabled on Pi 4 because the ARMs are now fast enough to do the decode in software, but, as you've noticed, this breaks omxplayer on the Pi4. Presumably, it would have added to the cost-per-device to ship them with those hardware codecs enabled, due to licensing costs. Obviously this means some videos will play using omxplayer on Pi 0 to 3 that will not play using omxplayer on Pi 4.

As with many things in life, you win some, you lose some.
There. That's much better.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Return to “Raspberry Pi OS”