Created
September 15, 2021 03:57
-
-
Save psiborg/ec40c7cc56c3cb048379dc845a597aad to your computer and use it in GitHub Desktop.
ffmpeg
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 characters
| #!/bin/sh | |
| for f in *.flac; do | |
| ffmpeg -i "$f" -ab 128k -map_metadata 0 -id3v2_version 3 "${f%".flac"}.mp3" | |
| 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 characters
| for f in *.mkv; do | |
| ffmpeg -i "$f" -codec copy "${f%".mkv"}.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 characters
| for f in *.mkv; do | |
| ffmpeg -i "$f" "${f%".mkv"}.srt" | |
| 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 characters
| for f in *.mp4; do | |
| ffmpeg -i "$f" -vf scale="720:trunc(ow/a/2)*2" -pix_fmt yuv420p -preset slow -crf 23 "${f%".mp4"}.mov" | |
| done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment