mpv and ffmpeg screenshots with the timecode in the filename and emacs tips

Опубликовано: 30 Сентябрь 2024
на канале: NapoleonWils0n
705
8

mpv can take screenshots of the current playhead position in the video with the s keyboard shortcut, by default the file name of the screenshot will be mpv-shot0001.jpg

the screenshot-template option for mpv lets you customize the screen shot file name so that it contains the video file name and the timecode with hours , minutes, seconds and milliseconds
Big-Buck-Bunny-[00:05:30.977]v1.jpg

this lets you see which file the screenshot is from and the exact position in the video

i also cover extracting a frame from a video with ffmpeg using my extract-frame script which i have updated to show the timecode in the output filename

on the emacs side of things i look at a fix for the ob-async package error in senitel process, running org src blocks to execute ffmpeg

extracting a frame from a video and insert the link to the image into a org file and then toggling image display on and off to view the image in emacs

as well as other emacs and mpv settings

mpv config
https://github.com/NapoleonWils0n/fedora-d...

emacs init.el
https://github.com/NapoleonWils0n/fedora-d...

emacs mpv.el
https://github.com/kljohann/mpv.el

emacs ob-aync.el
https://github.com/astahlman/ob-async

arch wiki mpv
https://wiki.archlinux.org/title/mpv

ffmpeg scripts
https://github.com/NapoleonWils0n/ffmpeg-s...

extract frame
https://raw.githubusercontent.com/Napoleon...

ffmpeg Skripte
https://github.com/NapoleonWils0n/ffmpeg-S...

rahmen-extrahieren
https://raw.githubusercontent.com/Napoleon...