[Android Software/Hacking General [Developers Only]] erikcas:
or maybe fix something in libmm-omxcore, or in libstagefright which wrongly inputs libmm-omxcore.

Changed media-codec.xml (attached). YT HQ brings me:

I/OMXCodec( 170): [OMX.qcom.video.decoder.avc] Non-Interlaced format detected
I/OMXCodec( 170): [OMX.qcom.video.decoder.avc] AVC profile = 66 (Baseline), level = 30
I/OMXCodec( 170): [OMX.qcom.video.decoder.avc] Enable frame by frame mode
E/QCvdec ( 170): Setparameter: unknown param 2130706434
W/OMXCodec( 170): Failed to set frame packing format on component
E/QCvdec ( 170): Error: get_config Not Implemented
I/OMXCodec( 170): [OMX.qcom.video.decoder.avc] video dimensions are 640 x 360
I/AudioHardware( 170): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardware( 170): disabling post proc features with mask 0x0000
E/QCvdec ( 170): OMXCORE-SM:Recieved command DISABLE (2)
E/QCvdec ( 170): Omx Flush issued when vdec is not initialized yet.
E/QCvdec ( 170): Error: get_config Not Implemented
I/OMXCodec( 170): [OMX.qcom.video.decoder.avc] video dimensions are 640 x 360
E/QCvdec ( 170): OMXCORE-SM:Recieved command ENABLE (3)
E/QCvdec ( 170): ERROR - VDL_Configure_HW: cannot open axi_freq -1
I/SoftwareRenderer( 170): Buffer color format: 0x7FA30C00
I/SoftwareRenderer( 170): Video params: mWidth: 640, mHeight: 360, mCropWidth: 640, mCropHeight: 360, mCropTop: 0, mCropLeft: 0
I/AudioHardware( 170): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardware( 170): Enabling post proc features with mask 0x0000
W/ThrottleService( 388): unable to find stats for iface rmnet0
E/Adreno200-ES20( 167): <qgl2DrvAPI_glEGLImageTargetTexture2DOES:2552>: GL_INVALID_OPERATION
E/Adreno200-ES11( 167): <glEGLImageTargetTexture2DOES:469>: GL_INVALID_OPERATION
E/SurfaceTexture( 167): [SurfaceView] updateTexImage: error binding external texture image 0x1d (slot 0): 0x502
E/Adreno200-ES20( 167): <qgl2DrvAPI_glEGLImageTargetTexture2DOES:2552>: GL_INVALID_OPERATION
E/Adreno200-ES11( 167): <glEGLImageTargetTexture2DOES:469>: GL_INVALID_OPERATION
E/SurfaceTexture( 167): [SurfaceView] updateTexImage: error binding external texture image 0x1e (slot 1): 0x502
E/Adreno200-ES20( 167): <qgl2DrvAPI_glEGLImageTargetTexture2DOES:2552>: GL_INVALID_OPERATION
E/Adreno200-ES11( 167): <glEGLImageTargetTexture2DOES:469>: GL_INVALID_OPERATION
E/SurfaceTexture( 167): [SurfaceView] updateTexImage: error binding external texture image 0x1f (slot 2): 0x502
E/Adreno200-ES20( 167): <qgl2DrvAPI_glEGLImageTargetTexture2DOES:2552>: GL_INVALID_OPERATION
...........
...........

on LQ same brings me:

I/OMXCodec( 170): [OMX.google.mpeg4.decoder] Enable frame by frame mode
W/OMXCodec( 170): Failed to set frame packing format on component
I/OMXCodec( 170): [OMX.google.mpeg4.decoder] video dimensions are 352 x 288
I/OMXCodec( 170): [OMX.google.mpeg4.decoder] Crop rect is 352 x 288 @ (0, 0)
I/OMXCodec( 170): [OMX.google.mpeg4.decoder] video dimensions are 320 x 192
I/OMXCodec( 170): [OMX.google.mpeg4.decoder] Crop rect is 320 x 180 @ (0, 0)
I/OMXCodec( 170): [OMX.google.mpeg4.decoder] video dimensions are 320 x 192
I/OMXCodec( 170): [OMX.google.mpeg4.decoder] Crop rect is 320 x 180 @ (0, 0)
W/SoftAAC ( 170): Sample rate was 44100 Hz, but now is 22050 Hz
I/AudioHardware( 170): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardware( 170): disabling post proc features with mask 0x0000
I/SoftwareRenderer( 170): Buffer color format: 0x13
I/SoftwareRenderer( 170): Video params: mWidth: 320, mHeight: 192, mCropWidth: 320, mCropHeight: 180, mCropTop: 0, mCropLeft: 0
I/AudioHardware( 170): set device to SND_DEVICE_SPEAKER device_id=0
I/AudioHardware( 170): Enabling post proc features with mask 0x0000
I/NuCachedSource2( 170): ERROR_END_OF_STREAM
D/NetlinkEvent( 164): Unexpected netlink message. type=0x0
D/NetlinkEvent( 164): Unexpected netlink message. type=0x0

View attachment media_codecs.txt

Edit: same result on OMX.qcom.video.decoder.mpeg4 as described. My brain is a little cooked now. Gonna take a powernap