Transcode, limit output birate to the media bitrate (no need to upscale)

This commit is contained in:
emeric
2014-09-01 14:59:07 +02:00
parent 07624995e7
commit c8837d6d68
10 changed files with 84 additions and 30 deletions
+3 -1
View File
@@ -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 );