As mentioned yesterday evening on the main page of the blog dealing with the OSMC’s March 5th update, after updating osmc and reboot, I have experienced sound stuttering when playing several videos (the image is fine, just the sound that stops for a second or two, sometimes less, and then comes back) . I have tried to rollback to previous version of OSMC, and then the problem disappears and everything works flawlessly.
<memorysize>0</memorysize> <!-- number of bytes used for buffering streams in memory
When set to 0 the cache will be written to disk instead of RAM -->
Writing video (and audio) cache to the SD card will (a) be slow and (b) wear out the card.
I have a similar problem after the February update on a Pi2 where video files come are shared via NFS (declared in /etc/fstab).
Audio can go out-of-sync sometimes (I skip to go back in sync). This happens with MMAL player and I don’t reproduce it with OMX. Before the last update, this problem did not happen and as far as I know, only MMAL was enabled then.
I too have noticed small audio hiccups since the feb update. Fstab nfs shares and relatively low bitrate content playback on my pi3. MMAL default is checked. Will try OMX.
Dillthedog, thanks for the second suggestion. I cannot test it right now, but will do a.s.a.p. and let you know how it goes with OMX.
But to be fair I’ve been using MMAL for 2 years, making all the monthly updates in between, and never had a single issue before last February’s update.
So I have both OMX and MMAL switched on in the video settings. To be honnest I don’t really understand what it means to have both selected at the same time, I would have expected them to be mutually exclusive. Can someone explain?
Nevertheless, no more sound issue on my quick test. I’ll try on more videos this week end to confirm.
Thank you dillthedog.
I’d recommend you switch off MMAL. I agree, it doesn’t (seem to) make sense to have both enabled at the same time. Perhaps someone more knowledgeable can explain if/when having both enabled would be useful.
During video playback, on-screen display of technical information can be obtained, including the current player. The default keyboard shortcut is letter ‘o’.
Still that doesn’t clarify the meaning of being able to select both of them at the same time in the OSMC video settings. If someone knowledgeable knows, please tell us…
With both OMX and MMAL selected it uses OMX as default and i believe switches to using MMAL for anything the OMX can’t play for example using a2dp alsa streaming it uses MMAL and so forth.
I always use OMX as there is no jutter when navigating through menus with video playing.
If i’m reading the comments in this pull request correctly it looks like they will be dropping OMX player from v19 onwards. It would be a pity as it is great lightweight all round player, unless by v19 videoplayer (mmal) will have improved a great deal and that it doesn’t affect navigation performance that OMX will no longer be needed.
Same problem here! Popped up with either the March or the February update, not sure if I got two months in one go or not. Also running rpi2b. Issue seems to be related to MMAL, here are a few lines from mine that popped up during the stuttering:
My shares are mounted with sshfs. Stuttering lasts just a fraction of a second, and occurs roughly once per minute or so.
OMX player does remedy the issue, but since it does not support ALSA spdif passthrough, it is of no use to me. I’ve had to downgrade to a previous backup for now.
I’ve tried with both HDMI, and ALSA hifiberry digi. Both experience the same issue.
Also, I tried running the nightly builds as well, problem only seem to get worse (more often) in the latest as of last night.
Can anyone post a small sample that can reliably reproduce the problem?
It would also be interesting to know if the problem occurs with local playback from a USB thumb drive.
I have previously run the same file from my SD internally, and got micro stutters there as well. A quick test now from USB however was smooth, whilst SSHFS share was not. I ran both for ~3-4 minutes.
I’ve attached the log file from a fresh boot with two plays of my show “tvshow.mkv”. The first run was with the USB (no issue this time!), and the second run is from the network share. You can clearly see something happening around 14:44:14.530, where the error value farthest to the right starts peaking in the negative direction - this is where the stutter was noticeable.