-
Notifications
You must be signed in to change notification settings - Fork 207
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
All video decoding randomly stops working. #249
Comments
You should run |
|
Please could you also post the results of 'vcgencmd get_config int' plus 'grep Revision /proc/cpuinfo' |
|
Thanks. I suspect the over-clocking configuration may be the problem. Does it still fail if you reduce the ARM frequency to 1800 MHz? |
@Botspot have you tested if the overcloking was the issue? |
Yes, I've been keeping an eye on it. It appears a 1.8GHz overclock greatly reduces the chances of the "trigger", but it still happened. It's happened twice since Dec. 3rd. And that's a great improvement. |
@Botspot try this: Basically: Solved a lot of playback issues I had since about December especially with 4K content. |
Hi, wondering if there's any update on this issue? I believe I am also encountering this issue. Some things I've noticed:
Here's my logs / configuration. Note that I am not overclocking, but I do have
|
omxplayer is no longer supported. Updating to bullseye and using vlc would be recommended. The strace avoiding the issue is interesting, as it probably causes the arm to remain busy and so not lower the clock. |
Thanks for the suggestion @popcornmix . I am aware that omxplayer is no longer supported -- I am only using it because I require hardware accelerated cropping features. Last I checked, VLC did software cropping. Perhaps I should file an issue on VLC to implement software cropping. I tried running with
https://www.raspberrypi.com/documentation/computers/config_txt.html#overclocking |
@popcornmix your suggestion inspired another thing for me to try. I tried maxing out a CPU via:
This pegs a CPU at 100% busy. When I do this at the same time as playing a video, I seem to be able to avoid "triggering" the bug. Given this finding, it's strange to me that setting Ideally there would be a better solution than pegging a CPU (which increases power consumption and operating temperatures) for solving this problem though 😅 . All ears if anyone has any more ideas! |
Can you remove any overclocking/force_turbo and try |
Holy shit, @popcornmix , I think this has fixed it! So far I'm unable to reproduce the bug with I'm very curious if you could explain what is going on and why this fixes the issue? Thank you so much. |
We have seen occasional cases where the chip specific voltage chosen by avs is borderline for the h.264 decoder. |
That probably explains why I've never encountered this issue on my 8GB Pi. |
Fine by me |
I wonder if raspberry pis should default to using a higher voltage? Not sure what the downsides of that are. It is a bit frustrating that the default settings on some pis are subject to this buggy behavior. |
It's something we are aware of. If we can find a test that identifies the boards that need it, we may be able to just apply it to those boards (but as it can take hours or days to occur, it's not trivial, but it may be possible to accelerate by testing at increased clock or lower voltage). |
I see, thanks for explaining. One more thing I was curious about: why does pegging a CPU at 100% busy also seem to prevent the bug from occurring? Does this affect the voltage somehow? |
While your reasons seem logical @popcornmix, I am fairly confident that the number of people being affected is greater than it appears. |
Regarding the prevalence of this issue, I have 11 raspberry pi 4 machines that I use to play videos 24/7. I have observed this issue to occur on 4 of the 11 machines fairly regularly (it happens daily to weekly). Although I believe I have a particular use case that might make the "trigger" more likely to happen: I issue commands to omxplayer via dbus constantly, and I stream video over the network. Still, 4 out of 11 is a large proportion. |
This has occurred on my Raspberry Pi OS system for about a month now.
Once in a while, something happens that causes the video decoded to stop working. This "trigger" can happen at any time it seems, but is more likely to happen if I do something weird with VLC or Chromium. Like playing a video and closing vlc while it's playing.
I've not found a fool-proof way to activate the "trigger" yet, but messing around with hw-accelerated video players seems to sometimes cause it.
After this trigger is activated, no more videos will play on my Pi until I reboot it.
Youtube videos never load in Chromium. It shows the spinning white circle forever.
Also, no videos play in VLC anymore. VLC forever thinks that the video is loading (with that orange slider bounding left and right), but the video never ever starts playing. I've tried various video codecs on VLC, and all of the have the same result.
And as I said, rebooting "fixes" all these problems, Youtube works again, vlc works again, until the next time that "trigger" is triggered. :)
Next time this "trigger" happens, I'll try to capture error logs from Chromium, vlc, and omxplayer. Is there anything else specific I should try for diagnosing what's causing the issue?
RPi-Distro/vlc#31 may be referring to the same problem I'm experiencing.
The text was updated successfully, but these errors were encountered: