FFmpegΒΆ
FFmpeg is a useful tool to edit, convert and join audio files.
DAW -> WAV -> FLAC -> MP3
MP3 + Video -> MP4
Some useful commands
ffprobe -show_streams -show_format <file>
ffplay <file>
# For streaming
ffmpeg -i <file> -metadata album="" -metadata title="" -metadata date="" -metadata genre="" c -ar 48000 -ac 2 -b:a 64k <out-file>
# Modify metadata
ffmpeg -i <file> -c copy -movflags use_metadata_tags -map_metadata 0 -metadata title="" -metadata year="" -metadata album="" <file>
# Add Audio to video
ffmpeg -i <file> 4 -i output.mp3 -acodec copy -vcodec copy -map 0:v:0 -map 1:a:0 <file>
# Flac to mp3
ffmpeg -i <file> -ab 320k -map_metadata 0 -id3v2_version 3 <file>