@@ -46,7 +46,7 @@ class ffmpeg
4646 };
4747 void show_encodes ()
4848 {
49- std::cout<< " Which video encoding do you prefer: " << std::endl;
49+ std::cout << " Which video encoding do you prefer: " << std::endl;
5050 for (int i = 0 ; i < encodes.size (); i++)
5151 {
5252 std::cout << (i + 1 ) << " . " << encodes[i] << std::endl;
@@ -71,9 +71,9 @@ class ffmpeg
7171 crf.push_back (28 );
7272
7373 // 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;
7777 for (int i = 0 ; i < crf.size (); i++)
7878 {
7979 std::cout << (i + 1 ) << " . " << crf[i] << std::endl;
@@ -234,8 +234,8 @@ class ffmpeg
234234 cout << " Your choice: " ;
235235 cin >> choice;
236236
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;
239239 if (choice == 1 )
240240 {
241241 is_vb_selected = true ;
@@ -286,24 +286,23 @@ class ffmpeg
286286 void h264 ()
287287 {
288288 // Taking the video name input
289- std::cout<<" Note: Video file names with space does not work." ;
290- std::cout<<std::endl;
291289 std::cout << " Please input the video file name without file extension: " ;
292290 // getline(std::cin, video_name);
293291 std::cin >> video_name;
294292 clear_screen ();
293+ std::cout << " Note: Video file names with space does not work." ;
294+ std::cout << std::endl;
295295 std::cout << " NB: Input -1 to Exit the input loop" ;
296296 std::cout << std::endl;
297297
298- std::cout << " Your input video file name is: " << video_name;
298+ std::cout << " Your inputted video file's name is: " << video_name;
299299 std::cout << std::endl;
300300
301301 // 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: " ;
302303 std::cout << std::endl;
303304 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+
307306 if (is_ab_selected = true )
308307 {
309308 std::cout << " ffmpeg -i " << video_name << " .mp4 -vcodec h264 -acodec aac -ab " << selected_audioBitrate << " k "
@@ -330,7 +329,7 @@ class ffmpeg
330329 case 1 : // h264
331330 {
332331 select_crf ();
333- // select_audioBitrate();
332+ // select_audioBitrate();
334333 select_videoBitrate ();
335334 do
336335 {
@@ -355,8 +354,9 @@ void title()
355354 using namespace std ;
356355 cout << " \t\t\t FFMPEG Coder"
357356 << 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;
360360}
361361void about ()
362362{
@@ -365,7 +365,7 @@ void about()
365365
366366 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" ;
367367
368- std::cout<< about_ffmpeg_coder;
368+ std::cout << about_ffmpeg_coder;
369369}
370370
371371// Home page of the tool
@@ -409,10 +409,10 @@ void homepage()
409409 }
410410 else if (choice == 3 )
411411 {
412- std::cout<< " Exiting the program..............." << std::endl;
412+ std::cout << " Exiting the program..............." << std::endl;
413413 exit (0 );
414414 }
415- else
415+ else
416416 {
417417 exit (0 );
418418 }
0 commit comments