FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Video append of XXXXXX failed for segment #X in playlist XX-placeholder-uri-XX

Open efb4f5ff-1298-471a-8973-3d47447115dc opened this issue 5 years ago • 43 comments

Behavior of the program When opening a video to watch i get this error message in the player and the video is not playable. This happens randoms to me.

Expected behavior Dont get this message and play this vid.

To Reproduce Please add all steps to reproduce the behavior:

  1. Go to 'watch a vid
  2. See error

Screenshots Screenshot (26)

Desktop (please complete the following information):

  • OS: [Win 10 Home]
  • OS Version: [1909]
  • FreeTube version: [0.9.2.]
  • FreeTube build: [Release]

Additional context Add any other context about the problem here.

As far as I figured it out, this is related to a problem with the player and the information in the dash formats. For me it only happened when I switched to 2k / 4k resolutions tho.

Do you have such a high resolution screen or switched to such a resolution?

GilgusMaximus avatar Nov 04 '20 12:11 GilgusMaximus

As far as I figured it out, this is related to a problem with the player and the information in the dash formats. For me it only happened when I switched to 2k / 4k resolutions tho.

Do you have such a high resolution screen or switched to such a resolution?

No i do not have such high screen resolution or swtitched to such resolution

I'm really getting crazy of this error. This is on 0.11.1-nightly-484.

https://user-images.githubusercontent.com/73130443/104901702-a210fc80-5975-11eb-9eba-815d6f0a00f3.mp4

Things i tried to resolve the error, but didnt work.

  • Closing the application -> Reopen -> Check if it's gone.
  • Removing it from watch history -> Check if it's gone.
  • Removing it from watch history -> Closing the application -> Reopen -> Check if it's gone.

Same issue on some videos, but only when using "Dash Formats" video format. Found that switching default video formats to "Legacy Formats" in settings seems to be viable workaround for that issue.

ShadowOfGannicus avatar Feb 06 '21 10:02 ShadowOfGannicus

Just wanted to give a quick update: I cant seem to reproduce this bug anymore. I tried out all videos related to this issue.

I confirm. I can't see this bug since few weeks.

pawlosck avatar May 26 '21 17:05 pawlosck

Good to hear, then I am going to close this

GilgusMaximus avatar May 27 '21 17:05 GilgusMaximus

@GilgusMaximus could u reopen this i just encounterd this issue again. v0.13.1-nightly-930 Beta

Capture

Sure. Still a weird issue tho

GilgusMaximus avatar Jun 19 '21 21:06 GilgusMaximus

@ChunkyProgrammer do u have any thoughts on how to fix this weird issue?

@efb4f5ff-1298-471a-8973-3d47447115dc I think it's an upstream issue (chromium) https://github.com/videojs/http-streaming/issues/1080 but it looks like there's a work around

ChunkyProgrammer avatar Jun 30 '21 12:06 ChunkyProgrammer

@ChunkyProgrammer that work around is for older browser. latest chromium already fix that bug. If you want to investigate this problem. I suggest you try videojs/mux.js. Modify the example code to load the video which cause this error and add the following line. sourceBuffer.timestampOffset = -2;

k8188219 avatar Jul 07 '21 03:07 k8188219

@ChunkyProgrammer that work around is for older browser. latest chromium already fix that bug. If you want to investigate this problem. I suggest you try videojs/mux.js. Modify the example code to load the video which cause this error and add the following line. sourceBuffer.timestampOffset = -2;

@k8188219 This exactly can fix my problem, but how can I fix it with videojs.js?

KingBright avatar Jul 14 '21 11:07 KingBright

@KingBright I don't know what problem you are dealing with. You need to provide more detailed information about your problem and how you fix it. Maybe consider opening another issue.

k8188219 avatar Jul 15 '21 06:07 k8188219

What i discoverd: Due to networks overload i have to often toggle VPN (by changing my LAN IP to be exact, actual route change and VPN is handled by my router) to get vidos playing at non-dialup speed, or playing at all. Looks like this error happens when player is waiting for response and buffer is too small, partial (like only audio) or no buffer. Cannot replicate while there is decent buffer present and video loads fast on both routes.

EvilGremlin avatar Jul 19 '21 20:07 EvilGremlin

Had this problem playing music as well for some reason CTRL+R fixed this

peepo5 avatar Sep 15 '21 07:09 peepo5

I'm getting this issue when upgrading video quality but not from downgrading video quality, pausing playback before changing the quality usually makes the issue not happen, but, not always. Here's the issue I created which goes in more detail: https://github.com/FreeTubeApp/FreeTube/issues/1732

Winterhuman avatar Sep 21 '21 19:09 Winterhuman

Yep I'm getting: video append of 895921b failed for segment #3 in playlist 10-placeholder-uri-10 when setting to 1080p

hl2guide avatar Nov 23 '21 09:11 hl2guide

That is an issue I get for around 1 in 30 videos (when using invidious API). It has never happened when visiting the invidious instance I am using directly, so it is only an issue with FreeTube. I wanted to try invidious again when using FreeTube, however it still has this problem. When I get this error, it is persistent with videos until maybe hours later?? I have not tested but a refresh does not fix.

peepo5 avatar Nov 23 '21 12:11 peepo5

If anyone's looking for a fix, do the following if this is happening:

  1. Change the video quality as you desire.
  2. See video fail with usual errors reported above.
  3. Change the video format to Legacy and then back to Dash.
  4. Try playing again and see that the error doesn't occur this time, if not, repeat.

Winterhuman avatar Dec 02 '21 10:12 Winterhuman

Facing the same issue when I DOWNGRADE the video quality, haven't tested for upgrading yet but this is getting annoying

billyray098 avatar Dec 06 '21 15:12 billyray098

Solution for now is change to legacy player

peepo5 avatar Dec 06 '21 17:12 peepo5

@peepopoggers You mean legacy video format? image

PikachuEXE avatar Dec 07 '21 02:12 PikachuEXE

yes

peepo5 avatar Dec 07 '21 02:12 peepo5

I haven't tried this yet, but I noticed FreeTube uses video.js 7.14.3 (released on the 27th of July 2021), while the current stable version of video.js on npm is 7.17.0 (released on the 10th of November 2021). It might be worth trying to upgrade the dependencies and seeing if that helps.

absidue avatar Jan 16 '22 11:01 absidue

Okay so upgrading video.js to 7.17.0 seems to fix the issue, however it's definitely not a drop in replacement, here is a list of issues i've noticed after upgrading video.js, videojs-overlay and videojs-vtt-thumbnails-freetube to the latest versions (the other video.js plugins are all up to date already):

  • quality selector is missing from the player (i'm guessing videojs-http-source-selector needs an update, although it seems to be abandoned, last commit was in 2019)
  • when opening a video page it doesn't automatically start playing the video
  • shorts overflow the bottom of the window and take up the whole width of the player, instead of being restricted to the visible area like before
  • there are probably other issues too that I haven't noticed yet.

absidue avatar Jan 16 '22 11:01 absidue

interesting investigation. this error is one of the most annoying to it would be great to get this fixed.

peepo5 avatar Jan 17 '22 01:01 peepo5

After my investigation I started trying to fix the issues, after spending way to much time on it and only making it worse, I'm leaving it up to you guys that know and understand vue.js, video.js and the black magic that is FreeTube codebase better than I do.

absidue avatar Jan 29 '22 11:01 absidue

I'm getting this same error after clicking on a random video in my subscriptions I'm using the latest FlatPak distrubution, with no config changes at all I've only subscribed to a few channels. Pop!_OS

VictoriousFan avatar Apr 06 '22 16:04 VictoriousFan

@nsde There was no need to comment again considering there hasn't been a FreeTube release since the last time you commented 🤦. Commenting again doesn't help anyone.

absidue avatar May 09 '22 15:05 absidue