[SOLVED] Force video to a specified width and height

This forum is about all development around libVLC.
Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

[SOLVED] Force video to a specified width and height

Postby Maloupi » 01 Dec 2011 15:26

Hi,

Is there a way to distort a video ?
I mean i want my video take the full space of my hwnd even if the aspect ratio is not repected (the video will be deformed).
Last edited by Maloupi on 17 Jan 2012 09:30, edited 1 time in total.

Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

Re: How to force the video to a specified width and height

Postby Maloupi » 16 Jan 2012 17:19

Basically, what i need is to fit a 16:9 video in a 4:3 element (hwnd) so there is no stripes over and under the video.
The 4:3 element is full of the video. I don't care if the video is not homothetic.

Any idea ?

Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

Re: How to force the video to a specified width and height

Postby Maloupi » 17 Jan 2012 08:42

in fact the real question is :
Is there a function to change aspect ratio ?
I did not find one in the doxygen doc

Maloupi
Blank Cone
Blank Cone
Posts: 25
Joined: 06 Apr 2011 14:34
VLC version: 2.1.0-git
Operating System: Windows / Linux
Location: Lyon (France)

Re: How to force the video to a specified width and height

Postby Maloupi » 17 Jan 2012 08:49

It seems i was on another planet !
There is a function for this...
libvlc_video_set_aspect_ratio


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 20 guests