Page 1 of 1

VLC Active-X Deinterlace

Posted: 03 Dec 2009 16:33
by the_flow
Hello everybody, please help me to set deinterlace option for vlc active-x plugin embedded inside html page. Is it possible?
I omitted some code with "..."

<object classid="clsid:..." codebase="..." ...>
<param name="src" value="http://some-path deinterlace-mode x"/>
<param name="autoplay" value="true"/>
</object>

I tried several combinations:
--deinterlace-mode x
:deinterlace-mode x
deinterlace-mode bob
... in vain :(

There is video ouput, but no deinterlacing work notified


Thank you in advance!

Re: VLC Active-X Deinterlace

Posted: 03 Dec 2009 17:04
by thannoy
1- src field do not handle such "query" I think, only media URL(s?) to add to playlist. To do special stuff like deinterlacing, you need to use JavaScript_API.

2- before (up to VLC 0.9.8a iirc), it was doable this way:

Code: Select all

<object id="vlcnode" blabla>without src parameter</object> and in JS: document.getElementById("vlcnode").playlist.add("url", "foo title", ":vout-filter=deinterlace :deinterlace-mode=linear"); document.getElementById("vlcnode").playlist.play();
3- A security policy have been added which prevent upper generic method to be used. JS have been extended to provide a dedicated deinterlacing node but this is for future VLC releases (1.1.0 and later).

sum-up: from VLC 0.9.9 (included) to VLC 1.1.0 (excluded), you can not deinterlace with ActiveX. You will have to wait 1.1.0 to be released (still in development).

Re: VLC Active-X Deinterlace

Posted: 22 Dec 2009 18:48
by Tnnt
Is there any way to realise Active-X Deinterlace in nearest future versions - 1.0.3 or 1.0.4. I need this feature very much.

Re: VLC Active-X Deinterlace

Posted: 22 Dec 2009 19:03
by thannoy
I don't think.

Re: VLC Active-X Deinterlace

Posted: 23 Dec 2009 12:46
by grand
I need this feature too.
Please help! :)

Re: VLC Active-X Deinterlace

Posted: 03 Feb 2010 13:05
by whome
[ WinXP, VLC 1.0.5.0, Firefox3 and IE8 browsers ]

I spent several days trying every combination of playlist options to enable deinterlacing, only now to discover a mission impossible. Here is a code snippet, I have tried --atr :atr -atr atr syntax but no luck. Aspect ratio attribute works so options are taken in.

Code: Select all

var options = new Array( ":aspect-ratio=4:3", // 16:9, 4:3 ":vout-filter=deinterlace", ":deinterlace-mode=yadif" // blend, linear, yadif, x, yadif, ... ); vlc.playlist.add(sUrl, "media file", options);
I was trying to browser VideoLan GIT source tree looking for ActiveX and MozillaPlugin source codes. I could not find.
http://git.videolan.org/

Do anyone know where I can find plugin sources, maybe must hack a plugin wrapper to enable deinterlacing in v1.0.5?
Or maybe an answer is wait for v1.1 official release, released when its done?

thx

edit:
I think I found a right repository and a folder.
http://git.videolan.org/?p=vlc.git;a=tr ... 0f;hb=HEAD

Re: VLC Active-X Deinterlace

Posted: 29 Mar 2010 18:35
by whome
Is there any way to realise Active-X Deinterlace in nearest future versions - 1.0.3 or 1.0.4. I need this feature very much.
I have downloaded git://git.videolan.org/vlc/vlc-1.0.git sources (VLC1.0.x release build) and made some experimental hacking. I added init parameters to add a deinterlace filter, then crosscompiled VLC sources in Ubuntu to get windows .dll binary.
File: projects/activex/plugin.cpp
void VLCPlugin::initVLC()
{
...
ppsz_argv[ppsz_argc++] = "--ignore-config";
ppsz_argv[ppsz_argc++] = "--intf=dummy";
ppsz_argv[ppsz_argc++] = "--vout-filter=deinterlace";
ppsz_argv[ppsz_argc++] = "--deinterlace-mode=yadif";
...
}
* unregistered old plugin c:> regsvr32.exe /uninstall axvlc.dll
* copied axvlc.dll binary from Linux to an existing VLC installation folder in Windows
* registered new plugin c:> regsvr32.exe axvlc.dll

Deinterlacing works. I do have one big problem, if anyone has something to say I am all here.

If VLC plugin is played in fullscreen and file is completed. VLC plugin does not switch to a windowed mode if option "--vout-filter=deinterlace" was enabled. It stays in fullscreen and is freezed. I must kill IE browser. Compiling a plugin without deinterlace options works fine, vlc is automatically reset to a windowed mode after a file is completed.

Anyone has ideas why deinterlace kills a fullscreen mode and what can be done?
Or anyone knows VLC1.1.x release timetables?

Re: VLC Active-X Deinterlace

Posted: 29 Mar 2010 18:57
by RĂ©mi Denis-Courmont
AFAIK, 1.1 options for deinterlacing are named deinterlace=off/auto/on and deinterlace-mode=discard/blend/...

Re: VLC Active-X Deinterlace

Posted: 29 Mar 2010 19:02
by whome
Thx. I hacked VLC1.0.x source code. Looking at the image quality my hack does work ok. But after a videofile is completed fullscreen is not switched to a windowed mode :-(
Do you have an experience to say if VLC1.1.x nightly builds were stable enough to use?

edit: I installed "1.1.0-git-20100329-0003 The Luggage" nightly build and tested new deinterlacing methods. Javascript methods worked fine in Firefox and IE browsers. I do have a show stopper in Firefox plugin, it starts playback audio muted.

Calling vlc.audio.mute=false or vlc.audio.toggleAudioMute() methods does absolutely nothing in Firefox plugin. Printing vlc.audio.mute boolean value says TRUE. This is a weird showstopper problem, why is mozilla pluging to start muted.
edit: ^^ it was vlc.audio.volume=0 was zeroed in Firefox plugin. I restarted Firefox and now it works.