# Animated WebP / AVIF & Movies (AV1 / MP4) export in agg

**URL:** <https://discourse.asciinema.org/t/animated-webp-avif-movies-av1-mp4-export-in-agg/887>\
**Category:** Ideas\
**Created:** [November 8, 2024, 11:41am UTC](https://discourse.asciinema.org/t/animated-webp-avif-movies-av1-mp4-export-in-agg/887 "2024-11-08T11:41:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tats-u](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/tats-u/32/581_2.png) [@tats-u](https://discourse.asciinema.org/u/tats-u)\
**Post date:** [November 8, 2024, 11:41am UTC](https://discourse.asciinema.org/t/animated-webp-avif-movies-av1-mp4-export-in-agg/887/1 "2024-11-08T11:41:25Z")

</div>

[ScreenToGif](https://www.screentogif.com/) support them except AVIF via FFmpeg.  
They’re newer and more efficient than GIF and have more-than-256-colors support.  
I hope agg supports them.

All browsers have support for them, so we don’t need to care about the compatibility.

---

<div class="post-metadata">

**Author:** ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)\
**Post date:** [January 21, 2025, 3:16pm UTC](https://discourse.asciinema.org/t/animated-webp-avif-movies-av1-mp4-export-in-agg/887/2 "2025-01-21T15:16:24Z")

</div>

Hey @tats-u 👋

I think a reasonable way to achieve this is something like I described here:

> [@Asciinema as a first-class video format](https://discourse.asciinema.org/t/asciinema-as-a-first-class-video-format/907/2):
>
> Hey @bitplane, welcome! That’s an interesting idea. Feel free to reach out to ffmpeg authors, although I doubt they’ll go for it slight_smile However, one thing which could be done without too much hassle and too much work is to implement raw frame output in agg or in the new convert subcommand of the upcoming asciinema CLI 3.0. It could output a raw image for each frame, sequentially as one stream, which could be piped straight into ffmpeg. Once those frames hit ffmpeg you can perform anyt…

What do you think?

---

<div class="post-metadata">

**Author:** ![tats-u](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/tats-u/32/581_2.png) [@tats-u](https://discourse.asciinema.org/u/tats-u)\
**Post date:** [February 9, 2025, 3:12pm UTC](https://discourse.asciinema.org/t/animated-webp-avif-movies-av1-mp4-export-in-agg/887/3 "2025-02-09T15:12:40Z")

</div>

ScreenToGif uses FFmpeg. It’s fine that asciinema uses FFmpeg too.

---

<div class="post-metadata">

**Author:** ![tats-u](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/tats-u/32/581_2.png) [@tats-u](https://discourse.asciinema.org/u/tats-u)\
**Post date:** [February 11, 2025, 3:34am UTC](https://discourse.asciinema.org/t/animated-webp-avif-movies-av1-mp4-export-in-agg/887/4 "2025-02-11T03:34:51Z")

</div>

For WebP, we might as well directly use libwebp, but much easier to depend on FFmpeg.
