Nick Janetakis
Read post

Visually Create Video Clips with mpv, FFmpeg and a Lua Extension — Nick Janetakis

A walkthrough of a custom Lua script for mpv that enables visual video clip creation using chapter markers and FFmpeg. The script adds four key bindings to set start/end markers, create clips, and clear markers. FFmpeg handles the actual clip extraction without re-encoding. Quality-of-life features include auto-pausing after setting the end mark, on-screen timestamp display, safe auto-incrementing file names, and preserving the original file's modification timestamp.

    #backend#shell#lua
Jun 23•5m read time•From nickjanetakis.com
Post cover image
Table of contents
# How it Works# Quality of Life Features# Demo Video
1.3K Impressions
Nick Janetakis's image
Nick Janetakis

Nick Janetakis's blog provides insights into web development, Docker, and technology tutorials. Read...

77 Followers

•

1.3K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard