I render 3D animations, many of which take days or even weeks to render at a time, and I need to keep a lossless archive of the output files. The output format from the render engine is 8 bit per channel (24 bit) PNG sequences, which are then modified heavily in After Effects to create a final composite.
I would like to find a way to compress these PNG sequences without losing any quality. Because there are many pixelwise operations happening in After Effects to the original source PNG files, it is imperative that I find a way to preserve the animations truly losslessly.
I have tested several codecs in ffmpeg, and so far, libx265 and libx264rgb seem to trade blows. Here is a table showing the filesize in GB I get when compressing losslessly using various codecs in ffmpeg (each column) for a variety of different animations (each row) I have made:
I think both of these codecs have been around for a while, so I was wondering if anything else has come out recently that could get the file sizes down a lot more? Or are libx265 and libx264rgb the pinnacle of true lossless compression?
In case it is relevant, these were the commands I used to compress for each codec:
cmd = f'ffmpeg -ss 0 -i "{unc}" -t {tt} -y -c:v huffyuv -lossless 1 "huffyuv_lossless/{name}"'
cmd = f'ffmpeg -ss 0 -i "{unc}" -t {tt} -y -c:v ffvhuff -context 1 "ffvhuff_lossless/{name}"'
cmd = f'ffmpeg -ss 0 -i "{unc}" -t {tt} -y -c:v utvideo "utvideo_lossless/{name}"'
cmd = f'ffmpeg -ss 0 -i "{unc}" -t {tt} -y -c:v ffv1 -preset slow -qp 0 "ffv1_lossless/{name}"'
cmd = f'ffmpeg -ss 0 -i "{unc}" -t {tt} -y -c:v libx265 -x265-params lossless=1 "libx265_lossless/{name}"'
cmd = f'ffmpeg -ss 0 -i "{unc}" -t {tt} -y -c:v libx264rgb -preset slow -crf 0 "libx264rgb_lossless/{name}"'
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
You could also add '-c:v libaom-av1 -crf 0', also x265 got presets too, using a slower preset than the default (medium) should improve the compression.
users currently on my ignore list: deadrats, Stears555
Similar Threads
-
SSD speed types in regard to writing 4K lossless RGB video at 60fps
By Reiko in forum Newbie / General discussionsReplies: 1Last Post: 30th Aug 2023, 23:32 -
10-Bit YUV to RGB
By chris319 in forum ProgrammingReplies: 5Last Post: 25th Aug 2023, 04:28 -
COMPRESSING >1GB Images with LOSSLESS SOFTWSRE. Please help.
By JeremyVN in forum EditingReplies: 15Last Post: 5th Jul 2022, 13:11 -
Converting a 10-bit YUV to RGB
By muhahah in forum ProgrammingReplies: 0Last Post: 21st Dec 2021, 06:25 -
Compressing PNG files into Video
By Chauceratemyhamster in forum EditingReplies: 7Last Post: 7th Jul 2020, 07:47