MKV files usually use H.264 for video and DTS for audio.
So, we will use ffmpeg to change the video to H.264 and the audio to AAC.
First, create an mp4 file using the mkv file as h.260 for video and mp3 for audio.
ffmpeg -i The.Bourne.Legacy.2012.x264.DTS-WAF.mkv -ss 37:55 -to 40:28 -vcodec libx264 -acodec libmp3lame output.mp4
The above statement cut and converted only a specific section of the mkv file.
ffmpeg -i output.mp4 -vcodec libx264 -acodec aac result.mp4
The entire output.mp4 file was created as a result.mp4 file with H.264 video and AAC audio.
You can check whether the sound is heard properly in QuickTime Player.
If the sound plays well in QuickTime Player, it will also play well when imported as an import media in DiVinci Resolve.
You need to convert it to mp3 and then convert it back to AAC as per the above steps.
If you convert to AAC from the beginning, you will not hear any sound.
And if you convert the converted AAC back to AAC, an error occurs. (Figure 1.)
Please keep this in mind.

I'm not sure why. If anyone knows, please let me know.
'프로그램 개발해서 돈벌기 > Utility' 카테고리의 다른 글
macOS에서 ffmpeg를 이용해서 동영상 화면 특정 구간 자르기 (0) | 2024.01.18 |
---|---|
[무료] 레이어가 지원되는 이미지 웹 에디터 (0) | 2023.06.12 |
[무료] 웹에서 MP4 파일을 GIF 파일로 변경 (0) | 2023.05.17 |
[무료] 온라인용 이미지 작업 (gif 파일 용량 줄이기) (0) | 2023.05.16 |
[무료] 웹 버전 정규식(Regular Expression) 작성 및 테스트 툴 (0) | 2023.03.02 |
댓글