Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th December 2024, 14:11   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 422
APNG Splitter

I have an APNG file that is over 200MB. How do I losslessly split it into smaller APNG files (with 90MB or less)?
jay123210599 is offline   Reply With Quote
Old 16th December 2024, 08:00   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,710
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/1...google-photos/
__________________
Hybrid here in the forum, homepage, its own forum

Last edited by Selur; 16th December 2024 at 14:14.
Selur is offline   Reply With Quote
Old 17th January 2025, 00:51   #3  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 422
Quote:
Originally Posted by Selur View Post
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/1...google-photos/
Is there a Windows script for it? Or a version of that for Windows?
jay123210599 is offline   Reply With Quote
Old 17th January 2025, 14:51   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,710
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.
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Reply

Tags
image-quality

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.