Apparently all video in 1080p goes struttering.. hardware limits it's been reach?

Yesterday by the official and latest youtube addons i have tryed to watch this video whit my OSMC setup (on a Raspberry Pi2):

On his “best” resolution the video it’s in 1920x1080p at 60fps and i see his reproduction goes completely in struttering…in its audio track, however, no reproduction problems.

For stutter-free playback i have need to set the MPEG-DASH to a max 720p… recently also whit some usage of “Twitch” addons i have obtain a similar issue after one of my preferred streamer has begin to stream at 1080p.

It’s at today as reach the very hardware limit of my raspberry pi2 ??

EDIT
I have right now try to found some suggestion by google… founded some “old” thread here on forum and in some it’s suggested to check the “advancedsettings.xml” and other it’s be suggested to try to reproduce the same video locally.
During the reproduction stuttering i have tryed to look inside the kodi log and apparently no info or errors it’s appears… if need or suggest other test please advise me :slight_smile:

Without a codec that can be decoded by the gpu the Pi2 will struggle with 1080p.

mmmmm…and why if I watch the same video in 720p all stuttering it’s disappers ?

It’s not same codec used on youtube or twitch at 1080p ?? it’s not the same x264 ? Or at 1080p it’s x265 used ?

I have also tryed to open the “MediaInfo” during the reproduction but besides the resolution it doesn’t tell me the type of codec used… it’s only tell me it’s 1080p at 60fps and other info…

EDIT
I have opened the video from pc… if i open the “statistics for nerds” i can read this:
Codecs

vp09.00.51.08.01.01.01.01.00 (303) / opus (251)

I think the codec used is “opus” however we are on a pc… it’s on Pi2 not support this codec at today ?
It’s kodi not support this codec ?

That is audio codec.
Video codec is

And yes VP9 is only Software decode on the Pi2

Only Vero supports VP9 HW decode (up to 4K)

2 Likes

Yeah but it’s on PC…
I have right now check and apparently my Pi2 try to reproduce the H264… because stuttering ?
I have opened the “PlayerDebug” Information and it’s confirm h264 as fullhd…

If it’s usefull i can try to download the fullhd from my pc and try to reproduce locally if see it’s sturring anyway…

Without a HW accelerated codec being used you will not be able to play 1080p 60fps on a Pi2

ah ok… so is it a limitation of kodi itself and not the hardware? correct?
it means that the current h264 codec of kodi does not use hardware accellation… in future versions of osmc is it possible to overcome this lack?

No, where did I wrote that it is a Kodi limitation? And where did I refer to H264. Your starting point was Youtube which uses VP9.
H264 is HW accelerated on Pi and should not be a problem.

1 Like

Sorry there’s a misunderstanding
Youtube use VP9 on PC.
On Pi it’s used h264… are you tryed to open this video ?
You can reproduce the stuttering or not ?

Apparently i have download the .mp4 from youtube and it’s a h264:

General
Complete name               : C:\xxxxx\Downloads\PLAYSTATION 5- IL PREZZO IN LIVE.mp4
Format                      : MPEG-4
Format profile              : Base Media
Codec ID                    : isom (isom/iso2/avc1/mp41)
File size                   : 1.66 GiB
Duration                    : 1 h 5 min
Overall bit rate mode       : Variable
Overall bit rate            : 3 651 kb/s
Encoded date                : UTC 2020-09-16 21:07:40
Tagged date                 : UTC 2020-09-16 21:07:40

Video
ID                          : 1
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : High@L4.2
Format settings             : CABAC / 3 Ref Frames
Format settings, CABAC      : Yes
Format settings, Reference  : 3 frames
Codec ID                    : avc1
Codec ID/Info               : Advanced Video Coding
Duration                    : 1 h 5 min
Bit rate                    : 3 518 kb/s
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 60.000 FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Bits/(Pixel*Frame)          : 0.028
Stream size                 : 1.60 GiB (96%)
Title                       : ISO Media file produced by Google Inc.
Encoded date                : UTC 2020-09-16 21:07:40
Tagged date                 : UTC 2020-09-16 21:07:40
Color range                 : Limited
Color primaries             : BT.709
Transfer characteristics    : BT.709
Matrix coefficients         : BT.709
Codec configuration box     : avcC

Audio
ID                          : 2
Format                      : AAC LC
Format/Info                 : Advanced Audio Codec Low Complexity
Codec ID                    : mp4a-40-2
Duration                    : 1 h 5 min
Bit rate mode               : Variable
Bit rate                    : 128 kb/s
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 44.1 kHz
Frame rate                  : 43.066 FPS (1024 SPF)
Compression mode            : Lossy
Stream size                 : 59.7 MiB (4%)
Title                       : ISO Media file produced by Google Inc.
Language                    : English
Default                     : Yes
Alternate group             : 1
Encoded date                : UTC 2020-09-16 21:07:35
Tagged date                 : UTC 2020-09-16 21:07:35

EDIT
And from youtube it’s also avaiable for download the mkv file… this is use VP9 look:

General
Unique ID                   : 65392825175610104412735799271089255734 (0x31323334353637383930313233343536)
Complete name               : C:\xxxxx\Downloads\PLAYSTATION 5- IL PREZZO IN LIVE.mkv
Format                      : Matroska
Format version              : Version 4
File size                   : 723 MiB
Duration                    : 1 h 5 min
Overall bit rate            : 1 549 kb/s
Writing application         : IDMmkvlib0.1
Writing library             : IDMmkvlib0.1
Language                    : und

Video
ID                          : 1
Format                      : VP9
Codec ID                    : V_VP9
Duration                    : 1 h 5 min
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 60.119 FPS
Default                     : Yes
Forced                      : No

Audio
ID                          : 2
Format                      : Opus
Codec ID                    : A_OPUS
Duration                    : 1 h 5 min
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 48.0 kHz
Bit depth                   : 16 bits
Compression mode            : Lossy
Default                     : Yes
Forced                      : No

EDIT 2
I am now copying the 2 files on a USB stick connected to mine Pi2… try to reprouce locally and see what’s appened.

As you already figured out Youtube offers multiple resolutions and codecs.

So is the H264 version you downloaded stuttering or not?

Ops… i put and “EDIT 2” on previous post. Wait a feedback… i edit this post.

EDIT Whit Feedback
@fzinken

I have tested both files from a Pendrive… both are played in some like “slow motion”.

The MP4 reproduction it’s a real disaster… video completely in jerks immediatelly after first seconds of reproduction.
On MKV side, absurdly, the situation is better. The reproduction it is always jerky but in a softer way respect the MP4 side…

it is difficult to explain via text… I would be curious to know if on another Pi2 you get the same problem with the same youtube video.
I can take some pictures on the TV with the Debug Codec Info screen if it helps…I could also try to make an extract a parts of few minutes from the Mp4 file…

I can check later and report back. What is the Youtube ID of the video?
Also is there a 25fps version available? That could tell you if the issue is the 60fps.

Video ID it’s -> tk5AKQPhSv4

At 25fps it seems not … maybe there is something at 30fps…

Otherwise this is the photo of my tv during the reproduction… whit “PlayerDebud” and “PlayerProcessInfo”:IMG_20200918_111353

IMG_20200918_111523

EDIT 2
Also for confirm… there’s a version at 30fps:

General
Complete name               : C:\xxxxx\Downloads\PLAYSTATION 5- IL PREZZO IN LIVE_2.mp4
Format                      : MPEG-4
Format profile              : Base Media
Codec ID                    : isom (isom/iso2/avc1/mp41)
File size                   : 1.30 GiB
Duration                    : 1 h 5 min
Overall bit rate mode       : Variable
Overall bit rate            : 2 858 kb/s
Encoded date                : UTC 2020-09-16 21:07:40
Tagged date                 : UTC 2020-09-16 21:07:40

Video
ID                          : 1
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : High@L4
Format settings             : CABAC / 3 Ref Frames
Format settings, CABAC      : Yes
Format settings, Reference  : 3 frames
Codec ID                    : avc1
Codec ID/Info               : Advanced Video Coding
Duration                    : 1 h 5 min
Bit rate                    : 2 727 kb/s
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 30.000 FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Bits/(Pixel*Frame)          : 0.044
Stream size                 : 1.24 GiB (95%)
Title                       : ISO Media file produced by Google Inc.
Encoded date                : UTC 2020-09-16 21:07:40
Tagged date                 : UTC 2020-09-16 21:07:40
Color range                 : Limited
Color primaries             : BT.709
Transfer characteristics    : BT.709
Matrix coefficients         : BT.709
Codec configuration box     : avcC

Audio
ID                          : 2
Format                      : AAC LC
Format/Info                 : Advanced Audio Codec Low Complexity
Codec ID                    : mp4a-40-2
Duration                    : 1 h 5 min
Bit rate mode               : Variable
Bit rate                    : 128 kb/s
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 44.1 kHz
Frame rate                  : 43.066 FPS (1024 SPF)
Compression mode            : Lossy
Stream size                 : 59.7 MiB (4%)
Title                       : ISO Media file produced by Google Inc.
Language                    : English
Default                     : Yes
Alternate group             : 1
Encoded date                : UTC 2020-09-16 21:07:35
Tagged date                 : UTC 2020-09-16 21:07:35

I have right now start to copy also this on my PenDrive… see the result in a moment.
Strange… by Youtube addons does not find the 30fps version. Need to wait copy finished to test it.

Nope at 1080p you only have 60fps

[youtube] tk5AKQPhSv4: Downloading webpage
[info] Available formats for tk5AKQPhSv4:
format code  extension  resolution note
249          webm       audio only tiny   56k , opus @ 50k (48000Hz), 22.45MiB
250          webm       audio only tiny   71k , opus @ 70k (48000Hz), 28.17MiB
140          m4a        audio only tiny  133k , m4a_dash container, mp4a.40.2@128k (44100Hz), 60.43MiB
251          webm       audio only tiny  139k , opus @160k (48000Hz), 53.45MiB
278          webm       256x144    144p  127k , webm container, vp9, 30fps, video only, 40.00MiB
160          mp4        256x144    144p  129k , avc1.4d400c, 30fps, video only, 42.17MiB
133          mp4        426x240    240p  274k , avc1.4d4015, 30fps, video only, 93.30MiB
242          webm       426x240    240p  287k , vp9, 30fps, video only, 74.39MiB
243          webm       640x360    360p  495k , vp9, 30fps, video only, 122.63MiB
134          mp4        640x360    360p  646k , avc1.4d401e, 30fps, video only, 189.58MiB
244          webm       854x480    480p  937k , vp9, 30fps, video only, 195.81MiB
135          mp4        854x480    480p 1220k , avc1.4d401f, 30fps, video only, 347.72MiB
247          webm       1280x720   720p 1877k , vp9, 30fps, video only, 334.00MiB
136          mp4        1280x720   720p 2453k , avc1.64001f, 30fps, video only, 664.49MiB
302          webm       1280x720   720p60 2949k , vp9, 60fps, video only, 503.25MiB
298          mp4        1280x720   720p60 3796k , avc1.640020, 60fps, video only, 903.21MiB
303          webm       1920x1080  1080p60 4658k , vp9, 60fps, video only, 669.26MiB
299          mp4        1920x1080  1080p60 6472k , avc1.64002a, 60fps, video only, 1.61GiB
18           mp4        640x360    360p  529k , avc1.42001E, 30fps, mp4a.40.2@ 96k (44100Hz), 247.22MiB
22           mp4        1280x720   720p 1551k , avc1.64001F, 30fps, mp4a.40.2@192k (44100Hz) (best)

Strange, I didn’t found that.

Let me know how that goes.

I have used “Internet Download Manager” for download it…

EDIT Ops… double post
I have some good news… the version at h264 fullhd at 30fps it plays without the slightest problem and lag.

I remind… from Youtube addons there’s a “Ask for Quality” and if i choose the 720p at 60Fps there’s no trouble.
The problems seem to arise only with fullhd at 60fps…

I deleted the VP9 files that we have said are “useless” at today…

EDIT 2
From Mp4 source files at 60Fps using “VideoReDo TVSuite” i can made some little files about 5 minutes or less.
I thinks it’s better for made some other test…

Ok I will try later on my Pi, but could be that 1080p 60fps is not working on the Pi HW Decoder

VP9 1080p will not be playable on the Pi2 would need a Vero4k for that.

if you thinks it’s usefull… it’s the first five minutes of both fullhd h264 files:
https://www.upload.ee/files/12287522/001_PLAYSTATION_5-_IL_PREZZO_IN_LIVE_2.mp4.html

Upper here is the 30fps version… and this is the trouble 60fps version:
https://www.upload.ee/files/12287525/001_PLAYSTATION_5-_IL_PREZZO_IN_LIVE.mp4.html

h.264 1080p60 Youtube videos didn’t play smoothly on my Pi3 either.

Haven’t had a problem with 1080p Youtube since switching from 60 to 30 fps.