Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 4K Videos #31

Open
babakmdi opened this issue May 30, 2021 · 4 comments
Open

Support 4K Videos #31

babakmdi opened this issue May 30, 2021 · 4 comments

Comments

@babakmdi
Copy link

No description provided.

@javidsho
Copy link
Contributor

javidsho commented Jun 1, 2021

A sample would be https://www.youtube.com/watch?v=LXb3EKWsInQ

@babakmdi
Copy link
Author

babakmdi commented Jun 2, 2021

hello javid. 4k videos have no audio , why? it's just only video! is there anyway to download 4k videos with audio?

@javidsho
Copy link
Contributor

javidsho commented Jun 2, 2021

Hello there,
I haven't looked into that but it should be possible.

@Jeager2
Copy link

Jeager2 commented Oct 18, 2021

From what I had read, Youtube only provides Muxed video+ Audio files up to 720p...
all higher resolutions need to be downloaded and Muxed together with an audio file that you download.

(Media streams come in 3 forms -- Muxed (video & audio), Audio (audio only) and Video (video only). Highest qualities are not available in muxed streams so you'll have to download separate streams and multiplex them yourself using tools like ffmpeg.)

Use ffmpeg that SharpGrabber provides:

var merger = new MediaMerger(outputPath);
if (audioPath != "")
{
merger.AddStreamSource(audioPath, MediaStreamType.Audio);
}
merger.AddStreamSource(videoPath, MediaStreamType.Video);
merger.OutputMimeType = videoStream.Format.Mime;
merger.OutputShortName = videoStream.Format.Extension;
merger.Build();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants