youtube_explode_dart icon indicating copy to clipboard operation
youtube_explode_dart copied to clipboard

[BUG] Can't retrieve 720p quality in any video

Open Joseph-Nathan opened this issue 1 year ago • 7 comments

720p quality dropped from 2days .

Joseph-Nathan avatar Jun 21 '24 19:06 Joseph-Nathan

Me too, I tried all versions.

Any solution?

awnigharbia avatar Jun 22 '24 07:06 awnigharbia

Me too , In a project I'm not using youtube_explode_dart but an underlying package use this (pod_player) now that player can't stream 720p youtube videos

shijinthottiyil avatar Jun 24 '24 06:06 shijinthottiyil

any update on this ?

muhamedRadwan avatar Jun 26 '24 10:06 muhamedRadwan

Me too,

Any solution?

Muhammed-Ramadan512 avatar Jun 26 '24 10:06 Muhammed-Ramadan512

According to the original repo this is ported from, muxed streams may be going away.

https://github.com/Tyrrrz/YoutubeExplode/issues/797

robisaks avatar Jun 26 '24 18:06 robisaks

Hello, unfortunately I have no control on how youtube provides the muxed streams, you should consider to use the video-only streams (which should always have high quality steams) and merge/syncronize it with the audio-only track.

Hexer10 avatar Jun 26 '24 19:06 Hexer10

Hello, unfortunately I have no control on how youtube provides the muxed streams, you should consider to use the video-only streams (which should always have high quality steams) and merge/syncronize it with the audio-only track.

How We can merge/syncronize with the audio-only track do you have any Do you have any ideas? Because when audio and video are played separately, even if they are at the same time, there is a delay in one of them due to the downloading process sometimes or any other reason.

salar-dev avatar Jun 26 '24 20:06 salar-dev

Hello, unfortunately I have no control on how youtube provides the muxed streams, you should consider to use the video-only streams (which should always have high quality steams) and merge/syncronize it with the audio-only track.

How We can merge/syncronize with the audio-only track do you have any Do you have any ideas? Because when audio and video are played separately, even if they are at the same time, there is a delay in one of them due to the downloading process sometimes or any other reason.

I agree, especially when you're handling lecture videos in an LMS app for example :"(

OmarYehiaDev avatar Jul 04 '24 19:07 OmarYehiaDev

The process synchronicing the video and audio tracks depends on which library you are using, here is a simple example with media_kit:

              final manifest =
                  await yt.videos.streams.getManifest(videoId);
              final bestVideo = manifest.videoOnly.withHighestBitrate().url;
              final bestAudio = manifest.audioOnly.withHighestBitrate().url;

              controller.player.open(Media(bestVideo.toString())); // Automatically plays
              controller.player
                  .setAudioTrack(AudioTrack.uri(bestAudio.toString()));

If you want to merge the video instead you can use first download separately the video and audio and then use a library like https://pub.dev/packages/ffmpeg_kit_flutter to merge the tracks, for example executing: -i videotrack.mp4 -i audiotrack.mp4 -c copy output.mp4.

I'm closing this since there is nothing I can do to improve the issue since it's caused directly by Youtube.

Hexer10 avatar Jul 10 '24 12:07 Hexer10