Skip to content

Commit 018fa35

Browse files
author
Clement Champetier
committed
Transcoder: default transcoding policy is eProcessMethodBasedOnStream at index 0
Use this transcoding policy in avprocessor.
1 parent e60015f commit 018fa35

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

app/avProcessor/avProcessor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ int main( int argc, char** argv )
107107

108108
// set verbose of all stream
109109
transcoder.setVerbose( verbose );
110-
transcoder.setProcessMethod( avtranscoder::eProcessMethodLongest );
111110

112111
if( verbose )
113112
std::cout << "start Transcode" << std::endl;

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Transcoder::Transcoder( OutputFile& outputFile )
1717
, _streamTranscoders()
1818
, _streamTranscodersAllocated()
1919
, _profileLoader( true )
20-
, _eProcessMethod ( eProcessMethodLongest )
20+
, _eProcessMethod ( eProcessMethodBasedOnStream )
2121
, _mainStreamIndex( 0 )
2222
, _verbose( false )
2323
{

src/AvTranscoder/transcoder/Transcoder.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ namespace avtranscoder
1818
/**
1919
* @brief Enum to set a policy of how we manage the transcode in case of several streams.
2020
* eProcessMethodShortest: stop transcode at the end of the shortest stream.
21-
* eProcessMethodLongest: stop transcode at the end of the longest stream (default method).
22-
* eProcessMethodBasedOnStream: stop transcode at the end of an indicated stream (@see _indexBasedStream of Transcoder).
23-
* eProcessMethodInfinity: stop transcode by outside of avTranscoder.
21+
* eProcessMethodLongest: stop transcode at the end of the longest stream.
22+
* eProcessMethodBasedOnStream: stop transcode at the end of an indicated stream (@see _indexBasedStream attribute of Transcoder).
23+
* eProcessMethodInfinity: stop transcode by outside of avTranscoder (streaming mode)
2424
*/
2525
enum EProcessMethod
2626
{
@@ -121,8 +121,8 @@ class AvExport Transcoder
121121
StreamTranscoder& getStreamTranscoder( size_t streamIndex ) const { return *_streamTranscoders.at( streamIndex ); }
122122

123123
/**
124-
* @brief Set the transcodage politic.
125-
* @note By default eProcessMethodLongest.
124+
* @brief Set the transcoding policy.
125+
* @note By default eProcessMethodBasedOnStream at index 0.
126126
* @param indexBasedStream: in case of process method eProcessMethodBasedOnStream, stop transcode at the end of the indicated stream.
127127
*/
128128
void setProcessMethod( const EProcessMethod eProcessMethod, const size_t indexBasedStream = 0 );

0 commit comments

Comments
 (0)