Skip to content

Instantly share code, notes, and snippets.

@blixtra
blixtra / ffmpeg-cheat-sheet.md
Last active May 22, 2020 03:55
FFmpeg cheat sheet with examples

FFmpeg cheat sheet

This FFmpeg cheat sheet consists of a command-line example reference that we find useful at Kinvolk. Consult the complete FFmpeg documentation for more information.

Cutting/trimming a video

Cut a section from a video using a start (-ss) and end (-to) timestamp and saving the extracted video to output.mp4 and retaining all audio and video settings (-c:v copy -c:a copy), meaning there is not transcoding.

ffmpeg -i input.mp4 -ss 01:19:27 -to 02:18:51 -c:v copy -c:a copy output.mp4

@blixtra
blixtra / Android Memory Management Notes.md
Created May 7, 2014 20:20
Notes taken while looking into memory issues on low-RAM devices

Android Memory Management

Android has a unique memory management model. Below, are the notes taken while we try to understand it thoroughly.

Activity Manager

Overview

The ActivityManager, among other things, is responsible for making sure that apps that are most important to the user and/or essential remain active. It does this by dynamically assigning values that roughly indicate the app's importance. When memory gets low these values are used to find the apps that need to be "trimmed." The memory from these "trimmed" apps is freed, making more available for the more important apps.