wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.99k stars 1.51k forks source link

How to zoom video to fill out player widget? #1126

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

Is there any option to zoom video that is being played so that it fills the whole renderer widget? For example, if a video is 480640 and my render window is 480480, is there any way to play the video by zooming it so that it fills the whole window? It's like cropping the top and bottom of the video to make it square? I see there is an option to set VideoOutput to RendererAspectRatio. But that only stretch the video to fill the renderer by changing the aspect ratio of video, which is not what I wanted.

Thank you! rpw

ibooij commented 6 years ago

I guess this is the same as #1127