반응형
// 그림 1.과 같이 brew update 시 에러 발생 시 실행 필요
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
brew update
// ffmpeg 설치
brew install ffmpeg
아래는 source.mp4 파일을 잘라서 output.mp4 파일을 만드는 명령문입니다.
ffmpeg -i source.mp4 -ss 1:34:55 -to 1:55:28 -vcodec copy -acodec copy output.mp4
실제 작업을 해 보았습니다. 그림 2와 같은 결과로 output.mp4 파일을 잘 생성했습니다. 잘 플레이도 됩니다.
ffmpeg -i The.Bourne.Legacy.2012.x264.DTS-WAF.mkv -ss 37:55 -to 40:28 -vcodec copy -acodec copy output.mp4
mp3 파일 특정 구간 자르기
ffmpeg -i original.mp3 -ss 9 -to 26 -acodec copy output.mp3
반응형
'프로그램 개발해서 돈벌기 > Utility' 카테고리의 다른 글
How to solve the problem of no sound when importing mkv file in DaVinci Resolve (0) | 2024.01.19 |
---|---|
[무료] 레이어가 지원되는 이미지 웹 에디터 (0) | 2023.06.12 |
[무료] 웹에서 MP4 파일을 GIF 파일로 변경 (0) | 2023.05.17 |
[무료] 온라인용 이미지 작업 (gif 파일 용량 줄이기) (0) | 2023.05.16 |
[무료] 웹 버전 정규식(Regular Expression) 작성 및 테스트 툴 (0) | 2023.03.02 |
댓글