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

TypeError: execv() arg 2 must contain only strings #2650

Closed
Nothing4You opened this issue Mar 29, 2014 · 1 comment
Closed

TypeError: execv() arg 2 must contain only strings #2650

Nothing4You opened this issue Mar 29, 2014 · 1 comment

Comments

@Nothing4You
Copy link

@Nothing4You Nothing4You commented Mar 29, 2014

youtube-dl was installed as binary from yt-dl.org.
youtube-dl -v -f 22/45/35/44/18/34/43/6/5/36/17/13 -x --audio-format mp3 --audio-quality 0 -k --add-metadata VZ0I0IsZEm0

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', '22/45/35/44/18/34/43/6/5/36/17/13', '-x', '--audio-format', 'mp3', '--audio-quality', '0', '-k', '--add-metadata', 'VZ0I0IsZEm0']
[debug] Encodings: locale 'ANSI_X3.4-1968', fs 'ANSI_X3.4-1968', out 'ANSI_X3.4-1968', pref: 'ANSI_X3.4-1968'
[debug] youtube-dl version 2014.03.29
[debug] Python version 2.7.3 - Linux-2.6.32-openvz-042stab083.2-amd64-x86_64-with-debian-7.4
[debug] Proxy map: {}
[youtube] Setting language
[youtube] VZ0I0IsZEm0: Downloading webpage
[youtube] VZ0I0IsZEm0: Downloading video info webpage
[youtube] VZ0I0IsZEm0: Extracting video information
[download] Destination: The Braindrillerz @ Frenchcore s'il vous plat part 3-VZ0I0IsZEm0.mp4
[download] 100% of 5.95MiB in 00:00
[ffmpeg] Adding metadata to 'The Braindrillerz @ Frenchcore s'il vous plat part 3-VZ0I0IsZEm0.mp4'
[debug] ffmpeg command line: avconv -y -i 'The Braindrillerz @ Frenchcore s'"'"'il vous plat part 3-VZ0I0IsZEm0.mp4' -c copy -metadata date=20130309 -metadata artist=UNDERGROUND4EVER -metadata 'title=The Braindrillerz @ Frenchcore s'"'"'il vous plat part 3' 'The Braindrillerz @ Frenchcore s'"'"'il vous plat part 3-VZ0I0IsZEm0.temp.mp4'
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 833, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 823, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1023, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 520, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 557, in process_ie_result
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 804, in process_video_result
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1006, in process_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1057, in post_process
  File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 472, in run
  File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 64, in run_ffmpeg
  File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 56, in run_ffmpeg_multiple_files
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
TypeError: execv() arg 2 must contain only strings
@phihag
Copy link
Contributor

@phihag phihag commented Mar 30, 2014

Thank you for the report. The immediate problem has been fixed in youtube-dl 2014.03.30. Type sudo youtube-dl -U to update.

However, I believe embedding metadata will still fail, since the encoding you have configured (ANSI_X3.4-1968,, aka ASCII) does not support French characters. Either fix your platform's locale settings or use the new --encoding option. I'd use a configuration file for that.

@phihag phihag closed this in 62fec3b Mar 30, 2014
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.