Personal collection of complicated FFmpeg commands that I sometimes use for anime and stuff.
ffmpeg -iinput-filter_complex "channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]" -map "[FL]" front_left.wav -map "[FR]" front_right.wav -map "[FC]" front_center.wav -map "[LFE]" lfe.wav -map "[SL]" back_left.wav -map "[SR]" back_right.wav
For blu-ray audio sources utilising DTS-HD MA, this essentially downgrades it to regular ol' DTS without re-encoding (by removing the "lossless part" of DTS-HD MA)
ffmpeg -iinput-bsf:a dca_core -c:a copyoutput