Video & Audio Trimmer – Cut MP4 & MP3 Clips by Timestamp avatar

Video & Audio Trimmer – Cut MP4 & MP3 Clips by Timestamp

Pricing

from $2.00 / 1,000 clip cut (fast)s

Go to Apify Store
Video & Audio Trimmer – Cut MP4 & MP3 Clips by Timestamp

Video & Audio Trimmer – Cut MP4 & MP3 Clips by Timestamp

Cut clips from your video and audio files by start and end time: many clips per file, lossless fast cut (no re-encode) or frame-accurate cut, MP4, MOV, WebM, MP3, M4A and WAV. Optional fades and format change. Bulk from URLs, CSV or a dataset, with a download link per clip. $2 per 1,000 clips.

Pricing

from $2.00 / 1,000 clip cut (fast)s

Rating

0.0

(0)

Developer

Cemal Atakli

Cemal Atakli

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Features

Limited permissions

Share

Cut many clips out of your video and audio files by start and end time, in bulk, in the cloud. Give a file URL and a list of timestamps, get back one download link per clip:

  • Many segments per file – 00:01:00-00:01:30, 00:05:10-00:05:40 – the file is downloaded once and every clip is cut from it.
  • Fast, lossless cut (default) – stream copy with FFmpeg (-c copy): no re-encoding, no quality loss, a few seconds even for long recordings. $0.002 per clip.
  • Frame-accurate cut – re-encode to H.264/AAC (or WebM, MOV, MP3, M4A, WAV, FLAC) so the clip starts on the exact frame you asked for.
  • Optional fades (in/out), downscale to 1080p / 720p / 480p and format change (e.g. cut an MP4 and save the clip as MP3).
  • Your own clip names – intro.mp4, highlight-03.mp3 – and a clean table with requested and actual start/end of every clip.
  • Bulk input – a JSON list of clips, one segment list applied to many files, a pasted CSV (url,start,end,name), another Apify dataset, or files uploaded in the Console.

Works with MP4, MOV, M4V, WebM, MKV, MPEG-TS, AVI, MP3, M4A, AAC, WAV, FLAC, OGG and Opus files – anything FFmpeg reads.

Need to convert, compress or resize whole files instead? Use Video Converter & Compressor (gazidev/media-converter): MP4/WebM/MOV conversion, compress to a target size, MP4 to MP3, GIFs, speed, rotate and loudness. This Actor is only about cutting clips.

Not a YouTube / TikTok / Instagram downloader. Pages of YouTube, TikTok, Instagram, Facebook, X, Vimeo, Twitch, SoundCloud and similar platforms are refused with a free error row. Use direct links to files you own or may process: your CDN, S3 / R2 / GCS bucket, Dropbox direct links, podcast hosting, form uploads.

What can I use it for?

  • Podcast and video highlights – cut the best 30-second moments of an episode for social posts, show notes or trailers.
  • Shorts from long recordings – webinars, Zoom calls, livestream recordings, lectures: cut ten clips per file in one run.
  • Before transcription – cut audio into the parts you need before sending it to Whisper, Deepgram or another speech-to-text service.
  • Ringtones, previews and samples – cut an MP3 preview (0+30) of every track in a catalog with one segment list.
  • Dataset and QA pipelines – cut labelled segments out of media files from a CSV of timestamps.
  • Automations – call it from Make, Zapier, n8n or your backend, or chain it after another Actor that outputs media URLs.

Fast or accurate? (read this once)

fast (default)accurate
HowStream copy, no re-encodeRe-encode (H.264 + AAC by default)
QualityIdentical to the sourceVisually lossless (CRF 22)
SpeedSeconds, any lengthAbout real time or faster
Video startNearest keyframe at or before your startExact frame
Audio files (MP3, M4A, WAV, FLAC)Practically exact (MP3 frames are 26 ms)Exact
Price$0.002 per clipPer started output minute (see Pricing)

Video keyframes are often 2–10 seconds apart, so a fast video clip can start a few seconds earlier than you asked. The output always shows actualStart and actualEnd, and a note when the start moved by more than 0.1 s. If the first second matters, use accurate. A format change, fades or maxResolution switch the run to accurate automatically.

Input

FieldDescription
clipsList of { "url", "start", "end", "name" } objects. end can be left out (to the end of the file), or give duration instead
mediaUrls + segmentsThe same segments for every file, e.g. ["00:00:00-00:00:30", "90+30", "10:00-"]
bulkTextURL list (cut with segments) or CSV with the header url,start,end,name (one row per clip)
datasetId, datasetFieldAnother dataset: items with start/end become clips, items with only a URL use segments
uploadedFiles, uploadStoreFiles uploaded in the Console (cut with segments)
modefast (stream copy, default) or accurate (re-encode)
outputFormatsame (default), mp4, webm, mov, mp3, m4a, wav, flac
fadeInSec, fadeOutSecFades in seconds (0 = none)
maxResolutionsource (default), 1080, 720, 480 – accurate mode, never upscales
maxClipsPerFile, maxFileSizeMb, maxConcurrencyLimits: 50 clips, 2,000 MB, 2 files in parallel

Time formats: 90, 90.5, 01:30, 00:01:30.250, 1m30s, 2h. Segment formats: start-end (00:01:00-00:01:30, 90-120), start+length (90+30), start- or start-end keyword (to the end), -30 (first 30 seconds). Several segments can go on one line, separated by commas.

Cut two named clips from one video and one from a podcast:

