I have the following script to convert a big bunch of .MOD and .XM files into Wave format:
#!/bin/bash
for f in ./XM.* ./MOD.*
do
xmp $f -d wav -o - | ffmpeg -i - -acodec libmp3lame -ab 320k "$f.mp3"
done
But it doesn't work as expected. The program just hang up. It creates the .wav file but nothing more.(Doesn't write in it) Even the -vvv switch doesn't give any information. The strange thing is: if I prepend "strace", it's working fine.
Any ideas/workarounds?
ffmpeg
encode that?-x
to display the actual commands on stderr (e.g.bash -x convert.sh
or placeset -x
somewhere in the script before the call toxmp
). Or just print the commands instead of executing them (you'll have to escape the|
of course). Then try to run the printed commands directly and get back to us with the results.