mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-22 10:39:57 +01:00
Compare commits
No commits in common. "898d1976db94af9b6e53076703fcd36d92240704" and "0f565c47f5c98b8fcdb2140431377f69f4db9df8" have entirely different histories.
898d1976db
...
0f565c47f5
17
zsh/ffmpeg
17
zsh/ffmpeg
@ -37,7 +37,6 @@ function ff-mp4 () {
|
||||
# Rename the original file and move the new mp4 file to its place
|
||||
mv -n "$file" "$dir/_$file_name"
|
||||
mv -n "$dir/temp_$name.mp4" "$dir/$file_name"
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
@ -133,19 +132,3 @@ function ff-wma-m4a() {
|
||||
mv "$dir/temp_$name.mp4" "$dir/$file";
|
||||
done
|
||||
}
|
||||
|
||||
## ffmpeg cut X seconds from start
|
||||
function ff-cutstart {
|
||||
local time="${2:-00:00:08.590}"
|
||||
mv "$1" "_$1"
|
||||
ffmpeg -ss $time -i "_$1" -map 0 -c copy -movflags faststart "$1"
|
||||
}
|
||||
|
||||
## ffmpeg cut X seconds from start
|
||||
function ff-cutend {
|
||||
local time="${2:-24.250}"
|
||||
duration=`ffprobe -v error -show_entries format=duration -of csv=p=0 "$1"`
|
||||
duration=`bc --expression=$duration-$time`
|
||||
mv "$1" "_$1"
|
||||
ffmpeg -ss 00:00:00 -to $duration -i "_$1" -map 0 -c copy -movflags faststart "$1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user