| 69 | | As stated before, the main problem with H264 is the frame-by-frame scrubbing, but aside from that we found that it produces the most color correct output and clips of very high quality. For purely playback applications it is definitely the codec to go with, as it plays on pretty much everything. One thing to keep in mind is that encoding H264 does take the longest out of all the three codecs we tested. (but we haven't played with encoder optimization because we were after the best quality clips, so your mileage may vary). |
| | 69 | ==== Frame-by-Frame scrubbing |
| | 70 | As stated before, the main problem with H264 is the frame-by-frame scrubbing, but aside from that we found that it produces the most color correct output and clips of very high quality. For purely playback applications it is definitely the codec to go with, as it plays on pretty much everything. One way around this is to make every frame in the H264 clip an I-frame. This will eliminate the presence of P-frames and B-frames but will therefore pretty much eliminate the incredible space savings that H264 offers. This is achieved by setting the -bf parameter to 0 (-bf stands for bframe) and the -g (keyint) parameter to 1. Using these settings will require a lower CRF setting, usually around 7 - 11 would be good. If a clip is encoded like this with only I-frames, then scrubbing frame-by-frame is no longer a problem and the playback is actually much better and easier, as there is no need to compute the P-frames out of the I-frames. |
| | 77 | |
| | 78 | == Size comparison |
| | 79 | This chapter provides an overview of the size and bitrates of the resulting clips when generated using different codecs and different settings. |
| | 80 | ||= Codec =||= Colorspace =||= Resolution =||= Bitrate kbps =||= FPS =||= Size =||= Settings =|| |
| | 81 | || apch || yuv422p10le || 2048x1152 || 298810 || 48 || 342M || Prores HQ qscale 5 || |
| | 82 | || apch || yuv422p10le || 2048x1152 || 123706 || 48 || 142M|| Prores HQ qscale 15 || |
| | 83 | || apcn || yuv422p10le || 2048x1152 || 226430 || 48 || 260M || Prores SQ qscale 5 || |
| | 84 | || apcn || yuv422p10le || 2048x1152 || 98805 || 48 || 114M || Prores SQ qscale 15 || |
| | 85 | || apcs || yuv422p10le || 2048x1152 || 177594 || 48 || 204M || Prores LT qscale 5 || |
| | 86 | || apcs || yuv422p10le || 2048x1152 || 79015 || 48 || 91M || Prores LT qscale 5 || |
| | 87 | || jpeg || yuvj422p || 2048x1152 || 134660 || 48 || 155M || Photo JPEG qscale 1 || |
| | 88 | || avc1 || yuvj422p || 2048x1152 || 207538 || 48 || 238M || H264, keyint = 1, CRF 7 || |
| | 89 | || avc1 || yuvj422p || 2048x1152 || 130145 || 48 || 149M || H264, keyint = 1, CRF 11 || |
| | 90 | || avc1 || yuvj422p || 2048x1152 || 21865 || 48 || 26M || H264, keyint = 48, CRF 17 || |
| | 91 | || avc1 || yuvj422p || 2048x1152 || 146389 || 48 || 168M || H264, keyint = 48, CRF 7 || |
| | 92 | || avc1 || yuvj422p || 2048x1152 || 286524 || 48 || 328M || H264, keyint = 48, CRF 1 || |