thethrillness.blogspot.com
I decided to see what the current state of lossless codecs were like. Most people including me usually recommend Lagarith but lets see if it actually is the best choice for capturing a speedrun.
With SD footage it doesn't really matter what codec you use since the resolution is small but in my opinion it is when you start to introduce 720p and 1080p that the codec choice becomes more important.
I am using AmarecTV 2.31 and a PS3 running the intro to MGS4 with HDMI at 720p. A 1 minute 30 second sample was recorded of the same scenes for each codec. It's a good blend between static, slow and fast movement to really test each codec.
So the codecs we are trying along with maximum bitrate and cpu usage achieved during testing are below. These were taken from Amarec's stats. The colorspace was YUY2. File sizes have also been included.
Ut Video ULH2 (4:2:2) - 51 Mb/s and 25% cpu max - 2.20gb
Ut Video ULH0 (4:2:0) - 40 Mb/s and 25% cpu max - 2.19gb
Lagarith (used multithreading) - 42 Mb/s and 43% cpu max - 1.85gb
Huffyuv - 55 Mb/s and 30% cpu max - 3.30gb
x264vfw (Convert to YUV 4:2:0) - 19 Mb/s and 7% cpu max - 850mb
x264vfw (Keep/Accept Only YUV 4:2:2) - 21 Mb/s and 7% cpu max - 975mb
x264vfw (Keep input colorspace) - 21 Mb/s and 7% cpu max - 950mb (seems identical to the keep/accept only option).
^ All x264vfw tests used the Ultra fast preset and obviously the single pass lossless mode.
Some observations:
1. ULH2 and ULH0 although have a significant bit rate difference in high motion the small 1:30 sample is not enough to show a filesize difference.
2. Lagarith takes too much CPU for my liking. Especially if you are considering streaming. ULH2 is a worthy replacement if you don't mind slightly higher filesizes.
3. Huffyuv is not even worth considering with those numbers. The file size is much larger because I noticed that even during static scenes Huffyuv will still require a high bitrate where some of the other codecs don't.
4. I honestly can't tell a visual difference between x264 even with Convert to YUV 4:2:0 and Lagarith in YUY2 mode but just for safety and an increase in 2Mb/s you may as well use keep input colorspace to retain 4:2:2.
I feel with these preliminary tests we should consider x264vfw a major candidate and recommendation over Lagarith. The massive reduction in bit rate and CPU usage is very attractive. What interested me was that with all 3 settings MediaInfo reported 4:2:0 subsampling which worried me but Yua reported yuv422p for both the keep/accept 422 and keep input colorspace option (it showed yuv420p for the convert 420 option as expected). Not sure what program to believe.
Feel free to do your own testing and report back!
With SD footage it doesn't really matter what codec you use since the resolution is small but in my opinion it is when you start to introduce 720p and 1080p that the codec choice becomes more important.
I am using AmarecTV 2.31 and a PS3 running the intro to MGS4 with HDMI at 720p. A 1 minute 30 second sample was recorded of the same scenes for each codec. It's a good blend between static, slow and fast movement to really test each codec.
So the codecs we are trying along with maximum bitrate and cpu usage achieved during testing are below. These were taken from Amarec's stats. The colorspace was YUY2. File sizes have also been included.
Ut Video ULH2 (4:2:2) - 51 Mb/s and 25% cpu max - 2.20gb
Ut Video ULH0 (4:2:0) - 40 Mb/s and 25% cpu max - 2.19gb
Lagarith (used multithreading) - 42 Mb/s and 43% cpu max - 1.85gb
Huffyuv - 55 Mb/s and 30% cpu max - 3.30gb
x264vfw (Convert to YUV 4:2:0) - 19 Mb/s and 7% cpu max - 850mb
x264vfw (Keep/Accept Only YUV 4:2:2) - 21 Mb/s and 7% cpu max - 975mb
x264vfw (Keep input colorspace) - 21 Mb/s and 7% cpu max - 950mb (seems identical to the keep/accept only option).
^ All x264vfw tests used the Ultra fast preset and obviously the single pass lossless mode.
Some observations:
1. ULH2 and ULH0 although have a significant bit rate difference in high motion the small 1:30 sample is not enough to show a filesize difference.
2. Lagarith takes too much CPU for my liking. Especially if you are considering streaming. ULH2 is a worthy replacement if you don't mind slightly higher filesizes.
3. Huffyuv is not even worth considering with those numbers. The file size is much larger because I noticed that even during static scenes Huffyuv will still require a high bitrate where some of the other codecs don't.
4. I honestly can't tell a visual difference between x264 even with Convert to YUV 4:2:0 and Lagarith in YUY2 mode but just for safety and an increase in 2Mb/s you may as well use keep input colorspace to retain 4:2:2.
I feel with these preliminary tests we should consider x264vfw a major candidate and recommendation over Lagarith. The massive reduction in bit rate and CPU usage is very attractive. What interested me was that with all 3 settings MediaInfo reported 4:2:0 subsampling which worried me but Yua reported yuv422p for both the keep/accept 422 and keep input colorspace option (it showed yuv420p for the convert 420 option as expected). Not sure what program to believe.
Feel free to do your own testing and report back!
Thread title: