File tree 3 files changed +22
-3
lines changed
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ void settings() {
55
55
QC_Settings *qc = new QC_Settings ();
56
56
57
57
qc->showOptions ();
58
-
58
+ qc-> default_encoding_configurer ();
59
59
delete qc;
60
60
}
61
61
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ class QC_Settings{
18
18
std::string getDefault_encoding ();
19
19
// Methods
20
20
void showOptions ();
21
-
21
+ void default_encoding_configurer ();
22
+ void default_crf_configurer ();
22
23
};
23
24
24
25
#endif
Original file line number Diff line number Diff line change 1
1
2
+ #include " ffmpeg_coder.hpp"
2
3
#include < iostream>
3
4
#include < fstream>
4
5
#include < vector>
5
- #include " quickConvertSettings.hpp"
6
+ // #include "quickConvertSettings.hpp"
6
7
7
8
8
9
void QC_Settings::set_setted_crf (){
@@ -51,5 +52,22 @@ void QC_Settings::showOptions(){
51
52
}
52
53
53
54
void QC_Settings::default_encoding_configurer (){
55
+ std::string givenEncoding;
56
+ int selectedOption;
54
57
58
+ // Showing the current default encoding
59
+ std::cout<< " The current default is: " << default_encoding;
60
+ std::cout<<std::endl;
61
+ std::cout<<std::endl;
62
+
63
+ // Taking new encoding from user
64
+ ffmpeg *fmpg = new ffmpeg ();
65
+ fmpg->load_encodes ();
66
+ fmpg->show_encodes ();
67
+ selectedOption = fmpg->select_encodes ();
68
+
69
+ if (selectedOption == 1 )
70
+ std::cout<<" hey" ;
71
+ else
72
+ std::cout<<" HOO" ;
55
73
}
You can’t perform that action at this time.
0 commit comments