Wrote a simple bash script to extract the music from videos in a particular directory and store the resulting audio in another directory mirroring the original file hierarchy.
The script simply stores the path to the videos folder provided in a variable and converts it into absolute path. Further, it constructs the path of the output folder to store the extracted audio.
Audio Extraction
First, the code recursively searches through the directory to find all mp4 files in the folder.
Next constructs the path for the output.
The audio extraction part is performed by the 'ffmpeg' command, and encoded using the mp3 codec "libmp3lame".
Lastly, on completion of the process, it prints a message indicating that the process has finished.
FIXES #91
Wrote a simple bash script to extract the music from videos in a particular directory and store the resulting audio in another directory mirroring the original file hierarchy. The script simply stores the path to the videos folder provided in a variable and converts it into absolute path. Further, it constructs the path of the output folder to store the extracted audio.
Audio Extraction
@rootCircle kindly review.