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

Issue with --extract-audio and -o "%(title)s.%(ext)s" #2550

Closed
disgruntleduser opened this issue Mar 12, 2014 · 2 comments
Closed

Issue with --extract-audio and -o "%(title)s.%(ext)s" #2550

disgruntleduser opened this issue Mar 12, 2014 · 2 comments

Comments

@disgruntleduser
Copy link

@disgruntleduser disgruntleduser commented Mar 12, 2014

I'm trying to extract audio in a different format (title only), and it's coming up with this error:

"Cannot download a video and extract audio into the same file! Use "(ext)s.%(ext)s" instead of "(ext)s" as the output template.

http://prntscr.com/301jjn

I'm using this on Windows 7 64 bit.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 12, 2014

I think that in windows you have to escape the % (write %% instead), if that fails please paste (as text) the output you get when running the command with the --verbose option, like youtube-dl "http://www.youtube.com/watch?v=UxxajLWwzqY" --extract-audio -o "%(title)s.%(ext)s" --verbose:

youtube-dl "http://www.youtube.com/watch?v=UxxajLWwzqY" --extract-audio -o "%(title)s.%(ext)s" --verbose
[debug] System config: []
[debug] User config: ['--keep-video', '--write-info-json', '--write-thumbnail', '--verbose']
[debug] Command-line args: ['http://www.youtube.com/watch?v=UxxajLWwzqY', '--extract-audio', '-o', '%(title)s.%(ext)s', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.03.11
[debug] Git HEAD: 34ca5d9
[debug] Python version 3.3.5 - Darwin-13.1.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] UxxajLWwzqY: Downloading webpage
[youtube] UxxajLWwzqY: Downloading video info webpage
[youtube] UxxajLWwzqY: Extracting video information
[youtube] UxxajLWwzqY: Encrypted signatures detected.
[youtube] encrypted signature length 84 (40.43), itag 22, html5 player ima-en_US-vflYhChiG
[youtube] UxxajLWwzqY: Downloading js player vflYhChiG
...
@disgruntleduser
Copy link
Author

@disgruntleduser disgruntleduser commented Mar 13, 2014

That fix worked! Thank you!

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.