This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

H.264 encoder v. 02 presets on DM365

Hello everybody,

I'm trying to encode video 192x144 on the EVM DM365 board by standalone application (h264venc-r). 

Could anyone please tell me what settings I suold use for perform CBR stream? Is it possible to use encodingPreset = XDM_HIGH_QUALITY preset or just one way to run it in the  backward compatible mode 1.1?

 

Best regards,

Vladimir.

  • Hi Vladimir,

    To encode 192x144 res you need to use only backword compatible mode. And for CBR stream, please set  RC_preset to userdefined and rcAlgo to 0.

    Thanks,

    Veeranna

  • Thank you very much Veeranna,

    It works now. But in my case much suitable to pad horizontal resolution up to 320 pixels in order to run encoder with encodingPreset = XDM_HIGH_QUALITY.

    I've faced with another difficulty. I need to make stream with 8 fps frame rate. When I set FrameRate perameter to 8000 I'm expexting to see num_units_in_tick = 1, time_scale=16 and fixed_frame_rate_flag = 1 in vui_parameters. But acctually I've got 2, 60 and 0 respectively (it means 15 fps). Moreover with this settings of frame rate the resulted bitrate exceeds required bitrate more than 20%.

      Could you please help me how to tune encoder for 8 fps stream encoding?

    Many thanks,

    Vladimir.

  • Hi,

    VUI params you are seeing are the default VUI params. Codec will not compute these params, it just puts VUI information provided by application into bitstream.

    Please pass VUI information to codec, and check userguide to know about passing the VUI information.

    For fps thing, hope you are changing targetFrameRate param. Can you pl send res and RC related params?

    Thanks,

    Veeranna

  • Hi Veeranna,

    I'm playing with standalone application (h264venc-r) and therefore I can't drive IVIDENC1 parameters directly. I'm writing own application which will pass VUI information and etc. But now I would like to know what is relation between BitRate parameter in the testparams.cfg and XDAS_Int32 maxBitRate, XDAS_Int32 targetBitRate. 

    I guess that XDAS_Int32 targetBitRate and BitRate are the same. Am I wrong?

    There are my res and RC params:

    ImageWidth              = 384    
    ImageHeight             = 144    
    FrameRate               = 8000  
    BitRate                 = 12000     
    RC_PRESET               = 1      
    ENC_PRESET              = 1

    RateControl             = 0          
    MaxDelay                = 2000     

    PerceptualRC            = 0

    EncoderQuality          = 1

    Best Regards,

    Vladimir