-
Notifications
You must be signed in to change notification settings - Fork 18
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
mp4 to animated avif #5
Comments
No, sadly not, sorry. I would be interested to know a bit more about the context/scenario where using an AVIF image sequence might be considered more appropriate or a better fit than using an mp4 video. |
Here you go https://www.bmi.com/award-shows/r-and-b-hip-hop-2021/
[https://www.bmi.com/images/news/2021/RB-HH_2021_16-9news.jpg]<https://www.bmi.com/award-shows/r-and-b-hip-hop-2021/>
2021 BMI R&B/Hip-Hop Awards<https://www.bmi.com/award-shows/r-and-b-hip-hop-2021/>
BMI is excited to celebrate the exceptional songwriters, producers and music publishers whose music has changed the game and raised the bar for R&B and Hip-Hop. It’s our thrill to reveal the winners of the Song of the Year, Songwriter of the Year, Producer of the Year and Publisher of the Year, and to salute our top producers and recognize the 35 most-performed R&B/Hip-Hop songs of the past year.
www.bmi.com
Icarian Records & Publishing
Tel +1 917-582-9369
Website https://dylannirvana.com<https://dylannirvana.com/>
SoundCloud https://soundcloud.com/dylannirvana
Disco Library https://library.dylannirvana.com/
Dylan Nirvana. “Like Elvis Costello. Morrissey meets Motörhead” - The Village Voice.
…________________________________
From: Lovell Fuller ***@***.***>
Sent: Friday, October 8, 2021 10:12 AM
To: lovell/avif-cli ***@***.***>
Cc: Dylan Nirvana ***@***.***>; Author ***@***.***>
Subject: Re: [lovell/avif-cli] mp4 to animated avif (#5)
No, sadly not, sorry.
I would be interested to know a bit more about the context/scenario where using an AVIF image sequence might be considered more appropriate or a better fit than using an mp4 video.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB7VTGPO7MJAMHVQIAEYCB3UF334LANCNFSM5FTTYOXQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Our use case (I didn't invent it, but I did inherit it) is taking mp4s and converting them to animated WEBP and animated AVIF. Because of the file size and quality advantages of AVIF, this workflow makes sense, considering how commonplace the animated GIF is. I am looking to accomplish this in a script so that it can be done programmatically. The ffmpeg library has code for WEBP https://ffmpeg.org/ffmpeg-all.html#libwebp but not for AVIF, which is expected to experience widespread adoption. The only service I found that does this is https://ezgif.com/video-to-avif. And I have contacted them to see if they would make their code available. But it seems like you are very close to this yourself. |
Thanks for the example. I don't see any mp4 files on the BMI awards page, am I missing something? |
The opening animation is a AVIF/WEBP depending on your browser. It is in a |
Ah, thanks, I opened the page in Chrome and see it now. I'm still unsure why an embedded |
https://codelabs.developers.google.com/codelabs/avif#5 It's possible. |
To chime in about a use case: browsers do not have native support for alpha transparency in H264/MP4 videos, so more esoteric formats are required (HEVC/H265 encoded Quicktime for Safari, and VP9 encoded WebM for everyone else). Since H265 requires licensing and x265 (the HEVC version of the massively popular freeware library called x264) does not support alpha transparency, options for producing well-optimized versions of alpha-channel .mov files for Safari are limited. In these situations, a small animated AVIF image can be a better tradeoff, even though it's not going to benefit from hardware-accelerated playback or have built-in playback controls. |
@coreyward seethru used to be a solution to the alpha transparency problem, but I'm unsure if it's still suitable. |
Any chance that we could also see APNG to animated AVIF? |
Animated AVIF (sequence) output is dependent on strukturag/libheif#377 Animated APNG input is dependent on randy408/libspng#4 Both are then dependent on the subsequent exposure of these features in libvips and sharp. |
It is a little offtiopc but I want to make if helpful for people that also working with animated avif and found this issue. This library don't support animated avif. I tried to convert gif to avif. Current state
dont work. Gives static image.
works
works for some formats but not avif
it end with invalid file
or
but if we split it on 2 steps and convert gif -> mp4 -> avif, then it works
I attaching gif on which I tested it. Thanks to this approach I was able to compress from 700 to 100 K
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Closing as this issue is attracting LLM slop. Please see the issues linked to in #5 (comment) |
Can this be used to convert an mp4 to an animated avif?
The text was updated successfully, but these errors were encountered: