huceke / omxplayer

omxplayer
GNU General Public License v2.0
520 stars 501 forks source link

Zooming [cropping] certain area of video #206

Open aquadat0r opened 10 years ago

aquadat0r commented 10 years ago

Hi there,

Will it be possible to make omxplayer zoom on a specified area of video?

Example, CCTV feed coming in, would like to digitally zoom (blow-up) an certain area of video.

Thanks John

popcornmix commented 10 years ago

You can do this before starting omxplayer (command line option --win). It's unlinkely to be added as a dynamic runtime option as it requires quite a lot of keys and some sort of UI interface to control it, and seems beyond the scope of omxplayer. Maybe an interfact to change the displayed rectangle could be exposed over the dbus interface, and a separate app could control this.

aquadat0r commented 10 years ago

As far as I understand, the --win option only controls where the video should be rendered and the not which piece. Am I understanding it correctly?

popcornmix commented 10 years ago

I believe somthing like --win "-128 -128 1408 738" would zoom in (on 1270x720 screen).