Regarding "near lossless," the best option I've seen is using x264 with "-crf 18 -preset ultrafast", which is basically a very high quality copy of the video with a high bitrate due to the "ultrafast" preset. There's minimal loss of fidelity, but it's also still relatively quick to do the encode because x264 is exceptionally performant.
I use this extensively in a video processing pipeline I wrote (2 million-ish videos a month, at the moment). It's a total lifesaver, because processing video in a lossless way requires such a huge amount of storage/memory that it's almost not worth consideration for anything but digital mastering of original content. A better approach in probably ~95% of situations is a "near lossless" approach. On Thu, Jun 13, 2019 at 4:28 PM Eric Shepherd (Sheppy) < esheph...@mozilla.com> wrote: > Yeah, I know that lossless is huge, but was curious if there were any > options since it will be a question that gets asked, and therefore I want > to be prepared. My experiements suggest that even where there are codecs > that have a lossless or near-lossless feature in the spec, they tend not to > be implemented, especially in browsers. So I guess that’ll be a big “nope” > for now… unless someone has further guidance. > > > On June 13, 2019 at 6:23:00 PM, Martin Thomson (m...@mozilla.com) wrote: > > Lossless video coding isn't really a thing on the internet. There are > lossless modes in some encoders (x264 has one that I'm aware of), but they > tend to inflate inputs rather than compress them. There are systems used > in video production that maintain all the source bits, but they use insane > amounts of bandwidth. > > > Eric Shepherd > Senior Technical Writer > MDN Web Docs <https://developer.mozilla.org/> > Blog: https://www.bitstampede.com/ > _______________________________________________ > dev-media mailing list > dev-media@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-media > _______________________________________________ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media