I'm having this problem with unicodeencode #1892

Closed
opened 2026-02-20 22:18:59 -05:00 by deekerman · 3 comments
Owner

Originally created by @Soroid on GitHub (Feb 12, 2014).

Exact input is:
cd C:\youtube-dl

youtube-dl --add-metadata "http://www.youtube.com/watch?v=I87r-v9UmJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz"

Youtube-dl Version is
2014.02.10

Python version is:
Python 3.3.2

This is the error i get
\\\\\\\\\

C:\youtube-dl>youtube-dl --add-metadata "http://www.youtube.com/watch?v=I87r-v9U
mJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz"
[youtube:playlist] Downloading playlist PLPLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8 - a
dd --no-playlist to just download video I87r-v9UmJE
[youtube:playlist] PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8: Downloading page #1
[download] Downloading playlist: asddddd
[youtube:playlist] playlist asddddd: Collected 31 video ids (downloading 31 of t
hem)
[download] Downloading video #1 of 31
[youtube] Setting language
[youtube] I87r-v9UmJE: Downloading webpage
[youtube] I87r-v9UmJE: Downloading video info webpage
[youtube] I87r-v9UmJE: Extracting video information
[download] TrapPegboard Nerds x Misterwives - Coffins [Free Download]-I87r-v9UmJ
E.mp4 has already been downloaded
[ffmpeg] Adding metadata to 'TrapPegboard Nerds x Misterwives - Coffins [Free Do
wnload]-I87r-v9UmJE.mp4'
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 800, in main
File "youtube_dl__init__.pyo", line 790, 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 620, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 546, in process_ie_result
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 965, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1016, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 472, in run
File "youtube_dl\postprocessor\ffmpeg.pyo", line 64, in run_ffmpeg
File "youtube_dl\postprocessor\ffmpeg.pyo", line 56, in run_ffmpeg_multiple_fi
les
File "subprocess.pyo", line 711, in init
File "subprocess.pyo", line 948, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\u3010' in position 1
70: ordinal not in range(128)

///////////////////////////////////////////

Originally created by @Soroid on GitHub (Feb 12, 2014). Exact input is: cd C:\youtube-dl youtube-dl --add-metadata "http://www.youtube.com/watch?v=I87r-v9UmJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz" Youtube-dl Version is 2014.02.10 Python version is: Python 3.3.2 This is the error i get \\\\\\\\\\\\\\\\\\ C:\youtube-dl>youtube-dl --add-metadata "http://www.youtube.com/watch?v=I87r-v9U mJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz" [youtube:playlist] Downloading playlist PLPLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8 - a dd --no-playlist to just download video I87r-v9UmJE [youtube:playlist] PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8: Downloading page #1 [download] Downloading playlist: asddddd [youtube:playlist] playlist asddddd: Collected 31 video ids (downloading 31 of t hem) [download] Downloading video #1 of 31 [youtube] Setting language [youtube] I87r-v9UmJE: Downloading webpage [youtube] I87r-v9UmJE: Downloading video info webpage [youtube] I87r-v9UmJE: Extracting video information [download] TrapPegboard Nerds x Misterwives - Coffins [Free Download]-I87r-v9UmJ E.mp4 has already been downloaded [ffmpeg] Adding metadata to 'TrapPegboard Nerds x Misterwives - Coffins [Free Do wnload]-I87r-v9UmJE.mp4' Traceback (most recent call last): File "**main**.py", line 18, in <module> File "youtube_dl__init__.pyo", line 800, in main File "youtube_dl__init__.pyo", line 790, 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 620, in process_ie_result File "youtube_dl\YoutubeDL.pyo", line 546, in process_ie_result 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 965, in process_info File "youtube_dl\YoutubeDL.pyo", line 1016, in post_process File "youtube_dl\postprocessor\ffmpeg.pyo", line 472, in run File "youtube_dl\postprocessor\ffmpeg.pyo", line 64, in run_ffmpeg File "youtube_dl\postprocessor\ffmpeg.pyo", line 56, in run_ffmpeg_multiple_fi les File "subprocess.pyo", line 711, in __init__ File "subprocess.pyo", line 948, in _execute_child UnicodeEncodeError: 'ascii' codec can't encode character u'\u3010' in position 1 70: ordinal not in range(128) ///////////////////////////////////////////
Author
Owner

@jaimeMF commented on GitHub (Feb 12, 2014):

Could you please run it adding the --verbose option and paste the output?

@jaimeMF commented on GitHub (Feb 12, 2014): Could you please run it adding the `--verbose` option and paste the output?
Author
Owner

@Soroid commented on GitHub (Feb 12, 2014):

C:\youtube-dl>youtube-dl --add-metadata --verbose "http://www.youtube.com/watch?
v=I87r-v9UmJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--add-metadata', '--verbose', 'http://www.youtube.c
om/watch?v=I87r-v9UmJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz']

[debug] Encodings: locale 'cp1252', fs 'mbcs', out 'cp850', pref: 'cp1252'
[debug] youtube-dl version 2014.02.10
[debug] Python version 2.7.5 - Windows-8-6.2.9200
[debug] Proxy map: {}
[youtube:playlist] Downloading playlist PLPLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8 - a
dd --no-playlist to just download video I87r-v9UmJE
[youtube:playlist] PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8: Downloading page #1
[download] Downloading playlist: asddddd
[youtube:playlist] playlist asddddd: Collected 31 video ids (downloading 31 of t
hem)
[download] Downloading video #1 of 31
[youtube] Setting language
[youtube] I87r-v9UmJE: Downloading webpage
[youtube] I87r-v9UmJE: Downloading video info webpage
[youtube] I87r-v9UmJE: Extracting video information
[download] TrapPegboard Nerds x Misterwives - Coffins [Free Download]-I87r-v9UmJ
E.mp4 has already been downloaded
[ffmpeg] Adding metadata to 'TrapPegboard Nerds x Misterwives - Coffins [Free Do
wnload]-I87r-v9UmJE.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'TrapPegboard Nerds x Misterwives - Co
ffins [Free Download]-I87r-v9UmJE.mp4' -c copy -metadata date=20140210 -metadata
'artist=xKito Music' -metadata 'title=TrapPegboard Nerds x Misterwives - Coffin
s [Free Download]' 'TrapPegboard Nerds x Misterwives - Coffins [Free Download]-I
87r-v9UmJE.temp.mp4'
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 800, in main
File "youtube_dl__init__.pyo", line 790, 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 620, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 546, in process_ie_result
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 965, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1016, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 472, in run
File "youtube_dl\postprocessor\ffmpeg.pyo", line 64, in run_ffmpeg
File "youtube_dl\postprocessor\ffmpeg.pyo", line 56, in run_ffmpeg_multiple_fi
les
File "subprocess.pyo", line 711, in init
File "subprocess.pyo", line 948, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\u3010' in position 1
70: ordinal not in range(128)

@Soroid commented on GitHub (Feb 12, 2014): C:\youtube-dl>youtube-dl --add-metadata --verbose "http://www.youtube.com/watch? v=I87r-v9UmJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz" [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--add-metadata', '--verbose', 'http://www.youtube.c om/watch?v=I87r-v9UmJE&list=PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8&feature=mh_lolz'] [debug] Encodings: locale 'cp1252', fs 'mbcs', out 'cp850', pref: 'cp1252' [debug] youtube-dl version 2014.02.10 [debug] Python version 2.7.5 - Windows-8-6.2.9200 [debug] Proxy map: {} [youtube:playlist] Downloading playlist PLPLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8 - a dd --no-playlist to just download video I87r-v9UmJE [youtube:playlist] PLK2Cy91Ga3S_2nOh8Uvt5fqV-EqoZjgP8: Downloading page #1 [download] Downloading playlist: asddddd [youtube:playlist] playlist asddddd: Collected 31 video ids (downloading 31 of t hem) [download] Downloading video #1 of 31 [youtube] Setting language [youtube] I87r-v9UmJE: Downloading webpage [youtube] I87r-v9UmJE: Downloading video info webpage [youtube] I87r-v9UmJE: Extracting video information [download] TrapPegboard Nerds x Misterwives - Coffins [Free Download]-I87r-v9UmJ E.mp4 has already been downloaded [ffmpeg] Adding metadata to 'TrapPegboard Nerds x Misterwives - Coffins [Free Do wnload]-I87r-v9UmJE.mp4' [debug] ffmpeg command line: ffmpeg -y -i 'TrapPegboard Nerds x Misterwives - Co ffins [Free Download]-I87r-v9UmJE.mp4' -c copy -metadata date=20140210 -metadata 'artist=xKito Music' -metadata 'title=TrapPegboard Nerds x Misterwives - Coffin s [Free Download]' 'TrapPegboard Nerds x Misterwives - Coffins [Free Download]-I 87r-v9UmJE.temp.mp4' Traceback (most recent call last): File "**main**.py", line 18, in <module> File "youtube_dl__init__.pyo", line 800, in main File "youtube_dl__init__.pyo", line 790, 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 620, in process_ie_result File "youtube_dl\YoutubeDL.pyo", line 546, in process_ie_result 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 965, in process_info File "youtube_dl\YoutubeDL.pyo", line 1016, in post_process File "youtube_dl\postprocessor\ffmpeg.pyo", line 472, in run File "youtube_dl\postprocessor\ffmpeg.pyo", line 64, in run_ffmpeg File "youtube_dl\postprocessor\ffmpeg.pyo", line 56, in run_ffmpeg_multiple_fi les File "subprocess.pyo", line 711, in __init__ File "subprocess.pyo", line 948, in _execute_child UnicodeEncodeError: 'ascii' codec can't encode character u'\u3010' in position 1 70: ordinal not in range(128)
Author
Owner

@phihag commented on GitHub (May 16, 2014):

Thank you for the report. This has been solved in 269aecd0c0 and should work fine now. (At least it does for me in youtube-dl 2014.05.16, on Windows).

@phihag commented on GitHub (May 16, 2014): Thank you for the report. This has been solved in 269aecd0c010de98fa8816d511f061e0768757f4 and should work fine now. (At least it does for me in youtube-dl 2014.05.16, on Windows).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#1892
No description provided.