[FFmpeg-devel] [PATCH] disable compule_edt in case of filters
Anshul
anshul.ffmpeg at gmail.com
Tue Jul 15 05:26:05 CEST 2014
On July 15, 2014 3:07:23 AM IST, Nicolas George <george at nsup.org> wrote:
>Le septidi 27 messidor, an CCXXII, Anshul Maheshwari a écrit :
>> ---
>> ffmpeg.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/ffmpeg.c b/ffmpeg.c
>> index 3d23ee6..0b1f930 100644
>> --- a/ffmpeg.c
>> +++ b/ffmpeg.c
>> @@ -2283,7 +2283,7 @@ static int init_input_stream(int ist_index,
>char *error, int error_len)
>> ist->dec_ctx->thread_safe_callbacks = 1;
>>
>> av_opt_set_int(ist->dec_ctx, "refcounted_frames", 1, 0);
>> - if(ist->dec_ctx->codec_id == AV_CODEC_ID_DVB_SUBTITLE)
>> + if(ist->dec_ctx->codec_id == AV_CODEC_ID_DVB_SUBTITLE &&
>!ist->nb_filters )
>> av_dict_set(&ist->decoder_opts, "compute_edt", "1", 0);
>>
>> if (!av_dict_get(ist->decoder_opts, "threads", NULL, 0))
>
>What if both a filter and transcoding are used?
>
User still have fix_sub_duration.
>(Relatively unlikely for bitmap subtitles, but still possible.)
>
I was unable to frame ffmpeg command, when filter and transcoding both done. Please help me if you know how can I do it.
-Anshul
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the ffmpeg-devel
mailing list