I was developing a sample video recorder application on imx6 sabresd board (using android_jb4.2.2_1.1.0-ga), but the file saved by the application seems to have added 1235 bytes (always) of zeroes at the end of the file. However this problem is not there if I disable FSL_GM_PLAYER in libstagefright and libmediaplayerservice (ie, use stagefright recorder instead of GM Recorder).
As a starting point I have used the sample code given in developer.android.com for video recording (http://developer.android.com/guide/topics/media/camera.html).
PS: if required I can attach the recorded files....
Looking forward to hear from you...
Thanks in advance,