summershere
Posts: 25
Joined: Tue Apr 23, 2013 10:53 am

OMXPlayer hanging

Mon Feb 10, 2014 12:24 pm

I've got omxplayer cycling through a number of 1080p mp4 files in a bash script. After a while, it hangs on a blackscreen.

Looking at the processes, it hangs on the same mp4 each time. If I delete it, it picks a different one and hangs on that each time.

This is what fills the log file up when it's hung:

Code: Select all

12:11:30 T:1029874197   DEBUG: Normal M:7121010 (A:0 V:5280000) P:0 A:-7.12 V:-1.84/T:0.20 (0,1,1,0) A:0% V:60% (0.00,0.00)
12:11:30 T:1029895283   DEBUG: Normal M:7142105 (A:0 V:5280000) P:0 A:-7.14 V:-1.86/T:0.20 (0,1,1,0) A:0% V:60% (0.00,0.00)
12:11:30 T:1029916372   DEBUG: Normal M:7163188 (A:0 V:5280000) P:0 A:-7.16 V:-1.88/T:0.20 (0,1,1,0) A:0% V:60% (0.00,0.00)
12:11:30 T:1029937633   DEBUG: Normal M:7184365 (A:0 V:5280000) P:0 A:-7.18 V:-1.90/T:0.20 (0,1,1,0) A:0% V:60% (0.00,0.00)
12:11:30 T:1029958724   DEBUG: Normal M:7205543 (A:0 V:5280000) P:0 A:-7.21 V:-1.93/T:0.20 (0,1,1,0) A:0% V:60% (0.00,0.00)
12:11:30 T:1029979792   DEBUG: Normal M:7226615 (A:0 V:5280000) P:0 A:-7.23 V:-1.95/T:0.20 (0,1,1,0) A:0% V:60% (0.00,0.00)
and this is the log file just before it starts doing that:

Code: Select all

