Crash Occurs while trimming H.264/AAC videos
- Dominant language
- Java
- Stars
- 663
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
**Below is the stack trace of the crash**
Seems like VideoTrackTranscoder is unable to configure the codec.
android.media.MediaCodec$CodecException: Error 0xffffec77
at android.media.MediaCodec.native_configure(MediaCodec.java)
at android.media.MediaCodec.configure(MediaCodec.java:1943)
at android.media.MediaCodec.configure(MediaCodec.java:1872)
at e.j.a.a.n.c.a(CodecUtils.java:1)
at e.j.a.a.n.c.f(CodecUtils.java:7)
at e.j.a.a.n.c.d(CodecUtils.java:7)
at e.j.a.a.g.e.i(MediaCodecEncoder.java:3)
at e.j.a.a.m.e.j(VideoTrackTranscoder.java:5)
at e.j.a.a.m.e.(VideoTrackTranscoder.java:8)
at e.j.a.a.m.d.a(TrackTranscoderFactory.java:5)
at e.j.a.a.d.b(TransformationJob.java:12)
at e.j.a.a.d.j(TransformationJob.java:3)
at e.j.a.a.d.run(TransformationJob.java:1)
Details of the video being trimmed


What might be the cause here?
Contributor guide
Research direction
Start with the MediaCodec.configure failure in CodecUtils, then trace how MediaCodecEncoder and VideoTrackTranscoder are created through TrackTranscoderFactory and TransformationJob. Reproduce the H.264/AAC trimming case described in the issue and identify the codec configuration cause; done means the failure is explained and the affected trimming path no longer crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100