<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<BR>
I would like to control VideoLAN player via the activeX control from Matlab. I have managed to load, start and stop the file without problem.<BR>
However, the video is recorded in rotated mode so I would like to rotate it 90 degress. Is that possible to do so via the activeX interface from matlab?<BR>
<BR>
The plugin seems to support it according to <A href="http://www.videolan.org/doc/play-howto/en/ch04.html#id590476">http://www.videolan.org/doc/play-howto/en/ch04.html#id590476</A> (under <STRONG>Video transformation filter</STRONG>) but I don't know how to write the correct syntax in matlab. Can you help me?<BR>
<BR>
I am using VLC 2.0.4 (64 bits experimental) for Windows.<BR>
<BR>
This is the code I have used to call it from matlab (no error printouts are given but the video is not rotated):<BR>
<HR id=null>
<BR>
<FONT face="Courier New">f=figure;</FONT><BR>
<FONT face="Courier New">vlc=actxcontrol('VideoLAN.VlcPlugin.2','parent',f);</FONT><BR>
<FONT face="Courier New"></FONT> <BR>
<FONT face="Courier New">filepath = 'C:\testvideo.avi';</FONT><BR>
<FONT face="Courier New">filepath(filepath=='\') = '/';</FONT><BR>
<FONT face="Courier New">filepath = ['file://localhost/' filepath];</FONT><BR>
<FONT face="Courier New"></FONT> <BR>
<FONT face="Courier New"><STRONG>options = {':video-filter=transform --transform-type=90}; % I have tried replacing video-filter with vout-filter as well</STRONG></FONT><BR>
<FONT face="Courier New"></FONT> <BR>
<FONT face="Courier New">vlc.playlist.add(filepath,options);</FONT><BR>
<FONT face="Courier New"></FONT> <BR>
<FONT face="Courier New">vlc.playlist.play()</FONT><BR>
<FONT face="Courier New"></FONT> <BR>
<FONT face="Courier New">vlc.video.deinterlace.enable('x');</FONT><BR><FONT face=Arial>
<HR id=null>
<BR>
<BR>
Regards,<BR>
Daniel<BR></FONT> </div></body>
</html>