Open niekdev opened 3 years ago
You are really putting LiTr through some stress testing, I love that. 😄 I will download the video and experiment with it.
It's great that there's an active android transcoder repo available :D
I've got some new findings. When either the video or audio track is excluded, the transcoder finishes using the aforementioned video. So unticking track 0: (video/avc)
or track 1: (audio/mp4a-latm)
results in successful video (without sound or video, of course)
Hey @izzytwosheds, just wondering if you were able to reproduce it. I sadly only have a single device at my disposal for testing.
I was able to reproduce it on Samsung Note 10. Looks like this is device independent issue. I will look into this.
Always a good sign haha, thanks for looking into it!
I looked into this. The problem is with generic (non-video or non-audio) tracks, included in that video. LiTr can't trim them. I will look into the root cause separately. For now, I added an ability in demo app to exclude non-generic tracks. With those tracks excluded, everything works.
Awesome, thanks a lot. I've tested the new demo app and it indeed works when the non-video/audio tracks are excluded. I'll leave this ticket open since it hasn't been fixed on library level yet.
For the same problem, I can't even get the failed callback to handle the response. Finally, I found that from class TransformationJob
@VisibleForTesting
protected void error(@Nullable Throwable cause) {
release(false);
marshallingTransformationListener.onError(jobId, cause, statsCollector.getStats());
}
when the release(); executed. the anther method whill not execute; Maybe you should change execution order. btw can i have the ability demo.
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 (direct download). 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:
Logs: logs.txt
Environment: Device: Pixel 3 OS: Android 11 LiTr version: 1.4.4