Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
299 stars 122 forks source link

[BUG] Very low Quality videos in muxed #252

Closed sergioisair closed 1 year ago

sergioisair commented 1 year ago

Is it normal that in muxed mode (audio+video), in some videos it only gives me very low qualities? even though the original video is in full hd? It only happens un some videos

To Reproduce

String id = "baLQkpVEabI";
  var yt = YoutubeExplode();
  var streamManifest = await yt.videos.streamsClient.getManifest(id);
  return streamManifest.muxed.withHighestBitrate().url.toString();
Hexer10 commented 1 year ago

This is a documented behavior: https://github.com/Hexer10/youtube_explode_dart/blob/0919e843e979b637c64beaf2bf80fba9b1579b57/README.md?plain=1#L113

Youtube does not provide high quality muxed stream, instead you have to download audio and video separately and then merge them using tools like ffmpeg