Commit 74fccfac authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Setting file output FPS

parent 73cc27ca
......@@ -29,6 +29,9 @@ void WorkflowFileRenderer::run()
+ m_outputFileName + "\"}";
m_media->addOption( transcodeStr.toStdString().c_str() );
sprintf( buffer, ":sout-transcode-fps=%f", (float)FPS );
m_media->addOption( buffer );
m_mediaPlayer->setMedia( m_media );
connect( m_mainWorkflow, SIGNAL( mainWorkflowEndReached() ), this, SLOT( stop() ) );
......
......@@ -153,6 +153,9 @@ void ClipWorkflow::setVmem()
sprintf( buffer, ":sout-transcode-height=%i", VIDEOHEIGHT );
m_vlcMedia->addOption( buffer );
sprintf( buffer, ":sout-transcode-fps=%f", (float)FPS );
m_vlcMedia->addOption( buffer );
//sprintf( buffer, "sout-smem-video-pitch=%i", VIDEOWIDTH * 3 );
//m_vlcMedia->addOption( buffer );
}
......
......@@ -80,7 +80,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
void pause();
void unpause();
static unsigned char* blackOutput;
void nextFrame();
void previousFrame();
......@@ -115,6 +114,7 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
private:
static MainWorkflow* m_instance;
static unsigned char* blackOutput;
private:
void computeLength();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment