Author Topic: freezing of playlist  (Read 440 times)

Offline pixelpuppy

  • Hero Member
  • *****
  • Join Date: Aug 2015
  • Location: Dallas, TX
  • Posts: 1,420
  • Kudos: 45
Re: freezing of playlist
« Reply #15 on: June 03, 2019, 09:21:23 AM »
I was seeing similar problems last year when playing .mp4 videos with FPP.   It may run fine for hours playing the same list of videos, but at some point it chokes on a video that had played fine several times prior.   Its my belief that its a bug in omxplayer, or more specifically, the modified omxplayer that FPP uses to speedup/slowdown playback in finer increments.  I think there is a race condition where multiple speedup/slowdown commands come in too fast or in the right combination that locks up omxplayer.

There are two things I did to improve or work-around it.   First thing is to re-encode your .mp4 files in the lowest encoding (lowest resolution, frame rate, compression) that you can live with.  This helped reduce how often the symptom occurred.  The second thing I did in some cases was I edited/recompiled mediaoutput.c to completely bypass the speedup/slowdown.  That prevented the omxplayer crashes , but it does mean that the video would not be exactly in sync - which may or may not be acceptable, depending on the video and how its used in your show.

In the logs, if you have Media Outputs log mask enabled you can see if/when/where omxplayer crashes.

When I mentioned this to the developers last year, I seem to remember some discussion about changes to FPP that would use something different than omxplayer to play videos.  But I'm not sure if that got scrapped or just something still on the to-do list for later on.
-Mark

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #16 on: June 03, 2019, 12:19:51 PM »
thanks... I'll look into the lower resolution idea.  Some of the videos play a movie that is synced with the audio and lights.  Edit/recompile media output.c may be outside my talents.  I'm an Ph.D. in Engineering not an IT guy.   

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #17 on: June 03, 2019, 12:21:57 PM »
BTW: i've got the media out mask enabled and I can see a mp4 file play several times before I get a crash/freeze with the same file.

Offline pixelpuppy

  • Hero Member
  • *****
  • Join Date: Aug 2015
  • Location: Dallas, TX
  • Posts: 1,420
  • Kudos: 45
Re: freezing of playlist
« Reply #18 on: June 03, 2019, 01:02:20 PM »
BTW: i've got the media out mask enabled and I can see a mp4 file play several times before I get a crash/freeze with the same file.


Right.  What I meant was to see if you can correlate they playlist crash/freeze time with an omxplayer entry in the log.   If not, you may be seeing a different problem than I was seeing.

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #19 on: June 03, 2019, 01:15:04 PM »
ok I'll work on it.

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #20 on: June 03, 2019, 01:29:54 PM »
One of the issues is the Pi keeps running and the logs keep "logging".  It's hard to tell what time the freeze occurred due to the many hours of working.


Is there an indicator in the logs? which one?

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #21 on: June 09, 2019, 06:00:33 AM »

This is a section of the FPPD.log where the playlist locks up.  This type of problem will show up after several passes through the playlist. 
occasionally I will get: "2019-06-08 11:06:59 (1328) mediaoutput/omxplayer.cpp:247:Error parsing omxplayer output.  Error: Unable to open font" but it doesn't kill the playlist.


