Which tool or program converts videos to image sequences consisting of png files that have the smallest file size (I mean, which of one of them will have the smallest file size for each of the png files)?
+ Reply to Thread
Results 1 to 13 of 13
-
-
There is a command line program called pngcrush, you can run it on entire directory. It can substantially reduce .png file sizes.
-
Last edited by Jay123210599; 10th Jan 2024 at 14:58.
-
Google is your friend.
https://www.google.com/search?client=firefox-b-1-d&q=pngcrush+entire+directory -
You can get it from this thing called the internet, there is three requirements.
1. Internet Connection
2. A computer
3. A browser
If you have met those requirements:
Step 1: Connect the computer to internet.
Step 2: Turn the computer on.
Step 3: Find your browser application
Step 4: Visit a site like Google.
Step 5: Type pngcrush into search box and hit submit.
Step 6: Review the search results to find what you are looking for. -
Wait, does pngcrush even work for Windows 11?
Here's the link so you can download it yourself.
https://sourceforge.net/projects/pmt/files/pngcrush/1.8.13/ -
This is excerpt from my script (converting video to APNG animation with antialiasing):
Code:@ffmpeg.exe -y -hide_banner -v 32 -stats -i %filename% -an -sn -dn -filter_complex "eq=contrast=%contrast%:brightness=%brightness%:saturation=%saturation%,unsharp=lx=5:ly=5:la=%sharpen%:cx=3:cy=3:ca=0:ax=3:ay=3:aa=0,tblend=all_mode=average,format=pix_fmts=rgb24,zscale=d=ordered:f=spline36:r=full:w=%h_siz%:h=-2,tmix=frames=%fa%:weights=%weights%,fps=%fps%,xbr=3,zscale=d=ordered:f=spline36:r=full:w=%h_siz%:h=-2,transpose=1:none,xbr=3,transpose=2:none,zscale=d=ordered:f=spline36:r=full:w=%h_siz%:h=-2,split[v1][v2]; [v1]format=pix_fmts=rgb444le,palettegen=max_colors=%max_colors%:stats_mode=0:reserve_transparent=false [palette]; [v2][palette]paletteuse=dither=%dither%" -fps_mode auto -plays 0 -q:v 100 -f apng -pred 5 "%~n1_apng.png"
Btw ffmeg seem to be quite poor in terms of signal flow - above script produce many warnings about multiple color space conversion - can't find and command to switch automatic color space conversion (trough swscaler) - this is pretty stupid and highly inefficient - one of main ffmpeg flaws - i can't manually guide ffmpeg to do processing without unnecessary color space conversion. -
png is lossless so you get an image that is the same as source, does not matter what size you are going to get. Each software that creates png could have a different arguments for file size 0 to 9 (opencv 0 smallest result, 9 large), zero to 100, etc. You were told so already, so you need to check how to set it depending what a PARTICULAR app tells you in its manual.
Lossless mechanisms in a real world have a real time limits to come up with lossless results. If you have a really short time, algorithm comes up quickly with a lossless version for an image but file is largest. In theory you can create algorithms that look for lossless image for 5 minutes and maybe you save some MBytes, but that is a nonsense because you might need more time also to decode that image. Higher compressions could become really counterproductive. In real world, developers come up with sort of real world useful range and we specify in settings values (or not and it defaults).
Similar Threads
-
How to add 1 pixel png to header of ts file hls
By conlele in forum Video ConversionReplies: 0Last Post: 21st Jul 2023, 09:03 -
Best compression, smallest size, highest quality?
By Sullah in forum Video ConversionReplies: 17Last Post: 12th Nov 2022, 10:48 -
How to get File list with file size in a text file?
By iKron in forum Newbie / General discussionsReplies: 8Last Post: 22nd Jul 2021, 21:13 -
file size versus video size
By liquid xtal in forum Newbie / General discussionsReplies: 8Last Post: 15th Apr 2020, 07:38 -
Converting TTML2+PNG Subtitles to BDN(XML+PNG)
By MounaLafi in forum SubtitleReplies: 6Last Post: 25th Jan 2019, 06:48