12-13-2018, 03:43 AM
Found a very simple way for screen overlay, the trick is to use OMX.
Some file need to be created for the test:
info.srt:
------------------------------
1
00:00:00,00 --> 00:00:05,00
Battery: 4.20v - 72Mbits - 18:51
------------------------------
Convert attached png to avi:
ffmpeg -loglevel panic -y -loop 1 -i black.png -t 5 -r 5 -vf scale=16:-2,setsar=1:1 -force_key_frames 1 black.avi
Run OMX:
omxplayer --no-osd --no-keys --alpha 150 --layer 2000 --win 0,0,1024,50 --align center --font-size 750 --no-ghost-box --subtitles info.srt black.avi
Some file need to be created for the test:
info.srt:
------------------------------
1
00:00:00,00 --> 00:00:05,00
Battery: 4.20v - 72Mbits - 18:51
------------------------------
Convert attached png to avi:
ffmpeg -loglevel panic -y -loop 1 -i black.png -t 5 -r 5 -vf scale=16:-2,setsar=1:1 -force_key_frames 1 black.avi
Run OMX:
omxplayer --no-osd --no-keys --alpha 150 --layer 2000 --win 0,0,1024,50 --align center --font-size 750 --no-ghost-box --subtitles info.srt black.avi