Video Issues in Ubuntu

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
Hello all, I am trying to troubleshoot an issue with how videos are playing in Ubuntu.

They start to play, but the videos will lag in the same spots, no matter how long the display is running. To be clear, by "lag" I mean that the video will stop for a few seconds before it is able to continue and finish playing. I have looked around here for any advice on this but only find help for when the videos wont play at all. The one thread I saw that had to do with the videos playing smoothly, asked about the processor usage.

I have the exact same setup (ubuntu 16.04 and same schedule) on two different PCs. One is an Intel NUC with an i5-5250U at 1.60GHz with 8GB memory, the other is a custom PC running an i7-4771 at 3.50GHz with 16GB. Both these machines lag at the exact same spot. I doubt very much that the issue is the processor.

That being said, I've also noticed that if they lose network connectivity, while the videos were playing, the whole schedule stops playing. Everything I have seen says that the videos should be able to continue playing with no network connectivity as they should be locally cached once the display starts up.

A few last bits of information...
  • I have two videos in this schedule, one is 247MB, the other is 63MB. 
  • Both are loading from our web server.
  • Both have sound but I have lowered the volume lowered all the way down as I do not want sound coming from the displays.
  • When the display starts up, the "installer" loads up again saying that it is "installing" the player, is that normal? 
  • I also am coming from strictly having used Risevision on Raspberry Pi devices for "static" presentations.

Any advice would be greatly appreciated.
Photo of FCSB

FCSB

  • 150 Points 100 badge 2x thumb
  • Frustrated

Posted 2 years ago

  • 1
Photo of RPTDigital Signage

RPTDigital Signage

  • 2,284 Points 2k badge 2x thumb
You've certainly got enough CPU power to handle a single video without lag unless the file is the problem.

We do all our displays on Windows 10 now, Rise support on that is solid, so I can't comment if it's Ubuntu related.
 
Solid network connectivity is important, try running it with a wired connection if you're on WiFi and if that clears it up then work around the problems as WiFi related.

Search this forum under Video Torture Test and try that presentation as a test, it's based on Rise Demos and runs cleanly on Intel Sticks and Atom based players unless they get too hot. That presentation takes your internal server out of play and If that won't run cleanly look to your network connection, then think Ubuntu (driver or install).

Good luck,  
Photo of FCSB

FCSB

  • 150 Points 100 badge 2x thumb
Thanks for that, I will try the torture test.

In the meantime, I should have probably mentioned that the custom PC is wired and the NUC is wireless. The only reason I noticed the connectivity issue was because I forced the network failure as a test.

EDIT: I found this link but I am not sure how to add the torture test to my display. The link in that post does not load a presentation for me.

RE-EDIT:
Ok, I was able to figure out the preview URL for the presentation and added it to the schedule... It runs beautifully... So... I guess we can definitely rule out hardware and connectivity... So it is either the file or the server it is hosted on... 
(Edited)
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Hi FCSB,
If the video is lagging at the same spot, it could be the file itself. Have you played the file on its own to see if it’s the source?
About the “installing the Player” behaviour, this is the current behaviour when you select to Restart the Player but we are working on improving this within the next few weeks.

✨✨✨✨✨
(Edited)
Photo of FCSB

FCSB

  • 150 Points 100 badge 2x thumb
Yeah, that had been an earlier thought of mine, but no, the file was fine playing it by itself.

I looked at the source code for the video torture test that RPTDigital Signage pointed out and I noticed that those files were .webm. I converted the files from MP4 and now they seem to be running better... that being said, the quality is not as good, but I think that may be just whatever settings I have on my video encoder.

EDIT: I just tried a few times to get the video to encode into webm and still look as close to the original as possible. Any suggestions on a good encoder that keeps the quality close to lossless?
(Edited)
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
We have a community video conversion thread at https://community.risevision.com/rise... with plenty of suggestions. Feel free to reach out to the posters there for any other suggestions

✨✨✨✨✨
(Edited)
Photo of FCSB

FCSB

  • 150 Points 100 badge 2x thumb
Thanks for that link! I'll be looking at the suggestions there.

Thank you both for all the help!