Skip to content

Instantly share code, notes, and snippets.

@kidapu
Last active December 2, 2016 06:35
Show Gist options
  • Save kidapu/3ed3d9fa4a96cddf914607c16df2d944 to your computer and use it in GitHub Desktop.
Save kidapu/3ed3d9fa4a96cddf914607c16df2d944 to your computer and use it in GitHub Desktop.
convert-mp4
#!/bin/sh
echo "Hello"
for file in *.m4v
do
echo "-------------"
echo "CONVERT $file"
ffmpeg -vcodec "h264" -i "$file" "./output/$file.mp4"
# ffmpeg -i "$file" -vf scale=960:540 "./output/$file.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment