Closed jordond closed 10 months ago
@jordond we have not received the bug report. Could you please share it again?
@jordond we have not received the bug report. Could you please share it again?
Just sent it again 👍
Following up with the codec framework team on internal bug b/311206113.
Is the exception I wrote below the same bug as this?
FATAL EXCEPTION: DefaultDispatcher-worker-8
Process: com.kakao.openlink.sandbox.debug, PID: 15373
androidx.media3.transformer.ExportException: VideoEncoder error: mediaFormat={exo-pixel-width-height-ratio-float=1.0, sar-width=1, color-format=2130708361, i-frame-interval=1.0, is-forced-subtitle=0, level=131072, mime=video/avc, profile=8, bitrate=2048000, priority=1, color-standard=2, operating-rate=2147483647, color-transfer=3, encoder-delay=0, sar-height=1, width=1280, bitrate-mode=1, is-autoselect=0, is-default=0, color-range=2, encoder-padding=0, frame-rate=30, rotation-degrees=0, height=1280}, mediaCodecName=c2.qti.avc.encoder
at androidx.media3.transformer.DefaultCodec.createExportException(DefaultCodec.java:395)
at androidx.media3.transformer.DefaultCodec.createExportException(DefaultCodec.java:379)
at androidx.media3.transformer.DefaultCodec.releaseOutputBuffer(DefaultCodec.java:285)
at androidx.media3.transformer.DefaultCodec.releaseOutputBuffer(DefaultCodec.java:265)
at androidx.media3.transformer.VideoSamplePipeline$EncoderWrapper.releaseOutputBuffer(VideoSamplePipeline.java:570)
at androidx.media3.transformer.VideoSamplePipeline.releaseMuxerInputBuffer(VideoSamplePipeline.java:310)
at androidx.media3.transformer.SamplePipeline.feedMuxer(SamplePipeline.java:130)
at androidx.media3.transformer.SamplePipeline.processData(SamplePipeline.java:67)
at androidx.media3.transformer.TransformerInternal.drainPipelinesInternal(TransformerInternal.java:326)
at androidx.media3.transformer.TransformerInternal.handleMessage(TransformerInternal.java:291)
at androidx.media3.transformer.TransformerInternal.$r8$lambda$0Eq5y0bhoOvqh9wEU99UtqZE5oc(Unknown Source:0)
at androidx.media3.transformer.TransformerInternal$$ExternalSyntheticLambda0.handleMessage(Unknown Source:2)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.os.HandlerThread.run(HandlerThread.java:67)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@45c7f21, Dispatchers.IO]
Caused by: java.lang.IllegalStateException
at android.media.MediaCodec.releaseOutputBuffer(Native Method)
at android.media.MediaCodec.releaseOutputBufferInternal(MediaCodec.java:3689)
at android.media.MediaCodec.releaseOutputBuffer(MediaCodec.java:3610)
at androidx.media3.transformer.DefaultCodec.releaseOutputBuffer(DefaultCodec.java:281)
... 13 more
The device with the problem is samsung s22, android 13, one ui 5.1. It operates normally in samsung s21(android 14), google pixel 7(android 14), etc.
That stack trace is too generic to be able to answer your question conclusively (it might be the same but it's probably different). When MediaCodec
throws a runtime exception it's usually necessary to look at the logging before to identify the root cause of the problem.
That stack trace is too generic to be able to answer your question conclusively (it might be the same but it's probably different). When
MediaCodec
throws a runtime exception it's usually necessary to look at the logging before to identify the root cause of the problem.
Thanks for reply. Then could you give me more information how to debug the root cause of the problem? Additionally, the jordond's issue is occured when i encode a video with videoEffects(Presentation.createForHeight(any value)
) in Samsung s23(android 14).(Other devices below android 13 that i have are fine.) The issue is reproducible in the demo app.
First step would be to get a full bug report produced via adb bugreport
sent to android-media-github@google.com. But before doing that, please could you file a new issue (unless you are confident that it's the same problem as this issue)? It can be quite confusing if we end up discuss two different problems on the same issue.
First step would be to get a full bug report produced via
adb bugreport
sent to android-media-github@google.com. But before doing that, please could you file a new issue (unless you are confident that it's the same problem as this issue)? It can be quite confusing if we end up discuss two different problems on the same issue.
I filed a new issue (https://github.com/androidx/media/issues/830). thanks.
I verified the workaround on an S23+ device, which I think has the same chipset. I'll close this for now but please let us know if you continue to see a problem. Thanks!
I verified the workaround on an S23+ device, which I think has the same chipset. I'll close this for now but please let us know if you continue to see a problem. Thanks!
I confirmed that there is no problem with my s23+! thank you! Can you tell me when the version left behind by this commit will be released?
It will go into the next release (probably 1.2.1, or 1.3.0 otherwise) but I don't know when that will be.
Version
Media3 pre-release (alpha, beta or RC not in this list)
More version details
release-1.2.0-rc01
Devices that reproduce the issue
Devices that do not reproduce the issue
Reproducible in the demo app?
Yes
Reproduction steps
Using the Transformer demo:
Expected result
Transformer exports the video with the logo and timer overlayed
Actual result
Transformer throws a
ExportException
:Media
Not working preset files:
All other presets seem to work just fine
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.