Trim a video into multiple clips to the millisecond with ffmpeg, mpv and emacs

Описание к видео Trim a video into multiple clips to the millisecond with ffmpeg, mpv and emacs

Using emacs to capture timestamps from mpv using the mpv.el package,
converting the timestamps into start time and duration with awk and then
creating the video clips with ffmpeg

You can use the mpv.el emacs package to control mpv and inset the playheads currernt position as a timestamp into an org file

you can then export the timestamp and convert them into start time and duration with the clip-time script and use the output of that script with the scene-cut script to trim the video clips to the milliseconds with ffmpeg

or run capture the timestamps with the mpv.el package store them in an org document and run some source code blocks and run ffmpeg from within the org file and trim all the clips without leaving emacs or using the terminal

I forgot to mention you need enable org babel support with the following code in your emacs config

https://github.com/NapoleonWils0n/ubu...

; org-babel shell script
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t)))

;; org babel supress do you want to execute code message
(setq org-confirm-babel-evaluate nil
org-src-fontify-natively t
org-src-tab-acts-natively t)

emacs mpv and hydra install:
https://github.com/NapoleonWils0n/cer...

edit videos with ffmpeg, mpv and emacs
https://github.com/NapoleonWils0n/cer...

clip-time script
https://raw.githubusercontent.com/Nap...

scene-cut script:
https://raw.githubusercontent.com/Nap...

ffmpeg scripts:
https://github.com/NapoleonWils0n/ffm...

my emacs config:
https://github.com/NapoleonWils0n/ubu...

Комментарии

Информация по комментариям в разработке