this post was submitted on 13 Oct 2024
26 points (100.0% liked)
Free and Open Source Software
17960 readers
22 users here now
If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
"Lossless" isn't the term you want; that refers to not lossily compressing the main data. Lossless compression or storage of media is very rare outside of text and sometimes audio, because it ends up so large.
You want to preserve metadata. That applies regardless of how lossy the data compression is.
In that case, what I mean to say is that I want a program that compresses the video in a way that is not perceptible to the eye, while also preserving metadata and reducing the overall file size.
I'm not sure why "lossless" is not the right term, because that's the term that curtail itself uses within the app. Is the term misleading? The app is designed for photos, not videos. It compresses each photo without losing any quality, and slightly decreases the overall file size without losing metadata. I want a program that can do the same thing with videos.
"Lossless" has a specific meaning, that you haven't lost any data, perceptible or not. The original can be recreated down to the exact 1s and 0s. "Lossy" compression generally means "data is lost but it's worth it and still does the job" which is what it sounds like you're looking for.
With images, sometimes if technology has advanced, you can find ways to apply even more compression without any more data loss, but that's less common in video. People can choose to keep raw photos with all the information that the sensor got when the photo was taken, but a "raw" uncompressed video would be preposterously huge, so video codecs have to throw out a lot more data than photo formats do. It's fine because videos keep moving, you don't stare at a single frame for more than a fraction of a second anyway. But that doesn't leave much room for improvement without throwing out even more, and going from one lossy algorithm to another has the downside of the new algorithm not knowing what's "good" visual data from the original and what's just compression noise from the first lossy algorithm, so it will attempt to preserve junk while also adding its own. You can always give it a try and see what happens, of course, but there are limits before it starts looking glitchy and bad.
I know that lossy normally lessens the image quality in the compression process, but Curtail has two options:
Lossless mode: Compresses the file by removing unnecesary data that does not affect image quality; thus reducing file size. Lossy mode: Compresses the file much further by lowering the visual quality of the image; thus reducing the file size but looking a bit worse.
After using the lossless mode, I've personally done very thorough image comparisons to see if there was any discernible difference between the original file and the compressed file. I could not find any visual difference.
In Curtails own words on their site "It supports both lossless and lossy compression modes with an option to whether keep or not metadata of images."
Curtail is a wrapper around tools like pngquant, jpgoptim and oxipng. In lossless mode it optimizes and reorders e.g the compression tables. I know of no tool that does that for video data and I am not even sure that is feasable. Video is not stored as a simple sequence of images.
Okay, thanks. I guess it's not possible at the moment then.