VLC transform 90 degrees doesn't work from html

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
svg
New Cone
New Cone
Posts: 1
Joined: 26 Aug 2006 15:01

VLC transform 90 degrees doesn't work from html

Postby svg » 29 Aug 2006 02:13

I am trying to rotate video during playback from an html page (using ActiveX).

If I set the preferences in vlc then the rotation takes effect.

If I use the following command line the rotation takes effect:

"C:\Program Files\VideoLAN\VLC\vlc.exe" c:\test.avi --vout-filter=transform --transform-type=90

What doesn't seem to work is any version of the following Object and JScript in an html page:

________________________________________________________
<html>
<body>
<OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8"
codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab"
width="480" height="640" id="vlc" events="True">
<param name="Src" value="c:\Test.AVI" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="False" />

</OBJECT>

<SCRIPT LANGUAGE="JScript">
<!--
var options = new Array("--vout-filter=transform","--transform-type=90");
document.vlc.addTarget("c:\Test.AVI", options, 1, -666);
document.vlc.play();
-->
</SCRIPT>

</body>
</html>
_______________________________________________

The video plays, but not rotated. I have tried "--transform-type=3" (the value for 90 degree rotation) and replacing "--" with :" but nothing works. Note that if I set the preferences in vlc to use the transform then it plays rotated in the ActiveX control but the JScript section isn't doing it (the JScript has no effect except for the play command).

The only thing I can think of is that perhaps the video needs to be reloaded in order to have the transform options take effect.

If I could set the activex options with an ini file that would be fine. Is that possible?

Any suggestions would be most appreciated.

johnlas
New Cone
New Cone
Posts: 1
Joined: 20 Sep 2006 09:07

Postby johnlas » 20 Sep 2006 11:26

try this

var options = new Array(":vout-filter=transform");


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 74 guests