Skip to content

Instantly share code, notes, and snippets.

@adamJLev
Created March 16, 2017 07:31
Show Gist options
  • Save adamJLev/92a477b94974eb18429d59a9182a20fa to your computer and use it in GitHub Desktop.
Save adamJLev/92a477b94974eb18429d59a9182a20fa to your computer and use it in GitHub Desktop.
Fix for Spotify not playing some MP4 files
# Context https://community.spotify.com/t5/Desktop-Linux-Windows-Web-Player/Spotify-Does-not-Import-m4a-Files/td-p/1022795
# This ZSH script converts every .mp4 file in current folder to .m4a
# Note: you need to have ffmpeg installed
for file in $(echo **.mp4); do ffmpeg -i "$file" -acodec copy -movflags faststart "$file".m4a; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment