Improving Poor Streaming Performance on Linux

*nix specific usage questions
jjeremydiazrex
New Cone
New Cone
Posts: 2
Joined: 23 Jan 2019 02:08

Improving Poor Streaming Performance on Linux

Postby jjeremydiazrex » 23 Jan 2019 03:29

Hi VLC Forum,

I have been having some performance issues streaming UDP 4K video between 2 linux Ubuntu 16.04.5 LTS servers. I am using 2 NICs and a cat6 cable going between both servers that supports 10gE.

To start the stream from an mp4 video I first convert the video to a ts video (any way to start a stream straight from mp4?):

ffmpeg -i input.mp4 -c copy -bsf h264_mp4toannexb output.ts

Then I start vlc on the first server:

vlc udp://@:1234

Last I start the stream on the second server:

cvlc output.ts -vv —sout=‘#standard{mux=ts,access=udp,dst=10.0.0.101:1234}’

While the stream starts immediately, the resulting video is unviewable (multiple frame drops, gray/green screens) and terminates at about 5 seconds into the 1:30 minute long video. One this that I noticed is the CPU load average goes over 8 and VLC's cpu utilization jumps to 200%.

Both systems have a Radeon Pro WX and the following CPU information:

https://www.dropbox.com/s/2f36gnl7ncwwv1d/cpuinfo?dl=0

Below are the logs I collected from both the vlc streaming client and server (dropbox):

client: https://www.dropbox.com/s/d9ws4rjyixud5 ... t.out?dl=0
server: https://www.dropbox.com/s/a395hpll7cbhp ... r.out?dl=0

Any advice on how can I improve the streaming performance between both servers?

Thanks for any help!

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

Re: Improving Poor Streaming Performance on Linux

Postby Rémi Denis-Courmont » 23 Jan 2019 16:46

Benchmark the software and optimize it... Patch welcome.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

1MAXT3HKphYo
Blank Cone
Blank Cone
Posts: 22
Joined: 29 Jan 2019 01:35

Re: Improving Poor Streaming Performance on Linux

Postby 1MAXT3HKphYo » 29 Jan 2019 08:28

Why are you trying to stream like this? What's your end goal? There may be an easier way to get what you're after.

jjeremydiazrex
New Cone
New Cone
Posts: 2
Joined: 23 Jan 2019 02:08

Re: Improving Poor Streaming Performance on Linux

Postby jjeremydiazrex » 05 Feb 2019 20:03

I'm doing some cable benchmarking and want to measure performance on streaming 4K video.

1MAXT3HKphYo
Blank Cone
Blank Cone
Posts: 22
Joined: 29 Jan 2019 01:35

Re: Improving Poor Streaming Performance on Linux

Postby 1MAXT3HKphYo » 06 Feb 2019 00:43

I'm doing some cable benchmarking and want to measure performance on streaming 4K video.
If you're streaming from file to the local network you might consider samba or dlna? Plex works well as a dlna server. I use it to stream 4k Blu Ray remuxes all the time. Streams start immediately, server practically idling. You don't need 10gb to stream 4k either. A gigabit interface will do even for multiple streams.

Edit: reading a bunch of different streams from disk may stress our your system if you aren't using a SSD / San / raid array / hybrid or if you're using a pi where practically the whole system is plugged into a single USB 2 hub.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests