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

Michael Koch astroelectronic at t-online.de
Fri Nov 20 12:05:36 EET 2020

Am 20.11.2020 um 10:58 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.
> I did this
> ffmpeg -y -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
> -vf zoompan=d=10:fps=1:s=5152x3864,framerate=fps=25:interp_start=0:interp_end=255:scene=100 ^
> -pix_fmt yuv420p out.mp4
> Which do not give any error but destroys the fading effect
> Could you give the complete command line ?

I think the command line is correct, and the hint from Gyan was of 
course correct. The problem might be that your video player can't 
display 25fps at this extremely high resolution. Try a smaller 
resolution. It makes no sense to use higher resultion than your monitor 
can display.


More information about the ffmpeg-user mailing list