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

Save mp3 file from youtube with hebrew charcter #740

Closed
yonarad opened this issue Mar 11, 2013 · 12 comments
Closed

Save mp3 file from youtube with hebrew charcter #740

yonarad opened this issue Mar 11, 2013 · 12 comments

Comments

@yonarad
Copy link

@yonarad yonarad commented Mar 11, 2013

Hi,

I want to save MP3s from youtube with the title of the song in hebrew.
when I want only download video, i success, but when i want to extract audio, I getting error.
Can you help me?
Thanks

The command:
youtube-dl -t -x --audio-format mp3 http://www.youtube.com/watch?v=OIYeCPUIL1E

The error:
Traceback (most recent call last):
File "main.py", line 17, in
File "youtube_dl__init__.pyo", line 516, in main
File "youtube_dl__init__.pyo", line 500, in _real_main
File "youtube_dl\FileDownloader.pyo", line 525, in download
File "youtube_dl\FileDownloader.pyo", line 480, in process_info
File "youtube_dl\FileDownloader.pyo", line 544, in post_process
File "youtube_dl\PostProcessor.pyo", line 140, in run
File "youtube_dl\PostProcessor.pyo", line 110, in get_audio_codec
File "subprocess.pyo", line 679, in init
File "subprocess.pyo", line 896, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode characters in position 23-26: ordinal not in range(128)

@phihag
Copy link
Contributor

@phihag phihag commented Mar 11, 2013

Sorry for the problem, but I'm unfortunately unable to reproduce it. In order to diagnose, the problem, can you post the output of

sudo youtube-dl -U
youtube-dl --verbose  -t -x --audio-format mp3 http://www.youtube.com/watch?v=OIYeCPUIL1E

Thanks!

@yonarad
Copy link
Author

@yonarad yonarad commented Mar 12, 2013

thanks...
again, if i want only save the video file with the title in hebrew, i can do it, but if i add -x to extract audio, he is dump traceback...

the first line returns:
'sudo' is not recognized as an internal or external command,
operable program or batch file.

The second line returns:
[debug] youtube-dl version 2013.02.25
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] OIYeCPUIL1E: Downloading video webpage
[youtube] OIYeCPUIL1E: Downloading video info webpage
[youtube] OIYeCPUIL1E: Extracting video information
[download] Destination: ∞Σ≈· Σ≡τ'∞ - Θ∙≡∩ ß≡σσ· (≈∞Θ⌠)-OIYeCPUIL1E.flv
[download] 100.0% of 8.88M at 90.69k/s ETA 00:00
Traceback (most recent call last):
File "main.py", line 17, in
File "youtube_dl__init__.pyo", line 516, in main
File "youtube_dl__init__.pyo", line 500, in _real_main
File "youtube_dl\FileDownloader.pyo", line 525, in download
File "youtube_dl\FileDownloader.pyo", line 480, in process_info
File "youtube_dl\FileDownloader.pyo", line 544, in post_process
File "youtube_dl\PostProcessor.pyo", line 140, in run
File "youtube_dl\PostProcessor.pyo", line 110, in get_audio_codec
File "subprocess.pyo", line 679, in init
File "subprocess.pyo", line 896, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode characters in position 23-26: ord
inal not in range(128)

@phihag
Copy link
Contributor

@phihag phihag commented Mar 12, 2013

[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
Thanks for the report, I'll test it on Windows.

@yonarad
Copy link
Author

@yonarad yonarad commented Mar 12, 2013

Thanks very much.

On Tue, Mar 12, 2013 at 9:43 AM, Philipp Hagemeister <
notifications@github.com> wrote:

[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
Thanks for the report, I'll test it on Windows.


Reply to this email directly or view it on GitHubhttps://github.com//issues/740#issuecomment-14762402
.

@yonarad
Copy link
Author

@yonarad yonarad commented Mar 22, 2013

Hi,
Do you tested it in windows?
Can you help me?
Thanks very much.
Yehonatan

On Tue, Mar 12, 2013 at 9:43 AM, Philipp Hagemeister <
notifications@github.com> wrote:

[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
Thanks for the report, I'll test it on Windows.


Reply to this email directly or view it on GitHubhttps://github.com//issues/740#issuecomment-14762402
.

@yasoob
Copy link
Contributor

@yasoob yasoob commented Jul 3, 2013

can you run the same command with --restrict-filenames and then again post the output if it fails ?

@yonarad
Copy link
Author

@yonarad yonarad commented Jul 7, 2013

This is the output:

C:\Users\yarad>youtube-dl --verbose -t -x --audio-format mp3
http://www.youtube
.com/watch?v=OIYeCPUIL1E --restrict-filenames

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-t', '-x', '--audio-format',
'mp3', 'h
ttp://www.youtube.com/watch?v=OIYeCPUIL1E', '--restrict-filenames']
[debug] youtube-dl version 2013.05.07
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] OIYeCPUIL1E: Downloading video webpage
[youtube] OIYeCPUIL1E: Downloading video info webpage
[youtube] OIYeCPUIL1E: Extracting video information
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 599, in main
File "youtube_dl__init__.pyo", line 583, in _real_main
File "youtube_dl\FileDownloader.pyo", line 706, in download
File "youtube_dl\FileDownloader.pyo", line 460, in extract_info
File "youtube_dl\InfoExtractors.pyo", line 96, in extract
File "youtube_dl\InfoExtractors.pyo", line 616, in _real_extract
File "youtube_dl\InfoExtractors.pyo", line 616, in
KeyError: 'sig'

On Wed, Jul 3, 2013 at 10:09 PM, M.Yasoob Ullah Khalid <
notifications@github.com> wrote:

can you run the same command with --restrict-filenames and then again
post the output if it fails ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/740#issuecomment-20438380
.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 7, 2013

@yonarad Update to the new version of youtube-dl with youtube-dl -U and try again

@yonarad
Copy link
Author

@yonarad yonarad commented Jul 7, 2013

with --restrict-filenames it's working, but without this option- not
working...
so, I can't download this with the real name of the song?

On Sun, Jul 7, 2013 at 12:15 PM, Jaime Marquínez Ferrándiz <
notifications@github.com> wrote:

@yonarad https://github.com/yonarad Update to the new version of
youtube-dl with youtube-dl -U and try again


Reply to this email directly or view it on GitHubhttps://github.com//issues/740#issuecomment-20568031
.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 15, 2013

I have tested this in windows and the problem is in the audio extraction, when it invokes ffmpeg, there are other issue exactly like this (just with chinese characters): #332

@wildeyes
Copy link

@wildeyes wildeyes commented Jun 10, 2016

This should be closed as wont-fix.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 12, 2016

Works fine with latest version.

@dstftw dstftw closed this Jun 12, 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
6 participants
You can’t perform that action at this time.