Revision 09a45576 ffmpeg.c

View differences:

ffmpeg.c
163 163
static int subtitle_codec_id = CODEC_ID_NONE;
164 164
static char *subtitle_language = NULL;
165 165

  
166
static int mux_rate= 0;
167 166
static int mux_packet_size= 0;
168 167
static float mux_preload= 0.5;
169 168
static float mux_max_delay= 0.7;
......
3317 3316
    }
3318 3317

  
3319 3318
    oc->packet_size= mux_packet_size;
3320
    oc->mux_rate= mux_rate;
3321 3319
    oc->preload= (int)(mux_preload*AV_TIME_BASE);
3322 3320
    oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE);
3323 3321
    oc->loop_output = loop_output;
......
3709 3707
        audio_sample_rate = 44100;
3710 3708

  
3711 3709
        mux_packet_size= 2324;
3712
        mux_rate= 2352 * 75 * 8;
3710
        opt_default("muxrate", "1411200"); // 2352 * 75 * 8;
3713 3711

  
3714 3712
        /* We have to offset the PTS, so that it is consistent with the SCR.
3715 3713
           SCR starts at 36000, but the first two packs contain only padding
......
3755 3753
        opt_default("bufsize", "1835008"); //224*1024*8;
3756 3754

  
3757 3755
        mux_packet_size= 2048;  // from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this is also the size of one pack.
3758
        mux_rate = 10080000;    // from mplex project: data_rate = 1260000. mux_rate = data_rate * 8
3756
        opt_default("muxrate", "10080000"); // from mplex project: data_rate = 1260000. mux_rate = data_rate * 8
3759 3757

  
3760 3758
        audio_bit_rate = 448000;
3761 3759
        audio_sample_rate = 48000;
......
3980 3978
    { "gd", HAS_ARG | OPT_EXPERT | OPT_VIDEO | OPT_GRAB, {(void*)opt_grab_device}, "set grab device", "device" },
3981 3979

  
3982 3980
    /* muxer options */
3983
    { "muxrate", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&mux_rate}, "set mux rate", "rate" },
3984 3981
    { "packetsize", OPT_INT | HAS_ARG | OPT_EXPERT, {(void*)&mux_packet_size}, "set packet size", "size" },
3985 3982
    { "muxdelay", OPT_FLOAT | HAS_ARG | OPT_EXPERT, {(void*)&mux_max_delay}, "set the maximum demux-decode delay", "seconds" },
3986 3983
    { "muxpreload", OPT_FLOAT | HAS_ARG | OPT_EXPERT, {(void*)&mux_preload}, "set the initial demux-decode delay", "seconds" },

Also available in: Unified diff