0

I have the dimensions and coordinates of some areas on the video that need to be cut and glued into another video.

I do it now with two commands.

first I save the pictures:

ffmpeg -y -i INPUT -filter_complex "[0:0]crop=704:396:500:500,scale=1920:-1[mvid0];[0:0]crop=708:398:502:502,scale=1920:-1[mvid1];[0:0]crop=711:399:505:505,scale=1920:-1[mvid2];[0:0]crop=715:402:508:508,scale=1920:-1[mvid3]" -map "[mvid0"] "000000.png" -map "[mvid1"] "000001.png" -map "[mvid2"] "000002.png" -map "[mvid3"] "000003.png" (gives an error but saves pictures),

second, concat pictures into the video:

ffmpeg -f concat -i input.txt -vsync vfr -pix_fmt yuv420p output.mp4

Can i do this with one command?

  • 2
    What are the commands? – Gyan Feb 27 '18 at 16:45
  • Add commands. Changed the question – Nik Feb 28 '18 at 6:42
  • So, you want a MP4 which has 4 frames only? – Gyan Feb 28 '18 at 6:50
  • For example - yes. I don't want to put the whole command here. It's too big. – Nik Feb 28 '18 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.