[Solved] Webcam streaming question

About encoding, codec settings, muxers and filter usage
daouid
New Cone
New Cone
Posts: 4
Joined: 20 Aug 2006 20:52

[Solved] Webcam streaming question

Postby daouid » 20 Aug 2006 21:06

Hi , i'm currently working on a Video-On-demand solution,
i've managed video and audio streaming as well as dvd/cd reading,
but im having a hard time getting webcam streaming to work, i've read the whole documentation and forum threads, but i cannot find any solution that solves my problem.

This is the command that i use (server side) to start a video stream:

Code: Select all

"C:\bgrun.exe I:\VideoLAN\VLC\vlc.exe -I http --ttl 12 --high-priority --one-instance --http-host 192.168.1.94:7001 I:/somevideofile.avi :sout=#transcode{vcodec=h264,cabac=1,loopfilter=1,acodec=mp4a,vb=144,ab=8,channels=2,width=360,height=288,fps=17,scale=0.5}:standard{access=http,mux=ts,url=192.168.1.94:7007}"
this is the command used for dvd svcd streaming:

Code: Select all

"C:\bgrun.exe I:\VideoLAN\VLC\vlc.exe -I http --ttl 12 --high-priority --one-instance --http-host 192.168.1.94:7001 dvdsimple://d: :sout=#transcode{vcodec=h264,cabac=1,loopfilter=1,acodec=mp4a,vb=144,ab=8,channels=2,width=360,height=288,fps=17,scale=0.5}:standard{access=http,mux=ts,url=192.168.1.94:7007}"
and finnaly the non-working command:

Code: Select all

C:\bgrun.exe I:\VideoLAN\VLC\vlc.exe -I http --ttl 12 --high-priority --one-instance --http-host "192.168.1.94:7001" dshow:// :dshow-vdev="Video Blaster WebCam 3 (WDM)" :dshow-adev="none" :no-dshow-config :no-dshow-tuner :sout=#transcode{vcodec=h264,vb=144,scale=0.5}:duplicate{dst=std{access=http,mux=ts,url=192.168.1.94:7007}}
i really dont know what to try to get it to work.

P.S: bgrun.exe is a tool that allows you to run program in background, it doesnt interfere with vlc or streaming (works with file streaming) :?:

so if someone could enlight me a bit...

2nd P.S :

this doesnt work neither ....

Code: Select all

C:\bgrun.exe I:\VideoLAN\VLC\vlc.exe -I http --ttl 12 --high-priority --one-instance --http-host "192.168.1.94:7001" dshow:// :dshow-vdev="Video Blaster WebCam 3 (WDM)" :dshow-adev="none" :no-dshow-config :no-dshow-tuner :sout=#transcode{vcodec=h264,vb=144,scale=0.5}:standard{access=http,mux=ts,url=192.168.1.94:7007}
Ok i got it to work :

Code: Select all

C:\bgrun.exe I:\VideoLAN\VLC\vlc.exe -I http --extraintf=logger --high-priority --one-instance --http-host "192.168.1.94:7001" dshow://--dshow-vdev="Video%20Blaster%20WebCam%203%20(WDM)" --dshow-size="320x240" --dshow-chroma="I420" :sout=#transcode{vcodec=h264,cabac=1,loopfilter=1,acodec=mp4a,vb=144,ab=8,channels=2,width=360,height=288,fps=17,scale=0.5}:standard{access=http,mux=ts,url=192.168.1.94:7007}
the problem i had was with the space between dshow:// and --dshow-vdev
dshow:// :dshow-vdev=
and i also had problems with the space character in the device name

so i used the following variables/code to make it work (in PHP for a VOD server) where $newwebcamid is the corrected name of webcamid (replaces spaces with %20)

$newwebcamid = str_replace(" ", "%20", $webcamid);

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 29 guests