Using the AxWindowsMediaPlayer
I need to stretch a video to take up the entire screen. The issue with stretchToFit = true
, is that stretchToFit
maintains the aspect ratio of the video, creating blackbars if the video or monitor is not of the same ratio. I do not want these black bars. I do not want to maintain the aspect ratio when I stretch the video.
I have been looking for an answer to this problem for a long time and have read countless questions posed by others. As far as I can tell, no one has any solution.
*I am posting this question despite there being an exact question already posted since the other question was posted a year ago with no answers.
Here's a solution! Even in
Windows Media Player
andAxWindowsMediaPlayer
controls withK-Lite Codec Pack
(MEGA PACK only, because it's the only pack which comes withffdshow video decoder
). In theK-Lite Codec Pack MEGA
setup installation process selectAdvanced
and goNext
, IMPORTANT: inPreferred video decoder
switch toffdshow video decoder
I also recommend you setffdshow audio decoder
, then proceed withNext
until you finish installation, so now you haveffdshow video decoder
installed andWindows Media Player
alsoAxWindowsMediaPlayer
controls will use it. After installation go toffdshow video decoder configuration
, you can locate it at:Start Menu Folders >
K-Lite Codec Pack\Configuration\ffdshow video decoder
Then tick the following settings:
So now videos will be rendered without keeping aspect ratio that will remove those "black bars" and get stretched to window.
EDIT: Just a reminder that a few video formats such as mkv will use by default the
ffdshow video decoder
inWindows Media Player
andAxWindowsMediaPlayer
components, other formats Windows 7/8.x/10 use its own codecs for decoding so for that reason you need to go to:Start Menu Folders >
K-Lite Codec Pack\Codec Tweak Tool
Then tick your desired settings, here's an example:
For more info about Media Foundation, take a look at: http://www.codecguide.com/windows7_preferred_filter_tweaker.htm
WMP doesn't allow stretching of the video without maintaining the aspect ratio.