Home > Software design >  if I put 1920x1080 images does it no longer work?
if I put 1920x1080 images does it no longer work?

Time:12-04

Hello everyone here I have a problem this code works well with 1080x1080 images but if I put 1920x1080 images does it no longer work? can someone tell me why or put me on a track thank you

fmpeg/ffmpeg \
    -loop 1 -t 3 -i agence_quatre_img/1669992356.png \
    -loop 1 -t 3 -i agence_quatre_img/1669992343.png \
    -loop 1 -t 3 -i agence_quatre_img/1669992317.png \
    -loop 1 -t 3 -i agence_quatre_img/1669992290.png \
    -loop 1 -t 3 -i agence_quatre_img/1669992290.png \
    -filter_complex \
    "[1]fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS 4/TB[f0]; \
     [2]fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS 8/TB[f1]; \
     [3]fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS 10/TB[f2]; \
     [4]fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS 12/TB[f3]; \
     [0][f0]overlay[bg1];[bg1][f1]overlay[bg2];[bg2][f2]overlay[bg3]; \
     [bg3][f3]overlay,format=yuv420p[v]" -map "[v]" agence_quatre_img/output.mov

CodePudding user response:

It is likely that the issue is with the format=yuv420p[v] part of the command. This specifies the output format of the video, and it looks like it is set to expect a resolution of 1080x1080. If you change this to format=yuv420p[v] -s 1920x1080 then it should work with 1920x1080 images. This specifies that the output video should have a resolution of 1920x1080.

  • Related