-
Notifications
You must be signed in to change notification settings - Fork 583
Description
Version
Media3 main branch
More version details
Codec exception:
CodecInfo {
type=VideoEncoder,
configuration Format= {
exo-pixel-width-height-ratio-float=1.0,
sar-width=1,
color-format=2130708361,
i-frame-interval=1.0,
mime=video/avc, bitrate=9673973,
color-standard=2,
operating-rate=2147483647,
color-transfer=3,
sar-height=1,
is-autoselect=0,
is-default=0,
color-range=2,
frame-rate=30,
rotation-degrees=0,
height=1080,
is-forced-subtitle=0,
level=16384,
profile=8,
codecs-string=avc1.4D0028,
priority=1,
encoder-delay=0,
width=1920,
bitrate-mode=1,
encoder-padding=0},
name=OMX.qcom.video.encoder.avc}
Devices that reproduce the issue
Vivo Y51A
Android 13
Vivo 1935
Android 10
iQOO Z6 Pro
Android 14
Devices that do not reproduce the issue
Infinix Hot 10s
running android 11
Reproducible in the demo app?
Yes
Reproduction steps
I am reporting a persistent Codec exception that occurs when exporting certain source videos with a BitmapOverlay
effect. The issue is reproducible on several devices with Qualcomm chipsets (specific Vivo and iQOO models listed), while it works correctly on others.
The export is configured with .setVideoMimeType(MimeTypes.VIDEO_H264)
and fails immediately with the error name=OMX.qcom.video.encoder.avc
, pointing to a hardware encoder configuration failure.
Notably, the issue seems to be dependent on the source video's characteristics. On the same problematic device, some videos will export correctly while others trigger the Codec exception, even with identical export settings. This suggests the failure is related to the specific combination of the source video's properties (like resolution, profile, or bitrate) and the hardware encoder's limitations.
We have determined that the standard fallback mechanism is not working in this case. Using .setEnableFallback(true)
on the DefaultEncoderFactory
does not solve the problem; the hardware encoder still fails, and it does not fall back to software.
Expected result
Actual result
Media
None
Bug Report
- You will email the zip file produced by
adb bugreport
to [email protected] after filing this issue.