Page 1 of 1

vlc stream

Posted: 11 Jul 2011 11:44
by vodas89
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?

Re: vlc stream

Posted: 11 Jul 2011 11:55
by Rémi Denis-Courmont
Weird error. I guess the kernel output buffers are full. Try to increase the limit in /proc/sys/net/whatever

Re: vlc stream

Posted: 11 Jul 2011 12:21
by vodas89
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. :/

Re: vlc stream

Posted: 12 Jul 2011 21:33
by vodas89
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 :)

Re: vlc stream

Posted: 12 Jul 2011 22:31
by Rémi Denis-Courmont
I don't know. VLC should probably smoothen bandwidth usage, but nobody stepped up to implement that.

Re: vlc stream

Posted: 12 Jul 2011 22:37
by vodas89
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 ?