yt-dlp
1. nano ~/.zshrc 2. alias ytdl-4k='yt-dlp -f "bestvideo[height<=2160]+bestaudio/best[h eight<=2160]/mp4" -o "/Users/사용자명/Desktop/%(title)s.%(ext)s"' 3. source ~/.zshrc- 설정 명령어 (height<=2160 값만 바꿔서 명령어 설정) * ytdl-4k "URL" * ytdl-2k "" * ytdl-hd ""코덱 때문에 먹통되는 문제 수정.. 코덱값을 따로 설정해줘야했음...
yt-down() { local format=$1+140" yt-dlp -f "$format" -o "/Users/사용자명/Desktop/%(title)s.%(ext)s" "$2" }매번 받기전에 포맷 확인
ex) yt-dlp -F "URL" yt-down 620 "URL"
ffmpeg
1. alias ffm='ffmpeg -i "$1" -c copy "$2"' 2. source ~/.zshrc- 설정 명령어 (매번 얻은 m3u8 링크와 파일명을 수정해주면 됨) * ffm input.m3u8 output.ts