blob: 26a8588bf22c1e4bc3d0bd2a904830a7362429e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
#
# Date: 2009-11-30
# Author: Ole Kristian Lien
# License: GNU General Public License
#
# Extract audio from video-file
EXT=`echo "$1"|awk -F . '{print $NF}'`
NAME=`basename $1 .$EXT`
FORMAT=`./audio_format $1`
if [ -z "$1" ]; then
echo "Usage: $0 <video-file>"
exit 1
fi
ffmpeg -i $1 -vn -acodec copy $NAME.$FORMAT 2> /dev/null
|