This PR enhances the audio extraction script to incorporate user interaction for specifying input and output folders. Here's a breakdown of the implementation:
Implementation Logic:
User Input Prompting:
Utilizes the read command to prompt users for the paths of the input and output folders.
Prompts users to enter the path of the folder containing MP4 files and the path to save the extracted audio files.
Audio Extraction Function:
The extract_audio function remains unchanged and handles the audio extraction process.
Checks if the input folder exists and creates the output folder if it doesn't exist.
Recursively searches for MP4 files in the input folder using find.
Utilizes ffmpeg to extract audio from each MP4 file and saves it as an MP3 file in the output folder.
Provides informative messages indicating successful extractions or failures.
Improved User Experience:
By allowing users to input folder paths, the script offers greater flexibility and usability.
Users receive clear feedback throughout the extraction process, ensuring a smooth and informative experience.
This PR enhances the script's functionality and user-friendliness by enabling users to specify input and output folders interactively, enhancing overall usability.
@rootCircle ,solved the issue #91 ,
This PR enhances the audio extraction script to incorporate user interaction for specifying input and output folders. Here's a breakdown of the implementation:
Implementation Logic:
User Input Prompting:
read
command to prompt users for the paths of the input and output folders.Audio Extraction Function:
extract_audio
function remains unchanged and handles the audio extraction process.find
.ffmpeg
to extract audio from each MP4 file and saves it as an MP3 file in the output folder.Improved User Experience:
This PR enhances the script's functionality and user-friendliness by enabling users to specify input and output folders interactively, enhancing overall usability.
Screenshot of the same: