[vlmc-devel] [PATCH 12/12] WorkflowRenderer: Set AudioBitrate and VideoBitrate to the renderer when startRenderToFile

Yikai Lu luyikei.qmltu at gmail.com
Wed Apr 6 09:58:25 CEST 2016


---
 src/Renderer/WorkflowRenderer.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 515c64c..faf1083 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -245,6 +245,9 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName )
 {
     prepareSetup();
     m_sourceRenderer->setOutputFile( qPrintable( outputFileName ) );
+    m_sourceRenderer->setOutputAudioBitrate( Core::instance()->project()->audioBitrate() );
+    m_sourceRenderer->setOutputVideoBitrate( Core::instance()->project()->videoBitrate() );
+    m_sourceRenderer->setOutputFile( qPrintable( outputFileName ) );
     connect( m_mainWorkflow, &MainWorkflow::mainWorkflowEndReached, this, &WorkflowRenderer::renderComplete );
     connect( m_mainWorkflow, &MainWorkflow::mainWorkflowEndReached, this, &WorkflowRenderer::stop );
     m_mainWorkflow->setFullSpeedRender( true );
-- 
1.9.1



More information about the Vlmc-devel mailing list