From 02e5eccb5441bf657d88dd20f67eeaa313043316 Mon Sep 17 00:00:00 2001 From: DeLinuxCo Date: Tue, 9 Nov 2021 07:28:03 -0100 Subject: [PATCH] fixed some formating issues --- README.md | 49 +++++++++++++------------------------------------ 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 1344a6a..6996b30 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@ # AudioConversionScripts - A series of linux shell scripts for converting audio formats in batch process, - example .wav to .flac or .m4a to .mp3 and .flac to .wav etc. + A series of linux shell scripts for converting audio formats in batch process, example .wav to .flac or .m4a to .mp3 and .flac to .wav etc. Reasons for scripts These were orignally created for batch processing of multiple audio files with a one simple command. Just navigate to the directory where the audio files are and run the appropriate command. - If you have a PLEX server and you can't get the server to find your .flac files even - though they are there, the flac to flac scripts will usually cure most of these issues. + If you have a PLEX server and you can't get the server to find your .flac files even though they are there, the flac to flac scripts will usually cure most of these issues. You can also extract audio directly from webm and mp4 video formats. @@ -21,13 +19,11 @@ Reasons for scripts --------------------- ## Installation - Clone repo, or download zip file and unzip. From terminal, cd to directory - AudioConversionScripts and run the command: + Clone repo, or download zip file and unzip. From terminal, cd to directory AudioConversionScripts and run the command: `rsync -a acs ~/.local/bin/` - This will copy the folder "acs" to your local/bin directory. Which in most systems - should be in your $PATH. + This will copy the folder "acs" to your local/bin directory. Next,the scripts need to be made executable by running these two commands: @@ -45,21 +41,16 @@ Reasons for scripts ### Multi-thread performace - The scripts by default are set to use 2 threads, you can change this by editing the script - directly and changing the FFMPEG flag *"-threads 2"* what ever number of threads you want. - But for those of you with many threads, you are limited by your IO, so too many threads\ - can actually hurt performance. + The scripts by default are set to use 2 threads, you can change this by editing the script directly and changing the FFMPEG flag *"-threads 2"* what ever number of threads you want. But for those of you with many threads, you are limited by your IO, so too many threads can actually hurt performance. - You can edit any script with a text editor, either graphical or gui,\ - example using the command line with the nano editor. + You can edit any script with a text editor, either graphical or gui, example using the command line with the nano editor. `nano ~/.local/bin/acs/flac-m4a-44` --------------------- ## How to use - Because the scripts are in a folder that is in your PATH, executing the scripts is easy. - First to see all of the current format combinations, open a terminal and type: + Because the scripts are in a folder that is in your PATH, executing the scripts is easy. First to see all of the current format combinations, open a terminal and type: `.acs` @@ -97,12 +88,8 @@ Reasons for scripts * webm-flac-44 * webm-flac-48 - The script name says what it does, for example "wav-flac-48" means that the script - will convert files with a .wav extentions to .flac with a sample rate of 48000. - Make a copy of a directory with audio files with an extention of either flac, m4a or - mp3 etc. Open a terminal in that directory and if your files are .flac, and you want to - convert them to .wav, simply type: flac-wav-48 and the script will convert all files - in the current directory to .wav files. + The script name says what it does, for example "wav-flac-48" means that the script will convert files with a .wav extentions to .flac with a sample rate of 48000. Make a copy of a directory with audio files with an extention of either flac, m4a or + mp3 etc. Open a terminal in that directory and if your files are .flac, and you want to convert them to .wav, simply type: flac-wav-48 and the script will convert all files in the current directory to .wav files. The numbers at the end of the file name represent sample rates: * 43 = 43200 @@ -116,23 +103,13 @@ Reasons for scripts --------------------- # Creating your own custom scripts - If you have other formats that you would like to convert, you can easily use any of - of the existing scripts as a template. The only thing that need to be changed is - the *iext* & *oext* extensions and the FFMPEG settings line if applicable. Save the file - under a new name in the acs folder and make the new script executable. Do not add - the .sh extention to the new script. + If you have other formats that you would like to convert, you can easily use any of of the existing scripts as a template. The only thing that need to be changed is the *iext* & *oext* extensions and the FFMPEG settings line if applicable. Save the file under a new name in the acs folder and make the new script executable. Do not add the .sh extention to the new script. ![acs_example](https://user-images.githubusercontent.com/69424808/134644593-0fbfa4fc-a6dd-44d2-9c5a-0ab96c602b16.png) - When editing the FFMPEG flags (the green box in the above image), it is imparitive that - the spaces before and after are there (red arrows) or the script will fail. You can add - as many flags in the green box as necessary. + When editing the FFMPEG flags (the green box in the above image), it is imparitive that the spaces before and after are there (red arrows) or the script will fail. You can add as many flags in the green box as necessary. # Bulk Batch processing - To batch process multiple directories, a separate script will execute the necessary script per directory. - simply edit the *bulkbatch* file in ~/.local/bin/acs with your favorite editor. Edit/add the directories - in the the section ***User Section ***. Please note that you may encounter errors in transcoding which causes - the script to stop. As always, never work with origianl files, ALWAYS copies! + To batch process multiple directories, a separate script will execute the necessary script per directory. simply edit the *bulkbatch* file in ~/.local/bin/acs with your favorite editor. Edit/add the directories in the the section ***User Section ***. Please note that you may encounter errors in transcoding which causes the script to stop. As always, never work with origianl files, ALWAYS copies! - To use the script, once edited to your liking, simply run `bulkbatch` from the terminal, does not matter the - location where the script is executed. + To use the script, once edited to your liking, simply run `bulkbatch` from the terminal, does not matter the location where the script is executed.