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.
Not able to pick the "source" streams from Twitch #4972
Comments
|
|
|
The problem is that the hls manifest says that the source version has a lower bitrate than the |
|
Yeah, I noticed that the bitrates reported by Twitch for their lower quality transcoded streams are static (they're always the same) and very often are lower than the actual, non-transcoded source stream (what the person who streams is uploading). In reality, the source stream has a higher bitrate than the transcoded ones (which is the whole point of providing the transcodes; so that people can choose them if they have a slow connection.) It seems Twitch just picks "safe" static bitrate values for the transcodes and only reports real values for the source stream. In any event, many thanks for fixing this issue :-) |
youtube-dl is not able to pick the best possible stream from Twitch on its own. On their on-site Flash player, Twitch marks that stream as "Source". Though I doubt they use that name in the actual stream data anywhere.
For example, here's the output from the -F option:
In this case, the "best" as marked by ytdl is actually a lower quality transcoded version (limited to 30FPS), while the actually highest quality stream (the "source" one, which is non-transcoded and can be 60FPS) can only be selected manually with:
$ youtube-dl -f 'best[height=720]' -g http://www.twitch.tv/badnewsbaronIt might be worth inspecting livestreamer to see how it selects the "source" stream by default.