¡@

Home 

2014/10/16 ¤W¤È 08:19:09

android Programming Glossary: mediaformat.createvideoformat

Encoding H.264 from camera with Android MediaCodec

http://stackoverflow.com/questions/13458289/encoding-h-264-from-camera-with-android-mediacodec

catch Exception e e.printStackTrace mediaCodec MediaCodec.createEncoderByType video avc MediaFormat mediaFormat MediaFormat.createVideoFormat video avc 320 240 mediaFormat.setInteger MediaFormat.KEY_BIT_RATE 125000 mediaFormat.setInteger MediaFormat.KEY_FRAME_RATE..

MediaCodec and Camera: colorspaces don't match

http://stackoverflow.com/questions/13703596/mediacodec-and-camera-colorspaces-dont-match

the MediaCodec object as follows mediaCodec MediaCodec.createEncoderByType video avc MediaFormat mediaFormat MediaFormat.createVideoFormat video avc 640 480 mediaFormat.setInteger MediaFormat.KEY_BIT_RATE 500000 mediaFormat.setInteger MediaFormat.KEY_FRAME_RATE..

Create video from screen grabs in android

http://stackoverflow.com/questions/14067339/create-video-from-screen-grabs-in-android

code for this was hard to find but here it is hat tip to Martin Storsjö. Quick API walkthrough MediaFormat inputFormat MediaFormat.createVideoFormat video avc width height inputFormat.setInteger MediaFormat.KEY_BIT_RATE bitRate inputFormat.setInteger MediaFormat.KEY_FRAME_RATE..

How to encode Bitmaps into a video using MediaCodec?

http://stackoverflow.com/questions/17096726/how-to-encode-bitmaps-into-a-video-using-mediacodec

from other sources that I found on Stackoverflow. mMediaCodec MediaCodec.createEncoderByType video avc mMediaFormat MediaFormat.createVideoFormat video avc 320 240 mMediaFormat.setInteger MediaFormat.KEY_BIT_RATE 125000 mMediaFormat.setInteger MediaFormat.KEY_FRAME_RATE..

Using MediaCodec to save series of images as Video

http://stackoverflow.com/questions/18795353/using-mediacodec-to-save-series-of-images-as-video

MIMETYPE MediaFormat mediaFormat null if CamcorderProfile.hasProfile CamcorderProfile.QUALITY_720P mediaFormat MediaFormat.createVideoFormat MIMETYPE 1280 720 else mediaFormat MediaFormat.createVideoFormat MIMETYPE 720 480 mediaFormat.setInteger MediaFormat.KEY_BIT_RATE.. CamcorderProfile.QUALITY_720P mediaFormat MediaFormat.createVideoFormat MIMETYPE 1280 720 else mediaFormat MediaFormat.createVideoFormat MIMETYPE 720 480 mediaFormat.setInteger MediaFormat.KEY_BIT_RATE 700000 mediaFormat.setInteger MediaFormat.KEY_FRAME_RATE..