- Use mplayer
$ mplayer -dumpaudio nodame_theme.flv -dumpfile nodame_theme.mp3
Then check out the output:
$ file nodame_theme.mp3
Output:
MPEG ADTS, layer III, v2, 8 kBits, 22.05 kHz, Monaural
- Use ffmpeg
$ ffmpeg -i nodame_theme.flv -ab 128 -ar 44100 nodame_theme.mp3
or $ ffmpeg -i video.flv -f mp3 -vn -acodec copy carsounds2.mp3
-i is to specified input file, -ab audio bitrate, -ar audio sampling frequency
Let say what file tells you.
MPEG ADTS, layer II, v1, 128 kBits, 44.1 kHz, Monaural
- How about record online stream?
$ mplayer -dumpstream http://64.236.34.97:80/stream/1005 -dumpfile smoothjazz.mp3
or $ ffmpeg -i http://64.236.34.97:80/stream/1005 -ab 128 -ar 44100 smoothjazz.mp3
- Reference
沒有留言:
張貼留言