jax7121
Posts: 7
Joined: Wed Dec 19, 2018 10:03 pm

Universal player for Stretch and Buster

Fri Jan 03, 2020 5:00 pm

hello guys, my project unfortunately was affected by the release of the raspberry 4 and buster. My scritpt shows on my clients' tv advertising videos with subtitles resized and positioned ad hoc and with a fixed 720p resolution for any type of TV.

The command it executes is:

Code: Select all

omxplayer --display=5 -o hdmi --win "0 0 1280 720" --layer 2 --blank --vol -80 --no-ghost-box --align center --font-size 45 --font /usr/share/fonts/truetype/freefont/FreeSansBold.ttf --no-keys video.mp4
For now the omxplayer distribution for buster has bugs and subtitles are disabled. In fact, running the command with Raspberry pi 4 shows this error:

Code: Select all

omxplayer.bin: OMXPlayerSubtitles.h: 86: bool OMXPlayerSubtitles :: GetUseExternalSubtitles (): Assertion `m_open 'failed.
There is no way to solve it for now. So since some of my customers have already purchased the RPi4 I find myself with this headache.

These are the questions:
1) Which player can I use that works with the same command line on both RPi123 and RPi4, raspian stretch / buster?
2) And what is its syntax to achieve the same result as the command with omxplayer?

Thanks in advance.

mob-i-l
Posts: 279
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: Universal player for Stretch and Buster

Wed Jan 22, 2020 10:19 am

This bug of not being able to display subtitles using omxplayer is old (Aug 4, 2019), and I don't know why they don't fix it. VLC media player is not an alternative for all movies since it is slower for x264.
https://github.com/popcornmix/omxplayer/issues/736
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

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

Re: Universal player for Stretch and Buster

Wed Jan 22, 2020 11:10 am

IIRC, the subtitles are rendered using OpenVG in the firmware. OpenVG is no longer supported on the pi4, completely removed in the HW, so now OMXplayer cannot run with subtitles turned on. We are unlikely to fix this, as we are now concentrating on things like VLC for output as OMXplayer cannot work with H265.

VLC should work fine with H264, if not then that is a bug that needs investigating. Ensure you are using the Raspbian version of VLC.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7897
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Universal player for Stretch and Buster

Wed Jan 22, 2020 2:35 pm

jamesh wrote:
Wed Jan 22, 2020 11:10 am
IIRC, the subtitles are rendered using OpenVG in the firmware. OpenVG is no longer supported on the pi4, completely removed in the HW, so now OMXplayer cannot run with subtitles turned on. We are unlikely to fix this, as we are now concentrating on things like VLC for output as OMXplayer cannot work with H265.
Correct. OpenVG is not natively available on the Pi4.
Search the forums and you will find links to some implementations of OpenVG on top of OpenGL, but those that have tried them were reporting issues/limitations.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Advanced users”