Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get audio,like mp3,thanks #21402

Closed
wangbohao123 opened this issue Jun 15, 2019 · 3 comments
Closed

How can i get audio,like mp3,thanks #21402

wangbohao123 opened this issue Jun 15, 2019 · 3 comments

Comments

@wangbohao123
Copy link

@wangbohao123 wangbohao123 commented Jun 15, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 15, 2019

-x --audio-format mp3.

@dstftw dstftw closed this Jun 15, 2019
@wangbohao123
Copy link
Author

@wangbohao123 wangbohao123 commented Jun 15, 2019

yes,it is work,but i still download webm format.
and thank you for your reply -v-

@dstftw dstftw added the incomplete label Jun 15, 2019
@beantowel
Copy link

@beantowel beantowel commented Jul 27, 2019

@wangbohao123 i got the same result, the audio file was webm format and can't be opened by most of the audio player/processor
------------update--------------
i solved this now, the crucial part is FFMPEG WON'T OVERWRITE AN EXISTING FILE, the thing is, youtube-dl first download using webm format, then use ffmpeg to convert it. Obviously, we usually provide a extension name in the shell command exactly what we want, this, with the above fact, cause the disaster.

Briefly speaking, if you want to download in mp3 format, use the command like this:

youtube-dl --extract-audio --audio-format mp3 --output <target.webm> <url>

instead of

youtube-dl --extract-audio --audio-format mp3 --output <target.mp3> <url>

This design was VERY VERY BAD as i thougt, i hope if there is someone can 'fix' this @dstftw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.