#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)
Change History (4)
by , 9 years ago
Attachment: | ffmpeg-overlay-test.tar.gz added |
---|
comment:1 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
Summary: | overlaying video on top of another with enable=between() option fails → 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 by , 9 years ago
Keywords: | enable between removed |
---|
Note:
See TracTickets
for help on using tickets.
test-case