E
E
estry2019-08-19 10:14:00
fmpeg
estry, 2019-08-19 10:14:00

ffmpeg how to set multiple parameters at once?

Hey! I'm merging videos with ffmpeg. Judging by the documentation, you first need to convert the video to mpg and then glue it. I form a string with arguments
-i c:\vid.avi -qscale:v 1 c:\vid.mpg
Next I encode the video
Then I take the second video and do the same
-i c:\vid2.avi -qscale:v 1 c:\vid2.mpg
After that I encode the second video.
Then I merge both videos

-i concat:"c:\vid.mpg|c:\vid2.mpg" -c copy c:\vidfull.mpg

How to combine all three commands into one? Or can't it be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2019-08-19
@sergiks

Merge video is a separate command, in any case.
If you have input files in the same codec and format, then they do not need to be recoded, but can be glued right away.
ps "combine into one" can be written by writing all the commands in one script file: .bator .sh, depending on the platform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question