Android : Cannot Change Encoding Video Size & How To Encoding H.264
I have an HTC Desire (Android 2.3.3, API level 9). I am trying to write a program to record 320x240 h.263 video. Without any settings, the code works well and the output resolution
Solution 1:
According to this link you cannot do this in 2.1 (only in 3.0+). It simply cannot be done.
Solution 2:
i've written a small application (on api level 7) to record videos with H264 codec and store them on the sd card. in my case it was possible to set the H264 codec to the media recorder:
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
finally i had copied the recorded file to my laptop and checked the codec with vlc player. i was still H264 codec at the codec details of vlc.
i've run the applicatoin on a htc desire with android 2.2 (froyo). i don't know why, but in my oppinion it looks like that android 2.2+ supports h264 encoding.
Post a Comment for "Android : Cannot Change Encoding Video Size & How To Encoding H.264"