Yt-dlp/ ffmpeg HTTP Error 403: Forbidden

Does anyone know how to fix this error on yt-dlp/ ffmpeg?

HTTP Error 403: Forbidden.

I’m trying to download some deleted twitch vods using m3u8 links, but I’m receiving this error in both yt-dlp and ffmpeg.

Tried clearing the yt-dlp cache, using a vpn, adding cookies to yt-dlp, clearing cookies and nothing worked so far.

I’m only getting this on m3u8 links that start with https://vod-secure.twitch.tv

I downloaded a few that started with https://d1m7jfoe9zdc1j.cloudfront.net without any issues.

403 error is generally an expected response when recovering videos. The way m3u8 lists work is that they point to a list of video files and your video player plays each segment that the list references 1-by-1. Since you said you’re trying to download deleted vods, it’s likely that the m3u8 list is still available, but twitch has deleted the actual video files it is pointing to, hence the forbidden error.

I’m also getting it for vods that are still online and for vods other people were able to download with ffmpeg.

It doesn’t happen on all vods and it’s not a sub-only thing as I was able to download some sub-only vods with yt-dlp

You might be downloading a muted segment. Vods may have some parts muted for copyright or other reasons. The URLs for the muted segments are different from the default (unmuted ones). If you try accessing the unmuted segment that is supposed to be muted, you will receive a 403 error.

1 Like

TC troubleshooted this earlier and that error is due to the stream having muted parts.

If those are in the beginning yt-dlp will not search for other parts as opposed to ffmpeg that will skip those and download whatever it can find.

1 Like