From 450e01e0c44bcc62ec36b4c54785b49211fafc1a Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sun, 20 Nov 2022 16:39:11 +0100 Subject: [PATCH] ffmpeg cheats --- config/navi/christoph.cheat | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/config/navi/christoph.cheat b/config/navi/christoph.cheat index 90f98c06..d94a317d 100644 --- a/config/navi/christoph.cheat +++ b/config/navi/christoph.cheat @@ -10,20 +10,37 @@ $ flake: echo -e "nixinator\nnixtop" # Find out why a package is included in the closure when building the system derivation nix why-depends /run/current-system nixpkgs# - +; TODO: Autocomplete executable, list everything in path % nixos, nix-store, storepath, link # Find the storepath of an executable in the users path readlink -f $(which ) +; TODO: Autocomplete executable, list everything in path % nixos, nix-store, storepath, libraries # Find the wanted dynamic libraries of an executable in the users path ldd $(readlink -f $(which )) - % shell, process # Launch a detached process with suppressed output &>/dev/null & +; TODO: Filter out directories from input autocomplete (if there are no directories basic grep doesn't work, always needs a pattern) % ffmpeg, slowmo # Create a slow motion version of a video with interpolated/blended frames -ffmpeg -i .mp4 -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=',setpts=2*PTS" output.mp4 +ffmpeg -i -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=',setpts=2*PTS" output.mp4 +$ input: exa -1 + +% ffmpeg, cropdetect +# Detect black bar dimensions automatically by looking at the first 10 frames +ffmpeg -i -vframes 10 -vf cropdetect -f null - +$ input: exa -1 + +% ffmpeg, cropdetect, preview +# Preview video with applied crop settings +ffplay -vf crop=::: +$ input: exa -1 + +% ffmpeg, cropdetect, render +# Re-encode the video with applied crop settings +ffmpeg -i -vf crop=::: -c:a copy output.mp4 +$ input: exa -1