2019-06-08 13:11:53 (1328) playlist/PlaylistEntrySequence.cpp:91:Started Sequence, ID: 6
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:105:PlaylistEntryBase::StartPlaying()
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:205:---- Playlist Entry ----
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:206:Entry Type: sequence
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:207:Entry ID  : 99
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:208:Entry Note:
2019-06-08 13:11:53 (1328) playlist/PlaylistEntrySequence.cpp:145:Sequence Filename: 2019 Drummer Boy.fseq
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryMedia.cpp:129:PlaylistEntryMedia::StartPlaying()
2019-06-08 13:11:53 (1328) mediaoutput/omxplayer.cpp:80:omxplayerOutput::Start()
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:105:PlaylistEntryBase::StartPlaying()
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:205:---- Playlist Entry ----
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:206:Entry Type: media
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:207:Entry ID  : 100
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:208:Entry Note:
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryMedia.cpp:250:Media Filename: little drummer boy.mp4
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:105:PlaylistEntryBase::StartPlaying()
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:205:---- Playlist Entry ----
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:206:Entry Type: both
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:207:Entry ID  : 98
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:208:Entry Note:
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:205:---- Playlist Entry ----
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:206:Entry Type: media
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:207:Entry ID  : 100
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:208:Entry Note:
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryMedia.cpp:250:Media Filename: little drummer boy.mp4
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:205:---- Playlist Entry ----
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:206:Entry Type: sequence
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:207:Entry ID  : 99
2019-06-08 13:11:53 (1328) playlist/PlaylistEntryBase.cpp:208:Entry Note:
2019-06-08 13:11:53 (1328) playlist/PlaylistEntrySequence.cpp:145:Sequence Filename: 2019 Drummer Boy.fseq
2019-06-08 13:11:53 (1386) httpAPI.cpp:105:API Req: /fppd/status
2019-06-08 13:11:53 (1386) httpAPI.cpp:135:URL: status
2019-06-08 13:11:53 (1386) httpAPI.cpp:618:API - Getting fppd status
2019-06-08 13:11:54 (1387) httpAPI.cpp:105:API Req: /fppd/playlist/config
2019-06-08 13:11:54 (1387) httpAPI.cpp:135:URL: playlist/config
2019-06-08 13:11:54 (1382) channeloutput/channeloutputthread.c:213:Output Thread: Loop: 25000us, Send: 4us, Read: 75us, Process: 40us, Sleep: 24881us, FrameNum: 33
2019-06-08 13:11:55 (1384) httpAPI.cpp:105:API Req: /fppd/status
2019-06-08 13:11:55 (1384) httpAPI.cpp:135:URL: status
2019-06-08 13:11:55 (1384) httpAPI.cpp:618:API - Getting fppd status
2019-06-08 13:11:55 (1382) channeloutput/channeloutputthread.c:213:Output Thread: Loop: 25000us, Send: 37us, Read: 78us, Process: 33us, Sleep: 24852us, FrameNum: 73
2019-06-08 13:11:56 (1386) httpAPI.cpp:105:API Req: /fppd/status
2019-06-08 13:11:56 (1386) httpAPI.cpp:135:URL: status
2019-06-08 13:11:56 (1386) httpAPI.cpp:618:API - Getting fppd status
2019-06-08 13:11:56 (1328) mediaoutput/omxplayer.cpp:247:Error parsing omxplayer output.  COMXAudio::Decode timeout
2019-06-08 13:11:56 (1328) mediaoutput/omxplayer.cpp:247:Error parsing omxplayer output.  COMXAudio::Decode timeout
2019-06-08 13:11:56 (1328) mediaoutput/omxplayer.cpp:247:Error parsing omxplayer output.  COMXAudio::Decode timeout


Your help in addressing this issue is most welcome


Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #22 on: June 09, 2019, 06:06:29 AM »
Additional information:
Video Dimensions: 1280x720
Codecs: H.264, AAC
Color Profile: HD (1-1-1)

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #23 on: June 10, 2019, 06:15:26 AM »
i take it MP4 player is not working correctly.  Any thoughts on how to correct the problem?

Offline SCUBA

  • Full Member
  • ***
  • Join Date: Nov 2014
  • Location:
  • Posts: 161
  • Kudos: 0
Re: freezing of playlist
« Reply #24 on: June 12, 2019, 05:56:54 AM »
I reduced the video dimensions to 720 X 480.    I removed any and all special characters in the MP4 file names.


Still have the problem with the OMXplayer.  [size=0px]mediaoutput/omxplayer.cpp:247:Error parsing omxplayer output.  COMXAudio::Decode timeout[/size][/color]



Any other suggestions?

 

Back to top