Last active
January 26, 2024 09:31
-
-
Save wotori/5d92080a611cd92783acee29d1ebf0e9 to your computer and use it in GitHub Desktop.
Revisions
-
wotori revised this gist
Jan 26, 2024 . 1 changed file with 4 additions 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 @@ -35,4 +35,7 @@ echo finished! `for i in *.mov; do ffmpeg -i "$i" "${i%.*}.mp4"; done` ## flac to mp3 batch `ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3` -> `for i in *.flac; do ffmpeg -i "$i" -ab 320k -map_metadata 0 -id3v2_version 3 "${i%.*}".mp3; done` ## flac to mp3 batch v2 `for file in ./*.flac; do ffmpeg -i "$file" -c:a libmp3lame -q:a 2 "./mp3/$(basename "$file" .flac).mp3"; done` -
wotori revised this gist
Dec 4, 2022 . 1 changed file with 3 additions and 3 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 @@ -30,9 +30,9 @@ done; echo finished! ``` # batch ## mov to mp4 `for i in *.mov; do ffmpeg -i "$i" "${i%.*}.mp4"; done` ## flac to mp3 batch `ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3` -> `for i in *.flac; do ffmpeg -i "$i" -ab 320k -map_metadata 0 -id3v2_version 3 "${i%.*}".mp3; done` -
wotori renamed this gist
Dec 4, 2022 . 1 changed file with 6 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 @@ -30,3 +30,9 @@ done; echo finished! ``` ## batch # mov to mp4 `for i in *.mov; do ffmpeg -i "$i" "${i%.*}.mp4"; done` # flac to mp3 batch `ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3` -> `for i in *.flac; do ffmpeg -i "$i" -ab 320k -map_metadata 0 -id3v2_version 3 "${i%.*}".mp3; done` -
wotori revised this gist
Aug 19, 2022 . 1 changed file with 26 additions 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 @@ -4,4 +4,29 @@ for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done ## deinterlace -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k for i in *.avi; do ffmpeg -i "$i" -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k "${i%.avi}.mp4"; done ## more comprehensive script ``` # create dir echo creating new dir while ! mkdir $n; do n=$((n+1)); done echo new dir created $n # grab minidv echo start scaning dvgrab -rewind -format raw -size 20000 $n/ -autosplit; # convert minidv echo start converting for i in $n/*.m2t; if ffmpeg -i $n/"$i" -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k $n/"${i%.m2t}.m2t"; then rm ./$n/$i.dv; done; echo finished! ``` -
wotori revised this gist
Jun 14, 2022 . 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 @@ -4,4 +4,4 @@ for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done ## deinterlace -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k for i in *.avi; do ffmpeg -i "$i" -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k "${i%.avi}.mp4"; done -
wotori revised this gist
Jun 14, 2022 . 1 changed file with 1 addition 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 @@ -3,4 +3,5 @@ for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done ## deinterlace -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k for i in *.avi; do ffmpeg -i "$i" -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k "${i%.*}.mp4"; done -
wotori revised this gist
Jun 14, 2022 . 1 changed file with 1 addition 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 @@ -1,3 +1,4 @@ ## simple batch video conversion for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done ## deinterlace -
wotori revised this gist
Jun 14, 2022 . 2 changed files with 5 additions 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 @@ -0,0 +1,5 @@ for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done ## deinterlace -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k for i in *.avi; do ffmpeg -i "$i" -vf yadif -c:v libx264 -preset slow -crf 19 -c:a aac -b:a 256k "${i%.*}.mp4"; done 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 @@ -1 +0,0 @@ -
wotori created this gist
Jun 14, 2022 .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 @@ for i in .*.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done