What is a good lossless video codec?

倖福魔咒の 提交于 2019-11-30 04:46:17

huffyuv is definitely the simplest solution and you will find several cross-platform implementations as C libraries for example.

It is easily encapsulated in AVI files and readable by the major players.

Format definition if you need to interact with it: http://multimedia.cx/huffyuv.txt

Camilo Martin

Mathematically lossless, or output exactly equal to input: x264 using --qp 0. Easily 1/3 of huffyuv all times.

Visually lossless, or difficult to distinguish output from input: x264 with quantizer 1-5 or even up to 10. 1-5 is so visually lossless that flaws aren't apparent even after strong sharpening.

The (schroedinger) dirac encoder supports lossless compression much more effective than huffyuv and is supported by GStreamer and libav. In GStreamer the option is rate-control=3 for schroedinger:

gst-launch-0.10 filesrc location="$1" ! decodebin2 name=demux \
{ matroskamux name=mux ! filesink location="$2" } \
{ demux. ! queue ! audioconvert ! vorbisenc quality=0.5 ! queue ! mux. } \
{ demux. ! queue ! schroenc rate-control=3 ! mux. }
Mark Lakewood

There are a few different codecs that will do cross platform.

Cineform is a good one. It has both a 444 version and a RAW version.

If you don't care about space taken and realtime playback, you could use an image sequence.

Apple Pro-res can now be read on both Mac and PC. However, encoding cannot be done by PCs.

Do you mean visually lossless or lossless?

Just a quick ten-years-later-answer:

x265 allows this with the --lossless parameter :)

source: https://x265.readthedocs.io/en/default/cli.html

If you want mathematically lossless I would suggest something like Motion JPEG2000, which has a lossless compression option, but it doesn't have the broad support in editing applications.

If you want support between Apple's Final Cut Pro and Adobe Premier I would use uncompressed 444 if you are doing any compositing, or 422 if you aren't.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!