Last active
September 26, 2021 11:51
-
-
Save shellus/69fd04c79f35fa875d3390ce2978c7b2 to your computer and use it in GitHub Desktop.
Revisions
-
娃娃脾气3 revised this gist
Sep 26, 2021 . 1 changed file with 1 addition and 1 deletion.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 @@ -11,4 +11,4 @@ handler(){ } export -f handler find $1 -name '*.avi' -exec bash -c 'handler "{}"' \; -
娃娃脾气3 created this gist
Aug 12, 2021 .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,14 @@ #!/bin/bash set -e handler(){ path=$@ filename=$(basename "${path}") basename=${filename%.*} dirname=$(dirname "${path}") newname=$dirname/$basename.mp4 ffmpeg -i "$path" "$newname" } export -f handler find . -name '*.flv' -exec bash -c 'handler {}' \;