Vidmin: how background export works

Watch the demo

Recorded on an Android 16 emulator (Pixel 10 Pro XL) with a test-pattern video. No cuts to the export itself.

What you see in the video

  1. Tap Compress, pick a video in the system photo picker, then tap Start. The progress screen says you can leave Vidmin and it keeps working in the background.
  2. Switch to another app (Settings in the video). The Vidmin notification “Compress video · %” stays in the notification shade with a Cancel button.
  3. A few seconds later the percentage in the shade keeps rising while Vidmin is not on screen.
  4. When the video is saved the notification changes to “Your video is ready”.
  5. Tap it to open the result screen.

Why Vidmin runs a foreground service

Vidmin is an on-device video editor. When you tap export, a foreground service (type: mediaProcessing) runs while the video is re-encoded, so Android does not kill the export if you switch to another app or turn the screen off. Long exports take several minutes.

The task is started by you, shows a progress notification with a Cancel button for its whole length, and stops itself as soon as the file is saved, fails or is cancelled. It cannot be deferred, because you are waiting for the result. All processing happens on the device; nothing is uploaded. On Android 15 the 6-hour limit is handled by cancelling the export.

Back to Vidmin