Skip to content

Instantly share code, notes, and snippets.

@ggirtsou
Created March 12, 2016 07:40
Show Gist options
  • Save ggirtsou/0ca2d9519f44006a9cc5 to your computer and use it in GitHub Desktop.
Save ggirtsou/0ca2d9519f44006a9cc5 to your computer and use it in GitHub Desktop.
Use ffmpeg to fix mp4 files with no sound on mobile device
# 1. cd to your directory containing mp4 files first
# 2. will scan for mp4 files in that directory
# 3. will output new .mp4 file in parent directory with same name as original
for i in *.mp4; do ffmpeg -i "$i" -c:v copy -c:a libfdk_aac -b:a 384k ../"$i"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment