Page 1 of 1

Use VLC to expose video card as an ip webcam

Posted: 02 Aug 2008 21:10
by sog1
When used as a stream server, can VLC be used with a video capture card as the input and stream the output as a jpeg feed. The output would need to appear to other applications as an ip web cam. If so, what would the commandline script look like.

Thanks for any info.

Re: Use VLC to expose video card as an ip webcam

Posted: 03 Aug 2008 11:40
by olegkirillov
Not sure what you're trying to do, but I guess you may get what you need by specifying "screen:" as a source for input.

Re: Use VLC to expose video card as an ip webcam

Posted: 03 Aug 2008 19:50
by sog1
I am trying to stream video from a Pinnacle video capture card on Windows XP using the following command line:

# VLC media player VLM command batch
# http://www.videolan.org/vlc/
dshow:// :dshow-vdev="Pinnacle DV/AV Capture" :dshow-adev="" :dshow-size="640X480" :sout=#transcode{vcodec=WMV1,vb=1024,scale=1}:duplicate{dst=display,dst=std{access=mmsh,mux=asfh,dst=192.168.1.2:8080}} :sout-all

VLC looks like it is streaming as VLC Media Player shows an increasing time in the status bar at the bottom, but no local dispay shows and I cannot connect to 192.168.1.2:8080 with Windows Media Player nor another instance of VLC Media Player.

I can stream video from the card using Windows Media Encoder 9, so I am sure the video capture card is working ok.

I guess a good start would be simply to view the video capture card's output locally in the VLC media player. I have tried numerous variations of settings and read quite a few posts regarding setup of VLC as a server, but just can't seem to get VLC set correctly to stream.

Re: Use VLC to expose video card as an ip webcam

Posted: 18 Aug 2008 12:27
by olegkirillov
You have to get local playback working before you can stream anything. As you do not see the local output it seems that your dshow input is configured incorrectly.