D
D
DVoropaev2019-06-25 13:58:26
Video
DVoropaev, 2019-06-25 13:58:26

How to merge .webm with .mp4 in linux with one command?

there is a video without sound and a separate audio track for it,
you need to combine them
Preferably with one command

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2019-06-25
@sergiks

ffmpeg will help. Something like:
-i audio.mp3specifies one of the inputs, a file with sound;
-i video.webmanother input, video file;
ffmpeg itself will figure out where to get the sound from, and where the video track comes from, if each one has one and you don’t have to choose.
-c:v libx264specifies the video codec to use to repress the video track;
-c:a aacaudio codec to repress audio.
result.mp4where to save the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question