[FFmpeg-trac] #9680(undetermined:new): scale2ref is one frame behind

FFmpeg trac at avcodec.org
Mon Mar 7 15:06:13 EET 2022


#9680: scale2ref is one frame behind
-------------------------------------+-------------------------------------
             Reporter:  Jozef        |                    Owner:  (none)
  Chutka                             |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Michael Koch):

 When I saw this issue, I first thought it's because the inputs might be
 yuv420 and the size is incremented in steps of one. So I added a few
 "format=rgb24" and "format=auto".

 ffmpeg -filter_complex
 "color=color=#000000:rate=20:size=400x400,format=rgb24[b];color=color=#ffffff:rate=20:size=100x100,scale=width=iw+n:height=ih+n:eval=frame,format=rgb24[w];color=color=#ff0000:rate=20,format=rgb24[r];[r][w]scale2ref=eval=frame[r][w];[w][r]overlay=format=auto[w];[b][w]overlay=format=auto"
 -t 4 -y gif.mp4

 But now ffmpeg never stops. Is there an explanation for this behaviour?

 Michael
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9680#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list