Page 1 of 1

VLC Aspect ratio

Posted: 22 Jan 2009 09:05
by ElieAlAlam
Dear all,

I am using Active X control in my C# application and i am trying to change the aspect ratio of the video input dynamically after opening the movie file.
Open()
{
vlc2.playlist.items.clear();
vlc2.playlist.add(url, " ", VlcOption);
vlc2.playlist.play();
vlc2.video.aspectRatio = "16:9";
}

but this is not changing the aspect ratio.

but when the video start playing (after about 1 second) and i change the aspect ratio (after a button click). it work
onButtonClick(..)
{
vlc2.video.aspectRatio = "16:9";
}

can anyone help me on how to change the aspect ratio directly after opening the file
Thanks

Re: VLC Aspect ratio

Posted: 22 Jan 2009 09:28
by ElieAlAlam
Thank you
I have solved this issue by using the option parameter of Add function
string[] VlcOption = { ":aspect-ratio=16:9"};
vlc2.playlist.add(url, " ", VlcOption);
vlc2.playlist.play();

Regards,-