how to set deinterlace mode from mozilla plugin?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
alec_robertson

how to set deinterlace mode from mozilla plugin?

Postby alec_robertson » 30 Jul 2006 17:41

So I've finally managed to get interlaced x264 encoding of my videos as well as getting the activex plugin to deinterlace them with:

Code: Select all

var opt = new Array(":vout-filter=deinterlace", ":deinterlace-mode=x"); document.vlc.addTarget("mymoofie.mkv",opt,8,0);
I've tried to do the same with the mozilla plugin:

Code: Select all

document.vlc.set_str_variable('vout-filter','deinterlace'); document.vlc.set_str_variable('deinterlace-mode','x');
But the deinterlace mode is not set, and the following check returns junk:

Code: Select all

document.getElementById("dimode").innerHTML = document.vlc.get_str_variable('deinterlace-mode');
Any suggestions (I've tried variations on '--deinterlace-mode', ':deinterlace-mode' to no avail)...?
Last edited by alec_robertson on 28 Sep 2006 21:56, edited 1 time in total.

ottos
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Sep 2006 17:57

Postby ottos » 22 Sep 2006 13:35

how to set deinterlace-metod=bob in embedded IE6 (active-x) ?

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 22 Sep 2006 13:54

try

Code: Select all

var options = new Array() options.push(":vout-filter=deinterlace"); options.push(":deinterlace-mode=bob") document.vlc.playlistClear(); document.vlc.addTarget(targetURL, options, 1, -666);
You need to start and stop the stream and perhaps even wait a little before you start the stream

you fullscreen should not work when deinterlace bob
fx. document.vlc.fullscreen() should not work you need to go around that
and

Code: Select all

X = vlc.getVariable("key-fullscreen") vlc.setVariable("key-pressed", X)


do this.

ottos
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Sep 2006 17:57

Postby ottos » 25 Sep 2006 12:10

to karlal:
you wrote that you are using for fulscreen
X = vlc.getVariable("key-fullscreen")
vlc.setVariable("key-pressed", X)

how this work?

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 25 Sep 2006 14:45

Well when deinterlace bob is enable, it seems like you cant go to fullscreen the normal way document.vlc.fullscreen.

so instead you create a javascript function or what ever.

function fullscreen()
{
var X = vlc.getVariable("key-fullscreen")
vlc.setVariable("key-pressed", X)
}

The first line gets the fullscreens key and stores it in X
the second line simulate that a key is pressed with the value of X.

That should give you a fullscreen.

ottos
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Sep 2006 17:57

Postby ottos » 25 Sep 2006 15:51

to karlar:
ok
but how to go in fulscreen and go out to small screen?
after that did you have normal smalscreen did you see it everytime? some times i need to rearange webpage size ... ? why is that ?
and with your function after select of new streams always start in fulscreen?

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 25 Sep 2006 17:52

could you post your code ?

ottos
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Sep 2006 17:57

Postby ottos » 26 Sep 2006 11:45

to karlar:
it is ok.
everything is working fine.

Do you have some documentation of vlc plugins in IE & mozilla functions& procedures ?

Do you know - it is possible to have SAP anouncments received trough vlc plugins in IE & mozilla ?

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 26 Sep 2006 12:15

I dont think it works with mozilla
I seems to remember something about that in the next version of vlc there well be some change in the IE and mozilla plugin, so we will have to wait.

Do you know - it is possible to have SAP anouncments received trough vlc plugins in IE & mozilla ?

dont know

ottos
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Sep 2006 17:57

HELP

Postby ottos » 26 Sep 2006 13:30

HELP!!!!!

i'v got problem with Microsoft Windows Live toolbar, don't work vlc IE plugin, crashes after start...

any ideas?

ottos
Blank Cone
Blank Cone
Posts: 14
Joined: 21 Sep 2006 17:57

Postby ottos » 27 Sep 2006 17:22

in IE
when first time open html page and click once on non fulscreen then video disappear and shown again only when resize page or click on window maximaze minimaze? why its that?????

after plugins do this once its not doing anymore till close and reopen !


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests