how do i reduce delay in live streaming?

About encoding, codec settings, muxers and filter usage
ass
New Cone
New Cone
Posts: 5
Joined: 03 Apr 2009 13:27

how do i reduce delay in live streaming?

Postby ass » 08 Apr 2009 07:11

hi,
We are trying to reduce the time delay of 5 seconds to a delay of atleast one second for streaming a live video.
We use fedora core-8 as our OS and HP loptop webcam. We are streaming to 2 clients with FC-8 as the OS again. Can anybody help? And yeah, We r using transcoding in our command line. Is that the cause of the 5 seconds delay? Does any1 know a command without the transcode statement?
Thanks in advance.

rh
Cone that earned his stripes
Cone that earned his stripes
Posts: 158
Joined: 21 Sep 2006 13:11
VLC version: 2.0.2
Operating System: Lin / Win / Andr
Location: Germany

Re: how do i reduce delay in live streaming?

Postby rh » 08 Apr 2009 10:54

you should give us your transcoding line ...
btw in most cases you should use high efficient codecs like x264/faac, cache settings, low transmission rates and low video size like 400x224. do you have a low bandwidth lan ?
scarcely you do it right it works ...
Greetings, rh

ass
New Cone
New Cone
Posts: 5
Joined: 03 Apr 2009 13:27

Re: how do i reduce delay in live streaming?

Postby ass » 08 Apr 2009 12:27

hi,
We use the following command line:

vlc -vvv --color v4l2:///dev/video:norm=secam:size=640x480 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000}:rtp{mux=ts,dst=239.255.12.13,port=5004}' --ttl 12

Yes we are using a low bandwidth LAN.
Thanks for your reply.

ass
New Cone
New Cone
Posts: 5
Joined: 03 Apr 2009 13:27

Re: how do i reduce delay in live streaming?

Postby ass » 08 Apr 2009 12:50

hi again,
Also, i wanted to know if i could reduce the buffer.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how do i reduce delay in live streaming?

Postby Rémi Denis-Courmont » 08 Apr 2009 14:16

Take a lower value for --v4l2-caching, but zero is unlikely to work right.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ass
New Cone
New Cone
Posts: 5
Joined: 03 Apr 2009 13:27

Re: how do i reduce delay in live streaming?

Postby ass » 09 Apr 2009 09:38

Thanks, but we tried doing that.. It didn't work.. Is there another method to do it??

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how do i reduce delay in live streaming?

Postby Rémi Denis-Courmont » 09 Apr 2009 09:43

No.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tinyang
Blank Cone
Blank Cone
Posts: 19
Joined: 17 Mar 2009 20:52

Re: how do i reduce delay in live streaming?

Postby tinyang » 09 Apr 2009 20:27

Hi,

I was doing the same thing as you, streaming over a LAN, and I was able to reduce the lag time on my stream. I used mjpeg video codec with mp4 encapsulation (no audio mind you) and when I increased my FPS for mjpeg the lag was considerably less. My mjpeg frame rate was in the range of 3 to 12 FPS. Hope this helps.

ass
New Cone
New Cone
Posts: 5
Joined: 03 Apr 2009 13:27

Re: how do i reduce delay in live streaming?

Postby ass » 24 Apr 2009 06:23

thanks... it would be nice if you could send me the command that you are using..


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests