P
P
paramin2020-09-07 14:31:47
fmpeg
paramin, 2020-09-07 14:31:47

How to set up ffmpeg?

Hello. Help setting up ffmpeg.
I have pictures 600x600. And with them, I create videos. But I ran into 2 fine-tuning problems.
I am using this setup

ffmpeg -r 2 -i steps/img%06d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p video/out.mp4


What I want.
1. How to add audio to video.
2. I want a video extension of 1920 by 1024 so that the picture is centered and the background is white.

Thanks for the help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-09-08
@paramin

  1. Add a second input audio file with -i and specify a codec (-c:a libfdk_aac).
  2. See overlay and scale filters. A white background can be obtained either as a separate image via -i (easier) or via a generator (lavfi input).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question