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.
merging with ffmpeg results in --output not fully controlling output filename #14864
Comments
|
I can see the difficulty in making --get-filename work in this situation, but my bug report is primarily about --output not working. It seems to me that for --output, youtube-dl could simply rename the file ffmpeg generates to the filename the user requested. So, it may be useful to reopen and treat #14864 and #7137 as two separate, though related bugs. |
It's not how --output actually works. Indeed its description can be better. If --get-filename is fixed, your problem is solved, so I point the related issue. |
|
I'm not sure I follow... it seems like that (making sure the final output is has the file specified filename) is how |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.11.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
When downloading youtube videos with a format that involves merging (including the default bestvideo+bestaudio), and when ffmpeg is used for the merge, --output does not fully control the filename that the merged video is written to. A ".mkv" extension is added to whatever filename --output would generate.
For example, -o out.vid results in:
--get-filename also does not print out the actual filename used in this case.
I was going to use --output to make youtube-dl output to a specific filename in a script; this behavior makes that not practical to do unless I also force the output format to -f best or something like that.
(I have not checked if using avconv for merging also has this behavior.)