Page 1 of 1

omxplayer - control opacity

Posted: Tue Dec 04, 2012 10:32 am
by Andymann
hello everyone,

i am faced with the task to play videos where the video's opacity has to be controllable (i.e.: fade to black) by external command - switch to black as a first step would also be okay. (screen is black but video keeps playing underneath) I think this is somewhat special so requesting/ suggesting this as an official feature doesn't seem to be the right thing.

bad thing for me: even though i am able to write programs in various languages, c++ ain't one of them (i can somehow read and follow, but ... the omxplayer's sourcecode clearly shows me that even after ~15 years of working with code i am still at the beginning compared to others). furthermore i am not that comfortable with linux yet...

after studying the sourcecode for a few hours i'd guess that omxreader.cpp and especially the function 'updatecurrentpts' has very much to do with updating the buffer for screen output and so would be the starting point for further researches... correct?

any ideas will be appreciated.

best regards from (rather sunny) hamburg,

Re: omxplayer - control opacity

Posted: Tue Dec 04, 2012 3:38 pm
by henle
If you look at ... o.cpp#L587 you can see how to adjust various video rendering options according to ... playRegion. There is a setting called "alpha", which I would guess you can use to fade the video.

Re: omxplayer - control opacity

Posted: Wed Dec 05, 2012 10:50 am
by Andymann
thx a lot for the hint. that place in code seems to make a lot more sense than what i thought =)

i would've responded earlier but i already spent the whole evening building my first debian app (with the help of some goo tutorial: ... an-on.html).

best regards,