vlc stream

About encoding, codec settings, muxers and filter usage
vodas89
New Cone
New Cone
Posts: 9
Joined: 07 Jul 2011 18:29

vlc stream

Postby vodas89 » 11 Jul 2011 11:44

Hello,

Im trying streaming video with vlc and this is how i do it:

sudo -u user vlc --vlm-conf vlm_export --intf telnet -vvv --file-logging --logfile vlc_log --file-caching 5000 --daemon

vlm_export:
new bunny1 broadcast enabled loop
setup bunny1 input "big_buck_bunny_pal.ts"
setup bunny1 output #udp{dst=224.1.1.1:11111}

new bunny2 broadcast enabled loop
setup bunny2 input "big_buck_bunny_pal.ts"
setup bunny2 output #udp{dst=224.1.1.2:11111}

This command is executed every startup. My problem is that sometimes (and i don't know why) stream is jerky and chopped. Basically it is very very bad. Another time everything is O.K. BTW I've got two streams, every has 15Mbps bitrate. Here is error from my logfile:

access_output_udp warning: send error: Resource temporarily unavailable

Have you guys some advice what i can do with it ? Do you think it could by network capacity problem ? Or network switch? Igmp?

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

Re: vlc stream

Postby Rémi Denis-Courmont » 11 Jul 2011 11:55

Weird error. I guess the kernel output buffers are full. Try to increase the limit in /proc/sys/net/whatever
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vodas89
New Cone
New Cone
Posts: 9
Joined: 07 Jul 2011 18:29

Re: vlc stream

Postby vodas89 » 11 Jul 2011 12:21

I don't know what files and parameters i should change. It could be some UDP option I guess ... ?? http://manpages.ubuntu.com/manpages/jau ... udp.7.html

This is beyond my knowledge. :/

vodas89
New Cone
New Cone
Posts: 9
Joined: 07 Jul 2011 18:29

Re: vlc stream

Postby vodas89 » 12 Jul 2011 21:33

Okay ... so I moved server and client to separate network. Stream has started to work properly but in some parts video jerked. So I increased values in net.core.wmem_max and net.ipv4.udp_wmem_min ... BTW I used sysctl >> sudo sysctl parameter=value ...

It fixed jerking but not in all parts if video ... what now ? Caching or ? ... I cannot increasing buffers to infinity :)

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

Re: vlc stream

Postby Rémi Denis-Courmont » 12 Jul 2011 22:31

I don't know. VLC should probably smoothen bandwidth usage, but nobody stepped up to implement that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vodas89
New Cone
New Cone
Posts: 9
Joined: 07 Jul 2011 18:29

Re: vlc stream

Postby vodas89 » 12 Jul 2011 22:37

okay and what about another streaming tool ... multicat could be used but stream from multicat is really terrible ..... more jerking .... is there someone who is using multicat for streaming ?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests