First, dump the audio using mplayer to a file called audiodump.wav:
mplayer -vo null -ao pcm:fast input_video_file
Then, if you want, you can downsample that wave file (using sox) since voice doesn't need the same quality as music:sox audiodump.wav --rate 32000 -1 --channels 1 audiodump_small.wav vol 0.9 ditherFinally, encode the file as in the SPEEX format (if your music player supports it):speexenc --denoise --vbr --dtx audiodump_small.wav output.spx
You could also use the OGG Vorbis format:oggenc --downmix --output=output.ogg audiodump.wavor create an MP3 using lame:lame -mm audiodump.wav output.mp3It works very well with Youtube videos, but you have to download the video first using youtube-dl or clive.



1 comments:
cheers! not to be anal but it should be .oga, not .ogg anymore.
Post a Comment