Problem when Streaming with VLC form VB.net application

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
parthmankad
Blank Cone
Blank Cone
Posts: 11
Joined: 14 Jun 2008 08:32

Problem when Streaming with VLC form VB.net application

Postby parthmankad » 19 Jun 2008 07:41

Hello everybody

I am facing a strange problem when streaming with VLC from my vb.net application . I have an acer laptop with a in built camera.i am able to stream properly form my vb.net application when i use the default acer camera.this is what i am doing

Dim vlc_cmd As String() = New String() {":sout=#transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=2}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=224.0.0.2:1234}}"}
AxVLCPlugin1.addTarget("dshow:// :dshow-vdev=""Acer Crystal Eye webcam"" :dshow-adev=""Realtek HD Audio Input"" :dshow-size=""320*240""", vlc_cmd, AXVLC.VLCPlaylistMode.VLCPlayListAppend, 0)
AxVLCPlugin1.play()

This works perfectly. now when i connect Logitech QuickCam Pro for Notebooks camera to my laptop and then when i change the device name in my application i am not able to stream the video.ti only get a still image.this i what i do in my code.

Dim vlc_cmd As String() = New String() {":sout=#transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=2}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=224.0.0.2:1234}}"}
AxVLCPlugin1.addTarget("dshow:// :dshow-vdev=""QuickCam Pro for Notebooks"" :dshow-adev=""Realtek HD Audio Input"" :dshow-size=""320*240""", vlc_cmd, AXVLC.VLCPlaylistMode.VLCPlayListAppend, 0)
AxVLCPlugin1.play()

However i am able to stream from the VLC media player application properly using the Logitech QuickCam. i dont understand this bcoz the QuickCamera works fine in the VLC media player but not in my vb.net application..also when i have connected two cameras even if i change the dshow-vdev from Quickcam to Acer Crystal Eye still it always shows me the Quickcam camera in my vb.net application.What i have been able to make out is that VLC Plugin is always taking the default camera.so when there are two cameras it alwas takes the QuickCam as the default one.how to change this behaviour.


Thanx
Parth Mankad

Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests