Opened 6 years ago

Closed 5 years ago

#1238 closed defect (fixed)

Overlaying is late for one frame!

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

Description

Hi!

I try to overlay the same scaled frame on each frame of my video:

ffmpeg -i Video.m2v -vf "split [out1] [out2]; [out2] scale=iw/4:ih/4 [patch1]; [out1] [patch1] overlay=20:50 [out]" -target pal-dvd -y Video_new.m2v

And I see that overlaying is late for one frame!
Log-file and screenshots of frames in attachment.

You can take any video with quick frame change and you will see.

Attachments (5)

ffmpeg.log (2.9 KB) - added by ssp43 6 years ago.
Log of ffmpeg
frame0.png (19.9 KB) - added by ssp43 6 years ago.
Frame #0
frame511.png (517.3 KB) - added by ssp43 6 years ago.
Frame #511
frame512.png (107.0 KB) - added by ssp43 6 years ago.
Frame #512
frame513.png (169.6 KB) - added by ssp43 6 years ago.
Frame #513

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by ssp43

Log of ffmpeg

Changed 6 years ago by ssp43

Frame #0

Changed 6 years ago by ssp43

Frame #511

Changed 6 years ago by ssp43

Frame #512

Changed 6 years ago by ssp43

Frame #513

comment:1 Changed 6 years ago by cehoyos

  • Priority changed from important to normal
  • Status changed from new to open

Do you think this is a regression?

comment:2 Changed 6 years ago by ssp43

I don't know. I've never had to face this situation.

comment:3 Changed 6 years ago by Cigaes

  • Reproduced by developer set

Confirmed with -vf (and -f lavfi -i testsrc as input) but not with -f lavfi.

I will be reworking the whole scheduling logic of filters, including vf_overlay. I'll keep in mind to check that particular case.

comment:4 Changed 5 years ago by cehoyos

  • Keywords split buffer removed
  • Resolution set to fixed
  • Status changed from open to closed

This is supposed to be fixed in current git head (and 1.0), please reopen if you can still reproduce the problem.

Note: See TracTickets for help on using tickets.