Changeset 3861 for pjproject/trunk


Ignore:
Timestamp:
Oct 26, 2011 6:56:51 AM (13 years ago)
Author:
nanang
Message:

Re #1390: Updated h264 settings: bitrate from 128k to 512k, size from 352x288 to 720x480, x264 preset from 'veryslow' to 'veryfast'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3853 r3861  
    255255        {PJMEDIA_FORMAT_H264, PJMEDIA_RTP_PT_H264, {"H264",4}, 
    256256         {"Constrained Baseline (level=30, pack=1)", 39}}, 
    257         0,      128000,    1000000, 
     257        0,      512000,    1000000, 
    258258        &h264_packetize, &h264_unpacketize, &h264_preopen, &h264_postopen, 
    259259        &pjmedia_vid_codec_h264_match_sdp, 
     
    407407         * Let's just use the x264 predefined preset & tune. 
    408408         */ 
    409         if (av_set_string3(ctx->priv_data, "preset", "veryslow", 0, NULL)) 
     409        if (av_set_string3(ctx->priv_data, "preset", "veryfast", 0, NULL)) 
    410410        { 
    411411            PJ_LOG(3, (THIS_FILE, "Failed to set x264 preset 'veryfast'")); 
     
    913913    /* Encoded format */ 
    914914    pjmedia_format_init_video(&attr->enc_fmt, desc->info.fmt_id, 
    915                               352, 288, 30000, 1001); 
     915                              720, 480, 30000, 1001); 
    916916 
    917917    /* Decoded format */ 
Note: See TracChangeset for help on using the changeset viewer.