youtube-dl: ERROR: WARNING: unable to obtain file audio codec with ffprobe

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.06.12. If it’s not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I’ve verified and I assure that I’m running youtube-dl 2017.06.12

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [x ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v --extract-audio --audio-format mp3  --audio-quality  0 https://youtu.be/urge4dvw6gU
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--extract-audio', '--audio-format', 'mp3', '--audio-quality', '0', 'https://youtu.be/urge4dvw6gU']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.06.12
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-86482-gbc40674, ffprobe N-86482-gbc40674
[debug] Proxy map: {}
[youtube] urge4dvw6gU: Downloading webpage
[youtube] urge4dvw6gU: Downloading video info webpage
[youtube] urge4dvw6gU: Extracting video information
[youtube] urge4dvw6gU: Downloading MPD manifest
[debug] Invoking downloader on 'https://r5---sn-vgqs7nel.googlevideo.com/videoplayback?clen=57622640&itag=251&expire=1497599428&keepalive
99.253.229.71&initcwndbps=1440000&ipbits=0&mime=audio%2Fwebm&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeep
DE3D5D4.53C695FFDCB274049E504F756F307BF08A3B74B9&lmt=1493359051932373&source=youtube&dur=3543.381&requiressl=yes&ratebypass=yes'
[download] ♫ Best Uplifting Trance Mix 2017 Vol. #2 [HD] ♫-urge4dvw6gU.webm has already been downloaded
[download] 100% of 54.95MiB
[debug] ffmpeg command line: ffprobe -show_streams 'file:♫ Best Uplifting Trance Mix 2017 Vol. #2 [HD] ♫-urge4dvw6gU.webm'
ERROR: WARNING: unable to obtain file audio codec with ffprobe
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\YoutubeDL.py", line 1965, in post_process
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpkyaecyzu\build\youtube_dl\postprocessor\ffmpeg.py", line 243, in run
youtube_dl.utils.PostProcessingError: WARNING: unable to obtain file audio codec with ffprobe
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them.

When attempting to extract audio using youtube-dl it fails with the following error message: Error: WARNING: unable to obtain file audio codec with ffprobe

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19

Most upvoted comments

Okay, first of all, that result of where is good, and you don’t need to use --ffmpeg-location then, because that’s already what is used.

I’m starting to think it’s not the ffmpeg version.

I will see if I can reproduce…

Second, for debugging etc. please run youtube-dl with -v and --ignore-config, in general.

Like this:

youtube-dl.exe -v --ignore-config -x --audio-format mp3 --audio-quality 320K https://www.youtube.com/watch?v=WlJcmMT1BYY