youtube-dl-gui icon indicating copy to clipboard operation
youtube-dl-gui copied to clipboard

ffmpeg not working on MacOS

Open ronalith opened this issue 3 years ago • 3 comments

The provided downloaded ffmpeg binary seems to be downloaded okay in the app.asar.unpacked folder but the permissions of ffmpeg & ffprobe are possibly set wrong, as these files are not set to be executable. It's also unclear if this version of ffmpeg has the ARM Neon patch for Apple Silicon (See osxexperts dot net)

ronalith avatar Apr 12 '22 16:04 ronalith

Also, the yt-dlp binary is not the one labeled as MacOS from yt-dlp releases, unsure what the differences are. Maybe it cuts some dependencies?

ronalith avatar Apr 12 '22 18:04 ronalith

Using this on Mac M1 first and youtube-dl can locate ffmpeg if launched from the terminal while cannot while launched via OVD app. I can't find where might be the configuration to set a flag (provide correct path) to ffmpeg so that after download it does not fail. Any ideas?

proton1k avatar May 06 '22 09:05 proton1k

I'm assuming your youtube-dl lives along with ffmpeg somewhere (really I'm a bit unfamiliar with either as I use it mostly on windows). But in the case of youtube-dl-gui, yt-dlp uses an ffmpeg that lives at /Applications/Open Video Downloader.app/Contents/Resources/app.asar.unpacked/binaries

in order to make those executable, in terminal do:

chmod 755 /Applications/Open\ Video\ Downloader.app/Contents/Resources/app.asar.unpacked/binaries/ffmpeg
chmod 755 /Applications/Open\ Video\ Downloader.app/Contents/Resources/app.asar.unpacked/binaries/ffprobe

And if you feel adventurous, download yt-dlp_macos from https://github.com/yt-dlp/yt-dlp rename it to yt-dlp-unix replace it in the Applications/Open Video Downloader.app/Contents/Resources/app.asar.unpacked/binaries folder and then make it executable as well with: chmod 755 /Applications/Open\ Video\ Downloader.app/Contents/Resources/app.asar.unpacked/binaries/yt-dlp-unix

My guess it's that this executable reduces dependencies or works better on macs but again I haven't looked into it extensively. There's probably better ways to achieve all this.

ronalith avatar May 06 '22 20:05 ronalith