[FFmpeg-trac] #10096(undetermined:closed): MediaCodec Encoder: Pixel ColorSpace of many Adreno GPUs is not supported
FFmpeg
trac at avcodec.org
Fri Dec 9 11:38:48 EET 2022
#10096: MediaCodec Encoder: Pixel ColorSpace of many Adreno GPUs is not supported
-------------------------------------+-------------------------------------
Reporter: Ben T | Owner: (none)
Type: defect | Status: closed
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution: invalid
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by quinkblack):
Replying to [comment:4 Balling]:
> Android loves to do NV12 everywhere (that is Semi Planar), that is just
how it always has been. That is because NV12 is just using 12 bits per
pixel, where Y is 8 bit, while 4 other bits are used for Cb + Cr.
>
> Just by googling "does not support color format 19"
https://itecnote.com/tecnote/android-illegal-exception-on-mediacodec-
configure/ that talks about it and anyway
>
>
https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420SemiPlanar
>
> is deprecated since android 6.0.
>
> >Maybe Google can fix these issues with another 10 year.
>
>
> You mean Qualcomm codec? Cause it works in emulator
https://stackoverflow.com/questions/17339576/error-omx-ti-ducati1-video-
mpeg4e-does-not-support-color-format-android
Yes, I known NV12 works for most of devices, and YUV420p works for a lot
of devices and mediacodec implementaions, including Google's software
decoder/encoder.
Neither NV12 nor YUV420p is mandatory by Google. The mandatory one is
COLOR_FormatYUV420Flexible, which can be "COLOR_FormatYUV411Planar,
COLOR_FormatYUV411PackedPlanar, COLOR_FormatYUV420Planar,
COLOR_FormatYUV420PackedPlanar, COLOR_FormatYUV420SemiPlanar and
COLOR_FormatYUV420PackedSemiPlanar".
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10096#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list