[FFmpeg-trac] #3789(ffmpeg:open): shortest command doesnt work when using a filter_complex with audio and video filters

FFmpeg trac at avcodec.org
Tue Jul 21 14:51:08 EEST 2020


#3789: shortest command doesnt work when using a filter_complex with audio and
video filters
------------------------------------+----------------------------------
             Reporter:  phingers    |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:  shortest    |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+----------------------------------
Changes (by mrskman):

 * cc: mrskman@… (added)


Comment:

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

 {{{
 ffmpeg -i AUDIO -i VIDEO \
  -filter_complex '[0:a]apad[audio]' \
  -filter_complex '[0:v]scale=-2:720[video]' \
  -map '[audio]' -map '[video]' \
  -shortest \
  OUTPUT
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3789#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list