Skip to content

ant build and run fail because ffmpeg is missing in downloads folder #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
processing-bot opened this issue Dec 19, 2021 · 5 comments
Closed

Comments

@processing-bot
Copy link
Collaborator

Created by: emlama

Description

It looks like the downloads folder for ffmpeg is missing a target for M1 macs (aarch64). I'm getting this when I run ant build.

download-ffmpeg:
      [get] Getting: https://download.processing.org/ffmpeg/4.4/ffmpeg-macos-aarch64.gz
      [get] To: /Users/esaforrian/src/processing4/build/shared/tools/MovieMaker/ffmpeg-4.4.gz
      [get] Error opening connection java.io.FileNotFoundException: https://download.processing.org/ffmpeg/4.4/ffmpeg-macos-aarch64.gz
      [get] Error opening connection java.io.FileNotFoundException: https://download.processing.org/ffmpeg/4.4/ffmpeg-macos-aarch64.gz
      [get] Error opening connection java.io.FileNotFoundException: https://download.processing.org/ffmpeg/4.4/ffmpeg-macos-aarch64.gz
      [get] Can't get https://download.processing.org/ffmpeg/4.4/ffmpeg-macos-aarch64.gz to /Users/esaforrian/src/processing4/build/shared/tools/MovieMaker/ffmpeg-4.4.gz

prepare-ffmpeg:

BUILD FAILED
/Users/esaforrian/src/processing4/build/build.xml:260: The following error occurred while executing this line:
/Users/esaforrian/src/processing4/build/build.xml:355: The following error occurred while executing this line:
/Users/esaforrian/src/processing4/build/shared/tools/MovieMaker/build.xml:53: the archive ffmpeg-4.4.gz doesn't exist

Expected Behavior

The file downloads correctly.

Current Behavior

The build fails.

I'm not sure how that downloads folder is maintained, but in the meantime, I was able to unblock myself by pointing my build.xml at https://evermeet.cx/ffmpeg/.

Steps to Reproduce

  1. Run ant build on an M1 Macbook Pro
@processing-bot
Copy link
Collaborator Author

In GitLab by @pr1metine on Jan 5, 2022, 13:11

Hi @emlama and anyone else reading,
had the same problem you had. Since the developer behind ffmpeg outright refuses to support ARM devices, this issue has to be resolved upstream.

As pointed out by you, one could just use the x64 ffmpeg binaries without any apparent drawbacks. As a temporary workaround, I would therefore advice the devs behind processing to make a copy of http://download.processing.org/ffmpeg/4.4/ffmpeg-macos-x86_64.gz and paste it to http://download.processing.org/ffmpeg/4.4/ffmpeg-macos-aarch64.gz.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Ah, actually the bug here is that the build.xml file is using os.arch to determine the download, rather than the architecture that you're building for. Since on M1 we're still building x86_64, it should be using that instead—at least until we can support Apple Silicon. See #128 (comment) for that status.

@processing-bot
Copy link
Collaborator Author

In GitLab by @pr1metine on Jan 6, 2022, 21:02

Ahh, makes sense. I could also work on porting Processing to Apple Silicon. No promises although I am going to try my best.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Ok, just checked in a change that should handle this properly.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant