VLC ActiveX options work?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
JorgeB
New Cone
New Cone
Posts: 1
Joined: 18 Aug 2017 17:31

VLC ActiveX options work?

Postby JorgeB » 18 Aug 2017 17:57

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.

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: VLC ActiveX options work?

Postby da2424 » 19 Aug 2017 23:54

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

zirote69
New Cone
New Cone
Posts: 3
Joined: 29 Dec 2017 19:24
VLC version: 2.2.8
Operating System: Windows

Re: VLC ActiveX options work?

Postby zirote69 » 29 Dec 2017 19:44

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.

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: VLC ActiveX options work?

Postby da2424 » 02 Jan 2018 09:52

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

zirote69
New Cone
New Cone
Posts: 3
Joined: 29 Dec 2017 19:24
VLC version: 2.2.8
Operating System: Windows

Re: VLC ActiveX options work?

Postby zirote69 » 06 Jan 2018 09:54

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.

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: VLC ActiveX options work?

Postby da2424 » 11 Jan 2018 20:36

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests