Unable to transcode a specific video
- Dominant language
- Java
- Stars
- 663
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
I am unable to trim a large (4GB, 1:20h) video. The video that I am using is the open source Sita Sings the Blues, which can be downloaded from [here](https://www.sitasingstheblues.com/watch.html) ([direct download](http://www.archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_1080p.mp4)). My trimmer is set from 300 seconds till 900 seconds.
Approximately 6 minutes after the "transcode" button has been pressed, the `Encoder produced EoS, we are done` message is shown in the logs. No new logs follow after that and the transcoder progress bar stops progressing.
I've attached two screenshots, one of the demo's state before I press "transcode" and one after the encoder thinks its job is done, which is the final state until the user interacts with it (cancel / kill app)

**Video file info according to FFmpeg:**
```
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Sita_Sings_the_Blues_1080p.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp42mp41
creation_time : 2009-03-03T03:16:55.000000Z
Duration: 01:21:31.22, start: 0.000000, bitrate: 7243 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 7000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2009-03-03T03:16:55.000000Z
handler_name : Apple Video Media Handler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 238 kb/s (default)
Metadata:
creation_time : 2009-03-03T03:16:55.000000Z
handler_name : Apple Sound Media Handler
Stream #0:2(eng): Data: none (mp4s / 0x7334706D) (default)
Metadata:
creation_time : 2009-03-03T03:16:55.000000Z
handler_name : Apple MPEG-4 Scene Media Handler
Stream #0:3(eng): Data: none (mp4s / 0x7334706D) (default)
Metadata:
creation_time : 2009-03-03T03:16:55.000000Z
handler_name : Apple MPEG-4 ODSM Media Handler
```
**Logs:**
[logs.txt](https://github.com/linkedin/LiTr/files/5803286/logs.txt)
**Environment:**
Device: Pixel 3
OS: Android 11
LiTr version: 1.4.4
Contributor guide
Research direction
Start with logs.txt and the transcode-button flow that follows the `Encoder produced EoS, we are done` message; reproduce the trim on the linked Sita Sings the Blues file using the reported Android environment. Trace why the progress bar does not finish after encoder end-of-stream, and consider the issue resolved when the transcode operation completes or reports failure instead of hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100