vlc dshow device name with VLCPlugin2

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
galtman
New Cone
New Cone
Posts: 4
Joined: 27 Dec 2008 00:13

vlc dshow device name with VLCPlugin2

Postby galtman » 27 Dec 2008 00:32

I have a computer with a few capture cards and i need to open each one of them in the plugin
They open fine with the vlc.eve but the problem is that I cant seam to get the right syntax to open it in the plugin

I'm trying (vb):

soutString = " :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=22}:duplicate{dst=std{access=udp,dst=" & PublicIp & ":" & Trim(Str(9000 + ChannelNum)) & "}}"
VLCPlugin2.playlist.Add dshow:// :dshow-vdev="Conexant Capture" :dshow-adev="" , "tv", soutString
VLCPlugin2.playlist.play

my problem is the code play the defaul dshow input device (in my case its a webcam) every time no meter what I write instead of :dshow-vdev="Conexant Capture" :dshow-adev=""
I tryed to insert the :dshow-vdev... into the soutString as is and as an array but with no sucsess
I can open the right capture device running the vlc.exe with shell command.

help anybody
thanks

stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

Re: vlc dshow device name with VLCPlugin2

Postby stefo » 05 Jan 2009 13:41

I use following syntax in VB6 (save into MPEG-2 format ). Maybe it will help you.

Private options1() As Variant

ReDim options1(12)
options1(0) = ":dshow-vdev=Hauppauge WinTV-HVR 713X BDA Analog Capture"
options1(1) = ":dshow-adev=none"
options1(2) = ":dshow-size=720x576"
options1(3) = ":dshow-chroma=UYVY"
options1(4) = ":dshow-fps=25.000000"
options1(5) = ":dshow-video-input=1"
options1(6) = ":sout=#transcode{vcodec=mp2v,vb=3072,scale=1,audio-sync,acodec=mp2a,ab=192,channels=2,samplerate=48000}:duplicate{dst=display,dst=std{access=file,mux=ps,dst=" & OutputFileName & "}}"
options1(7) = ":aspect-ratio=4:3"
options1(8) = ":sout-transcode-width=720"
options1(9) = ":sout-transcode-height=576"
options1(10) = ":sout-transcode-fps=25"
options1(11) = ":sout-ffmpeg-keyint=16"
options1(12) = ":sout-ffmpeg-strict-rc"

vlc.playlist.Add "dshow://", , options1
vlc.playlist.Play

Radoslav


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests