exa->eza
This commit is contained in:
@ -28,34 +28,34 @@ ldd $(readlink -f $(which <executable>))
|
|||||||
% ffmpeg, slowmo
|
% ffmpeg, slowmo
|
||||||
# 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: exa -1
|
$ input: eza -1
|
||||||
|
|
||||||
% ffmpeg, cropdetect
|
% ffmpeg, cropdetect
|
||||||
# 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: exa -1
|
$ input: eza -1
|
||||||
|
|
||||||
% ffmpeg, cropdetect, preview
|
% ffmpeg, cropdetect, preview
|
||||||
# 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: exa -1
|
$ input: eza -1
|
||||||
|
|
||||||
% ffmpeg, cropdetect, render
|
% ffmpeg, cropdetect, render
|
||||||
# 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: exa -1
|
$ input: eza -1
|
||||||
|
|
||||||
% ffmpeg, video compression, h265, render, reencode
|
% ffmpeg, video compression, h265, render, reencode
|
||||||
# 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: exa -1
|
$ input: eza -1
|
||||||
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
$ quality: echo -e "24\n25\n26\n27\n28\n29\n30\n"
|
||||||
|
|
||||||
; TODO: Setting the default values like this makes them the only possible values
|
; TODO: Setting the default values like this makes them the only possible values
|
||||||
% ffmpeg, video compression, h256, render, reencode
|
% ffmpeg, video compression, h256, render, reencode
|
||||||
# Reencode and compress multiple videos using the h265 codec
|
# Reencode and compress multiple videos using the h265 codec
|
||||||
fish -c "for name in <files>; ffmpeg -i '$name' -vcodec libx265 -crf <quality> 'out_$name'; end"
|
fish -c "for name in <files>; ffmpeg -i '$name' -vcodec libx265 -crf <quality> 'out_$name'; end"
|
||||||
$ files: echo "(exa -1 | grep \".mp4\")"
|
$ files: echo "(eza -1 | grep \".mp4\")"
|
||||||
$ quality: echo "28"
|
$ quality: echo "28"
|
||||||
|
|
||||||
% qemu, cpu
|
% qemu, cpu
|
||||||
@ -74,12 +74,12 @@ find . -type f -name "<glob>" -size -<size>
|
|||||||
% objdump, disassemble
|
% objdump, disassemble
|
||||||
# Disassemble an object file
|
# Disassemble an object file
|
||||||
objdump -d -S -M intel "<file>" | bat -l nasm
|
objdump -d -S -M intel "<file>" | bat -l nasm
|
||||||
$ file: exa -1
|
$ file: eza -1
|
||||||
|
|
||||||
% pdftocairo, pdf, svg
|
% pdftocairo, pdf, svg
|
||||||
# Extract svg figure from pdf page
|
# Extract svg figure from pdf page
|
||||||
pdftocairo -f <page> -l <page> -svg "<input>" "<output>"
|
pdftocairo -f <page> -l <page> -svg "<input>" "<output>"
|
||||||
$ input: exa -1
|
$ input: eza -1
|
||||||
|
|
||||||
% yes, head, file
|
% yes, head, file
|
||||||
# Generate a large text file
|
# Generate a large text file
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
# User chooses lecture
|
# User chooses lecture
|
||||||
set LECTURE (exa -1 -D ~/Notes/TU | rofi -dmenu -p " lecture " -i)
|
set LECTURE (eza -1 -D ~/Notes/TU | rofi -dmenu -p " lecture " -i)
|
||||||
if test -z $LECTURE
|
if test -z $LECTURE
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
# User chooses slides
|
# User chooses slides
|
||||||
set DECK (exa -1 ~/Notes/TU/$LECTURE/Lecture | grep ".pdf" | rofi -dmenu -p " deck " -i)
|
set DECK (eza -1 ~/Notes/TU/$LECTURE/Lecture | grep ".pdf" | rofi -dmenu -p " deck " -i)
|
||||||
if test -z $DECK
|
if test -z $DECK
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user