Created
August 6, 2026 03:38
-
-
Save jasonbot/452b95dbfcd53524d85f48330679ddd7 to your computer and use it in GitHub Desktop.
Take web videos and re-encode them for an iPod
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 x in *.webm *.mkv | |
| do | |
| if [ ! -f "${x%%.*}.mpg" ]; then | |
| ffmpeg -i "$x" -vf "crop=ih/3*4:ih,yadif" -vcodec mpeg2video -b:v 4096k -r 30 -s 280x210 -acodec libmp3lame -b:a 320k -ac 2 -ar 44100 -f mpeg "${x%%.*}.mpg" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment