카테고리 없음
윈도우즈에 ffmpeg 설치하기
충연
2024. 4. 16. 11:56
Chocolatey를 이용한 설치
1. Powershell이나 Windows Terminal을 관리자모드로 실행한 뒤, 아래 설치 커맨드로 Chocolatey 설치
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
2. FFMPEG 설치
choco install ffmpeg
설치 파일 다운로드해서 설치
1. 설치파일 다운로드하고 `C:\Program Files\`로 이동
- Full: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z
- Essential: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z
- Dev: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z
2. 환경 변수 등록
'시스템 >> 고급 시스템 설정 >> 환경 변수 >> 고급 >> 사용자 변수'에서
'Path' 편집 >> 새로 만들기 >> `C:\Program Files\ffmpeg\bin` 추가
3. 리부팅
설치한 김에 mp4 파일 크롭을 해보자
ffmpeg -ss 00:03:48 -i input.mp4 -t 00:01:34 -c copy output.mp4
매개변수 설명
- ss: 시작 시간
- t: 크롭할 구간 길이