Andy Uk Posted at 6-13 03:23
Mirek is correct, technically H265 doesn't offer any more quality in terms of retained data and details over the H264 codec. What is does is retain exactly the same detail for upto 50% less storage. Upside is obviously less storage required, downside is you need a lot more CPU and or GPU compute to playback and post edit - the latter is especially a downside is you haven't got a recent i7 CPU for example. So if you don't take any other physical limitations into account e.g. max bitrates then the two codecs retain exactly the same detail.
However the bitrate element can be relevent when it becomes a limiting factor but that all depends on how your camera utilises bitrate, this is why H265 is specifically only available as an option with certain modes e.g. 4k60 (is not h264 available). So say you are shooting 4k30 at max 120mbps bitrate with h264. If you switch to 4k60 h264 with twice as many frames and yet remain limited by the same max bitrate, each frame will have to be compressed by 50% to stay within the physical write limitations. To avoid that compression if you switch to h265 you can reduce the frame compression needed significantly and still operate within the 120mbps max speeds. So you are not loosing as much frame quality by increasing FPS.
Andy UK, A J, Mister Frag,
I thrive on good discussion like that. It expands everybody’s knowledge. Good points from everyone.
Andy UK said something which stopped me in my tracks: “the bitrate element can be relevant when it becomes a limiting factor but that all depends on how your camera utilises bitrate”
We know advantages and disadvantages of technology (H.264 versus H.265) but we do not know how DJI implemented how they encode data coming from their sensor. Nor will they tell us. And this knowledge is crucial to understand if H.265 video files produced by MA2 will have the same or higher quality than H.264 encoded files.
There are two possibilities here: 1. Use the same bitrate for encoding H.264 and H.265 (same file size, higher quality with H.265). 2. Use the same quality for encoding H.264 and H.265 (smaller file size for H.265). With video editing software, you can choose the rendering bitrate and codec. With DJI MA2 you can choose only codec so the rendering bitrate which DJI uses is unknown and can only be found out by experiment. This morning I did a quick experiment which I fully intend to expand on later, when I have more time. I took my MA2 and recorded two short videos with the identical settings (4k/30fps, D-Cinelike). First one was recorded using H.264 codec and the second using H.265 codec.
Both videos were exactly 1 minute long and both recorded in the same environment where I was holding MA2 in my hand and moving it back and forth in front of the textured surface (if it was stationary with non-moving objects, codec would have nothing to optimize and results from H.264 and H.265 would have been hard to compare – codecs would not have been exercised to the their best abilities). I than compared size (bitrate) of both recordings.
And the winner is… not me ☹. As it turns out, DJI implemented algorithm using the same bitrate for H.264 and H.265 recording. Both files I recorded had an average bitrate of just over 100 Mb/s which also means that size of both files was very close. H.265 file was about 1% smaller than H.264. However, knowing that H.265 compression efficiency is up to 50% better than H.264, I must conclude, that H.265 file contained more information than H.264 (video was of higher quality). Mirek
|