linkedin / linkedin/LiTr

Crash Occurs while trimming H.264/AAC videos

Open
#226 3 comments 0 reactions 0 assignees View on GitHub
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

![MicrosoftTeams-image (1)](https://user-images.githubusercontent.com/87852232/202171553-faf7bb39-80e5-4ab4-87ed-2682118fbb51.png)
![MicrosoftTeams-image](https://user-images.githubusercontent.com/87852232/202171564-5bd07e13-6443-47a9-a504-d356440cad2d.png)

What might be the cause here?

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.