Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5535 closed defect (invalid)

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

Reported by: Fırat Salgür 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 Fırat Salgür 9 years ago.
test-case

Download all attachments as: .zip

Change History (4)

by Fırat Salgür, 9 years ago

Attachment: ffmpeg-overlay-test.tar.gz added

test-case

comment:1 by Fırat Salgür, 9 years ago

Resolution: invalid
Status: newclosed

comment:2 by Fırat Salgür, 9 years ago

Summary: overlaying video on top of another with enable=between() option failsoverlaying 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 by Carl Eugen Hoyos, 9 years ago

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