`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 is the Android class used for recording Audio and Video available since API Level 1.
"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)"
"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"