[FFmpeg-user] crop and fade

Michael Koch astroelectronic at t-online.de
Thu Nov 19 18:33:35 EET 2020


Am 19.11.2020 um 16:37 schrieb RAPPAZ Francois via ffmpeg-user:
> Hi
>
> I tried the fading between pictures and cropping to there original size (5152 x 3864), so that they are not distorted
>
> ffmpeg -y -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
> -vf zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100 ^
> -pix_fmt yuv420p -s 5152x3864 out.mp4
>
> It seems that -s 5152x3864 destroy the fading effect achieved with the second line
>
> How can I correct this ?

You must bring all pictures to the same size _before_ you read them with 
FFmpeg.

Re-scaling one image with FFmpeg:
ffmpeg -i input.jpg -s 5152x3864 output.jpg

Re-scaling all images with FFmpeg:
I think that's only possible with a loop in a script. Too complicated.

Re-scaling one image with IrfanView:
Open the image, Image --> Resize/Resample, Save as...

Re-scaling all images with IrfanView:
File --> Batch Conversion, then select all images, then click on 
"advanced", the rest is self-explaining.

Michael



More information about the ffmpeg-user mailing list