ffmpeg 사용해서 mp4, aac 등 합치기


E:\Program\windows_client\ffmpeg.exe -i "movie.mp4" -i "sound.aac" -c:v copy -c:a copy output.mp4


Merging audio and video using ffmpeg

  • Open a Command Prompt window in your downloads folder and run the following command
    • In case of MP4 format (all, except 1440p 60fps & 2160p 60fps):
    • ffmpeg -i videoplayback.mp4 -i videoplayback.m4a -c:v copy -c:a copy output.mp4
    • In case of WebM format (1440p 60fps and 2160p 60fps):
    • ffmpeg -i videoplayback.webm -i videoplayback.m4a -c:v copy -c:a copy output.mkv
  • Wait until ffmpeg finishes merging audio and video into a single file named "output.mp4".

How do I convert WebM video to the MP4

For some qualities Youtube provides videos only in WebM format. WebM could be converted in MP4 with the following ffmpeg command

ffmpeg -i video.webm -i audio.m4a -c:v libx264 -c:a copy out.mp4


Copying the audio without re-encoding

If your output container can handle (almost) any codec – like MKV – then you can simply copy both audio and video streams:

ffmpeg -i video.mp4 -i audio.wav -c copy output.mkv


Trackback 0 And Comment 0
prev | 1 | 2 | 3 | 4 | 5 | 6 | ··· | 255 | next