Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
Verbose log
Description
When using format string in
-othat does not contain any output template variable, in this example-o /tmp/1.file, youtube-dl still adds the extension for the video if the extension does not match the downloaded format, for example if the downloaded container format iswebm, the following interaction happens:-o /tmp/1.file.webm=>/tmp/1.file.webm-o /tmp/1.file->/tmp/file.webm-o /tmp/1.file.mp4-> "/tmp/file.mp4.webmwhich is... confusing to say the least and as far as I've searched, undocumented.
In my particular case I've generated a tmpfile name and passed it to youtube-dl for output but it just appended a file extension to it for no good reason and of course script calling it couldn't predict that.