Mass Convert All MP4 & Webm To MP3 Music Script For Linux

Go down

Mass Convert All MP4 & Webm To MP3 Music Script For Linux

Post by jamied_uk on 5th January 2018, 13:29

Vid

Code


MP4 To Mp3


Code:
#!/bin/bash
#
# ./convert_all.sh
#
myvar=$1
for f in *.mp4; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "${f%.mp4}.mp3"; done
#
#


Webm To Mp3




Code:
#!/bin/bash
#
# ./convert_all.sh
#
myvar=$1
for f in *.webm; do ffmpeg -i "$f" -acodec libmp3lame -ab 256k "${f%.webm}.mp3"; done
#
#
avatar
jamied_uk
Admin

Posts : 2427
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum