Page 1 of 1

vlc web player crop videos

Posted: 13 Jan 2009 07:14
by arobro
i have embed vlc using the controls from revolunet.com http://code.revolunet.com/VLCcontrols/V ... ample.html
and now i want to crop my videos.

i found this in this forum viewtopic.php?f=16&t=30140 the command to crop videos
vlc.playlist.add(<file>/<URL>, null, ":crop=320x240+0+80");
basic option:
:crop=<width>x<height>+<left offset>+<top offset>
but i don't know the javascript to crop videos

so my question is how do I crop videos , while using the controls from revolunet.com ??

Re: vlc web player crop videos

Posted: 13 Jan 2009 09:32
by revolunet
hello

with my API, you can use something like this :

Code: Select all

controls.options.set("start-time", 50); controls.options.set("crop", "20x20+20+20"); controls.play(uri)
i never tried to crop so please confirm if ti works or not

Re: vlc web player crop videos

Posted: 13 Jan 2009 10:27
by arobro
i can confirm it does work
and thanks for your help to

Re: vlc web player crop videos

Posted: 13 Jan 2009 10:35
by revolunet
champagne :)

Re: vlc web player crop videos

Posted: 20 Apr 2009 06:20
by Mark_777
Nice peace of code. I had the same problem but with your code it runs like a charme :-)

hello

with my API, you can use something like this :

Code: Select all

controls.options.set("start-time", 50); controls.options.set("crop", "20x20+20+20"); controls.play(uri)
i never tried to crop so please confirm if ti works or not