Compare commits
3 Commits
0e86ca0371
...
f429a50206
| Author | SHA1 | Date | |
|---|---|---|---|
|
f429a50206
|
|||
|
024908500a
|
|||
|
c7098e2208
|
@ -308,27 +308,33 @@ mkdir -p "<name>" && cd "<name>" && spotdl --client-id (cat /home/christoph/.sec
|
|||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Create a slow motion version of a video with interpolated/blended frames
|
# Create a slow motion version of a video with interpolated/blended frames
|
||||||
ffmpeg -i "<input>" -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=<doublefps>',setpts=2*PTS" output.mp4
|
ffmpeg -i <input> -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=<doublefps>',setpts=2*PTS" output.mp4
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Detect black bar dimensions automatically by looking at the first 10 frames
|
# Detect black bar dimensions automatically by looking at the first 10 frames
|
||||||
ffmpeg -i "<input>" -vframes 10 -vf cropdetect -f null -
|
ffmpeg -i <input> -vframes 10 -vf cropdetect -f null -
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Preview video with applied crop settings
|
# Preview video with applied crop settings
|
||||||
ffplay -vf crop=<width>:<height>:<x>:<y> "<input>"
|
ffplay -vf crop=<width>:<height>:<x>:<y> <input>
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Re-encode the video with applied crop settings
|
# Re-encode the video with applied crop settings
|
||||||
ffmpeg -i "<input>" -vf crop=<width>:<height>:<x>:<y> -c:a copy output.mp4
|
ffmpeg -i <input> -vf crop=<width>:<height>:<x>:<y> -c:a copy output.mp4
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
|
|
||||||
% ffmpeg
|
% ffmpeg
|
||||||
# Reencode and compress the video using the h265 codec
|
# Reencode and compress the video using the h265 codec
|
||||||
ffmpeg -i "<input>" -vcodec libx265 -crf <quality> "out_<input>"
|
ffmpeg -i <input> -vcodec libx265 -crf <quality> out_<input>
|
||||||
|
$ input: eza -f -1
|
||||||
|
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
||||||
|
|
||||||
|
% ffmpeg
|
||||||
|
# Reencode, compress and scale the video using the h265 codec
|
||||||
|
ffmpeg -i <input> -vcodec libx265 -crf <quality> -vf scale=<width>:-2,setsar=1:1 out_<input>
|
||||||
$ input: eza -f -1
|
$ input: eza -f -1
|
||||||
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
||||||
|
|
||||||
|
|||||||
@ -124,6 +124,7 @@ in {
|
|||||||
packages = with rPackages; [
|
packages = with rPackages; [
|
||||||
languageserver
|
languageserver
|
||||||
ggplot2
|
ggplot2
|
||||||
|
ggalluvial
|
||||||
plotly
|
plotly
|
||||||
shiny
|
shiny
|
||||||
readr
|
readr
|
||||||
|
|||||||
@ -66,3 +66,16 @@ local rmpc =
|
|||||||
vim.g.toggle_rmpc = function()
|
vim.g.toggle_rmpc = function()
|
||||||
rmpc:toggle()
|
rmpc:toggle()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Toggle FailNix UI
|
||||||
|
local failnix = Terminal:new({
|
||||||
|
cmd = "cd /home/christoph/Notes/TU/MastersThesis/FailNix && nix develop --command bash -c 'perl ./scripts/menu.pl'",
|
||||||
|
hidden = true,
|
||||||
|
close_on_exit = true,
|
||||||
|
auto_scroll = false,
|
||||||
|
direction = "float",
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.g.toggle_failnix = function()
|
||||||
|
failnix:toggle()
|
||||||
|
end
|
||||||
|
|||||||
@ -340,6 +340,13 @@ _: let
|
|||||||
action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua
|
action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua
|
||||||
options.desc = "Show Rmpc";
|
options.desc = "Show Rmpc";
|
||||||
}
|
}
|
||||||
|
# TODO: Something with the environment activation doesn't work
|
||||||
|
# {
|
||||||
|
# mode = "n";
|
||||||
|
# key = "<leader>.";
|
||||||
|
# action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua
|
||||||
|
# options.desc = "Show FailNix";
|
||||||
|
# }
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>i";
|
key = "<leader>i";
|
||||||
|
|||||||
@ -675,6 +675,12 @@ in {
|
|||||||
open-floating = true;
|
open-floating = true;
|
||||||
open-maximized = true;
|
open-maximized = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
matches = [{app-id = "factorio";}];
|
||||||
|
open-on-workspace = "6";
|
||||||
|
# open-floating = true;
|
||||||
|
open-maximized = true;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
matches = [{app-id = "signal";}];
|
matches = [{app-id = "signal";}];
|
||||||
open-on-workspace = "7";
|
open-on-workspace = "7";
|
||||||
|
|||||||
@ -132,6 +132,7 @@ in {
|
|||||||
# (mkUDir ".nv" m755) # Unity
|
# (mkUDir ".nv" m755) # Unity
|
||||||
# (mkUDir ".ollama" m755)
|
# (mkUDir ".ollama" m755)
|
||||||
# (mkUDir ".plastic4" m755) # Unity
|
# (mkUDir ".plastic4" m755) # Unity
|
||||||
|
# (mkUDir ".tableplus" m755)
|
||||||
(mkUDir ".tiddl" m755)
|
(mkUDir ".tiddl" m755)
|
||||||
(mkUDir ".var/app" m755)
|
(mkUDir ".var/app" m755)
|
||||||
(mkUDir ".vim/undo" m755)
|
(mkUDir ".vim/undo" m755)
|
||||||
@ -146,6 +147,7 @@ in {
|
|||||||
|
|
||||||
# Config
|
# Config
|
||||||
# (mkUDir ".config/.android" m755) # Unity
|
# (mkUDir ".config/.android" m755) # Unity
|
||||||
|
# (mkUDir ".config/beekeeper-studio" m755)
|
||||||
(mkUDir ".config/beets" m755)
|
(mkUDir ".config/beets" m755)
|
||||||
(mkUDir ".config/blender" m755)
|
(mkUDir ".config/blender" m755)
|
||||||
(mkUDir ".config/chromium" m755) # TODO: Remove this someday
|
(mkUDir ".config/chromium" m755) # TODO: Remove this someday
|
||||||
|
|||||||
Reference in New Issue
Block a user