ultravideo / kvazaar

An open-source HEVC encoder
BSD 3-Clause "New" or "Revised" License
834 stars 178 forks source link

Constant bitrate for tiles #197

Open 21praveen opened 6 years ago

21praveen commented 6 years ago

Is there a way to ensure constant bitrate for tiles in mv-constraint frametilemargin encoding? The variable bitrates are adversely affecting the rate adaptation.

Arizer commented 6 years ago

Hi, have you tried using the --bitrate option?

21praveen commented 6 years ago

I am using --bitrate. But at tiles levels, the bitrates are different (after segmentation using GPAC MP4Box).

Arizer commented 6 years ago

I looked at the code, it looks like the bit allocation is made currently only on frame level as you implied. I don't think there is a reasonable way to ensure uniform bitrate between tiles at the moment. Implementing this would be fairly simple but I can't promise anything.