FreeTube
FreeTube copied to clipboard
Video append of XXXXXX failed for segment #X in playlist XX-placeholder-uri-XX
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:
- Go to 'watch a vid
- See error
Screenshots

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?
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.
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.
Good to hear, then I am going to close this
@GilgusMaximus could u reopen this i just encounterd this issue again. v0.13.1-nightly-930 Beta
Sure. Still a weird issue tho
@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 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;
@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 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.
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.
Had this problem playing music as well for some reason CTRL+R fixed this
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
Yep I'm getting: video append of 895921b failed for segment #3 in playlist 10-placeholder-uri-10 when setting to 1080p
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.
If anyone's looking for a fix, do the following if this is happening:
- Change the video quality as you desire.
- See video fail with usual errors reported above.
- Change the video format to Legacy and then back to Dash.
- Try playing again and see that the error doesn't occur this time, if not, repeat.
Facing the same issue when I DOWNGRADE the video quality, haven't tested for upgrading yet but this is getting annoying
Solution for now is change to legacy player
@peepopoggers
You mean legacy video format?

yes
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.
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-selectorneeds 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.
interesting investigation. this error is one of the most annoying to it would be great to get this fixed.
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.
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
@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.