Test Environment1:MacOS Monterey 12.2.1
Test Environment2:MacOS Catalina 10.15.7
Step1. Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step2. Install ffmpeg
brew install ffmpeg
or
sudo brew install ffmpeg
Step3. Get the “m3u8” link
Open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools.
Filter the list of files to / Search for “m3u8”
Copy “Request URL”
Step4. Get the “referer”
Right-click on the search result of m3u8 file
Copy > Copy as cURL
Step5. Go to download
Open Terminal
Paste&Replace (1) m3u8 URL (2) referer (usually just the URL)
ffmpeg \-headers 'origin: https://tver.jp/' \-headers 'accept-encoding: gzip, deflate, br' \-headers 'accept-language: ja,en-US;q=0.8,en;q=0.6' \-headers 'referer: https://tver.jp/corner/f0103241' \-i "https://manifest.prod.boltdns.net/manifest/v1/hls/v5/aes128/4394098883001/96fe3584-c01e-4317-ad77-9f04b5d93903/10s/master.m3u8?fastly_token=NjI2NzlkZTFfNWI2N2UzYTMxNmFjMmRiYzkwNTAxOGRhZGFmMmNkODQyYzFlYzYxMmZjMTE0N2Q0ZWI0NjhlYmNhOTRiN2EyMQ%3D%3D" \-codec copy \-bsf:a aac_adtstoasc \-movflags faststart \video.mp4