Found a video with massive video stutter if amcodec is enabled

This video gives me massive frame drops and video stuttering if hw acceleration amcodec is enabled audio is fine.

If I disable hw acceleration it plays without problems.

Debug log recorded while the file was playing with hw acceleration enabled: http://paste.osmc.io/ociniwonoz
Sample of the file in question: https://www.mediafire.com/file/z8ybu68443oxrjg/sample.mkv
Media info:

General
Unique ID : 229867955165436219385185749318114232220 (0xACEEF53316F96F18B256277BF7BC479C)
Complete name
Format : Matroska
Format version : Version 4 / Version 2
File size : 957 MiB
Duration : 29 min 41 s
Overall bit rate : 4 508 kb/s
Writing application : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 29 min 41 s
Bit rate mode : Constant
Nominal bit rate : 4 372 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.079
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-08-07 03:34:37 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 4377321
FromStats_Duration : 00:29:41.046000000
FromStats_FrameCount : 106756
FromStats_StreamSize : 974526337

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 29 min 41 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Language : English
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-08-07 03:34:37 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 125437
FromStats_Duration : 00:29:41.013000000
FromStats_FrameCount : 83485
FromStats_StreamSize : 27925622

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-08-07 03:34:37 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 240
FromStats_Duration : 00:29:29.717000000
FromStats_FrameCount : 1046
FromStats_StreamSize : 53092

Thanks. I’ll check this out. Any other similar clips causing this problem?

Those two:

General
Unique ID : 253331902930606615648435988644799658574 (0xBE95F324467353BD99120657C0E33A4E)
Complete name :
Format : Matroska
Format version : Version 4 / Version 2
File size : 1.01 GiB
Duration : 31 min 58 s
Overall bit rate : 4 514 kb/s
Writing application : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 31 min 58 s
Bit rate mode : Constant
Nominal bit rate : 4 372 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.079
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-07-31 03:43:23 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 4384051
FromStats_Duration : 00:31:58.534000000
FromStats_FrameCount : 114997
FromStats_StreamSize : 1051369047

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 31 min 58 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Language : English
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-07-31 03:43:23 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 125439
FromStats_Duration : 00:31:58.485000000
FromStats_FrameCount : 89929
FromStats_StreamSize : 30081663

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-07-31 03:43:23 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 245
FromStats_Duration : 00:31:49.573000000
FromStats_FrameCount : 1179
FromStats_StreamSize : 58543

General
Unique ID : 236183245148591748582748047893452784656 (0xB1AF3D090E260641A154580F9C138410)
Complete name :
Format : Matroska
Format version : Version 4 / Version 2
File size : 1.09 GiB
Duration : 34 min 46 s
Overall bit rate : 4 508 kb/s
Writing application : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 34 min 46 s
Bit rate mode : Constant
Nominal bit rate : 4 372 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.079
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-07-03 03:39:00 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 4378181
FromStats_Duration : 00:34:46.251000000
FromStats_FrameCount : 125050
FromStats_StreamSize : 1141748309

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 34 min 46 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Language : English
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-07-03 03:39:00 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 125437
FromStats_Duration : 00:34:46.208000000
FromStats_FrameCount : 97791
FromStats_StreamSize : 32711200

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-07-03 03:39:00 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 228
FromStats_Duration : 00:34:32.119000000
FromStats_FrameCount : 1181
FromStats_StreamSize : 59074

Hi Sam !

Any chance you had time to look into this?

I hope you are enjoying your weekend!

Not just yet – but thanks for the reminder!

Sam

Same problem with this:

General
Unique ID : 176567001439800500706963080550587895760 (0x84D5914968497F62947C09AC26290FD0)
Complete name :
Format : Matroska
Format version : Version 4 / Version 2
File size : 924 MiB
Duration : 28 min 36 s
Overall bit rate : 4 514 kb/s
Writing application : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 28 min 36 s
Bit rate mode : Constant
Nominal bit rate : 4 372 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.079
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-08-21 03:47:13 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 4383872
FromStats_Duration : 00:28:36.649000000
FromStats_FrameCount : 102896
FromStats_StreamSize : 940696294

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 28 min 36 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Language : English
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-08-21 03:47:13 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 125435
FromStats_Duration : 00:28:36.586000000
FromStats_FrameCount : 80465
FromStats_StreamSize : 26915144

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
Statistics Tags Issue : mkvmerge v12.0.0 (‘Trust / Lust’) 64bit 2017-08-21 03:47:13 / mkvmerge v12.0.0 (‘Trust / Lust’) 64bit
FromStats_BitRate : 237
FromStats_Duration : 00:28:24.718000000
FromStats_FrameCount : 965
FromStats_StreamSize : 50548

Another ‘Last Week with John Oliver’?

I don’t know who encodes it – but it’s the most common TV show that people send samples about and have issues with.

I’ll see if I can find anything specific to these videos and what can be done to improve things.

Yes it’s John Oliver

Not sure what it is the mediainfo log doesn’t show anything more funky then other encodes that play fine

1 Like

Just installed my brand new vero 4k - installed hyperion.ng, then uninstsalled mesa again to find this. John is stuttering severly. It would be great to see this fixed :slight_smile:

Indeed – this seems to be the only reported programme that’s having problems lately. My advice would be to try a ‘WEB-DL’ version (iTunes rip). If there’s no problem there, then it may be related to the clip’s encoding.

Sam

Yeaaaah,
but this ain’t a solution, right? Since the Rpi2 can play these files, somethings’ borked with the vero 4k

The last file seems to be NUKED.

So it seems that there may have been some problems with the file in general. There will probably be a PROPER release soon; but that’s outside the scope of this forum.

I’m still looking in to what can be done to see if the clip can be made to play back properly.

The last mediainfo I linked was from the 923.77 MB 720p web-DL by doosh can someone confirm they have problems with the same file.

I don’t want to give too much details about piracy but Doosh is a p2p release group and only scene nukes their encodes if they are not properly done ( not following the scene set of rules )

I hope you’ll find and squish the bug sooner than later

Send me a magnet please (PM).

I don’t know if this was fixed on osmc side or not but I can confirm that the latest two episodes of John Oliver played fine with amcodec enabled. It could also be that the person encoding it changed some of his settings/process

There have been some fixes for playing back Live TV content (including files recorded from Live TV). I’m glad playback is improved.

1 Like

Hi,

I’m having problems playing the following file with amcodec on:

Format : Matroska
Format version : Version 2
File size : 11.6 GiB
Duration : 1 h 23 min
Overall bit rate : 19.8 Mb/s
Writing application : mkvmerge v5.8.0 (‘No Sleep / Pillow’) built on Sep 2 2012 15:37:04
Writing library : libebml v1.2.3 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 23 min
Bit rate : 16.4 Mb/s
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
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.446
Stream size : 9.58 GiB (83%)
Writing library : x264 core
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1 h 23 min
Bit rate mode : Constant
Bit rate : 1 509 kb/s
Channel(s) : 6 channels
Channel positions : 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 : Lossy
Stream size : 902 MiB (8%)
Title : DTS 5.1 Ch
Language : English
Default : No
Forced : No

How are you streaming it?
Can you send a sample to reproduce the problem?

I’m streaming it via wifi across 4 meters. Samba share via fstab.
With the amcodec option off I’m able to view it without problems.
It’s a 3D video but unfortunately I’m not able to provide you a sample.