Last active
June 7, 2019 10:22
-
-
Save chiawendt/7a64f1066897caadb7f7ee940775b42a to your computer and use it in GitHub Desktop.
Revisions
-
chiawendt revised this gist
Jun 7, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,7 @@ inPath=$1 start=$2 end=$3 outPath=@$1 fileDate=$(date -Rr ${inPath}) if [ -z ${end} ] then @@ -19,3 +20,5 @@ ffmpeg \ -i ${inPath} \ -c copy \ ${outPath} touch -d "${fileDate}" ${outPath} -
chiawendt created this gist
Jan 27, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ #!/bin/bash inPath=$1 start=$2 end=$3 outPath=@$1 if [ -z ${end} ] then >&2 echo "Usage: ffcut <filename> <start> <end>" exit fi ffmpeg \ -hide_banner \ -y \ -ss ${start} \ -to ${end} \ -i ${inPath} \ -c copy \ ${outPath}