Skip to content

Instantly share code, notes, and snippets.

@udf
Created February 3, 2022 11:49
Show Gist options
  • Save udf/e9ffc71c80610889dfc57f704b7f244d to your computer and use it in GitHub Desktop.
Save udf/e9ffc71c80610889dfc57f704b7f244d to your computer and use it in GitHub Desktop.
Check replaygain compatibility using generated test audio files
# these two should be the same volume
ffmpeg -f lavfi -i "sine=frequency=1000:duration=5" notags.flac
opusenc --bitrate 192 --vbr notags.flac notags.opus
# these 3 should play at the same volume
cp notags.flac tags.flac
cp notags.opus tags.opus
cp notags.opus header.opus
r128gain --opus-output-gain header.opus
r128gain tags.flac tags.opus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment