Opened 2 months ago

Closed 2 months ago

#11108 closed enhancement (duplicate)

youtube googlevideo 403 forbidden

Reported by: theo1996 Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: http
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by theo1996)

Summary of the bug:Cant play almost many youtube yt-dlp formats ,403 forbidden
How to reproduce:

ffplay -i "https://rr3---sn-4vguioxu-5ui6.googlevideo.com/videoplayback?expire=1721420727&ei=V3eaZrvMD9OEi9oPi9iOiAM&ip=2a02%3A2149%3A8626%3A5900%3A49e6%3A6b42%3Aec0%3A4876&id=o-AKW53LUlvbGvMd5wivYd7yhT1v6jPexwxR7UAKlMCDVj&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=rn&mm=31%2C29&mn=sn-4vguioxu-5ui6%2Csn-nv47lnsr&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=39&initcwndbps=1022500&bui=AXc671IkeJ1dCoPMJXTNs03TqIGpl0Eg-VW3snr8NEwQGpd2VMFLZOQZ6DYwPQ1ueqhFsrwI8Hhmh3Xp&spc=NO7bAbFwd7cYP5XroRVnLisHECW_Ny4A73pUU7ovbgNGT4AeaJRZqjvakU0LeRc&vprv=1&svpuc=1&mime=video%2Fmp4&ns=4nMdc0bwmRFTAX0af_vWlsYQ&rqh=1&gir=yes&clen=177341910&ratebypass=yes&dur=4347.750&lmt=1720676245646740&mt=1721398868&fvip=2&c=WEB&sefc=1&txp=6309224&n=NQoJqmEhLVN0OMlvO-&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRAIgRMSmjeZm2u0n3expO1pPJHl11hO5sFYYtk4gaytlh4gCIBGCfGR1ml02x8H89XXods8AhCr_Ls3iV2e88TUQOWyP&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AHlkHjAwRgIhAOfZOJMfm1N45c41t7InpGYxwe9U7H4iRfeuS41m_n0tAiEA-pjgeKBFaaKVpbrmwYuyzSA2gK83c5xze6aM9A2pRnE%3D"
ffplay version 7.0.1-essentials_build-www.gyan.dev Copyright (c) 2003-2024 the FFmpeg developers
  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[https @ 000000000046f9c0] HTTP error 403 Forbiddenq=    0B
built on ...

I am always watching youtube vods with MPV+ytdl:

mpv --ytdl-format="best[height<720p][fps<=60]" https://www.youtube.com/watch?v=B7QH3rLfaq0

And the past few days it stopped working and threw an error:

ffmpeg: 403 forbidden

I then updated all my stuff mpv,ffmpeg,ytdlp and it still doesnt work I have to manually select formats with numbers that do work, which is very annoying.
I ran ffplay and ffprobe with -report :
see attached files

Almost half of all formats listed in yt-dlp dont work with ffmpeg and have the same error.

Attachments (2)

ffplay-20240719-173544.log (6.8 KB ) - added by theo1996 2 months ago.
ffplay report
ffprobe-20240719-175336.log (6.4 KB ) - added by theo1996 2 months ago.

Download all attachments as: .zip

Change History (5)

by theo1996, 2 months ago

Attachment: ffplay-20240719-173544.log added

ffplay report

by theo1996, 2 months ago

Attachment: ffprobe-20240719-175336.log added

comment:1 by theo1996, 2 months ago

Description: modified (diff)

comment:2 by theo1996, 2 months ago

Description: modified (diff)

comment:3 by MasterQuestionable, 2 months ago

Cc: MasterQuestionable added
Component: ffmpegavformat
Keywords: http added; forbidden 403 removed
Resolution: duplicate
Status: newclosed
Summary: youtube googlevideo 403 forbidden googlevideoyoutube googlevideo 403 forbidden
Type: defectenhancement
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.