Rescaling and slowing down a movie at the same time with ffmpeg

后端 未结 1 988
时光说笑
时光说笑 2021-01-28 05:08

I would like with ffmpeg to slow down a movie I am creating using the flag:

-filter:v \"setpts=2.0*PTS\"

However the height of my still images

1条回答
  •  生来不讨喜
    2021-01-28 05:43

    Multiple filters acting on the same input, in series, have to be chained together. So,

    ffmpeg -an -i ./movie/cphmd1.%05d.ppm -vcodec libx264 -pix_fmt yuv420p -b:v 5000k -r 24 -crf 18 -vf "setpts=2.0*PTS,scale=trunc(iw/2)*2:trunc(ih/2)*2" -preset slow -f mp4 cphmd1_slower.mp4
    

    0 讨论(0)
提交回复
热议问题