Skip to content

[BUG] Compression Fail on Long Videos #108

Description

@DeMoN100

Issue Description

I have been trying to compress a 45min video around 820MB. The compression gets to 90-98% then fails saying the file is lost. Sometimes it will say Muxer error

Device: Google Pixel 5a
Android Version: 15 (SDK 35)
App Version: 1.6.3
Original: 2400x1080 @ 60.0fps
Target: 720p @ 30fps
Codec: video/hevc
Error: Muxer error

Stack Trace:
androidx.media3.transformer.ExportException: Muxer error
	at androidx.media3.transformer.Transformer.lambda$maybeInitializeExportWatchdogTimer$0$androidx-media3-transformer-Transformer(Transformer.java:1301)
	at androidx.media3.transformer.Transformer$$ExternalSyntheticLambda1.onTimeout(D8$$SyntheticClass:0)
	at androidx.media3.transformer.WatchdogTimer$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:524)
	at java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:348)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
	at java.lang.Thread.run(Thread.java:1119)
Caused by: java.lang.IllegalStateException: Abort: no output sample written in the last 10000 milliseconds. DebugTrace: "Tracing disabled"
	at androidx.media3.transformer.Transformer.lambda$maybeInitializeExportWatchdogTimer$0$androidx-media3-transformer-Transformer(Transformer.java:1303)
	... 8 more

I've tried also to compress this video on 1.6.1 & 1.6.2 which failed multiple times about 10 times. There was only 1 successful compress on 1.6.2 which was done at the lowest preset which unfortunately makes it way too blurry.

Expected Behaviour

File should compress.

Device Info

App: Compressor v1.6.3
Device: Google Pixel 5a (Android 15)
Chipset: Qualcomm SM7250
RAM: 5.3 GB
GPU: Adreno (TM) 620
Device-specific Workaround: None
Supported Encoders: video/avc, video/hevc

Screenshots

No response

Logcat

No response

Prerequisites

  • I have checked that there are no open issues that are the same or very similar to mine, and I understand that my issue will be closed if it is a duplicate
  • I have filled in all required fields to the best of my ability, and I understand that my issue will be closed if they are not
  • I have copied the device & app info to my clipboard and pasted it into the device info section where indicated, and I understand that my issue will be closed if it is not
  • I have uploaded appropriate screenshots and log files, and I understand that my issue may be closed or remain unresolved if not
  • My issue is written in English, and I understand that my issue will be closed if it is not
  • My issue is not listed in [READ FIRST] Features/bugfixes that will NOT be implemented #3
  • I have added a title to my issue
  • I understand that my issue will be closed if all of these checkboxes are not checked

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingMedia3This issue is related to Android's Media3 frameworkMedium PriorityThis issue is of medium priority

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions