Trim video clips
A 90-minute recording. You need the 30-second highlight. “Shuttle” (a screen recording app like Loom) lets users share just the good part.
API
ittybit video \
-i https://shuttle-app.com/recordings/meeting.mp4 \
--start 124 \
--end 154 \
--format mp4 \
--cloudconst task = {
input: "https://shuttle-app.com/recordings/meeting.mp4",
kind: "video",
options: {
start: 124,
end: 154,
format: "mp4",
},
};
const res = await fetch("https://api.ittybit.com/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ITTYBIT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(task),
});
const data = await res.json();import requests
task = {
"input": "https://shuttle-app.com/recordings/meeting.mp4",
"kind": "video",
"options": {
"start": 124,
"end": 154,
"format": "mp4",
},
}
res = requests.post(
"https://api.ittybit.com/tasks",
headers={"Authorization": f"Bearer {api_key}"},
json=task,
)
data = res.json()TASK='{
"input": "https://shuttle-app.com/recordings/meeting.mp4",
"kind": "video",
"options": {
"start": 124,
"end": 154,
"format": "mp4"
}
}'
curl -X POST https://api.ittybit.com/tasks \
-H "Authorization: Bearer $ITTYBIT_API_KEY" \
-H "Content-Type: application/json" \
-d "$TASK" start and end are seconds. This extracts 124s to 154s — a 30-second clip.
CLI
ittybit video \
-i meeting.mp4 \
-o highlight.mp4 \
--start 124 \
--end 154
Trim and resize
Combine trimming with resizing for a shareable clip:
ittybit video \
-i meeting.mp4 \
-o clip.mp4 \
--start 124 \
--end 154 \
--width 720 \
--quality medium
Trim audio too
Same flags work for audio extraction from a specific segment:
ittybit audio \
-i meeting.mp4 \
-o quote.mp3 \
--start 124 \
--end 154