Revolunet VLC Plugin - Setting Aspect Ratio for one Movie

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Revolunet VLC Plugin - Setting Aspect Ratio for one Movie

Postby vel_tins » 13 Sep 2010 08:50

I am using Revolunet Code for VLC Plugin 1.0.5 and want to set one special Movie/Stream to Aspect-Ratio 16:9.
I know about:

Code: Select all

vlc_controls.options.set("aspect-ratio=16:9");
But this sets it global for all Movies.
I start my Movie as follows:

Code: Select all

<a HREF="#" onClick="vlc_controls.play('http://xx.xx.xx.xx:12345')" <img src="skyy.jpg" width="50" height="50"></a>
and I tried

Code: Select all

<a HREF="#" onClick="vlc_controls.play('http://xx.xx.xx.xx:12345 --aspect-ratio=16:9')"><img src="skyy.jpg" width="50" height="50"></a>
but this doesn't work.
So, how can I add the aspect ratio option?
Last edited by vel_tins on 14 Sep 2010 05:49, edited 1 time in total.

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby Ilasir » 13 Sep 2010 21:15

You could do it through the raw vlc api by using an if function that changes the aspect ratio when that particular item is playing and setting the vlc.video.aspectRatio parameter to "16:9".

vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby vel_tins » 14 Sep 2010 05:52

Could you be so nice and post an example, so I can understand what you mean?
It's not so easy for a "non Coder" :(

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby Ilasir » 14 Sep 2010 23:26

The problem is, I'm not very familiar with the revolunet code, because I wrote my own control bar for the plugin.


I find revolunet opaque and overly complicated, personally.


The vlc api provides a function that can change the aspect ratio of a video. If you want to change a specific aspect ratio outside of that function, you need to set it in the "vlc.playlist.add(mrl,name,options)" function.

mysoogal
Blank Cone
Blank Cone
Posts: 82
Joined: 28 Oct 2008 12:39

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby mysoogal » 15 Sep 2010 02:41

thanks for that i was looking for it :)

@ vlc_controls.options.set("aspect-ratio=16:9");

vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby vel_tins » 15 Sep 2010 12:16

ok, I tried it without Revolunet Code..

Code: Select all

var vlc=document.getElementById("vlc"); var id=vlc.playlist.add("http://xx.xx.xx.xx:8889/ext;QUALITY=220/17", "--aspect-ratio=16:9"); vlc.playlist.playItem(id);
and

Code: Select all

var id=vlc.playlist.add("http://xx.xx.xx.xx:8889/ext;QUALITY=220/17", ":aspect-ratio=16:9"
and

Code: Select all

var id=vlc.playlist.add("http://xx.xx.xx.xx:8889/ext;QUALITY=220/17", "aspect-ratio=16:9"
The Video plays, but it ignores the aspect-ratio settings..it always shows a 4:3 aspect-ratio

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby Ilasir » 15 Sep 2010 21:17

You should be using a local option ":aspect-ratio=16:9"I think, as described in the documentation.

vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby vel_tins » 16 Sep 2010 02:15

Yes, I tried the local option, look at my second code snippet.
But option is ignored. Maybe my Plugin-Version, (1.0.5) doesn't support it?
I tried other options (sharpen-sigma=1.0), but also ignored..
EDIT: ok i figured it out..
in this line, "name" is missing:

Code: Select all

var id=vlc.playlist.add("http://xx.xx.xx.xx:8889/ext;QUALITY=220/17", ":aspect-ratio=16:9"
if I change it to:

Code: Select all

var id=vlc.playlist.add("http://xx.xx.xx.xx:8889/ext;QUALITY=220/17", "some name", ":aspect-ratio=16:9"
it works :)

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Revolunet VLC Plugin - Setting Aspect Ratio for one Movi

Postby Ilasir » 16 Sep 2010 06:14

Lol... Can't believe I missed that. Nice catch. :)


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 1 guest