load_options("encode.opts", opts);
}
ff_unlock();
- start_muxer();
return ret;
}
ctx->channel_layout = av_get_default_channel_layout(ctx->channels);
ctx->sample_rate = check_sample_rate(codec, asset->sample_rate);
if( !ctx->sample_rate ) {
- eprintf("FFMPEG::open_audio_encode:"
+ eprintf("FFMPEG::open_encoder:"
" check_sample_rate failed %s\n", filename);
ret = 1;
break;
ctx->pix_fmt = codec->pix_fmts ? codec->pix_fmts[0] : AV_PIX_FMT_YUV420P;
AVRational frame_rate = check_frame_rate(codec, vid->frame_rate);
if( !frame_rate.num || !frame_rate.den ) {
- eprintf("FFMPEG::open_audio_encode:"
+ eprintf("FFMPEG::open_encoder:"
" check_frame_rate failed %s\n", filename);
ret = 1;
break;
}
ff_unlock();
+ if( !ret )
+ start_muxer();
av_dict_free(&sopts);
return ret;
}
frame_rates.append(new BC_ListBoxItem("10"));
frame_rates.append(new BC_ListBoxItem("12"));
frame_rates.append(new BC_ListBoxItem("15"));
- frame_rates.append(new BC_ListBoxItem("23.97"));
+ frame_rates.append(new BC_ListBoxItem("23.976"));
frame_rates.append(new BC_ListBoxItem("24"));
frame_rates.append(new BC_ListBoxItem("25"));
frame_rates.append(new BC_ListBoxItem("29.97"));