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() ...@@ -29,6 +29,9 @@ void WorkflowFileRenderer::run()
+ m_outputFileName + "\"}"; + m_outputFileName + "\"}";
m_media->addOption( transcodeStr.toStdString().c_str() ); m_media->addOption( transcodeStr.toStdString().c_str() );
sprintf( buffer, ":sout-transcode-fps=%f", (float)FPS );
m_media->addOption( buffer );
m_mediaPlayer->setMedia( m_media ); m_mediaPlayer->setMedia( m_media );
connect( m_mainWorkflow, SIGNAL( mainWorkflowEndReached() ), this, SLOT( stop() ) ); connect( m_mainWorkflow, SIGNAL( mainWorkflowEndReached() ), this, SLOT( stop() ) );
......
...@@ -153,6 +153,9 @@ void ClipWorkflow::setVmem() ...@@ -153,6 +153,9 @@ void ClipWorkflow::setVmem()
sprintf( buffer, ":sout-transcode-height=%i", VIDEOHEIGHT ); sprintf( buffer, ":sout-transcode-height=%i", VIDEOHEIGHT );
m_vlcMedia->addOption( buffer ); 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 ); //sprintf( buffer, "sout-smem-video-pitch=%i", VIDEOWIDTH * 3 );
//m_vlcMedia->addOption( buffer ); //m_vlcMedia->addOption( buffer );
} }
......
...@@ -80,7 +80,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow> ...@@ -80,7 +80,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
void pause(); void pause();
void unpause(); void unpause();
static unsigned char* blackOutput;
void nextFrame(); void nextFrame();
void previousFrame(); void previousFrame();
...@@ -115,6 +114,7 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow> ...@@ -115,6 +114,7 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
private: private:
static MainWorkflow* m_instance; static MainWorkflow* m_instance;
static unsigned char* blackOutput;
private: private:
void computeLength(); 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