3d Movies with TrueHD freezing after skip forward or resume

Hello - I’m having a recent problem with my OSMC media centre on a RPI3 over a wired ethernet connection. Some of my movies would play well from the start (if at the beginning of the movie) but when I tried to skip forward by 30 seconds or so, or move to a bookmark, the movie would basically freeze up and maybe move forward one frame every couple of seconds. It was severly stuttering with no audio. Also, the time on the bottom would show up as starting back at 0, even though the video frame was frozen at a later time. The same stuttering issue would happen if I started the movie where I left off last time - it would freeze right there with only minor movement forward.

This is a recent problem for these movies, which played well prior to approximately two weeks ago.

After some troubleshooting, I was able to determine the following:

3d movies with TrueHD seem to be the problem. This included Minions 3d, Secret Life of Pets 3d, and Enchanted Kingdom 3d. 3d Movies that used DTSHD were fine.
If I switched to the AC3 5.1 track on the above 3d movies, the movies would work correctly.
non-3d movies worked correctly, including movies using the TrueHD track. Example - Transformers Dark of the Moon.
The above 3d movie issue happened both with audio passthrough enabled and non-enabled.

When using the DTSHD and the TrueHD audio tracks, the on-screen information that provides the VQ and AQ showed the audio KB/s as between 4000 and 6000. When I selected the AC3 5.1 track, the KB/s would go down to approximately 600.

Since making this post on another forum with no help yet, I’ve tried additional troubleshooting. Here’s what I’ve found:

trying different cords doesn’t change anything. I’ve had issues before that were rectified by simply using a better cord. not this time.

i’ve noticed that when i advance by chapters, the video/audio works well. However, when i skip by 30 seconds, or to a bookmark, I am not so lucky.

When i advance by chapters, and view the information screen (with VQ and AQ), i notice that the VQ might go down to 0 for a split second but the movie keeps playing properly. The Video MB/s stays at around 35-50 MB/s. The VQ then slowly increases. If it apparently doesn’t increase fast enough, then “buffering” shows up and the picture is frozen while the VQ goes up to about 90-99%. Then the movie resumes normally. The only time the MB/s goes low is right when the movie resumes, at which time it goes to about 7 MB/s for a second, and then back up to about 35-50 MB/s. Based on this, the VQ buffering seems to actually be working here.

In contrast, when I skip by 30 seconds, however, the VQ quickly will go from 0% to 90-99% (not gradually like above). The video MB/s will also go down and stay at about 5-7 MB/s even with the VQ at 90-99%. As stated earlier, the movie stutters or is frozen at this time. I can only stop it and restart, or advance by a chapter to get the movie going again.

I hope this can shed some light on this issue. As stated previously, this is a new issue (started about 1.5 to 2 weeks ago now) and I didn’t have this issue previously with these movies.

Any Ideas? I’ve posted a log here for playing Secret Life of Pets 3d in TrueHD, which includes me skipping forward a number of times by 30 seconds to recreate the problem.

Thank you!

Hi Pab1,

Have you updated to latest update, released 2nd of may.

Also these are not full debugging logs, detail can be found here

Thanks Tom.

Hi Tom - Thanks for your reply. A couple things:
The current version of OSMC that I am using is April 2017 (4-1-2017). I am not sure if that is the most recent, however I’ve tried to manually update and I’m informed that there are no new updates.
Regarding the debugging log not being full, I’m not sure I follow. I looked at your link and prepared the log exactly as described. I enabled debugging, rebooted, performed the action(s) that create the problem, and then turned off debugging.
If you would point out what I missed, that would be appreciated. Hopefully that can help fix this problem.
Thanks.

Well full logs normally should not only include Kodi logs but also system journal and others which can help to identify problems.
Easiest normally is just use grab-logs -A and provide the URL.

Also it seems you are underclocking your Pi3, did you try to use overclocking settings in MyOSMC? They don’t work for Pi3, set to normal.

Thanks for the info regarding the overclocking. I’ve changed that in one of my PI’s so far. I’ve also done a new log based on the information from fzinken and Tom. Thanks for that! This is with playing the movie Minions. It’s a 3d movie but not playing it right now on a 3d set (playing therefore as 2d). same issue however. It is an altered log file (for example passwords were still included in the file before being altered). Movie froze when it resumed from the last time. Then I skipped by 30 seconds. It froze. Then stopped playing the movie and stopped the debugging.
Hopefully this can get resolved! Let me know if you have any questions or need more info in order to help. I appreciate it!

https://paste.osmc.tv/unakesufar

Hi,

Video caching may help resolve this issue.

I can recommend:

<cache>
	<memorysize>157286400</memorysize>
	<buffermode>1</buffermode>
	<readfactor>4.0</readfactor>
</cache>

Thanks Tom.

Thanks Tom. I’ll try this, But this is a relatively new issue (within last two weeks). Prior to that, these movies played flawlessly.

Hi Tom. Was away for a week so didn’t get to try it until yesterday. Still the same problem - major stuttering or freezing even with the changes in buffering that you suggested. Also, since the change in buffering, I sometimes get a message that says “Source too Slow”. This is a message that I have never seen before. Let me know if you (or anyone else) has other ideas. Thank you.

Hi,

Never seen this one either. Could you please provide new logs, if possible after you’ve seen source to slow; if not show skip forward or resume with the added cache settings.

Thanks Tom.

Hi Tom - Here is a new log file with the added cache settings. This is again playing 3d minions. Same issue, even after the software update that i did today. Movie froze when moving to a bookmark, and i also did a couple 30 second skips with it frozen. It is an altered log file (for example passwords were still included in the file before being altered).

http://paste.osmc.io/ugafohojib.hs

Let me know if you require anything else. Thanks for your assistance.

20:52:13.057 T:1622143984 DEBUG: GetMovieId (smb://OSMC/My Book/Video/Blu Ray/Minions.3D.MVC.mkv), query = select idMovie from movie where idFile=1339
20:52:13.315 T:1255142384 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:52:13.338 T:1959165952 DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:1 omvb:(nil) mmal:(nil)
20:52:13.542 T:1246753776 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
20:52:13.865 T:1255142384 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer

Hi,

If you playback the video locally, either on the sd card or usb flash drive; can you reproduce this fault?

Thanks Tom.

i tried playing minions on the PI which has the USB hard drive attached directly. It is a 2d screen so i can’t play it in 3d. However, the same problem occurred (freezes (or very slowly advancing) when skipping). Then I copied it to a flash drive and attached directly to the PI (using a USB hub of course). Same issue. the flash drive had “the secret life of pets” on it since the other TruHD files were too big for that flash drive.

12:22:07.975 T:1958519792 DEBUG: GetMovieId (/media/UUI/The Secret Life of Pets.3D.SBS.mkv), query = select idMovie from movie where idFile=3317
12:21:57.203 T:1958526976 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
12:21:57.454 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:21:57.996 T:1958526976 WARNING: Previous line repeats 1 times.
12:21:57.996 T:1958526976 DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:1 omvb:(nil) mmal:(nil)
12:21:58.537 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:21:59.068 T:1393554416 WARNING: Previous line repeats 1 times.
12:21:59.068 T:1393554416 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
12:21:59.538 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:22:01.079 T:1393554416 WARNING: Previous line repeats 2 times.
12:22:01.079 T:1393554416 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
12:22:01.165 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:22:03.090 T:1393554416 WARNING: Previous line repeats 3 times.
12:22:03.091 T:1393554416 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
12:22:03.250 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:22:03.293 T:1958526976 DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:1 omvb:(nil) mmal:(nil)
12:22:03.834 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:22:04.878 T:1958526976 WARNING: Previous line repeats 2 times.
12:22:04.879 T:1958526976 DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:1 omvb:(nil) mmal:(nil)
12:22:05.102 T:1393554416 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
12:22:05.419 T:1401943024 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:22:07.113 T:1393554416 WARNING: Previous line repeats 3 times.
12:22:07.113 T:1393554416 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
12:22:07.212 T:1958526976 DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0
12:22:07.213 T:1958526976 DEBUG: OnKey: right (0xf083) pressed, action is StepForward
12:22:07.214 T:1958526976 DEBUG: ------ Window Init (DialogSeekBar.xml) ------

Hi,

Could you please provide a sample clip, so I can see if I can reproduce.

Also mediainfo would be good as well.

Thanks Tom.

Here is a link to the media info.

http://paste.osmc.io/gomeberada.md

Can you give me a suggestion for providing a sample clip? I am not sure how to do that.

Thanks.
edit - did a google search - will try with handbrake

Hi,

I wouldn’t recommend using handbrake as this will reencode the clip, you need to cut the clip with out encoding again. You should be able to this using ffmpeg.

Thanks Tom.

I think mkvmerge will work as well.

Thanks for the tips. i used ffmpeg but even with a 2 minute clip (about 700 MB) i wasn’t able to reproduce the problem. although a few dropped frames, it still played well. i used the following code to make the clip:

ffmpeg -i “d:\The Secret Life of Pets.3D.SBS.mkv” -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:02:00.000 “d:\secretffmpeg.3d.sbs.mkv”

if my code looks wrong, let me know.

However, while playing around i noticed something else.
Say that I am watching the movie and at the 30 second mark i skip ahead by 30 seconds. The movie will either freeze or move very slowly forward (a frame every second or so). Audio will stop. However, the timeline will go back to 0 and keep advancing normally. Once it advances to 1 minute (where I originally skipped to), it will resume normal playback. If I skip ahead again then by 30 seconds (which should take me to 1:30) the same thing happens (timeline again to 0) but this time the movie will resume normal playback once the timeline hits 1:30 into the movie.

Hopefully that sheds some additional light on this issue. Let me know if you need anything else. thanks.

Hi,

Does setting adjust display refresh rate to: off, make any difference?

Thanks Tom.

No. No change with it being set to off, at start, and always.

Hi,

Are all the 3d movies you are having this issue with, the same video codec?

Thanks Tom.