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

problem when converting videos with special characters in title to mp3 #4668

Closed
moloz opened this issue Jan 9, 2015 · 1 comment
Closed

problem when converting videos with special characters in title to mp3 #4668

moloz opened this issue Jan 9, 2015 · 1 comment

Comments

@moloz
Copy link

@moloz moloz commented Jan 9, 2015

Hi,

I was trying to download and convert the video at this URL here (hXXps://www.youtube.com/watch?v=Y9o7ILCPSFU) with the following command:

youtube-dl.exe --extract-audio --audio-format mp3 hXXps://www.youtube.com/watch?v=Y9o7ILCPSFU

It kept failing with the following error:

[youtube] Y9o7ILCPSFU: Downloading webpage
[youtube] Y9o7ILCPSFU: Extracting video information
[youtube] Y9o7ILCPSFU: Downloading DASH manifest
[download] Destination: Trentemøller - Miss You (Mahmut Orhan Remix)-Y9o7ILCPSFU
.m4a
[download] 100% of 8.28MiB in 00:36
Traceback (most recent call last):
File "main.py", line 19, in
File "youtube_dl__init__.pyo", line 355, in main
File "youtube_dl__init__.pyo", line 345, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1121, in download
File "youtube_dl\YoutubeDL.pyo", line 564, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 610, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 897, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1103, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1158, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 156, in run
File "youtube_dl\postprocessor\ffmpeg.pyo", line 128, in get_audio_codec
File "subprocess.pyo", line 710, in init
File "subprocess.pyo", line 913, in _execute_child
File "subprocess.pyo", line 644, in list2cmdline
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf8 in position 0: ordinal
not in range(128)

Not an expert with this stuff, but my guess is it fails due to the "ø" character in the title. I don't know if it's intended or a bug but just thought giving you guys a heads up. I guess it affects also videos with other special characters in title.

Cheers!

@moloz moloz changed the title problem when converting videos with special characters to mp3 problem when converting videos with special characters in title to mp3 Jan 9, 2015
phihag added a commit that referenced this issue Jan 9, 2015
On Python 2.x on Windows, if there are any unicode arguments in the command argument list, the whole list is converted to unicode internally.
Therefore, we need to call encodeArgument on every argument.

Fixes #4337 and #4668.
@phihag
Copy link
Contributor

@phihag phihag commented Jan 9, 2015

Thank you for the report! I believe this issue to be fixed in youtube-dl 2015.01.09 and newer. See our FAQ if you need help updating.

@phihag phihag closed this Jan 9, 2015
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.