13 lines
		
	
	
		
			330 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			330 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| if [ "$#" = "0" ]; then
 | |
|     echo "Usage: $0 file1 [file2 file3 ... fileN]"
 | |
|     exit 1
 | |
| fi
 | |
| 
 | |
| while [ "$#" -gt 0 ]; do
 | |
|     echo "Processing $1 ($# more left)..."
 | |
|     ffmpeg -i "$1" -f wav -vn - | lame -m j --replaygain-fast --vbr-new -V 2 -o --id3v2-only --resample 44.1 - "$1.mp3"
 | |
|     id3cp -2 "$1" "$1.mp3"
 | |
|     shift
 | |
| done
 |