StefanLobbenmeier / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
1.55k stars 62 forks source link

ffmpeg and ffprobe Apple Silicon #95

Open linuxr01 opened 11 months ago

linuxr01 commented 11 months ago

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 commented 11 months ago

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.

StefanLobbenmeier commented 11 months ago

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 commented 7 months ago

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

keleko86 commented 5 months ago

@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.