Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Define the path to the input MP3 file
- input_file="file.mp3"
- # Define the length of each chunk in seconds (480 seconds = 8 minutes)
- chunk_length=480
- # Create an output directory to store the chunks
- mkdir -p output
- # Use ffmpeg to split the MP3 file into chunks
- ffmpeg -i "$input_file" -f segment -segment_time "$chunk_length" -c copy "output/chunk_%03d.mp3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement