almalence / OpenCamera

Open camera project - multi-functional camera application for android.
Other
1.1k stars 416 forks source link

Video quality instead of fixed bitrate #89

Open jaggzh opened 4 years ago

jaggzh commented 4 years ago

I wish I could code this and contribute myself. I might try my hand at it. The choice of either default vs. fixed bitrates is cumbersome when changing resolutions. The problem I face is that default produces really large file sizes, but a fixed bitrate doesn't match my frequently changing resolutions (and is often guesswork).

Offering a quality setting could readily address this. I'm not proposing an algorithmic quality evaluation, but a simple calculation of bitrate from resolution (pixels): something like quality_coefficientconstantbitrate_base.

Maybe something like... In the video settings: Bitrate method: Constant, Quality Bitrate (when constant): {Current option's settings stay here} Video quality (0 is best. Default is 23):

This matches ffmpeg's crf option, which may be misleading because ffmpeg attempts to maintain quality based on content.

Also I feel like I want to do something with the ui resolution selection. Not sure if the ui tools handle it, but maybe the same spot, but instead of tapping, having that area be a left-right slider, or popping up a larger selector to quickly get to a desired resolution. But that's a separate topic.

I'm just grateful this project exists. :)