Skip to content

Instantly share code, notes, and snippets.

@ryanknutson
Created November 26, 2021 19:36
Show Gist options
  • Save ryanknutson/e6fcdb4c384e7cb41e649ffe81f10775 to your computer and use it in GitHub Desktop.
Save ryanknutson/e6fcdb4c384e7cb41e649ffe81f10775 to your computer and use it in GitHub Desktop.
FFMPEG PS3 x264 AAC converter
#!/bin/bash
# this script transcodes video to x264 with aac audio
# and normalizes the volume. the resulting mp4 files
# are playable on many systems, including PS3 and macOS
# preview/quicktime
# usage
# ./ffps3.sh <input file>
ffmpeg -i "$1" -vcodec libx264 -level 41 -crf 24 -threads 0 -acodec aac -ab 128k -ac 2 -ar 48000 -af loudnorm=I=-16:LRA=11:TP=-1.5 "ps-$1".mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment