@@ -46,7 +46,7 @@ class ffmpeg
46
46
};
47
47
void show_encodes ()
48
48
{
49
- std::cout<< " Which video encoding do you prefer: " << std::endl;
49
+ std::cout << " Which video encoding do you prefer: " << std::endl;
50
50
for (int i = 0 ; i < encodes.size (); i++)
51
51
{
52
52
std::cout << (i + 1 ) << " . " << encodes[i] << std::endl;
@@ -71,9 +71,9 @@ class ffmpeg
71
71
crf.push_back (28 );
72
72
73
73
// showing the crf
74
- std::cout<< " Note: Higher the CRF value more the compression" ;
75
- std::cout<< std::endl;
76
- std::cout<< " Select CRF value: " << std::endl;
74
+ std::cout << " Note: Higher the CRF value more the compression" ;
75
+ std::cout << std::endl;
76
+ std::cout << " Select CRF value: " << std::endl;
77
77
for (int i = 0 ; i < crf.size (); i++)
78
78
{
79
79
std::cout << (i + 1 ) << " . " << crf[i] << std::endl;
@@ -234,8 +234,8 @@ class ffmpeg
234
234
cout << " Your choice: " ;
235
235
cin >> choice;
236
236
237
- std::cout<< " Select the appropriate video bitrate (default is 8 MBPS): " ;
238
- std::cout<< std::endl;
237
+ std::cout << " Select the appropriate video bitrate (default is 8 MBPS): " ;
238
+ std::cout << std::endl;
239
239
if (choice == 1 )
240
240
{
241
241
is_vb_selected = true ;
@@ -286,24 +286,23 @@ class ffmpeg
286
286
void h264 ()
287
287
{
288
288
// Taking the video name input
289
- std::cout<<" Note: Video file names with space does not work." ;
290
- std::cout<<std::endl;
291
289
std::cout << " Please input the video file name without file extension: " ;
292
290
// getline(std::cin, video_name);
293
291
std::cin >> video_name;
294
292
clear_screen ();
293
+ std::cout << " Note: Video file names with space does not work." ;
294
+ std::cout << std::endl;
295
295
std::cout << " NB: Input -1 to Exit the input loop" ;
296
296
std::cout << std::endl;
297
297
298
- std::cout << " Your input video file name is: " << video_name;
298
+ std::cout << " Your inputted video file's name is: " << video_name;
299
299
std::cout << std::endl;
300
300
301
301
// preparing the prefix and suffix code for ffmpeg convertion
302
+ std::cout << " Generated code to run in your CLI in the specified video file Directory: " ;
302
303
std::cout << std::endl;
303
304
std::cout << std::endl;
304
- std::cout<<" Generated code to run in your CLI in the specified video file Directory: " ;
305
- std::cout<<std::endl;
306
-
305
+
307
306
if (is_ab_selected = true )
308
307
{
309
308
std::cout << " ffmpeg -i " << video_name << " .mp4 -vcodec h264 -acodec aac -ab " << selected_audioBitrate << " k "
@@ -330,7 +329,7 @@ class ffmpeg
330
329
case 1 : // h264
331
330
{
332
331
select_crf ();
333
- // select_audioBitrate();
332
+ // select_audioBitrate();
334
333
select_videoBitrate ();
335
334
do
336
335
{
@@ -355,8 +354,9 @@ void title()
355
354
using namespace std ;
356
355
cout << " \t\t\t FFMPEG Coder"
357
356
<< endl;
358
- cout<<" \t\t By Abir-Tx" <<endl;
359
- cout<<" ___________________________________\n " <<endl;
357
+ cout << " \t\t By Abir-Tx" << endl;
358
+ cout << " ___________________________________\n "
359
+ << endl;
360
360
}
361
361
void about ()
362
362
{
@@ -365,7 +365,7 @@ void about()
365
365
366
366
about_ffmpeg_coder = " FFMPEG Coder is a CLI tool created by Mushfiqur Rahman Abir AKA Abir-Tx.The tool is now in beta for testing purpose only and not much ready for use. Updates will be added soon" ;
367
367
368
- std::cout<< about_ffmpeg_coder;
368
+ std::cout << about_ffmpeg_coder;
369
369
}
370
370
371
371
// Home page of the tool
@@ -409,10 +409,10 @@ void homepage()
409
409
}
410
410
else if (choice == 3 )
411
411
{
412
- std::cout<< " Exiting the program..............." << std::endl;
412
+ std::cout << " Exiting the program..............." << std::endl;
413
413
exit (0 );
414
414
}
415
- else
415
+ else
416
416
{
417
417
exit (0 );
418
418
}
0 commit comments