You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
262 B
14 lines
262 B
7 years ago
|
#/bin/bash
|
||
|
|
||
|
# Works only without spaces in the titles
|
||
|
|
||
|
SUFFIX=mp3
|
||
|
|
||
|
for IMG_FILE in *.mp4
|
||
|
do
|
||
|
#strip .mp4 from file name
|
||
|
IMG_FILE_NAME=${IMG_FILE%.*}
|
||
|
echo "avconv -i ${IMG_FILE} ${IMG_FILE_NAME}.${SUFFIX}"
|
||
|
avconv -i ${IMG_FILE} ${IMG_FILE_NAME}.${SUFFIX}
|
||
|
done
|