Page 1 of 1

VLC ActiveX options work?

Posted: 18 Aug 2017 17:57
by JorgeB
Hello VideoLAN Forum,

Has anyone got the "options" in the ActiveX plugin to work?

I am using the VLC ActiveX Plugin and IE Web Plugin v2 in an application to bring in a live image from my USB camera (vlc-2.2.6-win32.exe installed on Win7 Pro 64-bit machine).

The syntax that I am using is the following

VLCActiveXPluginandIEWebPluginv1.playlist.add($strCmd)
VLCActiveXPluginandIEWebPluginv1.playlist.play()

where $strCmd="dshow://," ",:dshow-vdev=WAT-01U2 :dshow-adev=none :dshow-aspect-ratio=4\:3 :dshow-chroma= :dshow-fps=0 :no-dshow-config :no-dshow-tuner :dshow-tuner-channel=0 :dshow-tuner-frequency=0 :dshow-tuner-country=0 :dshow-tuner-standard=0 :dshow-tuner-input=0 :dshow-video-input=-1 :dshow-video-output=-1 :dshow-audio-input=-1 :dshow-audio-output=-1 :dshow-amtuner-mode=0 :dshow-audio-channels=0 :dshow-audio-samplerate=0 :dshow-audio-bitspersample=0 :live-caching=300"

I have used almost every variation that I can think of but beyond the dshow:// , it does not seem like the options are recognized or there is something very wrong with my syntax.

If you have gotten the options to work please let me know. Thanks in advance. VLC is a very cool application and I appreciate all the effort that has gone into it.

Re: VLC ActiveX options work?

Posted: 19 Aug 2017 23:54
by da2424
Hello,
I think there is a syntax problem. The options string must be the third argument, the second argument can be an empty string.
See also https://wiki.videolan.org/Documentation ... ist_object

Re: VLC ActiveX options work?

Posted: 29 Dec 2017 19:44
by zirote69
Hi.

I´m trying stream video recording to local file using options parameters for VLC ActiveX Plugin.
This is the code i using: VISUAL BASIC 2010

Code: Select all

Dim idVideo As Long 'ID para controlar qué posición en la lista ocupa el stream de video seleccionado. Dim Vopt(1) As String Vopt(0) = "--sout "#duplicate{dst=display,dst=std{access=file,mux=ps,dst=f:\\video.mpg}}" With VLCPlugin .playlist.items.clear() idVideo = .playlist.add("rtsp://X.X.X.X", "Test", Vopt(0)) .playlist.playItem(idVideo) End With
The code execute correctly. The VLC object shows the video, i can put text overlayed image... but no video file is generated. :cry:

Can anyone help me? A example code makes me happy.

Thanks.

Re: VLC ActiveX options work?

Posted: 02 Jan 2018 09:52
by da2424
Recording isn't supported on the web plugins for security reasons, sorry.

Code: Select all

core input error: unsafe option "sout" has been ignored for security reasons

Re: VLC ActiveX options work?

Posted: 06 Jan 2018 09:54
by zirote69
Recording isn't supported on the web plugins for security reasons, sorry.

Code: Select all

core input error: unsafe option "sout" has been ignored for security reasons
I understand that it is for security reasons for web environments but I want to implement it for a Windows application.
Is there any way to implement it in a Windows application?

Thanks.

Re: VLC ActiveX options work?

Posted: 11 Jan 2018 20:36
by da2424
Is there any way to implement it in a Windows application?
Not with the ActiveX plugin or NPAPI plugin.
Instead, you could use libvlcpp (for c++ projects) or libvlc directly.