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

-x option fails to convert to audio file without specifying --audio-format #2506

Closed
JaKXz opened this issue Mar 4, 2014 · 4 comments
Closed

-x option fails to convert to audio file without specifying --audio-format #2506

JaKXz opened this issue Mar 4, 2014 · 4 comments

Comments

@JaKXz
Copy link

@JaKXz JaKXz commented Mar 4, 2014

After reading the documentation, I assumed that I could simply pass the -x option and youtube-dl would figure out that I want the best quality and best format for the video (song) I'm downloading. However, passing the --audio-format [mp3] argument is required so that the following error does not occur:

[youtube] Post-process file videoname-<videocode>.m4a exists, skipping

What I think is happening is the -x flag is changing the video format to an audio format before finishing the download and the post-processing can take place.

@JakobOvrum
Copy link

@JakobOvrum JakobOvrum commented Aug 2, 2014

I'm experiencing this as well. This didn't happen to me before (a year ago or so?), but I don't know exactly when the change was introduced. It may also have been caused by a change in my ffmpeg environment, I don't know.

@shreve
Copy link

@shreve shreve commented Oct 3, 2014

I'm getting this too. It's only when I want the best quality, though, because that's the file that's already downloaded. I still encounter the error if I explicitly specify --audio-format best. I'm using the latest youtube-dl and ffmpeg available through homebrew.
I'm pretty sure it has something to do with this.
I'm not familiar with this project or python, so I'm not sure how to fix it.

phihag added a commit that referenced this issue Jan 23, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Jan 23, 2015

YouTube serves m4a files with a very weird header that only some players can read. youtube-dl 2015.01.23.4 and newer will automatically correct the header of the m4a file if ffmpeg is present on the system. I am therefore closing this issue. See our FAQ if you need help updating. Thank you for the report!

@phihag phihag closed this Jan 23, 2015
@shreve
Copy link

@shreve shreve commented Jan 24, 2015

It works! Thanks, @phihag, you're my hero!

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
4 participants
You can’t perform that action at this time.