-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e95554
commit 310bcaf
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
abbr -a rdm 'rails db:migrate' | ||
abbr -a rgm 'rails generate migration' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# First argument is the input file | ||
# second argument is the speed up factor, default: 8 if not provided | ||
function speed_up | ||
if test (count $argv) -eq 0 | ||
echo "Usage: speed_up <input_file> [speed_up_factor:8]" | ||
return 1 | ||
end | ||
|
||
set input_file $argv[1] | ||
set speed_up_factor $argv[2] | ||
if test -z $speed_up_factor | ||
set speed_up_factor 8 | ||
end | ||
|
||
set output_file (echo $input_file | sed "s/\(.*\)\.\(.*\)/\1-fast.\2/") | ||
echo "Speeding up $input_file by $speed_up_factor times and saving to $output_file..." | ||
ffmpeg -i $input_file -filter:v "setpts=PTS/$speed_up_factor" -an $output_file | ||
end |