# Getting mp4 animations from Plots.jl to work in Firefox, Safari, etc.?

**URL:** <https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [October 26, 2020, 8:32pm UTC](https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072 "2020-10-26T20:32:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PolarizedPoutine](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/polarizedpoutine/32/6067_2.png) [@PolarizedPoutine](https://discourse.julialang.org/u/PolarizedPoutine)\
**Post date:** [October 26, 2020, 8:32pm UTC](https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072/1 "2020-10-26T20:32:50Z")

</div>

We’ve been using Plots.jl to create mp4 animations for Literate.jl examples (they work beautifully together!) but recently noticed that the mp4 animations do not show up in Firefox or Safari but do show up in Chrome.

Example: [Two-dimensional turbulence · Oceananigans.jl](https://clima.github.io/OceananigansDocumentation/v0.43.0/generated/two_dimensional_turbulence/#Visualizing-the-results)

It would be a shame to require users to use Chrome to view the examples. We were wondering whether anyone else has come across this problem and if they were able to solve it.

It doesn’t seem to be an issue with any Julia package so not sure it makes sense to open any GitHub issue…

* * *

Firefox:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/9/3923dd83661dad3601c49d1d5689c158690ce7e9.png)

Chrome:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/a/ba3802cabc637d35f73420fb6e7f249daee03e01.jpeg)

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [October 26, 2020, 9:14pm UTC](https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072/2 "2020-10-26T21:14:33Z")

</div>

[1436678 - Error when providing HTML5 audio with a base64 encoded Data URI as source](https://bugzilla.mozilla.org/show_bug.cgi?id=1436678) probably a bug on Firefox’s end

---

<div class="post-metadata">

**Author:** ![PolarizedPoutine](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/polarizedpoutine/32/6067_2.png) [@PolarizedPoutine](https://discourse.julialang.org/u/PolarizedPoutine)\
**Post date:** [October 28, 2020, 10:54am UTC](https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072/3 "2020-10-28T10:54:29Z")

</div>

Thanks for pointing out that issue! Hmmm are you sure that’s the right issue though? The screenshots attached in that issue show at least the media player’s control bar. It seems to concern HTML5 audio while Plots.jl should be producing mp4’s with no sound (although Firefox is using an HTML5 media player).

Maybe the “base64 encoded Data URI” part of the issue is a hint? Not sure if Plots.jl lets you control how the mp4 is generated but I’ll try generating a bunch of videos with ffmpeg and see which ones Firefox complains about. Probably not an issue with anything in Julia.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [October 28, 2020, 11:07am UTC](https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072/4 "2020-10-28T11:07:59Z")

</div>

Perhaps you could copy what [Makie docs](http://makie.juliaplots.org/stable/animation.html) do?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [October 28, 2020, 1:06pm UTC](https://discourse.julialang.org/t/getting-mp4-animations-from-plots-jl-to-work-in-firefox-safari-etc/49072/5 "2020-10-28T13:06:44Z")

</div>

they host the .mp4 somewhere, won’t work if you want to pass around a single .html. so there’s that.
