DTS MA + Seeking = 5 second pauses
#1
Hi,

This is an issue I've had for a while and have finally narrowed it down a bit further to DTS MA being a contributing factor. Skipping through ripped blurays with DTS MA audio results in long pauses (up to 5 seconds) during the seek. It doesn't happen with every seek. Sometimes it's the first one. Sometimes it's the 20th.

Here's my setup:
-RPi2 running LE 7.0. (issue also happened with previous OE builds and with Milhouse 8.0 testbuilds)
-Unraid NAS. Content shared via SMB. (Issue also happens with NFS and local, flash USB storage)
-Skip Steps at -10s and 30s. Skip delay=None
-Debug log: http://pastebin.com/Nq9upHbj

The seek in question starts at:
10:11:09 38.586525 T:1963278336 DEBUG: OnKey: right (0xf083) pressed, action is StepForward
there is a long pause (this one is 4 seconds) until the video resumes at:
10:11:13 42.188492 T:1963278336 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------

-Other Info:
--Doesn't happen with content containing 5.1 DTS Core audio only. If I rip the same bluray with just the DTS Core track, I can't reproduce or notice any pauses.
--It doesn't happen at the same time in the video every time it's played. But it seems more likely to happen at the same time.
--It happens with OMXPlayer or MMAL. MMAL is enabled for this log
--Adjust display refresh rate is enabled. (happens when disabled too)
--Sync playback to display is disabled (happens when enabled too)
--I've tested my network for throughput and drops with iperf and it is fine.
--It may be happening to a lesser degree on windows, but isn't really noticeable due to it's speed.
--The pauses also happen if the media contains both a 7.1 MA and 5.1 Core track, but the 5.1 track is being played.

-MediaInfo
Code:
General
Unique ID                                : 97770806105709506505112842127363277723 (0x4976AB74CD41B97A2F5B20970623425A)
Complete name                            : V:\The_Force_Awakens - 7.1 MA only.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 33.9 GiB
Duration                                 : 2h 18mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 35.1 Mbps
Movie name                               : The Force Awakens - BLU-RAY
Encoded date                             : UTC 2016-04-26 15:02:38
Writing application                      : MakeMKV v1.9.10 win(x64-release)
Writing library                          : libmakemkv v1.9.10 (1.3.3/1.4.4) win(x64-release)
Original source medium                   : Blu-ray

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=1, N=12
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2h 18mn
Bit rate mode                            : Variable
Bit rate                                 : 29.9 Mbps
Maximum bit rate                         : 34.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.601
Stream size                              : 28.8 GiB (85%)
Language                                 : English
Default                                  : No
Forced                                   : No

Audio
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 2h 18mn
Bit rate mode                            : Variable / Constant
Bit rate                                 : 5 194 Kbps / 1 509 Kbps
Channel(s)                               : 8 channels / 6 channels
Channel positions                        : Front: L C R, Side: L R, Back: L R, LFE / Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 93.750 fps (512 spf)
Bit depth                                : 24 bits
Compression mode                         : Lossless / Lossy
Stream size                              : 5.01 GiB (15%)
Title                                    : Surround 7.1
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 4
ID in the original source medium         : 4608 (0x1200)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 2h 6mn
Bit rate                                 : 34.6 Kbps
Count of elements                        : 3556
Stream size                              : 31.4 MiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No

Any suggestions or thoughts?

Thanks!
Reply
#2
I notice:
Code:
10:11:12  41.384068 T:1780478880   ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)WSResponse: bad request (404)

around the same time. I don't expect that is the cause, but can you confirm the issue still occurs with MythTV PVR Client disabled?

A sample file that shows the problem is always useful.
Reply
#3
Yes, the issue persists with the MythTV addon and/or Live TV disabled.

It sometimes takes 20 seeks which will be a 2 or 3 GB file.

Edit:
(PM sent with sample)
Reply
#4
I see a commit for fixing "stalls on seek" went in a few days ago. I tried yesterday's LibreELEC testbuild and, unfortunately, that didn't fix my stalls.

While experimenting with the network buffer while playing the sample, I noticed that there was buffering of about 10s of video even with <buffermode>3</buffermode> in the network section of advanced settings. I'm not familiar with the underpinnings of how much to buffer, but I would have expected only a few frames and not a couple hundred (24p source). Is that an expected amount of buffering for when buffering is "disabled"?
Reply

Logout Mark Read Team Forum Stats Members Help
DTS MA + Seeking = 5 second pauses0