NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

NewPipe WebM stuttering where as MPEG-4 doesn't at 30FPS.

Open DerekTurtleRoe opened this issue 8 years ago • 14 comments

Hey, I'm using NewPipe 0.13.1.

So on this video:

https://www.youtube.com/watch?v=vwx83kfch1Y

The WebM at 720p60 always stutters and drops frames, whereas the 720p30 MPEG-4 runs fine at half the framerate. On other videos, MPEG-4 720p60 runs fine as well.

Is this a codec issue, or is there some discrepancy between files stored on the YouTube servers, or what's happening here?

If I can do anything to help, such as include logs or anything I will do what I can. I only have one rooted device.

DerekTurtleRoe avatar Apr 10 '18 03:04 DerekTurtleRoe

Can you please provide us with the device specs? The video seems to play without any stutter on my phone.

karyogamy avatar Apr 10 '18 03:04 karyogamy

I have Oneplus One, LineageOs, Boefflakernel. It stutters here too. WebM has stuttered on my device with every video.

Duppadaadadii avatar Apr 10 '18 10:04 Duppadaadadii

I remember that some older devices are not able to hardware decode webm, however even the older ones should do mpeg4 just fine. So oneplus one has a lot of power tho but still I would take this as an explenation. @karyogamy what do you thing?

If it turns out its the LOS software decoder for webm there is not much we can do. You might have to go with mpeg4 then :/

theScrabi avatar Apr 10 '18 21:04 theScrabi

Duplicate of #597

mauriciocolli avatar Apr 10 '18 22:04 mauriciocolli

@mauriciocolli Does this mean the issue won't be fixed due to issues with WebM as a codec?

@karyogamy My Samsung Galaxy S7 and Samsung Galaxy Tab A6 both stutter and drop frames on WebM videos.

I tried on Android and LineageOS.

DerekTurtleRoe avatar Apr 10 '18 22:04 DerekTurtleRoe

Well first of all this seems to be a problem at exoplayer. Seh here https://github.com/google/ExoPlayer/issues/2777 So they had to address that issue. Maybe the next updates of exoplayer will fix it.

theScrabi avatar Apr 11 '18 16:04 theScrabi

@theScrabi Oh, so it's more of an internal YouTube issue?

DerekTurtleRoe avatar Apr 11 '18 20:04 DerekTurtleRoe

@vgturtle127 I don't think there's much else we can do besides warning about the player not able to decode the video in real time, which is the idea already mentioned in the the referenced issue.

so it's more of an internal YouTube issue?

I highly doubt it, most probably client side issue.

The A6 doesn't have VP* hardware decoding so it is expected, but it's a little strange that it does that in your S7, the Exynos 8 8890 does have VP9 hardware decoding support... Or your phone has another processor?

@theScrabi Well first of all this seems to be a problem at exoplayer. Seh here google.ExoPlayer#2777

That's not the issue here. At least he didn't tell us about altering the playback speed.

mauriciocolli avatar Apr 11 '18 21:04 mauriciocolli

@theScrabi I didn't change the playback speed, though? 🤷‍♂️

@mauriciocolli My processor is a Qualcomm Snapdragon 820 CPU with an Adreno 530 GPU. My phone model is the Samsung Galaxy S7 SM-G930V. I have the latest Android version and all my apps are up to date, so I don't think it's any sort of bug with my software, but who knows with so many variables?

DerekTurtleRoe avatar Apr 11 '18 23:04 DerekTurtleRoe

@vgturtle127 So yeah, this is sort of expected, the Snapdragon 820 doesn't list VP* support, but it's still strange that it can't handle even 720@60F (and can easily handle 4K in another codec, but who knows, hardware support can improve decoding by a lot).

As a test, can you download a WebM 720@60 stream in NewPipe and then try to play it with MX Player and VLC? That might give some better insight.

mauriciocolli avatar Apr 12 '18 01:04 mauriciocolli

Got my hands on an Exynos version of S7 to test this and the video ran just fine, maybe a stutter after seeking but that's about it. So, it's most likely that vp9 exceeds snapdragon 820's capability, even though I saw this.

karyogamy avatar Apr 12 '18 01:04 karyogamy

@mauriciocolli I looked through about 15 pages of 720p60 videos and none of them had WebM 720p60. 😞

Do you know where I could download some so I don't have to download the entire 2 and a half hour video on my phone?

@karyogamy Huh, I don't know.

DerekTurtleRoe avatar Apr 12 '18 02:04 DerekTurtleRoe

@vgturtle127 change the "Default Video Format" to WebM, then just search "60fps" on YouTube, any video will do, but test to see if it stutters in NewPipe first.

mauriciocolli avatar Apr 12 '18 02:04 mauriciocolli

@mauriciocolli Alright, so downloaded and streamed videos play fine when it is a WebM at 720p60, VLC works fine, mpv works fine, and MX Player work fine. It must just be that specific video...

Not sure what would cause that, though.

DerekTurtleRoe avatar Apr 12 '18 04:04 DerekTurtleRoe