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

Youtube: UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 21: ordinal not in range(128) #5356

Closed
mateon1 opened this issue Apr 3, 2015 · 2 comments

Comments

@mateon1
Copy link

@mateon1 mateon1 commented Apr 3, 2015

Hello, I tried using youtube-dl installed from chocolatey to download a playlist from Youtube.

I am constantly getting errors thrown while downloading. Impossible to leave the program on for a longer while as it crashes within an hour of starting.

Youtube-dl's version in this report is 2015-03-28, but I tried doing this again in the 2015-04-03. It continued the download on the first episode and finished, downloaded the second episode without error, and crashed while downloading the third, with the same error message at 6.1% into the file.

Logs included with a couple download retries, as well as ffmpeg --version, also installed from Chocolatey.
Sorry for the awful line wrapping, but the Windows console doesn't want to work well with longer lines of text.

youtube-dl "https://www.youtube.com/playlist?list=PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham" -o "D:\Youtube\%(uploader)s\%(upload_date)s %(title)s - %(id)s\%(title)s [%(forma
t)s].%(ext)s" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.youtube.com/playlist?list=PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham', u'-o', u'D:\\Youtube\\%(uploader)s\\%(upload_date)s %(title)s
- %(id)s\\%(title)s [%(format)s].%(ext)s', u'--verbose']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2015.03.28
[debug] Python version 2.7.8 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg 2.5.2, ffprobe 2.5.2
[debug] Proxy map: {}
[youtube:playlist] PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham: Downloading webpage
[download] Downloading playlist: Cities Skylines: Lets Play With Xisuma
[youtube:playlist] playlist Cities Skylines: Lets Play With Xisuma: Collected 32 video ids (downloading 32 of them)
[download] Downloading video 1 of 32
[youtube] p8SwN4L12m0: Downloading webpage
[youtube] p8SwN4L12m0: Extracting video information
[youtube] {22} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {43} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {18} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {5} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {36} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {17} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {298} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {302} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {135} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {244} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {134} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {243} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {133} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {242} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {160} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {140} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {171} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] p8SwN4L12m0: Downloading DASH manifest
[debug] Invoking downloader on u'https://r5---sn-5uh5o-f5fz.googlevideo.com/videoplayback?requiressl=yes&mime=video%2Fmp4&ip=89.239.97.69&ratebypass=yes&ipbits=0&spara
ms=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&id=o-AE1VFwjmpLvzEnTMT6t4cWSjwaXLXFbN
72jWzVLD3o1W&ms=au&gcr=pl&mv=m&dur=1226.849&key=yt5&sver=3&expire=1428092295&source=youtube&pl=20&fexp=900720%2C905652%2C907263%2C924637%2C934954%2C9407565%2C9407663%2
C9407758%2C9408102%2C9408192%2C947243%2C948124%2C948605%2C948703%2C951703%2C952612%2C952634%2C952635%2C957201%2C961404%2C961406%2C966201&upn=0PUoXLAewoc&initcwndbps=10
25000&itag=22&mm=31&mt=1428070594&signature=3555A4150B277760499F90348DC7426583B727D9.C2E5B435CF2CA4A9DDDD2830695C69EBA2909397'
[download] Destination: D:\Youtube\xisumavoid\20150303 Cities Skylines 01 Mayor Xisuma - p8SwN4L12m0\Cities Skylines 01 Mayor Xisuma [22 - 1280x720].mp4
[download]  17.1% of 213.91MiB at 46.31KiB/s ETA 01:05:21Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 408, in main
  File "youtube_dl\__init__.pyo", line 398, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1446, in download
  File "youtube_dl\YoutubeDL.pyo", line 662, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 821, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 715, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 662, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 708, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 1150, in process_video_result
  File "youtube_dl\YoutubeDL.pyo", line 1381, in process_info
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 21: ordinal not in range(128)

C:\Users\Mateusz>youtube-dl "https://www.youtube.com/playlist?list=PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham" -o "D:\Youtube\%(uploader)s\%(upload_date)s %(title)s - %(id)s\%
(title)s [%(format)s].%(ext)s" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.youtube.com/playlist?list=PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham', u'-o', u'D:\\Youtube\\%(uploader)s\\%(upload_date)s %(title)s
- %(id)s\\%(title)s [%(format)s].%(ext)s', u'--verbose']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2015.03.28
[debug] Python version 2.7.8 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg 2.5.2, ffprobe 2.5.2
[debug] Proxy map: {}
[youtube:playlist] PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham: Downloading webpage
[download] Downloading playlist: Cities Skylines: Lets Play With Xisuma
[youtube:playlist] playlist Cities Skylines: Lets Play With Xisuma: Collected 32 video ids (downloading 32 of them)
[download] Downloading video 1 of 32
[youtube] p8SwN4L12m0: Downloading webpage
[youtube] p8SwN4L12m0: Extracting video information
[youtube] {22} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {43} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {18} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {5} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {36} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {17} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {298} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {302} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {135} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {244} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {134} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {243} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {133} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {242} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {160} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {140} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {171} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] p8SwN4L12m0: Downloading DASH manifest
[debug] Invoking downloader on u'https://r5---sn-5uh5o-f5fz.googlevideo.com/videoplayback?initcwndbps=1056250&gcr=pl&upn=bRIZmCq46C4&source=youtube&sver=3&dur=1226.849
&ipbits=0&expire=1428093130&ratebypass=yes&requiressl=yes&ip=89.239.97.69&ms=au&mime=video%2Fmp4&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%
2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mv=m&mt=1428071434&pl=20&key=yt5&id=o-AACaaCZd-oERN2_38M9MVE2_qxedItWtl_-iEq0DqTdE&mm=31&itag=22&fexp=
900720%2C907263%2C934954%2C937407%2C9406089%2C9406921%2C9407751%2C9407873%2C9408101%2C947243%2C948124%2C948703%2C951703%2C952612%2C957201%2C961404%2C961406&signature=4
6F20AF7C3F6DAED68B3D60681E1D5BAACBF3496.18404837E8F76C046064A12C5D21B049B6ED5D6F'
[download] Resuming download at byte 38343073
[download] Destination: D:\Youtube\xisumavoid\20150303 Cities Skylines 01 Mayor Xisuma - p8SwN4L12m0\Cities Skylines 01 Mayor Xisuma [22 - 1280x720].mp4
[download]  29.7% of 213.91MiB at 243.36KiB/s ETA 10:32  Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 408, in main
  File "youtube_dl\__init__.pyo", line 398, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1446, in download
  File "youtube_dl\YoutubeDL.pyo", line 662, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 821, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 715, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 662, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 708, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 1150, in process_video_result
  File "youtube_dl\YoutubeDL.pyo", line 1381, in process_info
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 21: ordinal not in range(128)

C:\Users\Mateusz>youtube-dl "https://www.youtube.com/playlist?list=PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham" -o "D:\Youtube\%(uploader)s\%(upload_date)s %(title)s - %(id)s\%
(title)s [%(format)s].%(ext)s" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.youtube.com/playlist?list=PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham', u'-o', u'D:\\Youtube\\%(uploader)s\\%(upload_date)s %(title)s
- %(id)s\\%(title)s [%(format)s].%(ext)s', u'--verbose']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2015.03.28
[debug] Python version 2.7.8 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg 2.5.2, ffprobe 2.5.2
[debug] Proxy map: {}
[youtube:playlist] PL7VmhWGNRxKgwY_fiNKeleGxVlZOG6ham: Downloading webpage
[download] Downloading playlist: Cities Skylines: Lets Play With Xisuma
[youtube:playlist] playlist Cities Skylines: Lets Play With Xisuma: Collected 32 video ids (downloading 32 of them)
[download] Downloading video 1 of 32
[youtube] p8SwN4L12m0: Downloading webpage
[youtube] p8SwN4L12m0: Extracting video information
[youtube] {22} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {43} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {18} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {5} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {36} signature length 42.38, html5 player en_US-vfldudhuW
[youtube] p8SwN4L12m0: Downloading player https://s.ytimg.com/yts/jsbin/html5player-en_US-vfldudhuW/html5player.js
[youtube] {17} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {298} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {302} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {135} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {244} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {134} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {243} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {133} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {242} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {160} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {140} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] {171} signature length 42.40, html5 player en_US-vfldudhuW
[youtube] p8SwN4L12m0: Downloading DASH manifest
[debug] Invoking downloader on u'https://r5---sn-5uh5o-f5fz.googlevideo.com/videoplayback?sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2C
mv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&gcr=pl&mm=31&ip=89.239.97.69&ms=au&requiressl=yes&pl=20&itag=22&ratebypass=yes&mt=1428071936&dur=1226.849&sou
rce=youtube&mime=video%2Fmp4&id=o-AOhCN4bSBE0QoSEAoRUxzp3TjJo7iD2p7eDpX-SfO5Bw&initcwndbps=918750&ipbits=0&expire=1428093604&fexp=900720%2C902543%2C907263%2C934954%2C9
36118%2C9405627%2C9406795%2C9406923%2C9408093%2C9408101%2C9408260%2C9408344%2C947243%2C948124%2C948703%2C951703%2C952612%2C957201%2C961404%2C961406%2C966201&sver=3&upn
=xCuwXgcypis&key=yt5&mv=m&signature=AFBC7D6DE990F241FBC81D8247E0639AA5E1F94A.AB0A89029684FA0039590A117ED8A099CAE5D484'
[download] Resuming download at byte 66562353
[download] Destination: D:\Youtube\xisumavoid\20150303 Cities Skylines 01 Mayor Xisuma - p8SwN4L12m0\Cities Skylines 01 Mayor Xisuma [22 - 1280x720].mp4
[download]  93.8% of 213.91MiB at 74.50KiB/s ETA 03:02   Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 408, in main
  File "youtube_dl\__init__.pyo", line 398, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1446, in download
  File "youtube_dl\YoutubeDL.pyo", line 662, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 821, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 715, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 662, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 708, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 1150, in process_video_result
  File "youtube_dl\YoutubeDL.pyo", line 1381, in process_info
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 21: ordinal not in range(128)

C:\Users\Mateusz>
C:\Users\Mateusz>ffmpeg --version
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec 30 2014 17:18:09 with gcc 4.9.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --ena
ble-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-
libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-lib
opencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-l
ibtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-l
ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib

  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found

Oops, did --version instead of -version, but the output is basically the same, apart from the last two lines.

@mateon1
Copy link
Author

@mateon1 mateon1 commented Apr 8, 2015

I have more information on this issue. I believe this is caused by the internet cutting out, or just being unstable. Instead of stopping and retrying the download it crashes (with the same message). I might try to reproduce the bug again if that's needed when I have the time.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 31, 2016

This issue has been fixed quite some time ago.

@dstftw dstftw closed this Jan 31, 2016
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.