1
+ <<<<<<<< HEAD:MediaProcessor/src/Processor.cpp
2
+ <<<<<<<< HEAD:MediaProcessor/src/Engine.cpp
1
3
#include " Engine.h"
4
+ ========
5
+ #include " Processor.h"
6
+ >>>>>>>> 48771f6 (Fix broken build and add macos-specific link fix):MediaProcessor/src/Processor.cpp
7
+ ========
8
+ #include " Engine.h"
9
+ >>>>>>>> 1766575 (Core: Refactor Processor class to better reflect intentions):MediaProcessor/src/Engine.cpp
2
10
3
11
#include < iostream>
4
12
9
17
10
18
namespace MediaProcessor {
11
19
20
+ <<<<<<<< HEAD:MediaProcessor/src/Processor.cpp
21
+ <<<<<<<< HEAD:MediaProcessor/src/Engine.cpp
22
+ Engine::Engine (const std::filesystem::path& mediaPath)
23
+ : m_mediaPath(std::filesystem::absolute(mediaPath)) {}
24
+
25
+ bool Engine::processMedia () {
26
+ ========
27
+ Processor::Processor (const std::filesystem::path& mediaPath)
28
+ : m_mediaPath (std::filesystem::absolute (mediaPath)) {}
29
+
30
+ bool Processor::process () {
31
+ >>>>>>>> 48771f6 (Fix broken build and add macos-specific link fix):MediaProcessor/src/Processor.cpp
32
+ ========
12
33
Engine::Engine (const std::filesystem::path& mediaPath)
13
34
: m_mediaPath (std::filesystem::absolute (mediaPath)) {}
14
35
15
36
bool Engine::processMedia () {
37
+ >>>>>>>> 1766575 (Core: Refactor Processor class to better reflect intentions):MediaProcessor/src/Engine.cpp
16
38
ConfigManager& configManager = ConfigManager::getInstance ();
17
39
if (!configManager.loadConfig (" config.json" )) {
18
40
std::cerr << " Error: Could not load configuration." << std::endl;
@@ -33,7 +55,15 @@ bool Engine::processMedia() {
33
55
}
34
56
}
35
57
58
+ <<<<<<<< HEAD:MediaProcessor/src/Processor.cpp
59
+ <<<<<<<< HEAD:MediaProcessor/src/Engine.cpp
60
+ bool Engine::processAudio () {
61
+ ========
62
+ bool Processor::processAudio () {
63
+ >>>>>>>> 48771f6 (Fix broken build and add macos-specific link fix):MediaProcessor/src/Processor.cpp
64
+ ========
36
65
bool Engine::processAudio () {
66
+ >>>>>>>> 1766575 (Core: Refactor Processor class to better reflect intentions):MediaProcessor/src/Engine.cpp
37
67
AudioProcessor audioProcessor (m_mediaPath, Utils::prepareAudioOutputPath (m_mediaPath));
38
68
if (!audioProcessor.isolateVocals ()) {
39
69
std::cerr << " Failed to process audio." << std::endl;
@@ -44,7 +74,15 @@ bool Engine::processAudio() {
44
74
return true ;
45
75
}
46
76
77
+ <<<<<<<< HEAD:MediaProcessor/src/Processor.cpp
78
+ <<<<<<<< HEAD:MediaProcessor/src/Engine.cpp
47
79
bool Engine::processVideo () {
80
+ ========
81
+ bool Processor::processVideo () {
82
+ >>>>>>>> 48771f6 (Fix broken build and add macos-specific link fix):MediaProcessor/src/Processor.cpp
83
+ ========
84
+ bool Engine::processVideo () {
85
+ >>>>>>>> 1766575 (Core: Refactor Processor class to better reflect intentions):MediaProcessor/src/Engine.cpp
48
86
auto [extractedVocalsPath, processedMediaPath] = Utils::prepareOutputPaths (m_mediaPath);
49
87
AudioProcessor audioProcessor (m_mediaPath, extractedVocalsPath);
50
88
@@ -63,7 +101,15 @@ bool Engine::processVideo() {
63
101
return true ;
64
102
}
65
103
104
+ <<<<<<<< HEAD:MediaProcessor/src/Processor.cpp
105
+ <<<<<<<< HEAD:MediaProcessor/src/Engine.cpp
106
+ MediaType Engine::getMediaType () const {
107
+ ========
108
+ MediaType Processor::getMediaType () const {
109
+ >>>>>>>> 48771f6 (Fix broken build and add macos-specific link fix):MediaProcessor/src/Processor.cpp
110
+ ========
66
111
MediaType Engine::getMediaType () const {
112
+ >>>>>>>> 1766575 (Core: Refactor Processor class to better reflect intentions):MediaProcessor/src/Engine.cpp
67
113
const std::string command =
68
114
" ffprobe -loglevel error -show_entries stream=codec_type "
69
115
" -of default=noprint_wrappers=1:nokey=1 \" " +
0 commit comments