이전엔 youtube-dl을 썼었는데 구글에서 속도 제한 걸었는지 느리다.
거기다 업뎃도 지금 10월인데 6월달이 마지막이다.
그래서 내가 쓰는 김에 기록상 적어놓을려고 한다.
아는 사람은 알겠지만 유튜브뿐만 아니라 엄청나게 많은 사이트를 지원한다.
https://www.ffmpeg.org/download.html
Download FFmpeg
If you find FFmpeg useful, you are welcome to contribute by donating. More downloading options Git Repositories Since FFmpeg is developed with Git, multiple repositories from developers and groups of developers are available. Release Verification All FFmpe
www.ffmpeg.org
정확히는 ffmpeg.exe만 필요하며 yt-dlp.exe랑 같은 폴더에 있으면 된다.
ffprobe = Simple multimedia streams analyzers
ffplay = Simple media player
(예시) yt-dlp -f 303+251 --cookies cookies.txt https://youtu.be/v7bnOxV4jAc
(1)yt-dlp (2)-f 303+251 (3)--cookies cookies.txt (4)https://youtu.be/v7bnOxV4jAc
1. 프로그램 이름
2. 원하는 포맷만 선택, 합침
3. 멤버쉽 영상 다운시 쿠키 필요
4. 영상주소
2번은 -F(대문자)를 이용해서 원하는 포맷을 보고 숫자를 고름.
'yt-dlp -F 영상 주소'를 쓰면 아래처럼 나옴.
-F = List available formats of each video. Simulate unless --no-simulate is used
내가 원하는 ID의 숫자를 보고 앞서 적은 예시의 숫자를 대체하면 된다.
Video는 vp9, webm, 4K, 405.50MB짜리와 Audio는 opus, webm, 130k, 4.35MB를 하고 싶으면
-f 313+251
--merge-output-format FORMAT 를 선택해서 위에 ext로 선택된 기본 컨테이너가 아닌 mkv 가능.
(예시)yt-dlp -f 313+251 --merge-output-format mkv https://youtu.be/v7bnOxV4jAc
3번은 멤버쉽 같은 영상시 쿠키가 필요함
https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid
Get cookies.txt
Exports your cookies to the Netscape cookie file format a.k.a. cookies.txt which is compatible with wget, curl, youtube-dl and more.
chrome.google.com
해당 확장 프로그램을 이용해 youtube의 cookies.txt를 추출해서 사용.
즉, 유튜브가서 확장 프로그램을 클릭해 추출하면 된다.
혹은 --cookies-from-browser 사용.
--cookies-from-browser chrome:Default(BROWSER:PROFILE) 쓰면 됨.
(예시) yt-dlp -f 303+251 --cookies-from-browser chrome:Default https://youtu.be/v7bnOxV4jAc
크롬 프로파일은 내가 작성했던 이름이 아니라 chrome://version/에서 확인된 프로필 경로를 써야된다.
'한번 기록' 카테고리의 다른 글
ReVanced 설치 방법 (0) | 2022.07.31 |
---|---|
크롬, 텍스트 커서 깜빡임 (0) | 2022.02.03 |
시놀로지 SSH 접속 (폴더 정리) (1) | 2022.01.12 |
실행 파일(exe) CMD 변수 설정 (0) | 2021.12.17 |
nircmd, 재생 및 녹음 장치 변경 (0) | 2021.11.05 |