Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upmerging with ffmpeg results in --output not fully controlling output filename #14864
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yan12125
closed this
Nov 28, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
joeyh
Nov 28, 2017
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.
joeyh
commented
Nov 28, 2017
|
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yan12125
Nov 28, 2017
Collaborator
It seems to me that for --output, youtube-dl could simply rename the file ffmpeg generates to the filename the user requested.
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.
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
gabrielgrant
Dec 19, 2017
I'm not sure I follow... it seems like that (making sure the final output is has the file specified filename) is how --output should work, even if it doesn't today. In what circumstances would a user would not want the output contained in the location they've specified?
gabrielgrant
commented
Dec 19, 2017
|
I'm not sure I follow... it seems like that (making sure the final output is has the file specified filename) is how |
joeyh commentedNov 27, 2017
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.)