Photobucket

Sunday, September 25, 2011

Getting music out of your fav Youtube videos

So, again this is like a ready reference for me so that whenever I need to extract and convert music out of a video I can just come here and look at this post. Long long ago, I had done this once. I used ffmpeg to extract music out of a video and then convert it to some specific format. I remember reading that instead of using some one click tools which are readily available, using ffmpeg will help in maintaining the sound quality. Find below the detailed steps.

1) Install ffmpeg: I had initially thought that installing just ffmpeg would be sufficient but apparently it wasn't. I needed some extras too. So, to install everything that is needed, do this


Code:
sudo apt-get install ffmpeg libavcodec-extra-52


2) Extracting music: Next we need to check what kind of audio does my file have 


Code:
ffmpeg -i inputvideofile.flv

This will tell me what kind of audio does the file have. So I know what will my output be. Next I use the following command to get the music

Code:
ffmpeg -i inputvideofile.flv -acodec copy output.aac
3) Now I realize that an app in my phone ( Ringdroid) does not recognize this format. So I decide to convert .aac to .mp3
Code:
ffmpeg -i input.aac -ar 44100 -ab 115 -map_meta_data output.mp3:input.aac output.mp3

If you don't want to map metadata then you can just have
Code:
ffmpeg -i input.aac -ar 44100 -ab 115 output.mp3

The values 44100 and 115, I get them from ffmpeg -i inputfile.mp3 command 
Read more!

Thursday, September 22, 2011

Finally rooted my phone

Yep. Rooted it finally! I was a bit apprehensive about rooting it even more because I got a mail from LG saying android 2.3 arrived in India, but I decided to go ahead with it :D. And the best part was that it was just one click using gingerbreak.


This is the link which helped me. I do wonder what that app does actually. Hope to look into the internals some day :) .


Find below the various things I did after rooting my phone
Edit1 : I have even proxy issues at IITM. So the first thing I did was install ProxyDroid. It is working pretty good except for the gmail and gchat apps. Hope to do something about this.
Also I have installed Titanium backup and busybox 

Edit2: I installed ROM manager by Koush, and stupidly went to the recovery partition without flashing Clockworkmod recovery on to my phone. So my phone got reset. But now I installed again and also flashed Clockworkmod recovery.


Edit3: Most useful and detailed link for getting custom rom on your p500 - xda-link . Currently running    mik_os' CyanogenMod 7 port which runs android 2.3.7 . Really, it is a lot smoother than stock rom.
Read more!