AleMegadeth@eviltoast.org to linuxmemes@lemmy.world · 22 hours agosiempre lo hagoeviltoast.orgimagemessage-square154fedilinkarrow-up11.25Karrow-down112
arrow-up11.24Karrow-down1imagesiempre lo hagoeviltoast.orgAleMegadeth@eviltoast.org to linuxmemes@lemmy.world · 22 hours agomessage-square154fedilink
minus-squareIced Raktajino@startrek.websitelinkfedilinkarrow-up22·edit-222 hours agoPretty much, yeah. Rather than jot down in a text file the various ffmpeg commands I use frequently… Raktajino@laptop:~/Downloads$ history | grep ffmpeg 12 sudo apt install audacity gimp ffmpeg mplayer 184 history | grep ffmpeg 215 ffmpeg -i source.mkv -ss 629 -t 7 out.mkv 217 ffmpeg -i out.mkv -s 0.5 -vf scale=1280:720 out.mp4 218 ffmpeg -i out.mkv -ss 0.5 -vf scale=1280:720 out.mp4 231 ffmpeg -i out.mp4 -vf "subtitles=out.srt" final.mp4 503 ffmpeg -i toofat.wav toofat.mp3 ... 682 history | grep ffmpeg 684 ffmpeg -i 1.gif -i 2.gif -filter_complex "[1:0] [2:0] concat=n=2" out.gif 685 ffmpeg -i 1.gif -i 2.gif -filter_complex "[1:0] [2:0] concat=n=2:v=1" out.gif 686 ffmpeg -i 1.gif -i 2.gif -filter_complex "[1:0] [2:0] concat=n=2:v=1" -map '[v]' out.gif 687 history | grep ffmpeg 688 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] 12:0] concat=n=2:v=1" -map '[v]' out.gif 689 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] 1:0] concat=n=2:v=1" -map '[v]' out.gif 690 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] [1:0] concat=n=2:v=1" -map '[v]' out.gif 691 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] [1:0] concat=n=2" out.gif 694 history | grep ffmpeg
minus-squareEdiacarium@feddit.orglinkfedilinkarrow-up10·edit-221 hours agoI like how ‘history | grep ffmpeg’ shows up twice
minus-squareIced Raktajino@startrek.websitelinkfedilinkarrow-up5·21 hours agoI like how I was courageous enough to not fix the actual typos/failed commands in the actual history lol.
minus-squarebdonvr@thelemmy.clublinkfedilinkarrow-up3arrow-down1·17 hours agoI’m begging you to use CTRL+R
minus-squarePotatoesFall@discuss.tchncs.delinkfedilinkarrow-up1·8 hours agoIf you have a fzf or other plugin installed, great. the vanilla Ctrl R is kinda mid in most shells IMO
minus-squarebdonvr@thelemmy.clublinkfedilinkarrow-up1·6 hours agoIt’s still lighyears ahead of hitting up forty times.
minus-squarePotatoesFall@discuss.tchncs.delinkfedilinkarrow-up1·3 hours agoexactly, which is why history | grep can, in some cases, be better than vanilla Ctrl + R
minus-squarecmnybo@discuss.tchncs.delinkfedilinkEnglisharrow-up1·19 hours agoYou can also create aliases for frequently used commands. You can even put a function in an alias so it can accept arguments, but it would probably be better to just write a shell script at that point.
minus-squarecorsicanguppy@lemmy.calinkfedilinkEnglisharrow-up1·edit-213 hours agoYou’re gonna love once you start tagging your ffmpeg commands like do a thing # dothingname Just !?dothingname later to recall it and run it. Its a little easier to NOT accidentally !?alt and discover halt is matched first.
Pretty much, yeah.
Rather than jot down in a text file the various
ffmpeg
commands I use frequently…Raktajino@laptop:~/Downloads$ history | grep ffmpeg 12 sudo apt install audacity gimp ffmpeg mplayer 184 history | grep ffmpeg 215 ffmpeg -i source.mkv -ss 629 -t 7 out.mkv 217 ffmpeg -i out.mkv -s 0.5 -vf scale=1280:720 out.mp4 218 ffmpeg -i out.mkv -ss 0.5 -vf scale=1280:720 out.mp4 231 ffmpeg -i out.mp4 -vf "subtitles=out.srt" final.mp4 503 ffmpeg -i toofat.wav toofat.mp3 ... 682 history | grep ffmpeg 684 ffmpeg -i 1.gif -i 2.gif -filter_complex "[1:0] [2:0] concat=n=2" out.gif 685 ffmpeg -i 1.gif -i 2.gif -filter_complex "[1:0] [2:0] concat=n=2:v=1" out.gif 686 ffmpeg -i 1.gif -i 2.gif -filter_complex "[1:0] [2:0] concat=n=2:v=1" -map '[v]' out.gif 687 history | grep ffmpeg 688 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] 12:0] concat=n=2:v=1" -map '[v]' out.gif 689 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] 1:0] concat=n=2:v=1" -map '[v]' out.gif 690 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] [1:0] concat=n=2:v=1" -map '[v]' out.gif 691 ffmpeg -i 1.gif -i 2.gif -filter_complex "[0:0] [1:0] concat=n=2" out.gif 694 history | grep ffmpeg
I like how ‘history | grep ffmpeg’ shows up twice
I like how I was courageous enough to not fix the actual typos/failed commands in the actual history lol.
4 times
I’m begging you to use CTRL+R
If you have a fzf or other plugin installed, great. the vanilla Ctrl R is kinda mid in most shells IMO
It’s still lighyears ahead of hitting up forty times.
exactly, which is why
history | grep
can, in some cases, be better than vanilla Ctrl + Rwao
You can also create aliases for frequently used commands. You can even put a function in an alias so it can accept arguments, but it would probably be better to just write a shell script at that point.
You’re gonna love once you start
tagging your ffmpeg commands like
do a thing # dothingname
Just
!?dothingname
later to recall it and run it.Its a little easier to NOT accidentally
!?alt
and discoverhalt
is matched first.