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

Encoding UTF-8 ? #2924

Closed
Soroid opened this issue May 16, 2014 · 10 comments
Closed

Encoding UTF-8 ? #2924

Soroid opened this issue May 16, 2014 · 10 comments

Comments

@Soroid
Copy link

@Soroid Soroid commented May 16, 2014

I'm having an issue downloading this video.
https://www.youtube.com/watch?v=FossRRU9Ppw
It would appear that the error occurs because of the the weird symbols this youtube channel uses on every video.

Here's a picture of the error
http://gyazo.com/6e36eb251981f942241422d7d7330037

Here's a thread that already has a lot of info on my issue. (I posted on ffmpeg first)
http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=1967&sid=33c585e2fbaf8c483a3d1db42e785ff3

\\\
The proposed solution was
youtube-dl -f 17 --add-metadata --encoding utf-8 FossRRU9Ppw

However, even though that worked for the other person. This did not work for me. But when i look at youtube-dl documentation i don't see this
" --encoding utf-8"
option at all...

@phihag
Copy link
Contributor

@phihag phihag commented May 16, 2014

Thank you for the report. I can reproduce the error with youtube-dl -f 17 --add-metadata --id -x FossRRU9Ppw.

@phihag phihag closed this in f07b74f May 16, 2014
@phihag
Copy link
Contributor

@phihag phihag commented May 16, 2014

This should be fixed in youtube-dl 2014.05.16.1. Type youtube-dl -U to update. Again, thanks for reporting this issue!

@Soroid
Copy link
Author

@Soroid Soroid commented May 16, 2014

http://gyazo.com/76a7a2ffdb5a4225c71403fe5988b114 nope still happening

What version of python are you using?

@phihag
Copy link
Contributor

@phihag phihag commented May 16, 2014

Can you post the output you get when you add -v to the command line? I've tested with Python 2.7.

@phihag phihag reopened this May 16, 2014
@phihag
Copy link
Contributor

@phihag phihag commented May 16, 2014

Works fine with the current exe for me as well. We'll need the verbose (-v) output to be able to reproduce this issue.

@Soroid
Copy link
Author

@Soroid Soroid commented May 18, 2014

[code]
C:\youtube-dl>youtube-dl -f 17 --add-metadata --id -x FossRRU9Ppw -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-f', '17', '--add-metadata', '--id', '-x', 'FossRRU
9Ppw', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.05.13
[debug] Python version 2.7.5 - Windows-8-6.2.9200
[debug] Proxy map: {}
[youtube] Setting language
[youtube] FossRRU9Ppw: Downloading webpage
[youtube] FossRRU9Ppw: Downloading video info webpage
[youtube] FossRRU9Ppw: Extracting video information
[download] FossRRU9Ppw.3gp has already been downloaded
[ffmpeg] Adding metadata to 'FossRRU9Ppw.3gp'
[debug] ffmpeg command line: ffmpeg -y -i FossRRU9Ppw.3gp -c copy -metadata arti
st=xKitoMusic -metadata 'title=【Trap】Jhene Aiko - Comfort Inn (Eliminate Remix)
[Free Download]' FossRRU9Ppw.temp.3gp
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 849, in main
File "youtube_dl__init__.pyo", line 839, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1039, in download
File "youtube_dl\YoutubeDL.pyo", line 527, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 564, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 819, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1021, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1073, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 476, 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 8
2: ordinal not in range(128)

C:\youtube-dl>
[/code]

Sorry for the delay, this week was a busy one for me

I'm using python 2.7.6

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 18, 2014

You are running an outdated version, it should be fixed in 2014.05.16.1 or newer. Run youtube-dl -U to update.

@phihag
Copy link
Contributor

@phihag phihag commented May 19, 2014

As @jaimeMF, you need to update youtube-dl to a newer version since the fix for this problem has only been integrated into a newer version.

@phihag phihag closed this May 19, 2014
@Soroid
Copy link
Author

@Soroid Soroid commented May 22, 2014

The problem ensues in a different form now.

C:\youtube-dl>youtube-dl "https://www.youtube.com/watch?v=_qNxNIzVAXo" -f best -
x --no-mtime --add-metadata -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=_qNxNIzVAXo', '-f',
'best', '-x', '--no-mtime', '--add-metadata', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.05.19
[debug] Python version 2.7.5 - Windows-8-6.2.9200
[debug] Proxy map: {}
[youtube] Setting language
[youtube] _qNxNIzVAXo: Downloading webpage
[youtube] _qNxNIzVAXo: Downloading video info webpage
[youtube] _qNxNIzVAXo: Extracting video information
[download] 【Drum&Bass】BMotion ft. Jon Lilygreen - All My Love-_qNxNIzVAXo.mp4 ha
s already been downloaded
[ffmpeg] Adding metadata to '【Drum&Bass】BMotion ft. Jon Lilygreen - All My Love-
_qNxNIzVAXo.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'Drum&BassBMotion ft. Jon Lilygreen -
All My Love-_qNxNIzVAXo.mp4' -c copy -metadata date=20140520 -metadata 'artist=x
Kito Music' -metadata 'title=Drum&BassBMotion ft. Jon Lilygreen - All My Love' '
Drum&BassBMotion ft. Jon Lilygreen - All My Love-_qNxNIzVAXo.temp.mp4'
ERROR: Drum&BassBMotion ft. Jon Lilygreen - All My Love-_qNxNIzVAXo.mp4: No such
file or directory
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 1073, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 477, in run
File "youtube_dl\postprocessor\ffmpeg.pyo", line 65, in run_ffmpeg
File "youtube_dl\postprocessor\ffmpeg.pyo", line 62, in run_ffmpeg_multiple_fi
les
FFmpegPostProcessorError

C:\youtube-dl>

@rmunn
Copy link

@rmunn rmunn commented Jun 4, 2014

I can confirm that the problem appears to be Windows-specific; running youtube-dl "https://www.youtube.com/watch?v=_qNxNIzVAXo" -f best -x --no-mtime --add-metadata -v worked just fine for me on Linux Mint 17 (using both the version of youtube-dl included in Linux Mint 17, version 2014.02.17, and also the latest available at this time, version 2014.06.02).

Also, when running this command on Linux, it did not strip the 【 and 】 characters as it appears to have done on Windows.

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
4 participants
You can’t perform that action at this time.