TeamPiped / Piped

An alternative privacy-friendly YouTube frontend which is efficient by design.
https://piped.video
GNU Affero General Public License v3.0
8.32k stars 684 forks source link

Random skipping in videos (not Sponsorblock) #2517

Open opusforlife2 opened 1 year ago

opusforlife2 commented 1 year ago

Official Instance

Describe the bug

Sometimes, videos skip a few seconds ahead (like 10s, 20s) for no apparent reason. Interestingly, trying to seek back using the arrow key doesn't work beyond the timestamp where the skip occurred. The video just resumes playing from that timestamp.

Edit: this is true if seeking to a timestamp within the skipped section. If seeking back to a point before that, the video plays, and then skips that section again.

The problem is easily solved by a simple page reload. The skipped section plays correctly.

These videos do not have any Sponsorblock segments in them.

To Reproduce

  1. Play a video.

The bug occurs randomly.

Expected behavior

No unnecessary skipping.

Logs/Errors

N/A

Browser, and OS with Version.

No response

Additional context

No response

Bnyro commented 1 year ago

Are you sure it's not #2222, so the SponsorBlock markers don't show properly, and the skipping of SB segments just works properly?

opusforlife2 commented 1 year ago

Yes, I checked below the description. The videos don't have any sponsor segments.

Moreover, SB segments don't behave like this. They skip once. Then if you seek back to the middle of an SB segment, they play normally. This jumping-ahead-to-the-after-skip-timestamp behaviour is something I've seen only with this bug.

Fxsch commented 1 year ago

I've experienced the same issue on some music videos

NearestWater262 commented 1 year ago

Yes, I am having this issue too. It is skipping and also seeming to fast forward at random timings :(

I like this app but I cannot recommend to normal people anymore, there are too many bugs! I am have to just recommend newpipe only sadly because, it works almost without fail.

Fxsch commented 1 year ago

There's also LibreTube. It's an android app that uses piped and also lets you log in with a piped account. It doesn't have that issue tho, as far as I'm aware.

NearestWater262 commented 1 year ago

Yes, LibreTube is what i was referring to, having this issue and also being very buggy @Fxsch

FireMasterK commented 1 year ago

Is there any way to reproduce this consistently? It would help to have a concise way to reproduce this issue, so it can be fixed.

opusforlife2 commented 1 year ago

The problem is easily solved by a simple page reload. The skipped section plays correctly.

I don't think so. Even if I find such a video and immediately link it here, the problem likely won't occur for you because of this.

opusforlife2 commented 1 year ago

@FireMasterK Maybe there could be a separate Debug section in Preferences? Some simple user-facing settings that let the user capture a log or change behaviour to narrow down the bug?

paricbat commented 10 months ago

This issue happens to me sometimes and I can make it happen again by rewinding, maybe that could be somehow helpful. It affects only a specific portion of the video, so my uneducated hunch would be that the player somehow receives corrupted parts of the video. This is because I noticed a similar thing happen in VLC when it couldn't read that part of the file, so it just skips it.

cpiber commented 8 months ago

Seems to be related to a bad gateway error: image

Not sure what causes it, since I don't have server logs (I don't run the instance), but resending the request succeeds, so it seems to be a temporary error. The problem can probably be solved by checking for the response code on the client side.

Edit: Nevermind, probably a coincidence, I got more skips in the same video without failing error codes...

Instead, I saw this, a request that has no response data: image

And on a different video, this time the video component: image

But no idea why, since it shows no error. For these, just resending does not seem to solve the problem (still 0 bytes). Opening in a new tab gives me data though, so might be related to additional metadata or caching.

rolsoft commented 1 month ago

Just wanted to chime in to say that this has been happening for a long time on my instance.

It seems to be getting worse with time, the skipping happens mostly at the start of any video, and I have noticed it happens more often when set at a higher quality, so it probably is some kind of corrupted data received from piped-proxy or YT blocking the download of some parts of the video, idk. For me the only solution I have to watch YT videos now is to check my feed on my piped instance and then use yt-dlp to watch them downloaded, kinda annoying but it is the only thing that avoids the random skipping on videos.

I don't expect this issue to be solvable, because it doesn't seem to be piped's fault, probably the way the videos are downloaded is.

Is there maybe a way to setup piped to be used with yt-dlp?, I know this would work for just small instances, because the download of each watched video would take a lot of disk space.