Skip to content

Commit 41ca620

Browse files
author
Clement Champetier
committed
Transcoder: added addStream method to add several inputs and handle the profile as a string
1 parent 2d06675 commit 41ca620

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ void Transcoder::addStream(const InputStreamDesc& inputStreamDesc, const Profile
7272
addStream(inputStreamDescArray, profile, offset);
7373
}
7474

75+
void Transcoder::addStream(const std::vector<InputStreamDesc>& inputStreamDescArray, const std::string& profileName, const float offset)
76+
{
77+
const ProfileLoader::Profile& encodingProfile = _profileLoader.getProfile(profileName);
78+
addStream(inputStreamDescArray, encodingProfile, offset);
79+
}
80+
7581
void Transcoder::addStream(const std::vector<InputStreamDesc>& inputStreamDescArray, const ProfileLoader::Profile& profile, const float offset)
7682
{
7783
addTranscodeStream(inputStreamDescArray, profile, offset);

src/AvTranscoder/transcoder/Transcoder.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class AvExport Transcoder
6868
//@{
6969
// @brief Add a new stream to the output file, created from the given input description to process.
7070
// @param inputStreamDescArray: the type of the described streams should be of the same type.
71+
void addStream(const std::vector<InputStreamDesc>& inputStreamDescArray, const std::string& profileName, float offset = 0);
7172
void addStream(const std::vector<InputStreamDesc>& inputStreamDescArray, const ProfileLoader::Profile& profile, const float offset = 0);
7273
//@}
7374

0 commit comments

Comments
 (0)