[FFmpeg-devel] [PATCH 2/2] ffmpeg: do not finish output streams manually on eof even if no input is provided

Marton Balint cus at passwd.hu
Mon Mar 19 22:56:04 EET 2018



On Mon, 19 Mar 2018, Michael Niedermayer wrote:

> On Sun, Mar 18, 2018 at 08:09:09PM +0100, Marton Balint wrote:
>> The generic code should be able to finish the streams just fine initializing
>> and flushing the filters and codecs properly.
>>
>> Signed-off-by: Marton Balint <cus at passwd.hu>
>> ---
>>  fftools/ffmpeg.c | 12 +-----------
>>  1 file changed, 1 insertion(+), 11 deletions(-)
>
> This changes:
> ./ffmpeg -i ~/tickets/3015/test_video -filter:a apad -f flv -vcodec flv -ar 22050 -shortest test.flv
>
> Didnt investigate beyond a quick look which didnt tell me anything.
> If the change is good this could be turned into a fate test

Change seems good, before the change no audio stream was written, after 
the change an audio stream is written with the same length as the video, 
so the command line (using -shortest with apad filter) actually starting 
to make sense.

Regards,
Marton


More information about the ffmpeg-devel mailing list