Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#5535 closed defect (invalid)

overlaying video on top of another with enable=between() option does not work as expected.

Reported by: neuro_sys Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: overlay
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I expect it to overlay the [1:v] image stream on top of [0:v] between seconds 1 and 5 with the below command.

ffmpeg \
    -y \
    -i small.mp4 \
    -i monkey/monkey_%04d.png \
    -filter_complex "[0:v][1:v]overlay=enable='between(t,1,5)'[out1]" \
    -map '[out1]' \
    output.mp4

You may download the test case tarball from this link:

It includes assets for the test case.

The build I tried with:

  • ffmpeg-3.0.2-64bit-static (available online)

Attachments (1)

ffmpeg-overlay-test.tar.gz (387.2 KB) - added by neuro_sys 3 years ago.
test-case

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by neuro_sys

test-case

comment:1 Changed 3 years ago by neuro_sys

  • Resolution set to invalid
  • Status changed from new to closed

comment:2 Changed 3 years ago by neuro_sys

  • Summary changed from overlaying video on top of another with enable=between() option fails to overlaying video on top of another with enable=between() option does not work as expected.

As someone suggested on stackoverflow, the correct use of the command was as following:

ffmpeg \
    -y \
    -i small.mp4 \
    -i monkey/monkey_%04d.png \
    -filter_complex "[1:v]setpts=PTS-STARTPTS+(1/TB)[1v]; \
    [0:v][1v]overlay=enable='between(t,1,5)'[out1]" \
    -map '[out1]' \
    output.mp4

Therefor I'm setting this as invalid/closed.

comment:3 Changed 3 years ago by cehoyos

  • Keywords enable between removed
Note: See TracTickets for help on using tickets.