flagbug / YoutubeExtractor

A .NET library, that allows to download videos from YouTube and/or extract their audio track (currently only for flash videos).
816 stars 374 forks source link

No Audio.... #277

Open LewisAlex opened 7 years ago

LewisAlex commented 7 years ago

Every single time I try to download audio from Youtube, even with the example code given in the readme file, I get an error because First() return an empty IEnumerable.....

    VideoInfo video = videoinfos
            .Where(info => info.CanExtractAudio)
            .OrderByDescending(info => info.AudioBitrate)
            .First();

As far as I went in the code, I think it maybe the CanExtractAudio property .....

segg21 commented 7 years ago

@LewisAlex the CanExtractAudio only checks rather or not the video is flash. What video's did you try to extract the audio from? I could possibly dig into this deeper.

LewisAlex commented 7 years ago

Hi....

Unfortunately, I answered my own bug by reading further more....I read exactly what you told on you GitHub site :-/ ...

At all, to download videos from YT, your librairies are awesome !! To get the mp3 from any video I get, I use MediaToolKit which convert with ffmpeg c# code...

With YouTubeExtractor, I seek and get the better video from one url. And I convert it to mp3 with MediaToolKit...

Thnx,

Lewis

Le 10 sept. 2017 03:25, "ᦖєgιт" notifications@github.com a écrit :

@LewisAlex https://github.com/lewisalex the CanExtractAudio only checks rather or not the video is flash. What video's did you try to extract the audio from? I could possibly dig into this deeper.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flagbug/YoutubeExtractor/issues/277#issuecomment-328325107, or mute the thread https://github.com/notifications/unsubscribe-auth/AV_UwrWGahIC5RM3yiWKuzm-exOvkrlgks5sg47ggaJpZM4PKSOe .

Xwilarg commented 7 years ago

@LewisAlex How did you solve the problem ? I have the same one...

LewisAlex commented 7 years ago

I just use another librairy.... Actually, youtubeExtractor to get the video And an ffmpeg converter to transform the video ib any format to mp3...

L.-Alex.

Le 6 nov. 2017 6:06 PM, "Christian Chaux" notifications@github.com a écrit :

@LewisAlex https://github.com/lewisalex How did you solve the problem ? I have the same one...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flagbug/YoutubeExtractor/issues/277#issuecomment-342318433, or mute the thread https://github.com/notifications/unsubscribe-auth/AV_Uwud-hkoThSWdjFDYYA3JGfxDr2Wnks5sz5DegaJpZM4PKSOe .

Xwilarg commented 7 years ago

Thanks :).

LewisAlex commented 7 years ago

Scuse man, I was in a hurry....

I should have say I use MEDIATOOLKIT as audio converter.

L.-Alex.

Le 6 nov. 2017 7:01 PM, "Christian Chaux" notifications@github.com a écrit :

Thanks :).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flagbug/YoutubeExtractor/issues/277#issuecomment-342329421, or mute the thread https://github.com/notifications/unsubscribe-auth/AV_UwqzllExSUkRmKF75IGwC8ruOTIPfks5sz53lgaJpZM4PKSOe .