YouTube appear to have tightened up security again, meaning my yt-dlp script nee...
DJDarren @DJDarren@mendeddrum.org
YouTube appear to have tightened up security again, meaning my yt-dlp script needs updating again.
Not massively happy with this iteration, as it requires ffmpeg transcoding the downloaded video and audio. But it'll do for now.
yt-dlp -f "bestvideo+bestaudio/best" --impersonate safari-18.4 --extractor-args "youtube:player_client=web,tv" --merge-output-format mp4 --recode-video mp4 --postprocessor-args "ffmpeg:-stats -loglevel info -c:v libx265 -crf 22 -tag:v hvc1 -c:a aac -b:a 192k" --cookies-from-browser firefox