[FFmpeg-user] {Spam?} Re: crop and fade

Gyan Doshi ffmpeg at gyani.pro
Fri Nov 20 10:20:28 EET 2020



On 20-11-2020 01:41 pm, RAPPAZ Francois via ffmpeg-user wrote:
> Am 20.11.2020 um 07:27 schrieb RAPPAZ Francois via ffmpeg-user:
>> 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:sc
>>>>>   en
>>>>>   e=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...
>>>>
>>>> Michael
>>> But my individual pictures are already at 5152x3864. The problem is
>>> that when I do the above command without -s ...x... they are stretched in the horizontal axis
>>> What should be the size to use for my pictures to be displayed  without distortion ?

The zoompan filter automatically rescales its input to 1280x720. 
Override it by adding `s=5152x3864` as an option to the zoompan filter. 
Remove the `-s` option from the command.

Regards,
Gyan


More information about the ffmpeg-user mailing list