Saturday, May 22, 2010

Extract Audio from FLV file and save as MP3 with FFmpeg

I had to extract MP3 from an flv video a few days back. Luckily i had FFmpeg. Since i had the command line version only, i had to dig deep to find the commands to get my task done.

The command that i used is : 

D:>ffmpeg.exe -i

This will process the video file and out put the audio at a rate of 64kbps. Although the flv contained audio at 128kbps, the result i got was only at 64kbps. 

In order to copy the sound channel directly and save it as mp3, we can use this

D:>ffmpeg.exe -i “D:\testVideo.flv” -acodec copy “D:\audio_from_video.mp3”

The option "-acodec copy" results in FFMPEG copying the audio stream present to the output file without processing it.

About FFmpeg

FFmpeg is a collection of software libraries that can record, convert and stream digital audio and video in numerous formats. It includes libavcodec, an audio/video codec library used by several other projects, and libavformat, an audio/video container mux and demux library. The name of the project comes from the MPEG video standards group, together with "FF" for "fast forward".

FFmpeg takes care of all the hard work of video processing by doing all the decoding, encoding, muxing and demuxing for you. This can make media applications much simpler to write. It's simple, written in C, fast, and can decode almost any codec you'll find in use today, as well as encode several other formats.

FFmpeg Website

Sunday, May 02, 2010

Shift

Its been a long time since i have created any blog posts on blogger. In fact i think its been more than 2 years now. Mainly because of the fact that i completed my studies and joined a software company back in Feb 2009. Had training for 6 months in Mysore and i had limited net access. So when i got access to net it was mostly to check mail, orkut and facebook. But i created a blog in our company intranet and do find time to post in that occasionally. But never had time to update my blog in the outside world, although not much people follow it.

In case you may be wondering whats the shift in the title, well i am getting to that. After 6 months of training at Mysore i got posted to Chennai. And now my home town has been shifted to Cochin, Kerala from Kottayam, Kerala. A number of factors were there when my family decided to shift. And now it gives me a lot of options to travel to my family and spend more time. 

So thats about it. :)

Saturday, May 01, 2010

Revamp in order

Over the past one and a half years, my life, perspectives, likes, dislikes and even thoughts have come leaps and bounds. So i believe a quick revamp is in need for my blog also. Feel free to comment me on the changes that you see.

This will be my 49th post. Incidentally it is a number mostly associated with my favorite football club that is arsenal. Arsenal had gone 49 consecutive Premiere League games unbeaten from 2003 to 2005 - a national record. Speaking of arsenal, i have become infected with Arsenalitis it seems. It has become a part of my blood, thoughts and life. So this 49th post is dedicated to the team that plays the best football in all the land :)

I was able to buy a sony cyber shot camera last year and have been experimenting with my photography interests for some time now. Most of my better efforts have been uploaded in mu Orkut and Facebook albums.

Opera has come out with version 10 and i had been following all the great developments from them all throughout. I use Opera mini 5 from my mobile device and it is an absolutely wonderful product. Fantastic UI design, navigation and exceptional usability makes me think that Opera have done it this time. What more can they do to improve. Will have to wait and see.

Will post more soon, chow