willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 72 forks source link

how to remove black background ? #203

Open innlight opened 4 years ago

innlight commented 4 years ago

hi guys, i need to remove the black background from videoplayback. i need to see the video and the desktop or i need to reproduce the video in a frame window. How i can do? thanks

matthijskooijman commented 4 years ago

In the omxplayer manpage, I see:

     -b  --blank[=0xAARRGGBB]    Set the video background color to black (or optional ARGB value)
         --win x1,y1,x2,y2       Set position of video window

I guess these could help here? --blank=0x00000000 should get you a transparent background (e.g. for the borders outside of the video, not the video itself). Or you can use something like --win 860,540,1920,1080 to show the video in the lower right corner only (assuming 1920x1080 resolution).

In any case, this seems to be more of an omxplayer question than an omxplayer-wrapper question, though.