ffmpeg - How to avoid audio pts start from zero after reconfigure the atempo? -
i found pts of audio start 0 if reconfigure atempo filter in ijkplayer based on ffplay.
the code snippet ijkplayer
#ifdef ffp_avfilter_playback_rate if (fabsf(ffp->pf_playback_rate) > 0.00001 && fabsf(ffp->pf_playback_rate - 1.0f) > 0.00001) { if (afilters_args[0]) av_strlcatf(afilters_args, sizeof(afilters_args), ","); av_log(ffp, av_log_info, "af_rate=%f\n", ffp->pf_playback_rate); av_strlcatf(afilters_args, sizeof(afilters_args), "atempo=%f", ffp->pf_playback_rate); } #endif if ((ret = configure_filtergraph(is->agraph, afilters_args[0] ? afilters_args : null, filt_asrc, filt_asink)) < 0) goto end; is->in_audio_filter = filt_asrc; is->out_audio_filter = filt_asink;
how avoid audio pts start 0 after reconfigure atempo filter ?
Comments
Post a Comment