Hello guest, if you like this forum, why don't you register? https://forum.fanres.com/member.php?action=register (December 14, 2021) x


Which lossless video codec to use?

29 Replies, 31811 Views

In theory, every lossless codec should be the same - same output as the input, bit-for-bit perfect... this is true, but there are some reasons to use one over another...

HuffYUV - one of the oldest, good compression, and still works well also with old PCs, even in real time, but as it works only in RGB and YUV, I reccomend to use it to capture analog SD video.

Lagarith - newer, very good compression, quite fast, works with RGB, YUV, YV12; I used it everytime, until yesterday... I tried to encode with x264 a file encoded with Lagarith, and it gave up, too much errors... thought maybe I encoded with too many opened software, re-encoded it... same problems... I tried four times, always the same...

MagicYUV - newest, good compression, final size bigger than Lagarith, but faster, and when I play the encoded file, it's possible to jump to every point without waiting, plus VirtualDub plays it in real time without stuttering... I should test it further, but I think this will be the only lossless coded I'll use in the future!

What's your experience with these, and other, lossless codecs?
Sadly my projects are lost due to an HDD crash... Sad
Fundamental Collection | Vimeo channel | My blog
I found less problems with MagicYUV as well although like you said Lagarith has done great for along time and still does on most files. These are the only 2 i have used and continue to use.
(This post was last modified: 2015-03-17, 06:48 PM by DoomBot.)
Lagarith did a good job until now, but I can't trust it anymore...

So, it's time to say good bye to it, and welcome MagicYUV - hoping it will not have problems in the future!!!
Sadly my projects are lost due to an HDD crash... Sad
Fundamental Collection | Vimeo channel | My blog
(2015-03-17, 09:14 PM)spoRv Wrote: Lagarith did a good job until now, but I can't trust it anymore...

So, it's time to say good bye to it, and welcome MagicYUV - hoping it will not have problems in the future!!!


I started on HuffyUV. Then moved to Lagarith for later projects. I've had no issues with Lagarith, but I'm up for giving MagicYUV a try though.
If you're OK with sticking to 8-bit, then check out UtVideo. It's actively maintained; gets a great compression ratio; has cross-platform support with pretty good performance; and even has an encoder and decoder builtin to FFmpeg!

http://umezawa.dyndns.info/archive/utvideo/
Assuming you are working with retail/hdtv releases, they will be 8-bit anyway. You only have to worry about something better if dealing with something like a 16mm/35mm film scan.

You state that the compression rates are decent. How do they compare to the other formats and how much is the time of encoding affected by using this codec in comparison to the others?
(2015-04-02, 08:40 AM)jerryshadoe Wrote: Assuming you are working with retail/hdtv releases, they will be 8-bit anyway. You only have to worry about something better if dealing with something like a 16mm/35mm film scan.

You state that the compression rates are decent. How do they compare to the other formats and how much is the time of encoding affected by using this codec in comparison to the others?

We often work with 16mm and 35mm film scans. I now have more >8-bit material to work with than 8-bit material!

I'll try to dig up some benchmarks later today (3AM here).
No worries, it's nearly 1 am here and I'm still working on my current project, LOL

I understand that for the purposes of projects on Fanres you need something better than 8-bit and I think MagicYUV is the best option there.

It's impressive that you have more >8-bit material than 8-bit material - honestly, I'm a little jealous Tongue

No rush on those benchmarks as I'm asking more out of curiosity than needing to use the codec at the moment, but I'm sure there will be some others that are wondering as well how this codec holds up against the others.
I use UTVideo for capturing whatever I need.
since all of the above discussed lossless codecs are windows only, lets go over to the mac.
here we have a few options...

apple prores
quicktime animation codec
avid's dnxhd

there are a few more, but these 3 are the most common ones.

apple prores has a variety of settings to match the best usage of your project and what you want to do with your footage. if you simply just want to edit something, at the same time doesn't take up tons of space, go proxy. when you're in the finishing state, switch from proxy to prores 422 for sd or proress 422 hq when editing hd. prores 4444 should only be used if you're going color correction and vfx works.
i highly recommend to stay away from prores created with ffmpeg, as it can result into problems with final cut pro and nle or graphic applications such as after effects. trust, i went down that road and it wasn't pretty.
if you're on windows and you get prores files, simply install the official prores quicktime decoder plugin and you're set to go.

the animation codec is very good for graphics and animation created in such tools as after effects and the like. in pure video projects, e.g. editing, i wouldn't recommend it as file size can be an issue. use prores instead.

as for avid's dnxhd... if you work a lot with avid, the usage of this codec is recommended over prores. avid works with prores pretty smoothly, but dnxhd still works better. the codec is also available on windows, which makes working on both platform using avid even smoother.
(This post was last modified: 2015-04-19, 06:41 PM by bendermac.)

Possibly Related Threads…
Thread Author Replies Views Last Post
  AV1 (AOMedia Video 1) [main thread] spoRv 24 4,868 2022-01-08, 10:08 PM
Last Post: spoRv
  44.1khz Lossless Options borisanddoris 7 800 2021-12-01, 06:07 PM
Last Post: borisanddoris
  Is there a lossless (or as close as possible) way to convert from 30 fps to 23.976? Serums 2 3,494 2021-11-16, 01:34 PM
Last Post: Serums
  [Help] Sync audio to video (different fps and rips) JackForrester 14 1,952 2021-09-05, 01:57 AM
Last Post: JackForrester
  4K 10bit Rec2020 HDR to Lossless format for editing ? CSchmidlapp 19 3,021 2021-02-04, 01:55 PM
Last Post: CSchmidlapp
  H.266 Codec = 50% Reduction In File Size marin888 8 1,973 2020-07-07, 02:59 PM
Last Post: spoRv
  Interlaced video in HQ codec pipefan413 10 3,356 2020-05-19, 02:13 AM
Last Post: pipefan413
  Lossless codecs Colek 3 3,594 2019-11-17, 04:51 PM
Last Post: CSchmidlapp
  How to remove every 25th dupe frame from h264 video Plissken1138 8 3,832 2019-03-31, 12:04 AM
Last Post: Chewtobacca
  [Help] 25fps PAL video mastered at 24fps with dupe frames SpaceBlackKnight 3 2,439 2019-03-26, 03:59 AM
Last Post: SpaceBlackKnight



Users browsing this thread: 1 Guest(s)