Skip to content

Commit 75d64c8

Browse files
author
Clement Champetier
committed
Profile: add AVI and MKV format Profiles
1 parent a02decf commit 75d64c8

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

src/AvTranscoder/Profile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <AvTranscoder/Profiles/XdCamHd422.hpp>
66
#include <AvTranscoder/Profiles/DNxHD.hpp>
77
#include <AvTranscoder/Profiles/Wave.hpp>
8+
#include <AvTranscoder/Profiles/Avi.hpp>
9+
#include <AvTranscoder/Profiles/Mkv.hpp>
810

911
#include <iostream>
1012
#include <fstream>
@@ -69,6 +71,8 @@ void Profile::loadProfiles( const std::string& avProfilesPath )
6971
loadXdCamHD422( _profiles );
7072
loadDNxHD( _profiles );
7173
loadWave( _profiles );
74+
loadAvi( _profiles );
75+
loadMkv( _profiles );
7276

7377
std::string realAvProfilesPath = avProfilesPath;
7478
if( realAvProfilesPath.empty() )

src/AvTranscoder/Profiles/Avi.hpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef _AVTRANSCODER_PROFIL_AVI_HPP_
2+
#define _AVTRANSCODER_PROFIL_AVI_HPP_
3+
4+
namespace avtranscoder
5+
{
6+
7+
void loadAvi( Profile::ProfilesDesc& profiles )
8+
{
9+
Profile::ProfileDesc avi;
10+
avi[ Profile::avProfileIdentificator ] = "avi";
11+
avi[ Profile::avProfileIdentificatorHuman ] = "AVI (Audio Video Interleaved)";
12+
avi[ Profile::avProfileType ] = Profile::avProfileTypeFormat;
13+
14+
avi[ "format" ] = "avi";
15+
16+
profiles.push_back( avi );
17+
}
18+
19+
}
20+
21+
#endif

src/AvTranscoder/Profiles/Mkv.hpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef _AVTRANSCODER_PROFIL_MKV_HPP_
2+
#define _AVTRANSCODER_PROFIL_MKV_HPP_
3+
4+
namespace avtranscoder
5+
{
6+
7+
void loadMkv( Profile::ProfilesDesc& profiles )
8+
{
9+
Profile::ProfileDesc mkv;
10+
mkv[ Profile::avProfileIdentificator ] = "mkv";
11+
mkv[ Profile::avProfileIdentificatorHuman ] = "Matroska";
12+
mkv[ Profile::avProfileType ] = Profile::avProfileTypeFormat;
13+
14+
mkv[ "format" ] = "mastroka";
15+
16+
profiles.push_back( mkv );
17+
}
18+
19+
}
20+
21+
#endif

0 commit comments

Comments
 (0)