[FFmpeg-trac] #10515(avfilter:new): setpts filter does not support sendcmd even though the docs state it does

FFmpeg trac at avcodec.org
Thu Aug 10 20:02:06 EEST 2023


#10515: setpts filter does not support sendcmd even though the docs state it does
-------------------------------------+-------------------------------------
             Reporter:  spacy51      |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avfilter
              Version:  6.0          |               Resolution:
             Keywords:  setpts       |               Blocked By:
  sendcmd                            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by spacy51):

 My previous attempt for explicitly setting the timestamp for each frame
 was to use setpts directly with a big if/else expression (one line per
 frame), but this failed when the video had around 50 frames or more:

 {{{
 settb=1/1000,setpts=
 if(eq(N\,1)\, 2*1000\,
 if(eq(N\,2)\, 3*1000\,
 if(eq(N\,3)\, 5*1000\,
 if(eq(N\,4)\, 6*1000\,
 0
 ))))
 }}}

 Is there really no way to explicitly set the timestamps for each frame? I
 can not use a simple expression for setpts because I need support for
 variable frame rate.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10515#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list