http stream only lasts 2 mins

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
homerjay
New Cone
New Cone
Posts: 6
Joined: 19 Jan 2012 16:52

http stream only lasts 2 mins

Postby homerjay » 19 Jan 2012 16:57

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: http stream only lasts 2 mins

Postby Jean-Baptiste Kempf » 19 Jan 2012 22:43

Use h264 and ts
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

homerjay
New Cone
New Cone
Posts: 6
Joined: 19 Jan 2012 16:52

Re: http stream only lasts 2 mins

Postby homerjay » 20 Jan 2012 16:25

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

homerjay
New Cone
New Cone
Posts: 6
Joined: 19 Jan 2012 16:52

Re: http stream only lasts 2 mins

Postby homerjay » 20 Jan 2012 16:40

ignore the above, it seems to working, not sure what changed from the 1st couple of attempts though

thanks jean-baptiste

homerjay
New Cone
New Cone
Posts: 6
Joined: 19 Jan 2012 16:52

Re: http stream only lasts 2 mins

Postby homerjay » 20 Jan 2012 16:52

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

homerjay
New Cone
New Cone
Posts: 6
Joined: 19 Jan 2012 16:52

Re: http stream only lasts 2 mins

Postby homerjay » 24 Jan 2012 11:27

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

homerjay
New Cone
New Cone
Posts: 6
Joined: 19 Jan 2012 16:52

Re: http stream only lasts 2 mins

Postby homerjay » 25 Jan 2012 11:32

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?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 59 guests