Opened 3 years ago

Closed 3 years ago

#4315 closed defect (invalid)

-shortest option seams to be ignored

Reported by: gabrielstuff Owned by:
Priority: normal Component: ffmpeg
Version: 2.5.2 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


I'm trying to create a video watermark layer using two input : one image and one series of images.
Thus using the last version from osx (2.5.3 and 2.5.2), I've noticed that the encoding never end and the file keeps growing and growing.

How to reproduce:

% ffmpeg -loop 1 -shortest -i images/image001.png -i images/test%04d.png -filter_complex overlay testvid.mp4

fmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
  built on Feb 17 2015 00:24:13 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libfaac --enable-libass --enable-openssl --enable-nonfree --enable-vda
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Hyper fast Audio and Video encoder

Change History (1)

comment:1 Changed 3 years ago by llogan

  • Keywords shortest layer overlay removed
  • Resolution set to invalid
  • Status changed from new to closed

-shortest is an output option as shown in the documentation. I expect that you should have received a message in your console output:

Option shortest (finish encoding within shortest input) cannot be applied to input file image001.png -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file image001.png.
Error opening input files: Invalid argument

However, when using overlay with a looping input you need to use shortest=1 within the overlay filter, such as overlay=shortest=1. See the overlay video filter docs for more info.

Note: See TracTickets for help on using tickets.