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

Accented character in output filename causes error #2452

Closed
mr-brunes opened this issue Feb 24, 2014 · 4 comments
Closed

Accented character in output filename causes error #2452

mr-brunes opened this issue Feb 24, 2014 · 4 comments

Comments

@mr-brunes
Copy link

@mr-brunes mr-brunes commented Feb 24, 2014

Hi

I've just started using youtube-dl on Windows 7 but ran into problems e.g.

E:\downloads>youtube-dl http://culturebox.francetvinfo.fr/sons-dhiver-20
14-pere-ubu-147937
[culturebox.francetvinfo.fr] sons-dhiver-2014-pere-ubu-147937: Downloading webpa
ge
[culturebox.francetvinfo.fr] EV_6886: Downloading XML config
[download] Destination: Sons d'hiver 2014 - PÞre Ubu-EV_6886.mp4
ERROR: m3u8 download detected but ffmpeg or avconv could not be found

So I then googled for ffmpeg and downloaded it from http://ffmpeg.zeranoe.com/builds/.
I copied the ffmpeg exe into the E:|downloads folder and ran youtube-dl again. It gets slightly further but still an error:

E:\downloads>youtube-dl http://culturebox.francetvinfo.fr/sons-dhiver-20
14-pere-ubu-147937
[culturebox.francetvinfo.fr] sons-dhiver-2014-pere-ubu-147937: Downloading webpa
ge
[culturebox.francetvinfo.fr] EV_6886: Downloading XML config
[download] Destination: Sons d'hiver 2014 - PÞre Ubu-EV_6886.mp4
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 805, in main
File "youtube_dl__init__.pyo", line 795, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 982, in download
File "youtube_dl\YoutubeDL.pyo", line 510, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 539, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 763, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 953, in process_info
File "youtube_dl\YoutubeDL.pyo", line 929, in dl
File "youtube_dl\downloader\common.pyo", line 290, in download
File "youtube_dl\downloader\hls.pyo", line 29, in real_download
File "subprocess.pyo", line 524, in call
File "subprocess.pyo", line 711, in init
File "subprocess.pyo", line 948, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 213
: ordinal not in range(128)

What now?

@mr-brunes
Copy link
Author

@mr-brunes mr-brunes commented Feb 24, 2014

FWIW youtube seems to download fine:

E:\downloads>youtube-dl http://www.youtube.com/watch?v=1hYqvtHzr48
[youtube] Setting language
[youtube] 1hYqvtHzr48: Downloading webpage
[youtube] 1hYqvtHzr48: Downloading video info webpage
[youtube] 1hYqvtHzr48: Extracting video information
[download] Destination: Pere Ubu, 'Breath'-1hYqvtHzr48.mp4
[download] 100% of 10.62MiB in 00:01

@mr-brunes
Copy link
Author

@mr-brunes mr-brunes commented Feb 24, 2014

OK I found the problem - it looks to be a character in the output filename (maybe the accented e in "Pere" which gets changed to "PÞre"). If I change that via:

E:\downloads>youtube-dl http://culturebox.francetvinfo.fr/sons-dhiver-2014-pere-ubu-147937 -o %(uploader)s

then it downloads fine.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 1, 2015

This will be fixed in the next version. Thanks for the report.

@dstftw dstftw closed this Feb 1, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Feb 2, 2015

I believe this issue to be fixed in youtube-dl 2015.02.02.2. See our FAQ if you need help updating.

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.