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
+2 -2
View File
@@ -58,9 +58,9 @@ AvConvTranscoder::AvConvTranscoder(const Parameters& parameters)
oss << " -i \"" << _parameters.getInputMediaFile().getPath().string() << "\"";
// Output bitrates
oss << " -b:a " << _parameters.getOutputAudioBitrate() ;
oss << " -b:a " << _parameters.getOutputBitrate(Stream::Audio) ;
if (_parameters.getOutputFormat().getType() == Format::Video)
oss << " -b:v " << _parameters.getOutputVideoBitrate();
oss << " -b:v " << _parameters.getOutputBitrate(Stream::Video);
// Stream mapping
{