Giter Site home page Giter Site logo

Comments (5)

pukkandan avatar pukkandan commented on August 20, 2024 2

I swear there is an open issue for this, but I can't find it

from yt-dlp.

Grub4K avatar Grub4K commented on August 20, 2024

You always should append .%(ext)s to the output template, otherwise it might cause even more problems (Like when the name contains a .).

  • In the first case, yt-dlp implicitly appends an extension for processing so ffmpeg can merge the files
  • In the second case, it will download straight to the file, so it can use the filename as given

Why do you want to download without the extension in the first place?

from yt-dlp.

dirkf avatar dirkf commented on August 20, 2024

Presumably the merge process is applying the extension even though it wasn't specified in the output template.

Actually, as the first log shows, yt-dlp is forcing the {format_id}.webm extension to avoid having one format overwrite the other (function correct_ext(), I think), the merge command is using a temp.webm extension for the output, and that is being renamed by just removing the temp. part (because dl_filename passed to the post_process() is that temp filename when no file has been downloaded).

Would the answer to this be a documentation note that an output template with no %(ext)s is likely to cause unexpected behaviour except in very simple cases, like downloading one combined format video with a specific filename?

from yt-dlp.

krasnh avatar krasnh commented on August 20, 2024

but I can't find it

And I was looking for it. I was also surprised that for the entire existence of "yt-dlp", I was the first one who encountered this problem. :)

upd. If this is not a problem but a feature, it is advisable to mention it in the readme.

from yt-dlp.

dirkf avatar dirkf commented on August 20, 2024

This old upstream issue, with its relatives, is somewhat similar: user who specified a fixed --output value (in particular, without %(ext)s) was surprised when the final file had a .webm or .mkv extension as a side-effect of merging.

from yt-dlp.

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.