Thanks to Paul (who wrote a lot of ffmpeg code) I hacked this patch against ffmpeg-4.4.<div><br></div><div>Can anyone test how it work with 5.1 and stereo sounds (s16, s24 broken ATM), especially if it remaps 5.1 channels correctly? </div><div><br></div><div>I tested like this:</div><div><br></div><div>$ ./ffmpeg -i ~/matrixbench_highdivx_ac3.avi -c:v libx264 -s 160x120 -c:a pcm_bluray -mpegts_m2ts_mode 1 -sample_fmt s16 1.m2ts</div><div><br></div><div>mpv 1.m2ts</div><div><br></div><div>but my tablet sound definitely not 5.1!</div><div><br></div><div>NOTE: this is not yet cinelerra-gg patch, just something I test with our version of ffmpeg</div>