Skip to content

Commit 21766d6

Browse files
authored
Create converter.sh
1 parent c690ce4 commit 21766d6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

converter.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# mp3-converter-linux
2+
Convert mkv to mp3
3+
4+
`$ find . -type f -name "*.mkv" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;`
5+
6+
Convert webm to mp3
7+
8+
`
9+
$ find . -type f -iname "*.webm" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";' _ '{}' \;
10+
`
11+
12+
Command to use it
13+
14+
`curl -s -L https://raw.githubusercontent.com/julkwel/mp3-converter-linux/master/converter.sh | bash`

0 commit comments

Comments
 (0)