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

The downloaded video has no sound #342

Open
4strodev opened this issue Aug 29, 2024 · 5 comments
Open

The downloaded video has no sound #342

4strodev opened this issue Aug 29, 2024 · 5 comments

Comments

@4strodev
Copy link

I tried it with different videos and all has the same problem. Maybe it's a failure that only happens on Linux. I found this similar issue #279, but the provided advice doesn't work.

@noahlove
Copy link

Not all streams have audio. Are you sure you are downloading one that has audio?

@4strodev
Copy link
Author

Yes I tried with three different videos all of them with audio. I don't know if the bug is something replicable or not, but I just cloned the repo and executed the CLI, giving them a YouTube link. The video downloaded successfully but without audio.

@7z3m
Copy link

7z3m commented Oct 6, 2024

same happened to me as well.

@Mrkouhadi
Copy link

Mrkouhadi commented Oct 9, 2024

I have the same issue.
I kinda solved it, but i don't get the best quality, i always get either 360p or something lower even though the video has multiple options for quality.

    var format *youtube.Format
    for _, f := range video.Formats {
		    if f.AudioChannels > 0 && f.QualityLabel != "" { // Ensure it has both video and audio
			    if format == nil || f.Height > format.Height {
				    format = &f // Select the format with the highest resolution
			    }
		    }
    }

@7z3m
Copy link

7z3m commented Oct 9, 2024

indeed, i share the low quality issue with you. thanks for sharing the code.

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

4 participants