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

download mp3 format from youtube #3726

Closed
Rush2088 opened this issue Sep 12, 2014 · 4 comments
Closed

download mp3 format from youtube #3726

Rush2088 opened this issue Sep 12, 2014 · 4 comments

Comments

@Rush2088
Copy link

@Rush2088 Rush2088 commented Sep 12, 2014

I need to download youtube clip as .mp3 file. However When I try to download audio format of a youtube clip, it appears that both .m4a and .mp3 get saved into the folder.

Where have I gone wrong.(command in windows cmd)

youtube-dl -x --audio-format mp3 --dateafter 20140909 -ciw ytuser:Lankanhotvideos

@phihag
Copy link
Contributor

@phihag phihag commented Sep 12, 2014

YouTube does not offer mp3 file formats. Therefore, we download the m4a files, and convert them to mp3, and delete the originals afterwards. So it should be normal that one m4a file is present temporarily. Can you post the output when you run youtube-dl with the -v option, and the output of dir afterwards?

By the way, why are you passing in -ciw? That looks suspect at the least. -i may be a good idea, but -c and -w should rarely be passed at all unless you are debugging something.

@Rush2088
Copy link
Author

@Rush2088 Rush2088 commented Sep 14, 2014

Fixed it. instead of using the parameter "ytuser", I used the full url of the playlist

@Rush2088 Rush2088 closed this Sep 14, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Sep 14, 2014

Can you elaborate on what was wrong? ytuser:foobar and http://youtube.com/user/foobar/videos should be interchangeable. If they're not, that would be a serious bug.

@Rush2088
Copy link
Author

@Rush2088 Rush2088 commented Sep 15, 2014

sorry, on my original post I have made a typo. In the terminal I have included additional parameter k.
but in the post I haven't indicated of the usage of k parameter.

Therefore I can now confirm that, following commands works as expected.
ie download m4a-> convert to mp3 > delete original m4a
youtube-dl -x --audio-format mp3 --dateafter 20140909 -ciw ytuser:Lankanhotvideos

@Rush2088 Rush2088 reopened this Sep 15, 2014
@Rush2088 Rush2088 closed this Sep 15, 2014
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
2 participants
You can’t perform that action at this time.