Transcode, limit output birate to the media bitrate (no need to upscale)
This commit is contained in:
@@ -57,7 +57,9 @@ AudioWidget::playTrack(boost::filesystem::path p)
|
||||
Transcode::InputMediaFile inputFile(p);
|
||||
|
||||
// TODO get the input stream bitrate and min the result with the desired bitrate
|
||||
Transcode::Parameters parameters(inputFile, Transcode::Format::get(Transcode::Format::OGA), bitrate);
|
||||
Transcode::Parameters parameters(inputFile, Transcode::Format::get(Transcode::Format::OGA));
|
||||
|
||||
parameters.setBitrate(Transcode::Stream::Audio, bitrate);
|
||||
|
||||
_mediaPlayer->load( parameters );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user