Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions YoutubeExplode.Converter/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ private async ValueTask ProcessAsync(
{
if (streamInput.Info is IAudioStreamInfo audioStreamInfo)
{
arguments
.Add($"-b:a:{lastAudioStreamIndex++}")
.Add(Math.Round(audioStreamInfo.Bitrate.KiloBitsPerSecond) + "K");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it's worth noting I didn't investigate whether audioStreamInfo.Bitrate.KiloBitsPerSecond is used elsewhere. It seems it's still useful, at least, to implementations using YoutubeExplode, right? So perhaps no further refactoring is necessary.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you asking on the account of whether this property should be kept or removed? In that case, yes, it should be kept since it's part of YoutubeExplode's public API.

// Have ffmpeg determine best quality possible
Comment thread
Tyrrrz marked this conversation as resolved.
Outdated
arguments.Add($"-q:a:{lastAudioStreamIndex++}").Add("0");
}
}
}
Expand Down