- Download script youtube-dl from http://rg3.github.com/youtube-dl/
- Make sure we have ffmpeg installed
- Write a small script with content as below:
youtube-dl --extract-audio --audio-format mp3 -v -t "$1"
For example, to download and extract the audio and save it as MP3 (assuming the small script above has been saved as utube":
utube http://www.youtube.com/watch?v=RoqRbe3dgwU&feature=g-vrec
Post-processing:
concatenate multiple MP3 files to become one mp3:
mp3wrap <file1> <file2> ... <output>
To downmix the result file to a mono-aural:
lame -m s -a <file> <downmix.mp3>
to copy the ID3 data from the original file to the output file
id3cp <mp3 source> <mp3 dest>
Post-processing:
concatenate multiple MP3 files to become one mp3:
mp3wrap <file1> <file2> ... <output>
To downmix the result file to a mono-aural:
lame -m s -a <file> <downmix.mp3>
to copy the ID3 data from the original file to the output file
id3cp <mp3 source> <mp3 dest>
No comments:
Post a Comment