Git Product home page Git Product logo

Comments (4)

vxbinaca avatar vxbinaca commented on June 16, 2024
  1. Your premise is wrong because youtube-dl for about the last 4~5 years - possibly longer - by default tried to achieve the highest quality version -f best.

  2. We go a step further and use bestvideo+bestaudio for all sites but specifically youtube. I/we care about fidelity immensely. Fidelity is preferred over all other considerations (including speed because last week Youtube was punishing downloaders who grabbed separate audio and video streams with download dial-up speeds as punishment)

Many YouTube video items are archived in low quality

Perhaps they were low quality to begin with? Age tends to be an indicator of this.. Virtually no one was using this script years ago, but I believe that in all of it's existence youtube-dl was using -f best as the default. Tubeups first ancestor was written in 2012.

youtube-dl does the downloading, and tubeup is what takes data from the .json file and tells inernetarchive to make an item and then upload the files to it. That's how tubeup works.

  1. We're accepting pull requests.

  2. What specific video item do you think is lower quality than the original source?

from tubeup.

mariomadproductions avatar mariomadproductions commented on June 16, 2024
  1. Does -f best actually give you the best video though? Doesn't it just give you a video that has "good" audio and video, but not the best of both (as that is impossible without merging two formats), like bestvideo+bestaudio?
  2. I did have a specific video in mind, but I realise now that I'm not sure how to tell if a video was uploaded with tubeup. How can I tell?

from tubeup.

vxbinaca avatar vxbinaca commented on June 16, 2024

Does -f best actually give you the best video though?

Like 90 percent the absolute best. Very good but not quite archival quality. The best usually-muxable-as-MP4 copy. It depends on the video and what formats are available. I've noticed available formats change over time for certain videos which drop filesize over slightly over the age of the video but this could be due to numerous things.

You're talking about a tiny difference that bugs only people like me. Also, you'd have to control that item you want updated meaning you'd have to be the one who uploaded it.

Now that you mentioned it, when Tubeup was rewritten at some point after I stopped actively updating it because it was beyond my meager means, it appears bestaudio+bestvideo was removed. So I'm adding it back in and after testing I'll either push a new version or leave it as is.

from tubeup.

vxbinaca avatar vxbinaca commented on June 16, 2024

Turns out I never added it for bestaudio+bestvideo, but theres a serious downside to adding this and a ton of people will open issues bitching:

ratebypass in youtube-dl no longer works, so you get dialup speeds when downloading separate video/audio streams. Basically as fast as it takes to watch/listen to the video.

People will bitch about this. They will bitch up a storm. It also doesn't appreciably improve PQ/AQ in my tests. In fact it seems the earlier you rip a video, the better it will look. I've gone back and ripped the same video and see a 50mb drop in filesize on the same video at highest quality settings.

I also tried to implement subtitle conversion, and when it's done as a library call instead of a flag in a command it just doesn't work and does nothing, we're still getting VTT files uploading. So Archive.org will have to make a process to derive VTT into SRT.

So we either:

  • Live with -f best for Youtube which is ytdls default.

  • Activate a marginally better rip option, but either tolerate super slow speed Youtube punishes us with to the tune of 20 guys filing issues all complaining about the speed, or possibly force an external downloader (curl or httpie are my prime choices), to get both speed and dubious quality improvement - at the expense of possible site compatibility issues outside of youtube.

Edit 3:

bestaudio+bestvideo/best are default and have been since 2015 here's the confirmation from the youtube-dl devs themselves.

CLOSING since this is a non-issue and also reverting my local changes to tubeup since they were of dubious value, caused severe speed penalties or just broken.

from tubeup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.