summershere
Posts: 25
Joined: Tue Apr 23, 2013 10:53 am

OSD / omxplayer / subtitles etc

Tue Oct 29, 2013 6:28 pm

I'm looking to achieve some form of information display via On Screen Display. I've been playing with various OSD libraries, but it seems that none of them can 'poke' through OMXPlayer (unless anyone has achieved this??)

So it crossed my mind that another way of doing this would be if there was a way of scrolling / global subtitles. I mean global, as I'm looping through a number of videos in a bash script, so am trying to come up with a way to make the subtitles operate autonomously from the current playing video, rather than just starting again. I did think about spitting out the current subtitle location and rewriting files to jump into the middle of a text, but that's starting to get a little messy.

Can anyone add anything useful to my thought process? :)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: OSD / omxplayer / subtitles etc

Tue Oct 29, 2013 6:33 pm

Have you looked at /opt/vc/src/hello_pi/hello_font?

That writes text to an overlay that sits in front of most dispman layers (e.g. omxplayer's video).
If it is not "in front" enough, then increase:

Code: Select all

int LAYER=1;

Return to “General discussion”