{
"clips": [
{ "url": "https://example.com/webinar.mp4", "start": "00:12:05", "end": "00:12:50", "name": "pricing-question" },
{ "url": "https://example.com/webinar.mp4", "start": "00:41:10", "end": "00:42:00", "name": "demo" },
{ "url": "https://example.com/episode-42.mp3", "start": "1m30s", "duration": 45, "name": "ep42-teaser" }
]
}

A 30-second MP3 preview of every track, with a fade-out:

{
"mediaUrls": ["https://example.com/track-01.wav", "https://example.com/track-02.wav"],
"segments": ["0+30"],
"outputFormat": "mp3",
"fadeOutSec": 2
}

CSV in bulkText:

url,start,end,name
https://example.com/talk.mp4,00:03:00,00:03:40,opening
https://example.com/talk.mp4,00:27:15,00:28:00,key-point

Output

One dataset row per clip (the Clips view shows a table with download links), plus a free SUMMARY record in the key-value store. The clip files are stored in the run's key-value store; clipUrl is a direct download link.

{
"sourceUrl": "https://download.samplelib.com/mp4/sample-10s.mp4",
"name": "intro",
"segment": "00:00:02-00:00:06",
"requestedStart": 2.0,
"requestedEnd": 6.0,
"status": "ok",
"sourceDurationSec": 10.216,
"note": "Fast mode starts at the keyframe at 0.000s (2.00s before the requested start). Use mode 'accurate' for a frame-exact cut",
"actualStart": 0.0,
"actualEnd": 6.096,
"durationSec": 6.096,
"mode": "fast",
"format": "mp4",
"width": 1920,
"height": 1080,
"videoCodec": "h264",
"audioCodec": "aac",
"bytes": 3466418,
"clipUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/intro.mp4",
"clipKey": "intro.mp4",
"billedEvents": { "clip": 1 }
}

Failed clips have status: "error", an errorCode (INVALID_SEGMENT, SEGMENT_OUT_OF_RANGE, NOT_MEDIA, HTTP_404, FILE_TOO_LARGE, UNSUPPORTED_PLATFORM, MAX_CHARGE_REACHED, …) and are never charged. An end time after the end of the file is cut at the end of the file and noted in note.

Pricing (pay per event)

EventPriceWhen
clip$0.002Each clip cut in fast mode (one event per started 60 minutes of clip)
video-minute$0.008accurate mode, per started output minute, video ≤ 576p
hd-video-minute$0.025accurate, output 720p
fullhd-video-minute$0.05accurate, output 1080p
4k-video-minute$0.20accurate, output above 1080p
audio-minute$0.003accurate, audio output (MP3, M4A, WAV, FLAC), per started minute

$2 per 1,000 fast clips. Accurate-mode prices are the same as in gazidev/media-converter. Free: invalid or platform URLs, bad timestamps, segments outside the file, download and encode failures, clips skipped at your maximum charge, the SUMMARY record.

Other trimmers in the Apify Store (public prices, November 2026): data-done-right/video-trimmer $0.025 per clip; automa-flow/bulk-ffmpeg-media-processor $0.01 per file; whitewalk/ffmpeg-cloud-mcp $0.01 per call plus $0.03 per start; nexgensignal/media-converter $0.05 per minute.

Maximum charge: before each clip the Actor checks that your run's maximum total charge still covers it. When it does not, the remaining clips get a free MAX_CHARGE_REACHED row and the run ends normally.

FAQ

Why does my fast clip start earlier than I asked? Stream copy can only start a video on a keyframe. Use mode: accurate for an exact start. The end is always close to your end time.

Is the fast cut really lossless? Yes. The audio and video packets are copied unchanged into a new file of the same container (MP4 → MP4, MP3 → MP3, WebM → WebM, MKV → MKV). Metadata such as titles and GPS tags is removed. FLAC is re-encoded losslessly so its length header is correct.

How long can files and clips be? Files up to 2,000 MB by default (maxFileSizeMb). Clips can be any length; a fast clip up to 60 minutes is one clip event. Long accurate clips need more memory (CPU): 1,024 MB is the default, use 4,096 MB for 1080p re-encodes.

Can I trim YouTube or TikTok videos? No. This Actor only processes direct links to media files you own or may process.

Can I upload files instead of giving links? Yes: upload them in the Console (uploadedFiles), select the same key-value store in uploadStore, and set segments.

HLS (.m3u8) streams? Not supported here. gazidev/media-converter can trim an HLS stream with startTime/endTime.

Use with AI agents / Apify MCP

Add this Actor as a tool in the Apify MCP server (gazidev/video-trimmer) and let your agent cut clips: give it file URLs and timestamps, and it gets one row per clip with a clipUrl download link. The input is plain JSON (clips with url, start, end, name), and every row reports the real actualStart/actualEnd, so an agent can check what was cut. It also works through the Apify API and the Python and JavaScript clients:

curl -X POST "https://api.apify.com/v2/acts/gazidev~video-trimmer/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"clips":[{"url":"https://example.com/episode.mp3","start":"00:10:00","end":"00:10:45","name":"teaser"}]}'

Limits

  • Direct file links only; files are downloaded once per run (no partial range reads).
  • Fast mode: video clips start on a keyframe (see above). Subtitle and data tracks are dropped.
  • Accurate mode re-encodes to H.264/AAC (MP4, MOV), VP9/Opus (WebM) or the chosen audio format; other video codecs are not offered.
  • Clip files stay in the run's key-value store for your account's data retention period. Download them or copy them elsewhere if you need them longer.