Page 1 of 1
http stream only lasts 2 mins
Posted: 19 Jan 2012 16:57
by homerjay
hi
im trying to stream my webcam from my laptop to another pc on my lan.
ive created a .bat file as a shortcut.
Code: Select all
start vlc dshow:// :dshow-vdev="Integrated Webcam" -V dummy --intf=dummy --dummy-quiet :sout=#transcode{vcodec=WMV1,vb=500,fps=15,width=320,acodec=none}:http{mux=asf,dst=:8080/} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep
i can connect to the http stream from the other pc, but the connection only last 2 min or so.
i can connect again sometimes, but not all the time. but again it only lasts a couple of mins.
any ideas?
thanks
Re: http stream only lasts 2 mins
Posted: 19 Jan 2012 22:43
by Jean-Baptiste Kempf
Use h264 and ts
Re: http stream only lasts 2 mins
Posted: 20 Jan 2012 16:25
by homerjay
ive tried that, but the i only get the vlc logo on screen and no video on the client.
nothing in codec information tab either, but no message saying no connection either?
thanks
Re: http stream only lasts 2 mins
Posted: 20 Jan 2012 16:40
by homerjay
ignore the above, it seems to working, not sure what changed from the 1st couple of attempts though
thanks jean-baptiste
Re: http stream only lasts 2 mins
Posted: 20 Jan 2012 16:52
by homerjay
hmm, seems a bit hit and miss now.
sometimes it wont connect at all, and when it does connect it still only last 2 mins or so.
what am i doing wrong?
Code: Select all
start vlc dshow:// :dshow-vdev="Integrated Webcam" -V dummy --intf=dummy --dummy-quiet :sout=#transcode{vcodec=h264,vb=250,fps=15,width=320,acodec=none}:duplicate{dst=http{mux=ts,dst=:8080/},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep
Re: http stream only lasts 2 mins
Posted: 24 Jan 2012 11:27
by homerjay
does anybody have any further ideas on this problem?
the stream only lasts about 2:20 every time with wmv and ive timed to be about 1 minute with h264 (although it doesnt show the time on vlc)
when i can reconnect using wmv by pressing play, it usually fails and i have to restart the server, but sometimes it connects with at about 1 fps
when using h254 if i only restart the client vlc and connect, i get "vlc does not support the audio or video format "undf". unfortunatley there is no way for you to fix this"
any help would be extremely appreciated
thanks
Re: http stream only lasts 2 mins
Posted: 25 Jan 2012 11:32
by homerjay
after a couple of hours testing last night, it seems it not the client, its the server.
if i run through the api rather than cli, then i click to display output, the stream out freezes after 2 mins. cause the clients to disconnect.
if i leave the server stream for a min, it starts again.
the clients would not reconnect before, because the server stream was up and running again.
if i leave it a min the client will reconnect.
hope that makes sense.
so
how do i stop the server from dying after 2 mins?