vlc web player crop videos

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

vlc web player crop videos

Postby arobro » 13 Jan 2009 07:14

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 ??

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: vlc web player crop videos

Postby revolunet » 13 Jan 2009 09:32

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
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

Re: vlc web player crop videos

Postby arobro » 13 Jan 2009 10:27

i can confirm it does work
and thanks for your help to

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: vlc web player crop videos

Postby revolunet » 13 Jan 2009 10:35

champagne :)
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

Mark_777
New Cone
New Cone
Posts: 2
Joined: 20 Apr 2009 06:16
Contact:

Re: vlc web player crop videos

Postby Mark_777 » 20 Apr 2009 06:20

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests