Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMXPlayer randomly hangs #12

Closed
cjsoftuk opened this issue Jul 4, 2013 · 118 comments
Closed

OMXPlayer randomly hangs #12

cjsoftuk opened this issue Jul 4, 2013 · 118 comments

Comments

@cjsoftuk
Copy link

cjsoftuk commented Jul 4, 2013

Got a project that I can't disclose much info about, unfortunately, however.....
We use omxplayer and Raspberry Pi as part of the project, and we play lots of videos, back-to-back (i.e. OMXPlayer quits, and our project starts a new one almost immediately).

However, from time to time (usually within an hour), OMXPlayer will hang.
We do have a custom kernel we use, which I can post the .config for later today and I plan to swap back to stock kernel if the issue recurs again today (I'm currently in the middle of doing live demos to prospective customers). Other than the custom kernel, we're up to date as far as the bootloader goes and all other packages (inc OMXPlayer - 0.3.0 installed to try and fix this issue).

Usually, the hang will occur at the end of the video. OMXPlayer doesn't quit, doesn't print any messages to the log.

We're invoking omxplayer as follows:
DISPLAY=:0 /usr/bin/omxplayer -o local --win "0 0 160 96" /content/file.mp4 </tmp/omxplayer

/tmp/omxplayer is a fifo that is created by my program.

Can anyone shed any light on the matter? Is there any more info you need?

Thanks for your help in advance.

Cheers,

Chris

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 4, 2013

Log file can be obtained from http://hosting.cmalton.me.uk/chrism/omxplayer.log.gz

@popcornmix
Copy link
Owner

Does sending q to stop work at this point?

Really I'll need a file that exhibits the problem.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 4, 2013

Haven't tested that - will do so next time it hangs.
I'll try and get authorisation to send you one of the files.

The script I use to do the conversion to x624 is as follows:

#! /bin/bash

FILEBASE=`echo $1 | sed -E -e 's/\.(.*)$//g'`

ffmpeg -i $1 -vcodec libx264 -s 1920x1080 -aspect '16:9' -vb 4M -acodec libmp3lame -ab 128k ${FILEBASE}-hd.mp4

All of the files are encoded using that.
FFmpeg version is:
ffmpeg version 1.0.6 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 25 2013 16:06:49 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-altivec --dis libavutil 51. 73.101 / 51. 73.101

Like I say, this happens on one of N files (where N is any number!), and only started happening since early April (the version of OMXplayer we used at the last event in May worked fine!). The file is seemingly random, although there are a couple that cause the issue more often than others.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 4, 2013

I've got clearance to send over one of the videos that tends to cause the problem. It's a whopping 11MB and we'd prefer not to send it completely in the clear. Could you ping me over an email address I can send the link to?
Mine, should you need it is chrism (at) cmalton (dot) me (dot) uk.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 4, 2013

I can confirm that sending a single q at this point will cause OMXplayer to stop and quit correctly, so this seems to not be a full hang per-say, more OMXplayer running off the end of the video and carrying on!

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 4, 2013

Looking at it, it seems huceke#178 is possibly related.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 4, 2013

Also: raspberrypi/firmware#185

I'll try an out-of-band firmware update tomorrow.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 5, 2013

Out-of-band (i.e. non-APT) firmware installed from raspberrypi's git repo.
Does not fix this issue. Looking at other workarounds.

@popcornmix
Copy link
Owner

omxplayer -o local --win "0 0 160 96" dell/temp/test/problematic/Combat-hd.mp4
exits at end of file.
What version of omxplayer are you using? What does:
omxplayer --version
report?
You can download the latest version here:
http://omxplayer.sconde.net/

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 5, 2013

Like I say, this isn't 100% reproducible - it occurs at some point after so many videos have run. I couldn't tell you how many times I have to run OMXPlayer (it seems to be ~45 mins to 1hr in, which is around 100 plays (based on average duration of the clips we are running)

Version is as follows:

omxplayer - Commandline multimedia player for the Raspberry Pi
        Build date: Thu, 27 Jun 2013 11:17:32 +0200
        Version   : b853c39 [master]
        Repository: https://github.com/popcornmix/omxplayer.git

I've currently got a workaround in place that has a 1 minute 40 second timeout, and if OMXPlayer hasn't quit by that point, it quits OMXPlayer and then the next video plays.

Does that help matters?

@andyjagoe
Copy link

I've been experiencing similar problems and I can reproduce it.

I have thousands of short h264 encoded (directly from iPhone with no transcoding) videos that are played in a loop one after another in xbmc. I noticed in recent Raspbmc and OpenELEC builds that the video stream would frequently hang which never used to happen in the past. There were no messages in xbmc.log that gave any indication of the fact this was happening or why--videos just stopped playing.

To debug, I built a video loop using omxplayer directly and cutting xbmc out of the picture, but encountered the same problem. What I've found is that on most videos omxplayer shuts down and returns to the console once it finishes playing, but on some videos omxplayer doesn't finish and just stalls...usually toward the end of the video with about one second to go. If you press 'q' omxplayer quits gracefully. Separate to the shell script, I see the same behavior in a version of pyomxplayer I've used---pyomxplayer never receives an EOF from omxplayer on certain videos.

I'm using an updated/upgraded 2013-05-25-wheezy-raspbian and the very recent 4fa7d64 build of omxplayer. Let me know if you'd like me to PM a copy of the video causing problems--a typical one is about 60 MB.

@andyjagoe
Copy link

top of the log file is below for command: omxplayer -o local -s - g IMG_2314.MOV

05:10:25 T:266791293   DEBUG: DllBcm: Using omx system library
05:10:25 T:266795830   DEBUG: DllOMX: Using omx system library
05:10:25 T:266798991   DEBUG: Previous line repeats 1 times.
05:10:25 T:266798991   DEBUG: DllAvFormat: Using libavformat system library
05:10:25 T:266799366   DEBUG: DllAvUtilBase: Using libavutil system library
05:10:25 T:266799556   DEBUG: DllAvCodec: Using libavcodec system library
05:10:25 T:266799709   DEBUG: DllAvFormat: Using libavformat system library
05:10:25 T:266980635   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.clock handle 0x59f0a0 dllopen : 1
05:10:25 T:266987235   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81
05:10:25 T:266988158   DEBUG: DllAvUtilBase: Using libavutil system library
05:10:25 T:266988430   DEBUG: DllAvCodec: Using libavcodec system library
05:10:25 T:266988640   DEBUG: DllAvFormat: Using libavformat system library
05:10:25 T:266988851   DEBUG: DllOMX: Using omx system library
05:10:25 T:266990565   DEBUG: Previous line repeats 9 times.
05:10:25 T:266990565   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.video_decode handle 0x586c00 dllopen : 1
05:10:25 T:266994139   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_decode input port 130 output port 131
05:10:25 T:266995432   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.text_scheduler handle 0x5bc3e8 dllopen : 1
05:10:25 T:266999679   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.text_scheduler input port 150 output port 151
05:10:25 T:267003879   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.video_decode) - port(130), nBufferCountMin(1), nBufferCountActual(60), nBufferSize(81920), nBufferAlignmen(16)
05:10:25 T:267036746   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.text_scheduler) - port(150), nBufferCountMin(1), nBufferCountActual(100), nBufferSize(1024), nBufferAlignmen(16)
05:10:25 T:267076069   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.text_scheduler) - port(151), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(1024) nBufferAlignmen(16)
05:10:25 T:267081660   DEBUG: COMXVideo::Open - decoder_component(0x0x586c00), input_port(0x82), output_port(0x83) deinterlace 0 hdmiclocksync 0
05:10:25 T:267087991   DEBUG: OMXThread::Create - Thread with id -1291193248 started
05:10:25 T:267088351   DEBUG: DllAvUtilBase: Using libavutil system library
05:10:25 T:267088539   DEBUG: DllAvCodec: Using libavcodec system library
05:10:25 T:267088695   DEBUG: DllAvFormat: Using libavformat system library
05:10:25 T:267090507   DEBUG: DllAvUtilBase: Using libavutil system library
05:10:25 T:267090662   DEBUG: DllAvCodec: Using libavcodec system library
05:10:25 T:267090783   DEBUG: DllAvFormat: Using libswresample system library
05:10:25 T:267098920   DEBUG: DllOMX: Using omx system library
05:10:25 T:267099371   DEBUG: Previous line repeats 5 times.
05:10:25 T:267099371   DEBUG: DllAvUtilBase: Using libavutil system library
05:10:25 T:267099577    INFO: CPCMRemap: I channel map: CE
05:10:25 T:267099710   DEBUG: CPCMRemap: Mapping mono audio to front left and front right
05:10:25 T:267099899   DEBUG: pcm->direction      : in
05:10:25 T:267100032   DEBUG: pcm->nPortIndex     : 0
05:10:25 T:267100152   DEBUG: pcm->eNumData       : 0
05:10:25 T:267100324   DEBUG: pcm->eEndian        : 1
05:10:25 T:267100450   DEBUG: pcm->bInterleaved   : 1
05:10:25 T:267100633   DEBUG: pcm->nBitPerSample  : 32
05:10:25 T:267100752   DEBUG: pcm->ePCMMode       : 0
05:10:25 T:267100865   DEBUG: pcm->nChannels      : 1
05:10:25 T:267100975   DEBUG: pcm->nSamplingRate  : 44100
05:10:25 T:267101092   DEBUG: OMX_AUDIO_ChannelCF
05:10:25 T:267101214   DEBUG: pcm->direction      : out
05:10:25 T:267101330   DEBUG: pcm->nPortIndex     : 0
05:10:25 T:267101445   DEBUG: pcm->eNumData       : 0
05:10:25 T:267101565   DEBUG: pcm->eEndian        : 1
05:10:25 T:267101682   DEBUG: pcm->bInterleaved   : 1
05:10:25 T:267101800   DEBUG: pcm->nBitPerSample  : 16
05:10:25 T:267101917   DEBUG: pcm->ePCMMode       : 0
05:10:25 T:267102037   DEBUG: pcm->nChannels      : 2
05:10:25 T:267102233   DEBUG: pcm->nSamplingRate  : 44100
05:10:25 T:267102360   DEBUG: OMX_AUDIO_ChannelLF
05:10:25 T:267102475   DEBUG: OMX_AUDIO_ChannelRF
05:10:25 T:267103954   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.audio_decode handle 0x58bf68 dllopen : 1
05:10:25 T:267107262   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_decode input port 120 output port 121
05:10:25 T:267111133   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_decode) - port(120), nBufferCountMin(4), nBufferCountActual(4), nBufferSize(32768), nBufferAlignmen(16)
05:10:25 T:267128707   DEBUG: COMXAudio::Initialize Ouput bps 16 samplerate 44100 channels 2 device local buffer size 176400 bytes per second 88200 passthrough 0 hwdecode 0
05:10:25 T:267129446   DEBUG: COMXAudio::Initialize Input bps 32 samplerate 44100 channels 1 device local buffer size 176400 bytes per second 88200 passthrough 0 hwdecode 0
05:10:25 T:267135907   DEBUG: OMXThread::Create - Thread with id -1299581856 started
05:10:25 T:267136183   DEBUG: OMXClock::OMXStart(0)
05:10:25 T:267137051    INFO: OMXClock::OMXPause
05:10:25 T:267137272   DEBUG: OMXClock::OMXSetSpeed(0)
05:10:25 T:267145185   DEBUG: Normal M:1466 (A:-4503599627370496 V:-4503599627370496) P:1 A:0.00 V:0.00/T:0.20 (0,0,0,0) A:0% V:0% (0.00,2.00)
05:10:25 T:267145786    INFO: CDVDPlayerAudio::Decode dts:0 pts:0 size:4
05:10:25 T:267146571   DEBUG: COMXAudioCodecOMX::Decode(0x6503b8,4) format=8(8) chan=1 samples=1024 size=4096/4096,4096/4096,8192 data=0xeed7e0,(nil),(nil),(nil),(nil),(nil),(nil),(nil)
05:10:25 T:267146837   DEBUG: COMXAudioCodecOMX::GetData size=4096/0/4096 cont=1 buf=0xeed7e0
05:10:25 T:267148849   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.audio_mixer handle 0xda0e88 dllopen : 1
05:10:25 T:267154490   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_mixer input port 232 output port 231
05:10:25 T:267155468   DEBUG: Normal M:1466 (A:0 V:-4503599627370496) P:1 A:-0.00 V:0.00/T:0.20 (1,0,0,0) A:0% V:0% (0.37,2.00)
05:10:25 T:267156845   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.audio_render handle 0x5aff70 dllopen : 1
05:10:25 T:267157859   DEBUG: Normal M:1466 (A:0 V:-4503599627370496) P:1 A:-0.00 V:0.00/T:0.20 (1,0,0,0) A:0% V:0% (0.37,2.00)
05:10:25 T:267161094   DEBUG: Previous line repeats 1 times.
05:10:25 T:267161094   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100
05:10:25 T:267161720   DEBUG: Normal M:1466 (A:0 V:-4503599627370496) P:1 A:-0.00 V:0.00/T:0.20 (1,0,0,0) A:0% V:0% (0.37,2.00)
05:10:25 T:267198448   DEBUG: Previous line repeats 32 times.
05:10:25 T:267198448   DEBUG: Normal M:1466 (A:0 V:-4503599627370496) P:1 A:-0.00 V:0.00/T:0.20 (1,0,0,0) A:0% V:0% (0.00,2.00)
05:10:25 T:267204897   DEBUG: Previous line repeats 7 times.
05:10:25 T:267204897    INFO: CDVDPlayerVideo::Decode dts:0 pts:0 cur:0, size:254415
05:10:25 T:267205238   DEBUG: OMXVideo::Decode VDec : setStartTime 0.000000
05:10:25 T:267209546   DEBUG: Normal M:1466 (A:0 V:0) P:1 A:-0.00 V:-0.00/T:0.20 (1,1,0,0) A:0% V:0% (0.00,2.00)
05:10:25 T:267212403   DEBUG: Previous line repeats 1 times.
05:10:25 T:267212403    INFO: CDVDPlayerVideo::Decode dts:33333 pts:33333 cur:33333, size:62720
05:10:25 T:267214330   DEBUG: Normal M:1466 (A:0 V:33333) P:1 A:-0.00 V:0.03/T:0.20 (1,1,0,0) A:0% V:0% (0.00,2.00)
05:10:25 T:267216367   DEBUG: Previous line repeats 1 times.
05:10:25 T:267216367    INFO: CDVDPlayerVideo::Decode dts:66667 pts:66667 cur:66667, size:24413
05:10:25 T:267220868    INFO: CDVDPlayerAudio::Decode dts:23220 pts:23220 size:145
05:10:25 T:267222507    INFO: CDVDPlayerAudio::Decode dts:46440 pts:46440 size:203
05:10:25 T:267224346    INFO: CDVDPlayerAudio::Decode dts:69660 pts:69660 size:185
05:10:25 T:267226946   DEBUG: Normal M:1466 (A:69660 V:66667) P:1 A:0.07 V:0.07/T:0.20 (1,1,0,0) A:0% V:0% (0.00,2.00)
05:10:25 T:267228340   DEBUG: Previous line repeats 1 times.
05:10:25 T:267228340    INFO: CDVDPlayerAudio::Decode dts:92880 pts:92880 size:184
05:10:25 T:267230097   DEBUG: Normal M:1466 (A:92880 V:66667) P:1 A:0.09 V:0.07/T:0.20 (1,1,0,0) A:0% V:0% (0.37,2.00)
05:10:25 T:267230887    INFO: CDVDPlayerVideo::Decode dts:100000 pts:100000 cur:100000, size:66420
05:10:25 T:267233044   DEBUG: Normal M:1466 (A:92880 V:100000) P:1 A:0.09 V:0.10/T:0.20 (1,1,0,0) A:0% V:0% (0.37,2.00)

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 8, 2013

@andyjagoe: Thanks for confirming this isn't just me. I've had to bodge around it in my software - which is highly unpleasant. Look forward to hearing from @popcornmix when the problem has been identified. More than happy to try testing builds now - I have about a month and a half to get this under control for the project I'm working on now.

@andyjagoe
Copy link

@cjsoftuk: No problem. Are your freezes usually at the end of the video as
well (all of mine seem to be) or do they occur at other times too? A
possible workaround I'm considering until this is fixed is to run a
separate timer in parallel (starting and stopping it with pause requests)
and then sending a quit request to omxplayer if my counter detects a
problem (e.g. our video should be finished but omxplayer hasn't issued
EOF). Maybe this would work for you as well.

On Sun, Jul 7, 2013 at 11:19 PM, cjsoftuk notifications@github.com wrote:

@andyjagoe https://github.com/andyjagoe: Thanks for confirming this
isn't just me. I've had to bodge around it in my software - which is highly
unpleasant. Look forward to hearing from @popcornmixhttps://github.com/popcornmixwhen the problem has been identified. More than happy to try testing builds
now - I have about a month and a half to get this under control for the
project I'm working on now.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-20587431
.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 8, 2013

@andyjagoe: Yes, all my freezes that I've noticed were at the end as well.
I'm already using the workaround you described - quite effective, but
very irritating!

On 08/07/13 08:45, andyjagoe wrote:

@cjsoftuk: No problem. Are your freezes usually at the end of the
video as
well (all of mine seem to be) or do they occur at other times too? A
possible workaround I'm considering until this is fixed is to run a
separate timer in parallel (starting and stopping it with pause requests)
and then sending a quit request to omxplayer if my counter detects a
problem (e.g. our video should be finished but omxplayer hasn't issued
EOF). Maybe this would work for you as well.

On Sun, Jul 7, 2013 at 11:19 PM, cjsoftuk notifications@github.com
wrote:

@andyjagoe https://github.com/andyjagoe: Thanks for confirming this
isn't just me. I've had to bodge around it in my software - which is
highly
unpleasant. Look forward to hearing from
@popcornmixhttps://github.com/popcornmixwhen the problem has been
identified. More than happy to try testing builds
now - I have about a month and a half to get this under control for the
project I'm working on now.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/12#issuecomment-20587431
.


Reply to this email directly or view it on GitHub
#12 (comment).

@popcornmix
Copy link
Owner

@andyjagoe
Do you have a file that hangs every time at end of file?
A link would be useful (popcornmix at gmail dot com)

@andyjagoe
Copy link

@popcornmix
Yes...just uploaded and shared via Google Drive. The link is https://docs.google.com/file/d/0B37YAa2drcMuMldYOFdrRUpTd28/edit?usp=sharing

It is shared to your gmail account. Let me know if you have any problems accessing it.

@popcornmix
Copy link
Owner

@andyjagoe
Got the file, and I can see the hang.

@popcornmix
Copy link
Owner

I've committed a fix that fixes @andyjagoe's file.

@andyjagoe
Copy link

Thanks @popcornmix. Hugely appreciate the quick response. I'm traveling but will be able to try it out in a day or so.

@andyjagoe
Copy link

@popcornmix

Fix is working great and I'm seeing no further problems. Thanks for the quick response. I'm ok to close this issue, but I'll leave that to you or to @cjsoftuk since he hasn't commented yet and he opened it.

@cjsoftuk
Copy link
Author

cjsoftuk commented Jul 9, 2013

Cheers for the quick fix @popcornmix - I'll try and test it out as soon as I can. I see that the sconde.net builds are now up to date with this fix patched in, so I'll be trying it out by leaving a Pi running tomorrow when I go out to work.

@cjsoftuk
Copy link
Author

OK, I've left it running, and all seems good at the moment, I'll let you know when I get back from work if it's still getting stuck.

@cjsoftuk
Copy link
Author

@popcornmix This doesn't seem to have fixed my issue unfortunately! I was just about to go out to work and I've noticed it's got stuck (And this time it was the first time it played that video I sent you).

omxplayer - Commandline multimedia player for the Raspberry Pi
        Build date: Tue, 09 Jul 2013 06:05:28 +0200
        Version   : 2b110d9 [master]
        Repository: https://github.com/popcornmix/omxplayer.git

@cjsoftuk
Copy link
Author

OK, this is a curious one. I've set off a test run calling just "omxplayer -g /content/Combat-hd.mp4" and we're at iteration 30 without any issue so far. I'll try and pin this down further.

@cjsoftuk
Copy link
Author

Yep - seems to be with the way I'm calling omxplayer now (i.e. omxplayer and SDL interacting badly!) - I'd like to keep this open for the moment @popcornmix until such point as I can pin down what's actually responsible (SDL or OMXplayer or python)

Last night we got to 300+ iterations of the same video without faolure.

@popcornmix
Copy link
Owner

Okay. Let us know when you have more info.

@andyjagoe
Copy link

@cjsoftuk did you get any more info on this? I just experienced this issue again with another file and (unfortunately) cannot repeat it. The hang was very curious in that it was clearly the end of the video, but omxplayer was continuing to stream stats (I used the '-s' option) and increment the M: value.

@popcornmix ...any thoughts on how we might best to trap this issue? Not sure if my omxplayer.log was of any value for the last file you helped with.

@andyjagoe
Copy link

Also...is it possible to specify a path / filename for the '-g' option? I'm running my loop now so next time it hangs I'll have the omxplayer log file.

@popcornmix
Copy link
Owner

@andyjagoe
The log may be illuminating. The first one was.
Instructions to reproduce the issue (ideally quickly) are even better.

No way to change the destination directory of log file other than changing current directory.
e.g. cd /home/pi/log && omxplayer file.mkv

@aawray
Copy link

aawray commented Feb 11, 2014

Hi @jehutting currently I am running ArchLinux on my RPi's, so I will try to do something with your debpkg, but dunno if this idea works (running debian packages on arch).

@popcornmix
Copy link
Owner

@jehutting
I've committed a fix like you described. It seems to work fine for me. Can you confirm it looks okay?

Hopefully it will be in a @skgsergio build soon for more to test.

@jehutting
Copy link

@popcornmix Your commit looks OK to me. Thanks.

@aawray Arch Linux...google'd around and it should be possible to install a debian package with dpkg -i. I downloaded and made an SD with the latest Arch Linux release 2014.02 but the build of dpkg failed. Also tried yaourt -S omxplayer-git but that seems to pull in a lot of packages, probably all needed to build omxplayer.

I found http://archlinuxarm.org/forum/viewtopic.php?f=59&t=6638&p=36868&hilit=debian#p36868 with some interesting code.

So what I did
$ pacman -Syy : synchronizes the databases (?)
$ pacman -S binutils : for the ar(chiver)
$ pacman -S ttf-freefont : used for the subtitles
$ pacman -S fbset xorg-xset xorg-xrefresh : all used in omxplayer script

$ ar vx <my-debian-package>.deb
$ tar --no-auto-compress -xf data.tar.gz
$ cp -r usr / : copies recursively the usr to the filesystem root /; run as root user

After this I was able to run omxplayer --version which shows my release, and was able to run a .mp4 trailer. So NO excuse to NOT test the pipe fix ;)))))))

@XionTech
Copy link

I'm installing for testing now. Looping a 10 minute mp4 which has been hanging something awful this week. A stable 24 hours would be a nice relief. - except I'm not setup for cross compiling. Ehhh...

@aawray
Copy link

aawray commented Feb 12, 2014

@jehutting, great inspiration, thank you! I will try this out!

@johnspackman
Copy link

@jehutting good news :) since 11th Feb my test rig has played back 8,474 videos none of which needed omxpayer to be killed; previous to that, there was an average of 38 kills per day out of 1,200 playbacks per day)

Thanks for your work 👍

Do you have a view on whether this binary is suitable for a "stable" release?

@XionTech
Copy link

@jehutting I've had this running for 6 days and it's still running smoothly. I'm hesitantly relieved to say it's working great. Well done...

@KenT2
Copy link

KenT2 commented Feb 19, 2014

@jehutting I've run all my test rigs without any failures. Great work Jozef

@aawray
Copy link

aawray commented Feb 20, 2014

@jehutting I also confirm that it works! Yay!

@popcornmix
Copy link
Owner

@cjsoftuk
Okay to close this issue?

@cjsoftuk
Copy link
Author

I'll run some tests over the weekend and then yes, sounds probably ok.

