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

-------------------------------------------------

How to combine WebM and Opus to generate MP4?

ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4

it should look something like this.

ffmpeg -i audio.opus -i vid.webm  -c:v copy -c:a opus -strict experimental output6.webm

-----------------------------------------------------------------


'개발/활용정보 > Windows' 카테고리의 다른 글

windows 10 시작프로그램  (0) 2018.10.24
ffmpeg 사용해서 mp4, aac 등 합치기  (0) 2018.06.07
Windows 7 command  (0) 2017.11.09
SSLv3, TLSv1  (0) 2017.09.25
windows 10 에서 wmencoder64 설치  (0) 2017.01.01
windows 10 최적화  (0) 2016.12.19
Trackback 0 And Comment 0
prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ··· | 257 | next