VLC Active-X Deinterlace

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
the_flow
New Cone
New Cone
Posts: 1
Joined: 03 Dec 2009 16:25

VLC Active-X Deinterlace

Postby the_flow » 03 Dec 2009 16:33

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!

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: VLC Active-X Deinterlace

Postby thannoy » 03 Dec 2009 17:04

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).

Tnnt
New Cone
New Cone
Posts: 3
Joined: 21 Dec 2009 18:15

Re: VLC Active-X Deinterlace

Postby Tnnt » 22 Dec 2009 18:48

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.

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: VLC Active-X Deinterlace

Postby thannoy » 22 Dec 2009 19:03

I don't think.

grand
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Oct 2009 10:31
Operating System: Windows / Linux
Location: Moscow
Contact:

Re: VLC Active-X Deinterlace

Postby grand » 23 Dec 2009 12:46

I need this feature too.
Please help! :)

whome
Blank Cone
Blank Cone
Posts: 37
Joined: 14 Jun 2008 15:40

Re: VLC Active-X Deinterlace

Postby whome » 03 Feb 2010 13:05

[ 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

whome
Blank Cone
Blank Cone
Posts: 37
Joined: 14 Jun 2008 15:40

Re: VLC Active-X Deinterlace

Postby whome » 29 Mar 2010 18:35

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15213
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC Active-X Deinterlace

Postby Rémi Denis-Courmont » 29 Mar 2010 18:57

AFAIK, 1.1 options for deinterlacing are named deinterlace=off/auto/on and deinterlace-mode=discard/blend/...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

whome
Blank Cone
Blank Cone
Posts: 37
Joined: 14 Jun 2008 15:40

Re: VLC Active-X Deinterlace

Postby whome » 29 Mar 2010 19:02

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests