freezing video on ubuntu

  • 2
  • Problem
  • Updated 2 years ago
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

The presentation worked well for first 4 days. From 4 day onward, the video channel started to freeze, we had restart the client and the MP while the other channels worked well. After some couple of hours, the behavior of the video channel got worse and requested rebooting more frequently. Some suggests? I road about to change format of the video from mp4 to webEm but I'm not sure that could be the cause of this problem. Thanks for your contribution. Cristian

Environment:
1)Media Player: ubuntu 14.04, by on Rise store, version MP https://store.risevision.com/product/203/intel-nuc-celeron-linux?cid=dcbb7dee-b427-4cf7-b3d8-c3070ac...
2)TV 55' conneccted by HDMI
3)Presentation with 3 channels: 1 channel with video uploaded  (90 videos, 4 GB of storage, mp4 format); 1 channel with instogram; 1 channel with timer; image as background
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb

Posted 2 years ago

  • 2
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Is video size in pixels larger then placeholder? Reducing video size can help. It looks like the processor (Celeron is weak for heavy content) has hard time processing videos, becomes overloaded, overheated and consequentially starts shuttering. Do you seriously have 90 videos? That is a lot and they need to be pre-loaded. The internet connection can also be blamed here. Is it WiFi or Ethernet; how really fast and stable it is?

You might wanna:

A. reduce video size
B. reduce the number of videos dramatically
C. stream videos from YouTube (create channel, upload videos to it, embed channel in you presentation)... I do not need to say stable Internet connection is a must.

Do not get the cheapest device for heaviest content.
(Edited)
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
Thanks for you answer.
About the scenario, we don't use youtube but we uploaded an video folder that it contains 90 videos. About the question, if the video pixel size is larger "placeholder",  I don't know what do you for placeholder?  We use WiFi. About reduce the size video, which is the recommended size ? Do you recommend to change video format from mp4 to webEm? During the first 4 days the system works well but after the 4th day it started to have problem only on the video channel with many freezing and it requested many rebooting during the day. Thanks again for you answer. Cristian
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Christian, I believe video format here is the least of your problems with playback, as both WebM and mp4 work fine. Sure, WebM is recommended format, so I think it converting video files would not hurt.
You problem is 90!!! videos on WiFi and rather weak device. It struggles to pre-load them all for playback... it is just too much. That is why as alternative I recommended streaming because it adjust to your bandwidth, no need to worry about video format, resizing is very simple, RV does not try to download videos from storage etc. Anyway, if you want to continue video playback as it is now, then what you need is minimum i3 CPU level device AND wired Ethernet connection IMO

I am not familiar with Ubuntu, but there must be some tool or program to track the performance of your device such as memory, CPU usage, temperatures. This way you could learn what really this many videos are doing to it.

Placeholder is where the video widget is placed (you literally have to click 'Add Placeholder' in the editor every time you want to add something to your presentation). It is some certain size in pixels. Your videos should be resized to match the size of placeholder or even a little bit smaller in size.
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
Thanks again, honestly I believe that the rise client download all videos from cloud before to play them without use the network or streaming. So, if I choose to use the folder movies, the rise client use the streaming to play the movie. Thanks  
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Christian, it starts playing videos as soon as it gets one downloaded... now it is using CPU resources to playback that video and download the rest of them along with other content. 90 videos is a lot to download along the other content. That is why it starts off fine, but CPU is at its max performance all the time, it overheats and safeguards start slowing it down, which results in shuttering (it is not capable anymore to deal with all that data processing). Streaming would easy it a bit for your player. In Windows 10 it is easy to see what player is doing: CTRL+ALT+DEL > Task manager >Performance.

Again, it is primarily about your network connection, but player capabilities to deal with the content you throw at it.

You could also consider cooling the player with additional USB fans because NUCs are passively cooled and easily overheat with heavy content.
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
The media player is not hot, I changed the connection from Wifi to cable before the freezing problem. I will check tomorrow the performance the cpu and memory.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Cristian,

Another thing to consider would be how often the device is rebooting. If it is not set to reboot once every 24 hours in the Display Settings for that Display, you may run into issues with reliability and performance. For those reasons, we suggest rebooting the device at least every 24 hours.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Robb, I was gonna say the same thing, but Christian said that they need to reboot it every few hours.
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
Hi Robb, I didn't change the default configuration of MP, it reboot every day at 2am
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Thanks for that confirmation Gentlemen, I just wanted to make sure that was indeed selected :)

How have things been since changing the connection from wifi to wired?
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
I changed the network from wifi to wired at 2th day because the network of the shop was filled, but I didn't have problem of freezing.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Cristian,

Thanks for that confirmation. How are things looking after taking Darius' recommendations into account?
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
We make different test, only with a 1 placeholder.
 The test with 90 movies in mp4 format the CPU was at 85-95%, memory 18-22%, swap 0%, network 0%
We try to reduce the number of video from 90 to 10 movies still in mp4 format and the performance were very similar, just 5% of less of CPU.
The last test we changed the format from mp4 to webEm and with 10 movies. I attach the file of system monitor and top to share the result.  CPU is still high, from 75-90%, a little better then first test. Memory, swap and network still low.
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
it is obvious,right. CPU cannot run that high all the time. You can reduce the size of video file, use a PC with better CPU, make a playlist with pauses for CPU to cool (static content, image slideshows) down or all above.
Photo of Cristian Colonello

Cristian Colonello

  • 180 Points 100 badge 2x thumb
I try to alternate movies with photos, and monitoring the performance. Updated soon.
Photo of Nhor Chan

Nhor Chan

  • 156 Points 100 badge 2x thumb