TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.08k stars 3.01k forks source link

Stuttering while Video Playback (webm / mpeg-4) #4209

Open Maxwell12347842 opened 4 years ago

Maxwell12347842 commented 4 years ago

Version

0.19.8

Steps to reproduce the bug

  1. open a video
  2. press play button

The bug always happens at random with random videos. some videos work fine, others don't. If the bug happens, the video will stutter every 1-2s like there would be a buffering issue.. but there isn't a buffer issue based on the wifi connection or similiar (other videos work fine). my guess is that it haves to do with webm / mpeg-4 codec - if this issue happens and i then change from webm to mpeg-4 or reverse, the specific video works (sometimes). but i always need to change this setting every time from video to video because this issue keeps appearing.

i expected that this issue haves to do with my Smartphone (Samsung Galaxy S6, Android 5.1.1, rooted), but now used NewPipe on my Laptop on Bluestacks and the same issue appeared. Every Video works fine outside of Newpipe (example: normal youtube app). So it seems to have to do with Newpipe and not with my Internet or Device. This Issue first started appearing the last few 2-3 weeks.. before that everything worked fine.

on videos in this playlist it happens often (the new videos): https://www.youtube.com/playlist?list=PLuTY0Kb9_4Ib4mhqgH9lc1YgAnlz8hrjX

Expected behavior

stutter free video playback

Actual behaviour

stuttering video playback

opusforlife2 commented 4 years ago

Which resolutions?

Maxwell12347842 commented 4 years ago

Which resolutions?

90% of the cases i tried 720p, but i had it happen with 480p and 360p too. So i'm not sure if it is tied to the resolution. sometimes it even happens random after a few minutes. yesterday i watched a 4 hour video and when i was at 3 hours in without issues, suddenly it started stuttering and the playback then stopped complete.. so i needed to clear my cache of newpipe to get it working again. but i had to skip the specific 2-3 minutes in the video that resulted in that issue because it happpend again.

opusforlife2 commented 4 years ago

playback then stopped complete

What exactly happened? Did the video just freeze? Did you get a black screen? Did Newpipe close the video?

because it happpend again.

Were you able to fix this by taking some action or is this still an issue for that video? If so, can you link the video?

Stypox commented 4 years ago

I can confirm this. Some videos suddenly stop at certain timestamps and they can't continue until the url is refreshed (i.e. some time passes or cache is deleted). But I'm unable to provide steps to reproduce: this has probably something to do with YouTube's urls becoming invalid even though they shouldn't (otherwise deleting cache wouldn't do anything otherwise, since the pointed-to stream is always the same)

Maxwell12347842 commented 4 years ago

What exactly happened? Did the video just freeze? Did you get a black screen? Did Newpipe close the video?

the video playback stopped, and then i waited.. but it didn't resumed. i then tried to click the pause button and play button, but nothing happend. there was no error message or other indiciation of what's wrong.. it just didn't resumed the playback. when i then tried to jump to a different time position in the video, this didn't worked (it didn't jumped or responded). it then "freezed" the complete UI for like 4 seconds and i pressed the back button on my smartphone (hardware).. NewPipe then opened back the video information page (where the comments, related videos etc are). i then pressed again on play and it started playback, just to stop the playback after 2-3 minutes again. after that i tried a few other videos and it didn't happend anymore on that video.

Were you able to fix this by taking some action or is this still an issue for that video? If so, can you link the video?

for that specific video it seem to work now, but the issue mentioned at the start post is still present - but random. sometimes it happens, sometimes not. i didn't managed to find out what exactly seems to trigger it. but what i found out is that if i download a video with NewPipe that haves this issue, i can playback the downloaded video without any issues. so downloaded videos work, but if i stream them this issue seems to happen random.

opusforlife2 commented 3 years ago

Also see: #4687.

eternal-sorrow commented 3 years ago

Any progress with this?

opusforlife2 commented 3 years ago

Not yet.

vehosah commented 10 months ago

Three years later, any progress actually?