http stream with big delay

About encoding, codec settings, muxers and filter usage
severinikos
New Cone
New Cone
Posts: 4
Joined: 05 Nov 2012 10:06

http stream with big delay

Postby severinikos » 05 Nov 2012 10:13

Dear guys,

I created and HTTP stream from my local sound card to may other PCs using VLC.

Here is my syntax:

START vlc.exe -vvv dshow:// --sout=#transcode{vcodec=none,acodec=mpga,ab=256,channels=2,samplerate=44100}:http{dst=:8080/stream.mp3} --sout-keep --live-caching 100 --network-caching 100

It works very well, except the big delay on the other PCs when playing.
Do you have any ideas how this can be improved?

Thanks.
Severin

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 with big delay

Postby Jean-Baptiste Kempf » 05 Nov 2012 11:52

How big?
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.

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

Re: http stream with big delay

Postby Rémi Denis-Courmont » 05 Nov 2012 13:14

Reduce caching on the receiver.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

severinikos
New Cone
New Cone
Posts: 4
Joined: 05 Nov 2012 10:06

Re: http stream with big delay

Postby severinikos » 06 Nov 2012 08:04

delay is around 3 seconds
I have already tried to set --live-caching 100 --network-caching 100 on the receiver, but no improvements....

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

Re: http stream with big delay

Postby Rémi Denis-Courmont » 06 Nov 2012 09:13

Well, there's also --sout-mux-caching on the server too. After that one, you will need to improve the code to further reduce latency.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

severinikos
New Cone
New Cone
Posts: 4
Joined: 05 Nov 2012 10:06

Re: http stream with big delay

Postby severinikos » 06 Nov 2012 12:01

thanks, with --sout-mux-caching 100 the delay seems to be only 1-2 seconds any more.
I also set --live-caching 100 --network-caching 100 on the client site, but no improvements....

Any other ideas?

Thanks.

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

Re: http stream with big delay

Postby Rémi Denis-Courmont » 06 Nov 2012 12:23

As I said, you've reached the point where tuning parameters won't help. The code needs to be improved.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

severinikos
New Cone
New Cone
Posts: 4
Joined: 05 Nov 2012 10:06

Re: http stream with big delay

Postby severinikos » 07 Nov 2012 12:09

alright, what do you suggest?

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

Re: http stream with big delay

Postby Rémi Denis-Courmont » 07 Nov 2012 14:33

Benchmarking and fixing the worse latency bottlenecks in the source code.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: http stream with big delay

Postby kostyan » 08 Nov 2012 09:56

Did you try --clock-jitter=0? Not sure if it is relevant in your case but I think that without this option, the client might increase the size of the cache dynamically.
Konstantin Miller
Technische Universität Berlin


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests