@ -1311,6 +1311,17 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
st - > time_base = q ;
st - > time_base = q ;
}
}
MATCH_PER_STREAM_OPT ( enc_time_bases , str , time_base , oc , st ) ;
if ( time_base ) {
AVRational q ;
if ( av_parse_ratio ( & q , time_base , INT_MAX , 0 , NULL ) < 0 | |
q . den < = 0 ) {
av_log ( NULL , AV_LOG_FATAL , " Invalid time base: %s \n " , time_base ) ;
exit_program ( 1 ) ;
}
ost - > enc_timebase = q ;
}
ost - > max_frames = INT64_MAX ;
ost - > max_frames = INT64_MAX ;
MATCH_PER_STREAM_OPT ( max_frames , i64 , ost - > max_frames , oc , st ) ;
MATCH_PER_STREAM_OPT ( max_frames , i64 , ost - > max_frames , oc , st ) ;
for ( i = 0 ; i < o - > nb_max_frames ; i + + ) {
for ( i = 0 ; i < o - > nb_max_frames ; i + + ) {
@ -3629,6 +3640,11 @@ const OptionDef options[] = {
{ " time_base " , HAS_ARG | OPT_STRING | OPT_EXPERT | OPT_SPEC | OPT_OUTPUT , { . off = OFFSET ( time_bases ) } ,
{ " time_base " , HAS_ARG | OPT_STRING | OPT_EXPERT | OPT_SPEC | OPT_OUTPUT , { . off = OFFSET ( time_bases ) } ,
" set the desired time base hint for output stream (1:24, 1:48000 or 0.04166, 2.0833e-5) " , " ratio " } ,
" set the desired time base hint for output stream (1:24, 1:48000 or 0.04166, 2.0833e-5) " , " ratio " } ,
{ " enc_time_base " , HAS_ARG | OPT_STRING | OPT_EXPERT | OPT_SPEC | OPT_OUTPUT , { . off = OFFSET ( enc_time_bases ) } ,
" set the desired time base for the encoder (1:24, 1:48000 or 0.04166, 2.0833e-5). "
" two special values are defined - "
" 0 = use frame rate (video) or sample rate (audio), "
" -1 = match source time base " , " ratio " } ,
{ " bsf " , HAS_ARG | OPT_STRING | OPT_SPEC | OPT_EXPERT | OPT_OUTPUT , { . off = OFFSET ( bitstream_filters ) } ,
{ " bsf " , HAS_ARG | OPT_STRING | OPT_SPEC | OPT_EXPERT | OPT_OUTPUT , { . off = OFFSET ( bitstream_filters ) } ,
" A comma-separated list of bitstream filters " , " bitstream_filters " } ,
" A comma-separated list of bitstream filters " , " bitstream_filters " } ,