Ignore:
Timestamp:
Apr 11, 2011 8:04:27 PM (13 years ago)
Author:
nanang
Message:

Re #1219:

  • Applied max RTP payload size ffmpeg setting (for customized ffmpeg patch only).
  • Updated some ffmpeg setting (qmin, qmax) for bitrate control.
  • Updated ffmpeg codec default size for decoding direction.
  • Removed own timestamp management in ffmpeg encoder.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3502 r3522  
    261261              {{"QCIF",4},  {"1",1}}, } }, 
    262262    }, 
     263/* 
     264    { 
     265        {PJMEDIA_FORMAT_H263, PJMEDIA_RTP_PT_H263, {"H263",4}}, 
     266        PJMEDIA_FORMAT_H263,    1000000,    2000000, 
     267        &h263_packetize, &h263_unpacketize, &h263_preopen, NULL, NULL, 
     268        {2, { {{"CIF",3},   {"1",1}},  
     269              {{"QCIF",4},  {"1",1}}, } }, 
     270    }, 
     271*/ 
    263272    { 
    264273        {PJMEDIA_FORMAT_H263,   PJMEDIA_RTP_PT_H263,    {"H263",4}}, 
     
    351360        ctx->me_range = 16; 
    352361        ctx->max_qdiff = 4; 
    353         ctx->qmin = 10; 
    354         ctx->qmax = 51; 
     362        ctx->qmin = 20; 
     363        ctx->qmax = 32; 
    355364        ctx->qcompress = 0.6f; 
     365 
     366        ctx->rtp_payload_size = ff->param.enc_mtu; 
    356367    } 
    357368 
     
    789800    /* Decoded format */ 
    790801    pjmedia_format_init_video(&attr->dec_fmt, desc->info.dec_fmt_id[0], 
    791                               352, 288, 30000, 1001); 
     802                              //352, 288, 30000, 1001); 
     803                              720, 576, 30000, 1001); 
    792804 
    793805    /* Decoding fmtp */ 
     
    12491261 
    12501262    avcodec_get_frame_defaults(&avframe); 
     1263 
     1264    // Let ffmpeg manage the timestamps 
     1265    /* 
    12511266    src_timebase.num = 1; 
    12521267    src_timebase.den = ff->desc->info.clock_rate; 
    12531268    avframe.pts = av_rescale_q(input->timestamp.u64, src_timebase, 
    12541269                               ff->enc_ctx->time_base); 
     1270    */ 
    12551271     
    12561272    for (i[0] = 0; i[0] < ff->enc_vfi->plane_cnt; ++i[0]) { 
Note: See TracChangeset for help on using the changeset viewer.