The simple and naive command, which I think, be fitted to almost all situation, is

 avconv -i input.ogg output.mp3

, because of its man page as follows:

     By default avconv tries to pick the "best" stream of each type present in input
       files and add them to each output file. For video, this means the highest
       resolution, for audio the highest channel count. For subtitle it's simply the
       first subtitle stream.

ffmpeg will be discarded soon.

저작자 표시 비영리 변경 금지
posted by citadel

transcode -i cd1.avi -1 -a 0 -y raw -m cd1.mp3
저작자 표시 비영리 변경 금지

'Computer > linux' 카테고리의 다른 글

prepare to do very crazy thing  (0) 2011.10.20
make an audio cd from an avi source  (0) 2011.10.09
create a thumbnail by command line  (0) 2011.09.27
Crop a pdf file to reduce a page margin in Linux  (0) 2011.06.23
posted by citadel

M4A to wav

 for nam in *.M4A; do nice mplayer -ao pcm "$nam" -ao pcm:file="$nam.wav" done

wav to mp3

 for nam in *.wav; do nice lame -h "$nam" "$nam.mp3" ;done

posted by citadel