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

Crash when trying to extract audio #5349

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

Crash when trying to extract audio #5349

jftuga opened this issue Apr 3, 2015 · 2 comments
Labels
bug

Comments

@jftuga
Copy link

@jftuga jftuga commented Apr 3, 2015

I am using the Windows youtube-dl.exe 2015.04.03 from the web site.

If I run:
youtube-dl.exe --extract-audio --audio-format mp3 -k "https://www.youtube.com/watch?v=AN_iBKvR3fY"

The .mp4 is saved to the hard drive, but then I get this error:

[youtube] AN_iBKvR3fY: Downloading webpage
[youtube] AN_iBKvR3fY: Extracting video information
[youtube] AN_iBKvR3fY: Downloading DASH manifest
[download] Destination: Carol Kaye - Burning Spear-AN_iBKvR3fY.mp4
[download] 100% of 2.30MiB in 00:00
Traceback (most recent call last):
File "main.py", line 19, in
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 708, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 1150, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1429, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1487, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 208, in run
File "youtube_dl\postprocessor\ffmpeg.pyo", line 171, in get_audio_codec
File "youtube_dl\postprocessor\ffmpeg.pyo", line 121, in probe_executable
KeyError: None

I downloaded the youtube-dl python source and then ran:
main.py --extract-audio --audio-format mp3 -k "https://www.youtube.com/watch?v=AN_iBKvR3fY"

I now see this error:

[youtube] AN_iBKvR3fY: Downloading webpage
[youtube] AN_iBKvR3fY: Extracting video information
[youtube] AN_iBKvR3fY: Downloading DASH manifest
[download] Destination: Carol Kaye - Burning Spear-AN_iBKvR3fY.mp4
[download] 100% of 2.30MiB in 00:00
Traceback (most recent call last):
File "E:\mp3\python__main__.py", line 19, in
youtube_dl.main()
File "E:\mp3\python\youtube_dl__init__.py", line 408, in main
real_main(argv)
File "E:\mp3\python\youtube_dl__init
_.py", line 398, in _real_main
retcode = ydl.download(all_urls)
File "E:\mp3\python\youtube_dl\YoutubeDL.py", line 1446, in download
res = self.extract_info(url)
File "E:\mp3\python\youtube_dl\YoutubeDL.py", line 662, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "E:\mp3\python\youtube_dl\YoutubeDL.py", line 708, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "E:\mp3\python\youtube_dl\YoutubeDL.py", line 1150, in process_video_result
self.process_info(new_info)
File "E:\mp3\python\youtube_dl\YoutubeDL.py", line 1429, in process_info
self.post_process(filename, info_dict)
File "E:\mp3\python\youtube_dl\YoutubeDL.py", line 1487, in post_process
keep_video_wish, info = pp.run(info)
File "E:\mp3\python\youtube_dl\postprocessor\ffmpeg.py", line 208, in run
filecodec = self.get_audio_codec(path)
File "E:\mp3\python\youtube_dl\postprocessor\ffmpeg.py", line 171, in get_audio_codec
if not self.probe_executable:
File "E:\mp3\python\youtube_dl\postprocessor\ffmpeg.py", line 121, in probe_executable
return self._paths[self.probe_basename]
KeyError: None

How can I fix this?

Thanks,
-John

@jftuga
Copy link
Author

@jftuga jftuga commented Apr 3, 2015

ffmpeg was not installed.
It would be nice if the program reported this problem instead of crashing.
After I installed ffmpeg, everything worked as expected.

@jaimeMF jaimeMF added the bug label Apr 3, 2015
@jaimeMF jaimeMF closed this in 3da4b31 Apr 3, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Apr 3, 2015

Thanks for the report, the bug will be fixed in the next version and it will suggest installing the program.

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.