Anyone able to give me an updated deb for latest raspbian?

Chris

On 21 February 2014 11:31:02 GMT+00:00, popcornmix notifications@github.com wrote:

@cjsoftuk
Okay to close this issue?


Reply to this email directly or view it on GitHub:
#12 (comment)

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

@popcornmix
Copy link
Owner

http://omxplayer.sconde.net/ has been updated with latest deb.

@cjsoftuk
Copy link
Author

Cheers @popcornmix - Will leave it running this weekend. If I haven't hit this issue by Monday, I'll give the all-clear.

@cjsoftuk
Copy link
Author

I've just set the test running on my RasPi with the production software
wrapping things up.

I won't be able to check on it until Sunday, but will let you know if
we've gone ~48 hours without any issue (we used to achieve 2 hours max).

Regards,

Chris

@jehutting
Copy link

Thanks @aawray @johnspackman @XionTech @KenT2 @andyjagoe for testing my package, and for the responses that it all works fine. I finally got the dbus changes tested; dbus is still working ;). I still have to test the keyboard changes regarding to the key configuration.
Again many thanks for testing!!!

@cjsoftuk
Copy link
Author

Generally looking good - think I had one hang last night but I'm not sure if that was OMXPlayer or some external factor. Leaving to run while I'm in the office today and will let people know if I hit this issue again.

@cjsoftuk
Copy link
Author

OK, seems to be a LOT, LOT better than it used to be. The odd video does still hang though, and I'm now seeing this in dmesg.....

[199161.593451] ------------[ cut here ]------------
[199161.593521] WARNING: at drivers/misc/vc04_services/interface/vchiq_arm/vchiq_arm.c:2381 vchiq_release_internal+0xc4/0x284()
[199161.593533] Modules linked in:
[199161.593588] [<c0013b7c>] (unwind_backtrace+0x0/0xf0) from [<c001e3b8>] (warn_slowpath_common+0x4c/0x64)
[199161.593616] [<c001e3b8>] (warn_slowpath_common+0x4c/0x64) from [<c001e3ec>] (warn_slowpath_null+0x1c/0x24)
[199161.593643] [<c001e3ec>] (warn_slowpath_null+0x1c/0x24) from [<c024e2bc>] (vchiq_release_internal+0xc4/0x284)
[199161.593673] [<c024e2bc>] (vchiq_release_internal+0xc4/0x284) from [<c024ead8>] (vchiq_ioctl+0x284/0x15cc)
[199161.593701] [<c024ead8>] (vchiq_ioctl+0x284/0x15cc) from [<c00d2a90>] (do_vfs_ioctl+0x80/0x5c8)
[199161.593724] [<c00d2a90>] (do_vfs_ioctl+0x80/0x5c8) from [<c00d300c>] (sys_ioctl+0x34/0x60)
[199161.593754] [<c00d300c>] (sys_ioctl+0x34/0x60) from [<c000db60>] (ret_fast_syscall+0x0/0x30)
[199161.593765] ---[ end trace 994878094fa523de ]---
[199161.593782] vchiq: vchiq_ioctl: cmd VCHIQ_IOC_RELEASE_SERVICE returned error -1 for service TVNT:17702

@cjsoftuk
Copy link
Author

When the hang happens, sending q to OMXPlayer isn't enough it seems. I have to SIGKILL it to get it to die.

I'll leave it running another 24 hours - although I do wonder if it's the videos themselves. I'll try and get the OK to put them somewhere for people to experiment with.

@popcornmix
Copy link
Owner

@cjsoftuk
what you've got there is a kernel panic which is rather different from the original problem.
Can you disable overclock and check your power supply to rule out a hardware issue.
If you can make this happen repeatably (ideally quickly), then you should open an issue here:
https://github.com/raspberrypi/firmware

@cjsoftuk
Copy link
Author

@popcornmix Yep - figured it may be a different issue. Overclock is off I believe, and it's on a dedicated 1.2A PSU. I just find it curious that it's a recoverable panic, rather than a fatal failure.

Will close this issue and then look at this under a new issue on the relevant project.

@cjsoftuk
Copy link
Author

Filed an issue at raspberrypi/firmware#253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants