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

ffmpeg and ffprobe Apple Silicon

Open linuxr01 opened this issue 1 year ago • 4 comments

Could you check whether it is an M1 Mac? By default the x86-64 version is installed but the M1 requires the ARM version.

/Applications/Open\ Video\ Downloader.app/Contents/Resources/app.asar.unpacked/binaries/ffmpeg ; exit; zsh: bad CPU type in executable: /Applications/Open Video Downloader.app/Contents/Resources/app.asar.unpacked/binaries/ffmpeg

linuxr01 avatar Dec 10 '23 15:12 linuxr01

For people who have problems, here is a small guide for a Mac with M1 CPU:

  1. download the ARM version: http://www.osxexperts.net/ (ffmpeg static build for macOS and ffprobe static build for macOS)

  2. deactivate "Auto-update ytdl binary" in the program.

  3. copy ffmpeg and ffprobe into the directory /Applications/Open Video Downloader.app/Contents/Resources/app.asar.unpacked/binaries/ and overwrite the old files.

linuxr01 avatar Dec 10 '23 15:12 linuxr01

As a workaround for now, I would recommend still installing Rosetta.

There is a different issue here though, that the ffbinaries.org is very old. I think the best solutions would be to host a separate github repository where I release ffmpeg and ffprobe binaries to and download from there.

Because so far I have not been able to find a source that gives me all builds in an up to date version. E.g. your link only contains macOS builds, but it would be awkward having to check a separate source for macOS.

StefanLobbenmeier avatar Dec 10 '23 21:12 StefanLobbenmeier

@linuxr01 I am considering adding an option to use the locally installed ffmpeg (e.g. via brew), would that work for you?

StefanLobbenmeier avatar Apr 11 '24 12:04 StefanLobbenmeier

@linuxr01 I am considering adding an option to use the locally installed ffmpeg (e.g. via brew), would that work for you?

@StefanLobbenmeier I cannot speak for @linuxr01, but I would certainly appreciate it.

keleko86 avatar Jun 18 '24 19:06 keleko86