https://adamtheautomator.com/install-ffmpeg/
https://cafe.daum.net/candan/KSjE/30?svc=cafeapi choco 설치 하는 방법
파워쉘 스크림트로 설치 하면 편하다.
choco install ffmpeg
설치 쉽게 잘된다 ㅎㅎ 이렇게 하니.
이놈들 설치 너무 어렵게 해서 정신병 걸릴 지경 ㅋㅋ;;
https://happist.com/577463/%EC%9C%88%EB%8F%84%EC%9A%B0-ffmpeg-%EC%84%A4%EC%B9%98-%EB%B0%8F-%EC%82%AC%EC%9A%A9-%EB%B0%A9%EB%B2%95
md "%ProgramFiles%\ffmpeg"
powershell.exe -Command "& {Invoke-WebRequest -OutFile $env:ProgramFiles\ffmpeg\ffmpeg-git-essentials.7z -Uri "https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-essentials.7z"}
winget search "7zip"
winget install "7zip" --id "7zip.7zip" -s "winget" --accept-package-agreements
https://superuser.com/questions/581587/7-zip-not-working-from-the-dos-prompt-or-command-line
환경 변수 추가 이걸 해야 7zip을 쓸수 있다 된장 -_-;; 좀 제발.. 개발자들이 너무..
setx path "%path%;%ProgramFiles%\7-Zip"
다시 부팅 해주세요
https://88240.tistory.com/27
http://xtrm.myds.me/xe/CMD/289
7z.exe x "%ProgramFiles%\ffmpeg\ffmpeg-git-essentials.7z" -o"%ProgramFiles%\ffmpeg"
아직 여기 까지 작성.. -_-;; 여기서 막힘 ㅠㅠ
cd "%ProgramFiles%\ffmpeg"
md "%ProgramFiles%\ffmpeg\bin"
for /r %i in (*.exe) do copy "%i" "%ProgramFiles%\ffmpeg\bin"
실이 안되서 이렇게 ㅠㅠ.. 어거지로 ㅋㅋ 한줄로 가능 할것 같은대.
setx path "%path%;%ProgramFiles%\ffmpeg\bin"
두번 부팅 해야 하니 개불편 ㅋㅋ;; 이것도 아이디어 짜봐야 것다.
끝
ffmpeg
입력 하면 성공 한지 알수 있다고 한다.
https://www.powershellgallery.com/packages/7Zip4Powershell/2.0.0 기타 7zip 명령어로 설치 7zip 파워쉘 설치
Install-Module -Name 7Zip4Powershell -RequiredVersion 2.0.0
보안을 0으로 해야 한다 단점
md "%ProgramFiles%\ffmpeg"
powershell.exe -Command "& {Invoke-WebRequest -OutFile $env:ProgramFiles\ffmpeg\ffmpeg-master-latest-win64-gpl.zip -Uri "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip"}
cd "%ProgramFiles%\ffmpeg" && tar -zxvf "%ProgramFiles%\ffmpeg\ffmpeg-master-latest-win64-gpl.zip" -C "%ProgramFiles%\ffmpeg"
cd "%ProgramFiles%\ffmpeg"
md "%ProgramFiles%\ffmpeg\bin"
for /r %i in (*.exe) do copy "%i" "%ProgramFiles%\ffmpeg\bin"
setx path "%path%;%ProgramFiles%\ffmpeg\bin"
https://kin.naver.com/qna/detail.nhn?d1Id=1&dirId=104&docId=432077699
전승환님이 한줄로 해결 해주심 ㅋㅋㅋ
cmd /c if not exist "%ProgramFiles%\ffmpeg\bin" (md "%ProgramFiles%\ffmpeg\bin") & for /f "delims=" %a in ('dir /a-d /b /o /s "%ProgramFiles%\ffmpeg\*.exe"') do (copy /y "%a" "%ProgramFiles%\ffmpeg\bin")
여기서 부터 보세요
https://youtu.be/UtKT3topLm0
정리 이걸로만 하시면 되네요. 전승환님 버전
https://ffmpeg.org/download.html
md "%ProgramFiles%\ffmpeg"
echo 다운로드 ffmpeg 파일
powershell.exe -Command "& {Invoke-WebRequest -OutFile $env:ProgramFiles\ffmpeg\ffmpeg-master-latest-win64-gpl.zip -Uri "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip"}
echo ffmpeg 파일 압축 해제
cd "%ProgramFiles%\ffmpeg" && tar -zxvf "%ProgramFiles%\ffmpeg\ffmpeg-master-latest-win64-gpl.zip" -C "%ProgramFiles%\ffmpeg"
echo "전승환님 만들어주신 것 ffmpeg 실행 파일 bin 폴더에 넣기"
cmd /c if not exist "%ProgramFiles%\ffmpeg\bin" (md "%ProgramFiles%\ffmpeg\bin") & for /f "delims=" %a in ('dir /a-d /b /o /s "%ProgramFiles%\ffmpeg\*.exe"') do (copy /y "%a" "%ProgramFiles%\ffmpeg\bin")
echo 컴퓨터에 활용하게 등록 하기 환경변수
setx path "%path%;%ProgramFiles%\ffmpeg\bin"
echo 확인 명령어
ffmpeg
첫댓글 다시 부팅 하는걸 잊지 마세요.