Extract audio: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
Ed. note: Sorry this is more like a blog post.
Ed. note: Sorry this is more like a blog post.


Having recorded the Molin Upper Elementary 5th Grade Christmas Concert using my video camera, I wanted to extract just the audio portion so that I could listen to the music all by itself without having to play the video.  Besides, I could send the audio portion much more easily than I could send the 948 MB video file through email.  A lossless .ogg file would be only 21 MB and 14 MB in lossy mp3 format.
Having recorded the Molin Upper Elementary 5th Grade Christmas Concert using my video camera, I wanted to extract just the audio portion so that I could listen to the music all by itself without having to play the video.  Besides, I could send the audio portion much more easily than I could send the 948 MB video file through email.  The half-hour concert produced a lossless .ogg file of 21 MB and 14 MB in lossy mp3 format.


The [[Video Editing]] article gives some examples for using mencoder and ffmpeg, but in this case I found using ffmpeg on the command line was the easiest tool after some initial trial and error.  I was surprised to find out that Avidemux didn't just do what I wanted.  With Avidemux, I tried 'save audio' which produced a relatively large file, that didn't play in anything.  I ran ffmpeg -i on it, and it reported "unknown format"
The [[Video Editing]] article gives some examples for using mencoder and ffmpeg, but in this case I found using ffmpeg on the command line was the easiest tool after some initial trial and error.  I was surprised to find out that Avidemux didn't just do what I wanted.  With Avidemux, I tried 'save audio' which produced a relatively large file, that didn't play in anything.  I ran ffmpeg -i on it, and it reported "unknown format"