Skip to content

Instantly share code, notes, and snippets.

@luzihang123
Created January 17, 2021 11:47
Show Gist options
  • Save luzihang123/ccd614845487ad7823ac1b3067bae409 to your computer and use it in GitHub Desktop.
Save luzihang123/ccd614845487ad7823ac1b3067bae409 to your computer and use it in GitHub Desktop.
使用ffmpeg压缩相机、iPhone拍摄的影片,用来上传YouTube
for i in *.MP4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" "./result/${name}.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment