Improving Poor Streaming Performance on Linux
Posted: 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!
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!