Opened 5 years ago

Last modified 4 years ago

#8715 new defect

The -shortest option has no effect in combination finite and endless streams with any filter applied to finite stream

Reported by: Vladimir Stavrinov Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: mrskman@gmail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

I am not sure it is the same problem as #3789, sorry if I am wrong opening separate issue.

In the example below, You can replace the color with any other source filter or even with live stream and acopy with any other filter and You will get the same result - it will be running forever. Moreover, You could swap audio and video roles in this test - it doesn't matter. What matters is the common rule: You combine finite and endless streams and apply filter fo the finite one.

How to reproduce:

ffmpeg -i audio -filter_complex 'acopy;color' -f mpegts -shortest - > /dev/null

ffmpeg version  N-98059-g49d37b4b61
built on Linux 5.6.0

Attachments (2)

audio (31.4 KB ) - added by Vladimir Stavrinov 5 years ago.
ffmpeg-20200606-163650.log (7.3 KB ) - added by Vladimir Stavrinov 5 years ago.

Download all attachments as: .zip

Change History (5)

by Vladimir Stavrinov, 5 years ago

Attachment: audio added

by Vladimir Stavrinov, 5 years ago

Attachment: ffmpeg-20200606-163650.log added

comment:1 by Vladimir Stavrinov, 5 years ago

Summary: -shortest has no effect in combination finite and endless streams with any filter applied to finite streamThe -shortest option has no effect in combination finite and endless streams with any filter applied to finite stream

comment:2 by mrskman, 4 years ago

I had the same issue. Workaround is using separate -filter_complex argument for every output stream:

ffmpeg -i audio -filter_complex 'acopy' -filter_complex 'color' -f mpegts -shortest - > /dev/null

comment:3 by mrskman, 4 years ago

Cc: mrskman@gmail.com added
Note: See TracTickets for help on using tickets.