12:11:22 T:1021912309   DEBUG: DllBcm: Using omx system library
12:11:22 T:1021917221   DEBUG: DllOMX: Using omx system library
12:11:22 T:1021920247   DEBUG: DllAvFormat: Using libavformat system library
12:11:22 T:1021920661   DEBUG: DllAvUtilBase: Using libavutil system library
12:11:22 T:1021920894   DEBUG: DllAvCodec: Using libavcodec system library
12:11:22 T:1021921128   DEBUG: DllAvFormat: Using libavformat system library
12:11:22 T:1022366722   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x200d140
12:11:22 T:1022373583   DEBUG: OMXClock::OMXStop
12:11:22 T:1022374247   DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
12:11:22 T:1022375215   DEBUG: DllAvUtilBase: Using libavutil system library
12:11:22 T:1022375440   DEBUG: DllAvCodec: Using libavcodec system library
12:11:22 T:1022375585   DEBUG: DllAvFormat: Using libavformat system library
12:11:22 T:1022380379   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_decode input port 130 output port 131 m_handle 0x2023bc0
12:11:22 T:1022384525   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.video_decode) - port(130), nBufferCountMin(1), nBufferCountActual(60), nBufferSize(81920), nBufferAlignmen(16)
12:11:22 T:1022417787   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.text_scheduler input port 150 output port 151 m_handle 0x24dc900
12:11:22 T:1022421091   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.text_scheduler) - port(150), nBufferCountMin(1), nBufferCountActual(100), nBufferSize(1024), nBufferAlignmen(16)
12:11:22 T:1022460396   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.text_scheduler) - port(151), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(1024) nBufferAlignmen(16)
12:11:22 T:1022464657   DEBUG: COMXVideo::Open - decoder_component(0x0x2023bc0), input_port(0x82), output_port(0x83) deinterlace 1 hdmiclocksync 0
12:11:22 T:1022465551   DEBUG: OMXThread::Create - Thread with id -1300237216 started
12:11:22 T:1022466067   DEBUG: OMXThread::Create - Thread with id -1308625824 started
12:11:22 T:1022467158   DEBUG: Normal M:0 (A:0 V:-4503599627370496) P:1 A:0.00 V:0.00/T:0.20 (0,0,1,0) A:0% V:0% (0.00,0.00)
12:11:22 T:1022467510   DEBUG: COMXPlayer::HandleMessages - player started RESET
12:11:22 T:1022467662  NOTICE: OMXClock using video as reference
12:11:22 T:1022468654   DEBUG: OMXClock::OMXReset audio / video : 0 / 1 wait mask 0->2 state : 2->1
12:11:22 T:1022479341    INFO: CDVDPlayerVideo::Decode dts:0 pts:0 cur:0, size:2303
12:11:22 T:1022480018   DEBUG: OMXVideo::Decode VDec : setStartTime 0.000000
12:11:22 T:1022481272    INFO: CDVDPlayerVideo::Decode dts:0 pts:160000 cur:160000, size:261
12:11:22 T:1022482295    INFO: CDVDPlayerVideo::Decode dts:40000 pts:40000 cur:40000, size:261
12:11:22 T:1022483347    INFO: CDVDPlayerVideo::Decode dts:80000 pts:80000 cur:80000, size:261
12:11:22 T:1022484497    INFO: CDVDPlayerVideo::Decode dts:120000 pts:120000 cur:120000, size:261
12:11:22 T:1022485558    INFO: CDVDPlayerVideo::Decode dts:160000 pts:320000 cur:320000, size:262
12:11:22 T:1022487595    INFO: CDVDPlayerVideo::Decode dts:200000 pts:200000 cur:200000, size:262
12:11:22 T:1022488473   DEBUG: Normal M:0 (A:0 V:200000) P:1 A:0.00 V:0.20/T:0.20 (0,0,1,0) A:0% V:1% (0.00,0.00)
12:11:22 T:1022493112    INFO: CDVDPlayerVideo::Decode dts:240000 pts:240000 cur:240000, size:262
12:11:22 T:1022494196    INFO: CDVDPlayerVideo::Decode dts:280000 pts:280000 cur:280000, size:262
12:11:22 T:1022495211    INFO: CDVDPlayerVideo::Decode dts:320000 pts:480000 cur:480000, size:262
12:11:22 T:1022496401    INFO: CDVDPlayerVideo::Decode dts:360000 pts:360000 cur:360000, size:262
12:11:22 T:1022497284    INFO: CDVDPlayerVideo::Decode dts:400000 pts:400000 cur:400000, size:262
12:11:22 T:1022498323    INFO: CDVDPlayerVideo::Decode dts:440000 pts:440000 cur:440000, size:262
12:11:22 T:1022499343    INFO: CDVDPlayerVideo::Decode dts:480000 pts:520000 cur:520000, size:47458
12:11:22 T:1022501222    INFO: CDVDPlayerVideo::Decode dts:520000 pts:600000 cur:600000, size:141837
12:11:22 T:1022522749   DEBUG: Normal M:0 (A:0 V:600000) P:1 A:0.00 V:0.60/T:0.20 (0,0,1,1) A:0% V:7% (0.00,0.00)
12:11:22 T:1022526988   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_render input port 90 output port 90 m_handle 0x20204e8
12:11:22 T:1022527211   DEBUG: COMXVideo::PortSettingsChanged - 1920x1080@25.00 interlace:0 deinterlace:0
12:11:22 T:1022527638   DEBUG: Resume 0.00,0.60 (0,0,1,1) EOF:0 PKT:(nil)
12:11:22 T:1022530992   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_scheduler input port 10 output port 11 m_handle 0x201a370
12:11:22 T:1022535045   ERROR: COMXCoreComponent::SetStateForComponent - OMX.broadcom.clock failed with omx_err(0x80001000)
12:11:22 T:1022538998   ERROR: OMXClock::StateExecute m_omx_clock.SetStateForComponent
12:11:22 T:1022539207   DEBUG: OMXClock::OMXSetSpeed(1.00) pause_resume:1
12:11:22 T:1022544830   DEBUG: Normal M:0 (A:0 V:600000) P:0 A:0.00 V:0.60/T:0.20 (0,0,1,1) A:0% V:7% (0.00,0.00)
12:11:22 T:1022553729    INFO: CDVDPlayerVideo::Decode dts:560000 pts:560000 cur:560000, size:3809
12:11:22 T:1022555171    INFO: CDVDPlayerVideo::Decode dts:600000 pts:680000 cur:680000, size:97863
12:11:22 T:1022558570    INFO: CDVDPlayerVideo::Decode dts:640000 pts:640000 cur:640000, size:298
12:11:22 T:1022559693    INFO: CDVDPlayerVideo::Decode dts:680000 pts:760000 cur:760000, size:65052
12:11:22 T:1022565263    INFO: CDVDPlayerVideo::Decode dts:720000 pts:720000 cur:720000, size:370
12:11:22 T:1022566738    INFO: CDVDPlayerVideo::Decode dts:760000 pts:840000 cur:840000, size:98579
12:11:22 T:1022568161   DEBUG: Normal M:-186881 (A:0 V:840000) P:0 A:0.19 V:1.03/T:0.20 (0,0,1,1) A:0% V:9% (0.00,0.00)
Can anyone tell me what's occurring?

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: OMXPlayer hanging

Mon Feb 10, 2014 12:58 pm

Do your mp4 clips have long durations or short i.e. 5 mins vs 1 hour??

Richard S.

summershere
Posts: 25
Joined: Tue Apr 23, 2013 10:53 am

Re: OMXPlayer hanging

Mon Feb 10, 2014 1:04 pm

Short - none of them are greater than 60 seconds...

Return to “Troubleshooting”