Ignore:
Timestamp:
May 13, 2006 10:46:23 PM (18 years ago)
Author:
bennylp
Message:

Another major modifications in PJMEDIA:

  • handle multiple frames in one packet
  • split stream creation into two steps to allow customization
  • PLC framework and implementation with G.711 and speex
  • stream returns NO_FRAME correctly.
  • added ptime argument in pjsua
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_settings.c

    r422 r438  
    9595    puts  ("  --complexity=N      Specify encoding complexity (0-10, default=none(-1))"); 
    9696    puts  ("  --quality=N         Specify encoding quality (0-10, default=4)"); 
     97    puts  ("  --ptime=MSEC        Override codec ptime to MSEC (default=specific)"); 
    9798    puts  (""); 
    9899    puts  ("Buddy List (can be more than one):"); 
     
    228229           OPT_AUTO_CONF, OPT_CLOCK_RATE, 
    229230           OPT_PLAY_FILE, OPT_RTP_PORT, OPT_ADD_CODEC, 
    230            OPT_COMPLEXITY, OPT_QUALITY, 
     231           OPT_COMPLEXITY, OPT_QUALITY, OPT_PTIME, 
    231232           OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, OPT_UAS_REFRESH, 
    232233           OPT_UAS_DURATION, 
     
    267268        { "complexity", 1, 0, OPT_COMPLEXITY}, 
    268269        { "quality",    1, 0, OPT_QUALITY}, 
     270        { "ptime",      1, 0, OPT_PTIME}, 
    269271        { "next-account",0,0, OPT_NEXT_ACCOUNT}, 
    270272        { "next-cred",  0, 0, OPT_NEXT_CRED}, 
     
    556558                PJ_LOG(1,(THIS_FILE, 
    557559                          "Error: invalid --quality (expecting 0-10")); 
     560                return -1; 
     561            } 
     562            break; 
     563 
     564        case OPT_PTIME: 
     565            pjsua.ptime = my_atoi(pj_optarg); 
     566            if (pjsua.ptime < 10 || pjsua.ptime > 1000) { 
     567                PJ_LOG(1,(THIS_FILE, 
     568                          "Error: invalid --ptime option")); 
    558569                return -1; 
    559570            } 
     
    772783 
    773784        PJ_LOG(3,(THIS_FILE, 
    774                "                  TX pt=%d, stat last update: %s\n" 
     785               "                  TX pt=%d, ptime=%dms, stat last update: %s\n" 
    775786               "                     total %spkt %sB (%sB +IP hdr)%s\n" 
    776787               "                     pkt loss=%d (%3.1f%%), dup=%d (%3.1f%%), reorder=%d (%3.1f%%)%s\n" 
     
    779790               "                     jitter     : %7.3f %7.3f %7.3f %7.3f%s", 
    780791               info.stream_info[i].tx_pt, 
     792               info.stream_info[i].param->info.frm_ptime * 
     793                info.stream_info[i].param->setting.frm_per_pkt, 
    781794               last_update, 
    782795               good_number(packets, stat.tx.pkt), 
     
    970983    char line[128]; 
    971984 
     985    PJ_UNUSED_ARG(max); 
     986 
    972987    cfg.ptr = buf; 
    973988    cfg.slen = 0; 
     
    10971112    pj_strcat2(&cfg, line); 
    10981113 
     1114    /* ptime */ 
     1115    if (pjsua.ptime) { 
     1116        pj_ansi_sprintf(line, "--ptime %d\n", 
     1117                        pjsua.ptime); 
     1118        pj_strcat2(&cfg, line); 
     1119    } 
     1120 
    10991121    /* Start RTP port. */ 
    11001122    pj_ansi_sprintf(line, "--rtp-port %d\n", 
Note: See TracChangeset for help on using the changeset viewer.