deepmedia / deepmedia/Transcoder

App Killed During Parallel Video Compression on Some Devices

Open
#218 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
864
Forks
181
PR merge metrics
No merged PRs in 30d

Description

When attempting to compress multiple videos (e.g., 5 videos) concurrently using the `compressVideosThroughMultipleJob ` function (code snippet below), the process frequently fails or is killed by the system on some devices, specifically the OnePlus 10 Pro and Oppo K10.

This behaviour appears to be related to high CPU and memory usage during concurrent transcoding operations. After processing for some time, the system either terminates the app or the compression tasks fail unexpectedly.

I have attached:
- Log files capturing the crash/failure details.
- OnePlus 10 Pro log file [link](https://drive.google.com/file/d/1kUKjkakM-97y1VlAh8fWysRpVZttw46H/view?usp=sharing)
- Oppo K10 log file [link](https://drive.google.com/file/d/15LMqpJHr4r7tMjE3gbz11WERvc_0wqOc/view?usp=sharing)
- Sample code used for concurrent compression (see below). [link](https://drive.google.com/drive/folders/13wB7ELpbXlSwgQxGk7YAzbvaLPE0rRh8?usp=sharing)
- Sample videos and reproduction steps. [link](https://drive.google.com/file/d/1rHgetJEGI-Aqpq_N8WhZAbPpqgsxXTAX/view?usp=sharing)
- Sample app. [link](https://drive.google.com/file/d/1u5yW0MhwXgMYy5_348tjmQ5GlP3_sBFa/view?usp=sharing)

This issue impacts video compression reliability on certain devices, making it difficult to perform parallel processing efficiently.

### Environment:
- Device 1:
- Model: OnePlus 10 Pro
- OS Version: Android 12
- Device 2:
- Model: Oppo K10
- OS Version: Android 11
- Transcoder Library Version: 0.11.2

### Steps to Reproduce:
- Download the app from the provided link and install it on the OnePlus 10 Pro or the Oppo K10.
- Download provided videos and select all videos by tapping the 'Select Videos' button. The app starts the compression.
After some processing app will be killed/crash.

### Expected Behaviour:
The transcoder should convert the video successfully without errors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.