Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using H.264 codec to create MP4 file from images. IMFSinkWriter is used for encoding purpose.
While encoding, I need to control the quality of the encoded video by adjusting the average bit rate parameter value. But I could not get any equation for calculating this.
I tried several equations, but the video behavior is different for different type(resolution) of images.
One of the equation used is Frame width * Frame height * frame rate * Image quality parameter * some constant.
But this is not working for all types of resolutions.
My image quality parameter will be varied from 1 to 100.(Low to High)
Could you please provide an equation to calculate the average bit rate for controlling the image quality from Frame width, Frame height and frame rate?

I tried the VBR encoding but it does not work for the encoding using Sink writer.
Posted
Updated 26-Sep-12 17:55pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900