View Full Version : APNG Splitter
jay123210599
15th December 2024, 14:11
I have an APNG file that is over 200MB. How do I losslessly split it into smaller APNG files (with 90MB or less)?
Selur
16th December 2024, 08:00
Without doing a search for an easier solution, guess one could probably do it manually (untested), by:
1. use ffmpeg with copy and '-fs 94371840' (94371840=90*1024*1024) to create the first part
2. check the length of the first part (for example with ffprobe or mediainfo)
3. adjust the call and take that length of the first part as start offset '-ss ..' before the '-i' to create the second part.
4. adjust the call and take that length of the first + second part as start offset '-ss ..' before the '-i' to create the third part.
this probably could be done through a shell/python/.. script.
An alternative approach would be to first split the APNG into PNG and then recombine the extracted PNGs by size into APNGs again.
Cu Selur
Ps.: Someone wrote a MacOS/Linux shell script for it https://silvae86.github.io/2021/02/16/splitting-videos-for-google-photos/
jay123210599
17th January 2025, 00:51
Without doing a search for an easier solution, guess one could probably do it manually (untested), by:
1. use ffmpeg with copy and '-fs 94371840' (94371840=90*1024*1024) to create the first part
2. check the length of the first part (for example with ffprobe or mediainfo)
3. adjust the call and take that length of the first part as start offset '-ss ..' before the '-i' to create the second part.
4. adjust the call and take that length of the first + second part as start offset '-ss ..' before the '-i' to create the third part.
this probably could be done through a shell/python/.. script.
An alternative approach would be to first split the APNG into PNG and then recombine the extracted PNGs by size into APNGs again.
Cu Selur
Ps.: Someone wrote a MacOS/Linux shell script for it https://silvae86.github.io/2021/02/16/splitting-videos-for-google-photos/
Is there a Windows script for it? Or a version of that for Windows?
Selur
17th January 2025, 14:51
Don't know of any, but from the looks of it, anything the shell script does should be doable with a Windows bash script. So with some effort you can probably port it to Windows.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.