Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Enable Accept-Encoding header for DASH/M3U8 playlist requests for Youtube Live streams #19191
Comments
|
Live HLS is handled by ffmpeg. Which headers it will send is out of control of youtube-dl. |
Then why if I comment the line 1971 in youtube.py it pass the header to ffmpeg ? |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.02.08. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
I noticied after many tests that for long live streams with backbuffer enabled each requests to download hls playlists and dash manifests uncompressed eat sometimes way more bandwidth that the actual segments on low/medium quality live streams because the list is too long, this hurt in latency and performance is just unreallistic for live media, and, because this can be avoided by adding the "Accept-Encoding: gzip" header on requests to the manifest/playlist only to any downloader or ffmpeg, I am requesting to reenable the header by default, at least only for m3u8 protocol. Thank you.