adding ffmpeg support for mac build

10 views
Skip to first unread message

Marshall Hampton

unread,
9:01 AM (15 hours ago) 9:01 AM
to sage-support
Hi,

I have had trouble building sage from source recently on my mac (MacBook Pro M5) and so I am currently using the sage-10.8 build from the 3-manifolds folks (https://github.com/3-manifolds/Sage_macOS).  I would like to use the animate command but Sage does not seem to find the path to my ffmpeg or imagemagick which are both installed.  I am not sure how to do this at all, any ideas appreciated.

Thanks,
Marshall Hampton

Dima Pasechnik

unread,
10:34 AM (13 hours ago) 10:34 AM
to sage-s...@googlegroups.com
On Fri, May 1, 2026 at 8:01 AM Marshall Hampton <hamp...@gmail.com> wrote:

> I have had trouble building sage from source recently on my mac (MacBook Pro M5) and so I am currently using the sage-10.8 build from the 3-manifolds folks (https://github.com/3-manifolds/Sage_macOS). I would like to use the animate command but Sage does not seem to find the path to my ffmpeg or imagemagick which are both installed. I am not sure how to do this at all, any ideas appreciated.

It's not clear what "animate" you mean. There is a js animate via
threejs, there is an animate via jmol (to build animate GIFs)

Anyway, 3-manifolds/Sage_macOS is a macOS sandboxed app, IMHO it's not
possible to extend its capabilities without rebuilding it.
I won't be surprised if the app won't build with the most recent
versions of XCode - they moved to clang 21, a big jump.

You're welcome to try recent Homebrew-based builds of Sage, though,
using Homebrew taps mentioned in
https://github.com/sagemath/sage/pull/42106
with https://github.com/sagemath/sage/pull/41626
and `./configure --with-darwin-accelerate=yes`

Dima

>
> Thanks,
> Marshall Hampton
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-support/ece04902-351f-435b-82dc-d5091c96b8f1n%40googlegroups.com.

David Joyner

unread,
10:51 AM (13 hours ago) 10:51 AM
to sage-s...@googlegroups.com
On Fri, May 1, 2026 at 9:01 AM Marshall Hampton <hamp...@gmail.com> wrote:
>
> Hi,
>
> I have had trouble building sage from source recently on my mac (MacBook Pro M5) and so I am currently using the sage-10.8 build from the 3-manifolds folks (https://github.com/3-manifolds/Sage_macOS). I would like to use the animate command but Sage does not seem to find the path to my ffmpeg or imagemagick which are both installed. I am not sure how to do this at all, any ideas appreciated.
>

I'm using that app on a mac mini M2 and have no problem:

sage: frames = [plot(sin(k*x), (x, 0, 2*pi), ymin=-1, ymax=1) for k in
range(1, 6)]
sage: a = animate(frames)
sage: a.show()
Launched gif viewer for Animation with 5 frames
sage: version()
'SageMath version 10.4, Release Date: 2024-07-19'

Marshall Hampton

unread,
1:02 PM (11 hours ago) 1:02 PM
to sage-support
Yes, that is the type of thing I am trying to do (animate a bunch of graphics objects as a gif).  Can you perhaps run "which ffmpeg" on the command line?  Mine is at /opt/homebrew/bin/ffmpeg.

Thanks,
Marshall

David Joyner

unread,
1:07 PM (11 hours ago) 1:07 PM
to sage-s...@googlegroups.com
On Fri, May 1, 2026 at 1:02 PM Marshall Hampton <hamp...@gmail.com> wrote:
>
> Yes, that is the type of thing I am trying to do (animate a bunch of graphics objects as a gif). Can you perhaps run "which ffmpeg" on the command line? Mine is at /opt/homebrew/bin/ffmpeg.
>

which ffmpeg
/Users/davidjoyner/miniconda3/bin/ffmpeg


> Thanks,
> Marshall
>
>
> On Friday, May 1, 2026 at 9:51:00 AM UTC-5 wdjo...@gmail.com wrote:
>>
>> On Fri, May 1, 2026 at 9:01 AM Marshall Hampton <hamp...@gmail.com> wrote:
>> >
>> > Hi,
>> >
>> > I have had trouble building sage from source recently on my mac (MacBook Pro M5) and so I am currently using the sage-10.8 build from the 3-manifolds folks (https://github.com/3-manifolds/Sage_macOS). I would like to use the animate command but Sage does not seem to find the path to my ffmpeg or imagemagick which are both installed. I am not sure how to do this at all, any ideas appreciated.
>> >
>>
>> I'm using that app on a mac mini M2 and have no problem:
>>
>> sage: frames = [plot(sin(k*x), (x, 0, 2*pi), ymin=-1, ymax=1) for k in
>> range(1, 6)]
>> sage: a = animate(frames)
>> sage: a.show()
>> Launched gif viewer for Animation with 5 frames
>> sage: version()
>> 'SageMath version 10.4, Release Date: 2024-07-19'
>>
>>
>> > Thanks,
>> > Marshall Hampton
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups "sage-support" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
>> > To view this discussion visit https://groups.google.com/d/msgid/sage-support/ece04902-351f-435b-82dc-d5091c96b8f1n%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-support/9d0f23d5-f07e-4dcb-9790-b596d368d1e1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages