Video processing on Android
summary
An Android app that scales, crops, overlays weather icons and loops short videos is built using two approaches: compile ffmpeg as an executable and spawn it with ProcessBuilder (slow, about 15–20 seconds per share), or compile ffmpeg as a shared .so via the NDK and call JNI wrappers (faster, ~8–10 seconds after lowering resolution/bitrate). MP4 operations like concat/trim use mp4parser (Java only, no decode/encode). Licensing is LGPL with x264’s GPL/commercial caveats.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker background
- 1:18What is video processing
- 6:13Weather GIF app requirements
- 8:45Native Android video support limits
- 10:11Choosing FFmpeg for video editing
- 12:47Building FFmpeg as executable
- 18:31Running FFmpeg in app shell
- 20:47FFmpeg command and filter chains
- 22:36Performance issues with binary
- 22:58Building FFmpeg as shared library
- 25:55Interfacing with FFmpeg library
- 27:22Optimizing video resolution
- 27:45FFmpeg licensing challenges
- 30:43Dynamic linking and compliance
- 32:07FFmpeg strengths and weaknesses
- 33:31Alternative libraries like MP4Parser
- 36:27FFmpeg vs MP4Parser comparison
- 38:02Resources and closing remarks
