Multicast streaming problem

About encoding, codec settings, muxers and filter usage
fredj21
New Cone
New Cone
Posts: 2
Joined: 28 Aug 2017 11:15

Multicast streaming problem

Postby fredj21 » 28 Aug 2017 13:16

Hello !

I have one multicast server and some Rapberry player and IPTV Box players.This equipments are in a simple Vlan of level 2 network
Since a migration from my server, I encounter some problems when I diffuse 3 streams multicast from my Ubuntu server.

My new server configuration :
  • Distribution : Ubuntu server 16.04.3 LTS (xenia)
  • kernel version : 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
My simple script to start 3 streams :

Code: Select all

#/bin/sh cvlc -v /media/video_1.ts --sout-keep --loop --sout="#gather:standard{mux="ts",access="udp",dst="239.101.0.60"}" & cvlc -v /media/video_2.ts --sout-keep --loop --sout="#gather:standard{mux="ts",access="udp",dst="239.101.0.61"}" & cvlc -v /media/video_3.ts --sout-keep --loop --sout="#gather:standard{mux="ts",access="udp",dst="239.101.0.62"}" &
Several problems :

1/ when i start VLC with option -vvv, I can see a lot of this messages :

Code: Select all

[00007fd420001f98] udp access out debug: packet has been sent too late (1178642004) [00007fd420001f98] udp access out debug: packet has been sent too late (1178623358) [00007fd420001f98] udp access out debug: packet has been sent too late (1178604708) [00007fd420001f98] udp access out debug: packet has been sent too late (1178586058)
and

Code: Select all

[00007fd420001f98] udp access out debug: late packet for UDP input (1178623167) [00007fd420001f98] udp access out debug: late packet for UDP input (1178604509) [00007fd420001f98] udp access out debug: late packet for UDP input (1178585853) [00007fd420001f98] udp access out debug: late packet for UDP input (1178567198)
2/ sometimes, during the streaming, I see this other messages:

Code: Select all

[00007f22e0001f98] udp access out warning: send error: Resource temporarily unavailable [00007f22e0001f98] udp access out warning: send error: Resource temporarily unavailable [00007ff92c001f98] udp access out warning: send error: Resource temporarily unavailable [00007ff92c001f98] udp access out warning: send error: Resource temporarily unavailable
3/ when I analysis with Wireshark, I can observe what the UDP packet are sent ONLY each 20ms :
Image


I looking for a solution :D

I think what problems are a same route cause --> Linux kernel doesn't send quickly enough UDP Packet into the network :geek: !
I think the IP stack buffer did not drain quickly enough by the Kernel --> some packets are dropped between VLC process and Linux IP Stack :oops:

But Why ? :oops:

fredj21
New Cone
New Cone
Posts: 2
Joined: 28 Aug 2017 11:15

Re: Multicast streaming problem

Postby fredj21 » 01 Sep 2017 17:08

Hi !
nobody seems inspired ! :lol:

I have just make a new test : to compare the new VLC version ( 2.2.2 ) and my old version ( 2.0.8 ) in my new server : Ubuntu Kernel 4.4

VLC 2.2.2 --> VLC send only every 20ms :

Image



VLC 2.0.8 --> VLC send UDP packets one to one --> the frequency is of course more important , but linear ! :geek:

Image


Do you have an explanation for this difference of comportment ? :roll:
Is there a particular configuration to schedule UDP into the network ? :cry:


Cdt,
Fred.

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: Multicast streaming problem

Postby Jean-Baptiste Kempf » 29 Nov 2017 14:41

Use multicat for this?
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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 30 guests