#!/bin/sh
#ffmpegAudioMerge.sh "*.m4a"
P=$1; N=0; FS="";
for f in $P; do
N=$((N+1))
FS="$FS -i \"$f\""
echo $f
done
cmd="ffmpeg \
$FS \
-filter_complex 'concat=n=$N:v=0:a=1[a]' -map '[a]' \
all.m4a"
echo $cmd
eval $cmd
#!/bin/sh
#ffmpegAudioMerge.sh "*.m4a"
P=$1; N=0; FS="";
for f in $P; do
N=$((N+1))
FS="$FS -i \"$f\""
echo $f
done
cmd="ffmpeg \
$FS \
-filter_complex 'concat=n=$N:v=0:a=1[a]' -map '[a]' \
all.m4a"
echo $cmd
eval $cmd