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.
use `--audio-format mp3` and `-o test.mp3` together cause youtube-dl fail to convert the file #16357
Comments
|
Do not hardcode extension in output template. |
|
@dstftw |
|
Output template specifies the name of file being downloaded not an mp3 file. You can't just download mp3 cause there is no mp3 exists. You can only convert if from another format. So again: do not mess with output template if you have no idea what are you doing. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.05.01. 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?
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:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
What happened?
When I use
--audio-format mp3and-o test.mp3at same time.the downloader will download the other format as test.mp3 and failed to convert the file because it can't override the file itself.
What did you expect?
The downloader should make a temporary file first to later convert it to mp3 instead of downloader other format directly as mp3 and get stuck.