Skip to content

[BUG] Galaxy A05s HEVC Compression Fails #58

@JoshAtticus

Description

@JoshAtticus

Prerequisites

  • I have checked that there are no open issues that are the same or very similar to mine, and I understand that my issue will be closed if it is a duplicate
  • I have filled in all required fields to the best of my ability, and I understand that my issue will be closed if they are not
  • I have copied the device & app info to my clipboard and pasted it into the device info section where indicated, and I understand that my issue will be closed if it is not
  • I have uploaded appropriate screenshots and log files, and I understand that my issue may be closed or remain unresolved if not
  • My issue is written in English, and I understand that my issue will be closed if it is not
  • I understand that my issue will be closed if all 5 of these checkboxes are not checked

Issue Description (required)

Video Compression fails with an ExoPlayer error

Expected Behaviour (required)

Compression should succeed

Device Info (required)

Device Manufacturer* (e.g. Samsung):

  • Device Model* (e.g. Galaxy S10): Galaxy A05s 4G
  • Android Version* (e.g. 12): 14
  • Compressor Version* (e.g. 1.1.0): 1.5.2
  • Where did you get Compressor from?* (GitHub Releases, IzzyOnDroid/F-Droid, Google Play Store): Google Play Store
  • Device Chipset (e.g. Exynos 9820): Snapdragon 680
  • Device Model Number (e.g. SM-G973F): SM-A057F

App Version: 1.5.2
Device: samsung SM-A057F (Android 14)
Supported Encoders: video/avc, video/hevc

Screenshots (required)

Logcat

Device: samsung SM-A057F
Android Version: 14 (SDK 34)
App Version: 1.5.2
Original: 2160x3840 @ 60.0fps
Target: 0p @ 0fps
Codec: video/hevc
Error: Codec exception: CodecInfo{type=VideoDecoder, configurationFormat={exo-pixel-width-height-ratio-float=1.0, sar-width=1, is-forced-subtitle=0, allow-frame-drop=0, level=1048576, mime=video/hevc, profile=1, codecs-string=hvc1.1.6.L180, color-standard=1, color-transfer=3, encoder-delay=0, sar-height=1, width=3840, is-autoselect=0, is-default=0, color-range=1, encoder-padding=0, frame-rate=59.73205, max-input-size=282496, rotation-degrees=90, height=2160, csd-0=java.nio.HeapByteBuffer[pos=0 lim=83 cap=83]}, name=c2.qti.hevc.decoder}

Stack Trace:
androidx.media3.transformer.ExportException: Codec exception: CodecInfo{type=VideoDecoder, configurationFormat={exo-pixel-width-height-ratio-float=1.0, sar-width=1, is-forced-subtitle=0, allow-frame-drop=0, level=1048576, mime=video/hevc, profile=1, codecs-string=hvc1.1.6.L180, color-standard=1, color-transfer=3, encoder-delay=0, sar-height=1, width=3840, is-autoselect=0, is-default=0, color-range=1, encoder-padding=0, frame-rate=59.73205, max-input-size=282496, rotation-degrees=90, height=2160, csd-0=java.nio.HeapByteBuffer[pos=0 lim=83 cap=83]}, name=c2.qti.hevc.decoder}
at androidx.media3.transformer.DefaultCodec.createExportException(DefaultCodec.java:465)
at androidx.media3.transformer.DefaultCodec.(DefaultCodec.java:164)
at androidx.media3.transformer.DefaultDecoderFactory.createCodecFromDecoderInfos(DefaultDecoderFactory.java:379)
at androidx.media3.transformer.DefaultDecoderFactory.createCodecForMediaFormat(DefaultDecoderFactory.java:344)
at androidx.media3.transformer.DefaultDecoderFactory.createForVideoDecoding(DefaultDecoderFactory.java:301)
at androidx.media3.transformer.DefaultDecoderFactory.createForVideoDecoding(DefaultDecoderFactory.java:53)
at androidx.media3.transformer.CapturingDecoderFactory.createForVideoDecoding(CapturingDecoderFactory.java:44)
at androidx.media3.transformer.ExoAssetLoaderVideoRenderer.initDecoder(ExoAssetLoaderVideoRenderer.java:118)
at androidx.media3.transformer.ExoAssetLoaderBaseRenderer.readInputFormatAndInitDecoderIfNeeded(ExoAssetLoaderBaseRenderer.java:234)
at androidx.media3.transformer.ExoAssetLoaderBaseRenderer.render(ExoAssetLoaderBaseRenderer.java:101)
at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1138)
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:562)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.IllegalArgumentException:
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2332)
at android.media.MediaCodec.configure(MediaCodec.java:2248)
at androidx.media3.transformer.DefaultCodec.configureCodec(DefaultCodec.java:488)
at androidx.media3.transformer.DefaultCodec.(DefaultCodec.java:127)
... 14 more

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmedia3This issue is related to Android's Media3 frameworkmedium priorityThis issue is of medium priority

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions