Commit 1cd0d477 authored by Christophe Courtaut's avatar Christophe Courtaut

Move from s16l to fl32 for audio.

parent 418598a5
......@@ -90,7 +90,7 @@ MetaDataWorker::prepareAudioSpectrumComputing()
m_media->getVLCMedia()->setAudioDataCtx( this );
m_media->getVLCMedia()->setAudioLockCallback( reinterpret_cast<void*>( lock ) );
m_media->getVLCMedia()->setAudioUnlockCallback( reinterpret_cast<void*>( unlock ) );
m_media->getVLCMedia()->addOption( ":sout-transcode-acodec=s16l" );
m_media->getVLCMedia()->addOption( ":sout-transcode-acodec=fl32" );
m_media->getVLCMedia()->addOption( ":no-sout-smem-time-sync" );
m_media->getVLCMedia()->addOption( ":no-sout-keep" );
connect( m_mediaPlayer, SIGNAL( endReached() ), this, SLOT( generateAudioSpectrum() ), Qt::QueuedConnection );
......
......@@ -69,7 +69,7 @@ void WorkflowRenderer::initializeRenderer()
sprintf( videoString, "width=%i:height=%i:dar=%s:fps=%s:data=%lld:codec=%s:cat=2:caching=0",
m_mainWorkflow->getWidth(), m_mainWorkflow->getHeight(), "4/3", "30/1",
(qint64)m_videoEsHandler, "RV24" );
sprintf( audioParameters, "data=%lld:cat=1:codec=s16l:samplerate=%u:channels=%u:caching=0",
sprintf( audioParameters, "data=%lld:cat=1:codec=fl32:samplerate=%u:channels=%u:caching=0",
(qint64)m_audioEsHandler, m_rate, m_nbChannels );
strcpy( inputSlave, ":input-slave=imem://" );
strcat( inputSlave, audioParameters );
......
......@@ -84,7 +84,7 @@ void AudioClipWorkflow::initVlcOutput()
m_vlcMedia->setAudioDataCtx( this );
m_vlcMedia->setAudioLockCallback( reinterpret_cast<void*>( getLockCallback() ) );
m_vlcMedia->setAudioUnlockCallback( reinterpret_cast<void*>( getUnlockCallback() ) );
m_vlcMedia->addOption( ":sout-transcode-acodec=s16l" );
m_vlcMedia->addOption( ":sout-transcode-acodec=fl32" );
m_vlcMedia->addOption( ":sout-transcode-samplerate=48000" );
m_vlcMedia->addOption( ":sout-transcode-channels=2" );
m_vlcMedia->addOption( ":sout-smem-time-sync" );
......
......@@ -49,7 +49,7 @@ ImageClipWorkflow::initVlcOutput()
m_vlcMedia->setVideoLockCallback( reinterpret_cast<void*>( getLockCallback() ) );
m_vlcMedia->setVideoUnlockCallback( reinterpret_cast<void*>( getUnlockCallback() ) );
m_vlcMedia->addOption( ":sout-transcode-vcodec=RV24" );
m_vlcMedia->addOption( ":sout-transcode-acodec=s16l" );
m_vlcMedia->addOption( ":sout-transcode-acodec=fl32" );
m_vlcMedia->addOption( ":sout-smem-time-sync" );
sprintf( buffer, ":sout-transcode-width=%i",
......
......@@ -58,7 +58,7 @@ VideoClipWorkflow::initVlcOutput()
m_vlcMedia->setVideoLockCallback( reinterpret_cast<void*>( getLockCallback() ) );
m_vlcMedia->setVideoUnlockCallback( reinterpret_cast<void*>( getUnlockCallback() ) );
m_vlcMedia->addOption( ":sout-transcode-vcodec=RV24" );
m_vlcMedia->addOption( ":sout-transcode-acodec=s16l" );
m_vlcMedia->addOption( ":sout-transcode-acodec=fl32" );
m_vlcMedia->addOption( ":sout-smem-time-sync" );
sprintf( buffer, ":sout-transcode-width=%i",
......
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