I have an alias to a ffmpeg command to start recording a session like this:
alias sreq='ffmpeg -f x11grab -r 24 -s 1024x768 -i :0.0 -qp 0 -c:v libx264 -preset veryslow'
I can just type sreq filename.mkv to start recording. This is pretty good but I'd like to fix this up a bit.
since I always record in .mkv format, how can I have it so that i can avoid having to type .mkv
how could I rework this alias command or something so that I can just type sreq filename
or sreq /path/to/filename
and have it work as expected?
function
keyword. The POSIX compliantdash
shell doesn't understand thefunction
keyword,ksh
understands thefunction
keyword sometimes. Most shells understandf() { commands; }
. – RobertL Feb 05 '16 at 17:03