Changeset 3998 for pjproject/trunk


Ignore:
Timestamp:
Mar 30, 2012 6:46:48 AM (12 years ago)
Author:
nanang
Message:

Misc (re #1446): Avoid unnecessary high latency caused by clock drift or call setup lag by overriding initial framerate setting to be 1.5x higher in video stream decoding direction. Note that a previous method in r3972 has just been cancelled.

Location:
pjproject/trunk/pjmedia/src
Files:
2 edited

Legend:

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

    r3972 r3998  
    924924    pjmedia_format_init_video(&attr->dec_fmt, desc->info.dec_fmt_id[0], 
    925925                              desc->size.w, desc->size.h, 
    926                               desc->fps.num*3/2, desc->fps.denum); 
     926                              desc->fps.num, desc->fps.denum); 
    927927 
    928928    /* Decoding fmtp */ 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c

    r3982 r3998  
    13931393                           vfd_enc->fps.denum / vfd_enc->fps.num; 
    13941394 
     1395    /* Override the initial framerate in the decoding direction. This initial 
     1396     * value will be used by the renderer to configure its clock, and setting 
     1397     * it to a bit higher value can avoid the possibility of high latency 
     1398     * caused by clock drift (remote encoder clock runs slightly faster than 
     1399     * local renderer clock) or video setup lag. Note that the actual framerate 
     1400     * will be continuously calculated based on the incoming RTP timestamps. 
     1401     */ 
     1402    vfd_dec->fps.num = vfd_dec->fps.num * 3 / 2; 
     1403 
    13951404    /* Create decoder channel */ 
    13961405    status = create_channel( pool, stream, PJMEDIA_DIR_DECODING,  
Note: See TracChangeset for help on using the changeset viewer.