Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Repairing, splitting and merging media files (http://stream-recorder.com/forum/forumdisplay.php?f=19)
-   -  

How to cut 15 seconds of MP3 files from nested directories losslessly (linux/mp3splt)

(http://stream-recorder.com/forum/showthread.php?t=6666)

Stream Recorder 05-21-2010 05:46 AM

How to cut 15 seconds of MP3 files from nested directories losslessly (linux/mp3splt)


 
Go to the folder where your MP3 files resides using cd command.
Then type the following in the terminal
Code:

find ./ -name '*.mp3' -type f -exec mp3splt {} 00.15 EOF \;
00.15 - 0 minutes and 15 seconds
EOF - end of file

For every "filename.mp3" file in the directory and all nested subdirectories, the command will create a new file with the following name "filename_00m_15s__XXm_XXs.mp3" and save it into the same directory where "filename.mp3" is located.

Stream Recorder 11-16-2010 05:51 AM

Re: How to cut 15 seconds of MP3 files from nested directories losslessly (linux/mp3s


 
-a allows to automatically adjusts the split points to occur during silences, which avoids splitting in the middle of a word. Note that the pieces will vary in their length then.

Code:

find ./ -name '*.mp3' -type f -exec mp3splt -a {} 00.15 EOF \;
-d subfolder_name - writes the split files to a sub-folder named subfolder_name. The folder will be created if it doesn't already exist.

Code:

find ./ -name '*.mp3' -type f -exec mp3splt -a -d split {} 00.15 EOF \;
-f - for MP3 files only, increases precision and is needed if the MP3 files are variable bit rate (VBR).


If all MP3 files reside in the same folder (without any nested subfolders) simply use
Code:

mp3splt -a -f -d split *.mp3 00.15 EOF

Stream Recorder 07-12-2011 09:49 AM

Re: How to cut 15 seconds of MP3 files from nested directories losslessly (linux/mp3s


 
Negative splitpoints have been added in the latest development version as, so now you can cut the last XX second of the file. Just use EOF-min.sec[.0-99].

The following example shows how to split the last 15 seconds from all .mp3 files in the directory and its nested subdirectories:
Code:

find ./ -name '*.mp3' -type f -exec mp3splt {} 00.00 EOF-00.15 \;


All times are GMT -6. The time now is 09:02 AM.