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.
"Unable to obtain file audio codec with ffprobe" from PHP #1742
Comments
|
Pretty isolated case, but I finally found the issue. Hopefully this helps anyone who is running MAMP and installed ffmpeg via macports. Apparently MAMP sets the DYLD_LIBRARY_PATH variable, which conflicts with the call to ffprobe when trying to determine the file's audio codec. To fix this, just comment out these two lines in
Credit: |
youtube-dl works perfectly when I run from my shell. But when I try to run the exact same command via PHP's proc_open() I get the following error:
Here's the command I'm running:
And here's some system info:
At first I thought it was a PATH issue, so I made sure PATH was set properly, but I'm still getting the error. Here's a snippet of PHP (and its output) that I'm running prior to my proc_open() command:
So, is there anything I'm doing wrong here? Or is there any way to tell youtube-dl the paths of ffmpeg and ffprobe?