Aspects


vs


Mediacodec

`MediaCodec` is a class from the package `android.media` of Android API that can be used to access low-level, native media codec, i.e

Mediarecorder

Mediarecorder is the Android class used for recording Audio and Video available since API Level 1.

Others

Quality Example
Faster

"I d like to use mediacodec to encode the data coming from the camera reason it s more low-level so hopefully faster than using mediarecorder"

from question "Mime-type of Android camera PreviewFormat"

More convenient

"Android 5.0 api 21 allows surface input to mediarecorder which is often much more convenient than mediacodec"

from question "Android Video Recording of OpenGL surface (GLSURFACEVIEW)"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0