Qt: fix bitrates for video
Jeffrey Pfau jeffrey@endrift.com
Mon, 27 Oct 2014 23:38:40 -0700
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
src/platform/qt/VideoView.cpp
→
src/platform/qt/VideoView.cpp
@@ -49,6 +49,8 @@ FFmpegEncoderInit(&m_encoder);
setAudioCodec(m_ui.audio->currentText()); setVideoCodec(m_ui.video->currentText()); + setAudioBitrate(m_ui.abr->value()); + setVideoBitrate(m_ui.vbr->value()); setContainer(m_ui.container->currentText()); }@@ -133,13 +135,13 @@ validateSettings();
} void VideoView::setAudioBitrate(int br) { - m_abr = br; + m_abr = br * 1000; FFmpegEncoderSetAudio(&m_encoder, m_audioCodecCstr, m_abr); validateSettings(); } void VideoView::setVideoBitrate(int br) { - m_abr = br; + m_abr = br * 1000; FFmpegEncoderSetVideo(&m_encoder, m_videoCodecCstr, m_vbr); validateSettings(); }