Are there any docs on how to set the avcodec library for the equivalent command line parameters (eg profile=high) ? I need to generate highest possible quality mp4 output in an app but however high I set the codec->bitrate field I get a poor quality result And the player says the file is only 1000bps and qf=0.02 Martin