Modify for save to external sdcard and video stabilization

Thanks to TheUnkn0wn I just take some stuff from his work. http://forum.xda-developers.com/showthread.php?t=1746611