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.
adding metadata only works with (correct) file extension #11504
Comments
|
For "Correcting container" step, only mp4 is applicable, so youtube-dl knows it can use
See #8476 |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version isBefore submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Description of your issue, suggested solution and other information
When using an output file name without any file extension (like simply "test") adding metadata does not work. This is because ffmpeg is called without specifying the output format (e.g. "-f mp4") and only relying on the file extension, e.g. "working.m4a" gets output to "working.temp.m4a" and ffmpeg auto-guesses the mp4 format from the "m4a" extension. However, without an extension youtube-dl tries to output to "test.temp" and ffmpeg fails with an error because it cannot auto-guess ".temp" extension.
The solution would be to force the appropriate format via e,g, "-f mp4" like it does for "Correcting container". Of course, ideally it would combine the two ffmpeg calls into a single one to save time and do less disk accesses (increasing HDD life and decreasing fragmentation and conversion time).