Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ERROR: WARNING: unable to obtain file audio codec with ffprobe #12367
Comments
|
What's the result of this command?
|
|
|
Sorry, it should be use double quotes:
|
|
Says file not found :
|
Did you run the ffprobe command in the same directory as Hans Zimmer - Time ft. Satellite Empire (The Machinist Remix)-jwMG9wlhc84.webm? |
|
I don't see that file in my download folder where all the extracted m4a files by youtube-dl are, does it go somewhere else by default? Update : Found it
Update 2 : Just updated to version |
|
I found this in |
|
Let me guess. Did you run youtube-dl.exe from C:\Windows\System32 and you're using 64-bit ffmpeg? |
|
There is no youtube-dl.exe in C:\Windows\System32 and yes, I am using 64-bit ffmpeg. I have all the ffmpeg .exe files and youtube-dl.exe in a custom folder that is included in PATH |
|
I may be inaccurate. I mean something like this: (assume youtube-dl.exe is in PATH)
The reason for this error is that Windows changes the working directory for 32-bit applications (youtube-dl.exe in this case) under the hood. [1] It's difficult to fix it, so the suggestion is: don't run youtube-dl.exe in C:\Windows\System32. [1] https://msdn.microsoft.com/en-us/library/aa384187(VS.85).aspx |
|
Thanks for your help, actually I always open cmd as administrator so it opens in |
|
By the way, it's usually a bad idea to run youtube-dl.exe as Administrator. It handles data from the Internet. If there's a bug in youtube-dl or Python, your device can be hacked. A previous example can be found in #8227. |
|
@bbb31: 137 is a video-only format, so audio extraction won't work.
|
|
I'm getting the same using: |
|
Also getting the error with |
|
I think ffmpeg was broken—running it with avconv like |
|
Solved by ~ » youtube-dl --extract-audio --audio-format mp3 "https://youtu.be/xxx" stasbar@stasbar
[youtube] eT3at25Kits: Downloading webpage
[youtube] eT3at25Kits: Downloading video info webpage
[download] Destination: xxx.webm
[download] 100% of 2.32MiB in 00:00
ERROR: WARNING: unable to obtain file audio codec with ffprobe
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~ » ffmpeg -v stasbar@stasbar
dyld: Library not loaded: /usr/local/opt/x265/lib/libx265.165.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: image not found
[1] 31817 abort ffmpeg -v
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~ » brew upgrade ffmpeg
...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~ » youtube-dl --extract-audio --audio-format mp3 "https://youtu.be/xxx" stasbar@stasbar
[youtube] eT3at25Kits: Downloading webpage
[youtube] eT3at25Kits: Downloading video info webpage
[download] xxx.webm has already been downloaded
[download] 100% of 2.32MiB
[ffmpeg] Destination: xxx.mp3
Deleting original file Mr. xxx.webm (pass -k to keep) |
|
Encountered this symptom with up-to-date ffmpeg and youtube-dl. A recent update to
The Workarounds include downgrading |
Command that I ran :
youtube-dl --extract-audio --audio-format m4a https://www.youtube.com/watch?v=jwMG9wlhc84 --verboseOutput :
I have ffprobe.exe in Windows PATH