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

Videos in 144p and 240p download without audio #241

Open jprzimba opened 7 years ago

jprzimba commented 7 years ago

Threr in 144p and 240p the video are downloaded without audio... Please fix it

mysteryx93 commented 7 years ago

Most audios and videos come as separate streams. Check the AdaptiveType to see whether it's audio-only, video-only or both. You need to use FFMPEG to merge both files.

mysteryx93 commented 7 years ago

As a heads-up, I just created a .NET wrapper for FFmpeg, which will make it easier to manage audio and video streams, and merge them together. https://github.com/mysteryx93/FFmpeg.NET https://www.nuget.org/packages/EmergenceGuardian.FFmpeg/

jalchr commented 7 years ago

Hi, Any plans to merge FFmepg with the extractor into a single Nuget package ?

mysteryx93 commented 7 years ago

That wouldn't really be practical. You need to decide where you want to place that file, and you need to deploy it accordingly. In my case, it's in a sub-folder -- placing it in the same folder automatically would cause problems.