3

I need to capture a video 480 * 480 in my android app, but it seems that the MediaRecorder can only support limited build-in sizes such as 1980*1080, 960*720, etc, almost all in 4:3 or 16:9.

Is there any method that I can capture that size of video or should I capture a 640* 480 video and then use some video lib to process it to 480 * 480?

Joetjah
  • 6,292
  • 8
  • 55
  • 90
lbt05
  • 49
  • 5
  • 1
    The cameras are generally designed to support a specific aspect ratio or two, and they don't allow you (that I've seen) to select arbitrary dimensions like this, so that may be your best bet. Though in my personal opinion, if the data size is not a concern, I would recommend using the highest resolution that gets the best frame rate you want so you have a bit of leeway when modifying or working with your video, and then crop and down sample to 480x480 for the final result. – Mark Ormston Mar 25 '13 at 08:53
  • Is there any sample code about video cropping on android? – lbt05 Mar 25 '13 at 09:01
  • solved by using ffmpeg – lbt05 Apr 10 '13 at 10:51

0 Answers0