On Mon, Oct 30, 2006 at 10:18:09PM -0800, Corey Hickey wrote:
Dominik 'Rathann' Mierzejewski wrote:
I've tested it on my 4.0 setup and I didn't hear the front center and lfe channels until I downmixed it to 4ch: mplayer -af pan=4:1:0:0:0:0:1:0:0:0:0:1:0:0:0:0:1:0.25:0.25:0:0:0.25:0.25:0:0 \ return,_the_h720p.mov That makes sense, since mplayer is outputting 6 channels, and on your system the last two aren't hooked up to anything. One thing, though: do you have channels=6 in your config file, or did you specify -channels 6 on your command line? If not, then I'm confused, since as far as I know mplayer tells libfaad to downmix to 2 channels be default.
I have channels=4.
Ok, that'll do it too.
For some reason I have a nagging feeling that somebody else proposed a different approach and that it might have been committed, but I can't dig up the patch. Maybe I'm imagining things.
I can't recall any such thing.
Giacomo pointed out enough for me to go by. See the following, and lots of replies in that thread.
To: mplayer-dev-eng@mplayerhq.hu From: Alexander 'Lazy Ranma' Ponyatikh Subject: [MPlayer-dev-eng] [PATCH] channel reordering for 6ch audio Date: Sat, 29 Jul 2006 20:39:44 +0400
I have been working on extending the patches submitted some time ago by Alexander in order to support in the correct order 4/5/6 channels sound stream. 6 channels is easy because you can only have 3f+2r+lfe. With 5 channels there are more combinations: 3f+2r, 2f+2r+lfe, 3f+1r+lfe and with 4 channels: 2f+2r, 3f+1r, 3f+lfe, 2f+1r+lfe Currently there is no way in mplayer/mencoder (and in libavcodec) to specify the number of front/rear/lfe channels, you can only specify the sum of them with the option -channels. For this reason the patches currently assume the following configurations: 6ch 3f+2r+lfe 5ch 3f+2r 4ch 2f+2r because this is what you get with libavcodec ac3 encoder. The changes to ad_faad.c, ad_pcm.c, ae_lavc.c, ae_pcm.c and ao_pcm.c are just extension of the previous patches. Assuming that the original patches were correct, they should also be. The changes to ae_faac.c instead are completly new, check them carefully. I was planning to submit the patch before rc1 was released, but I didn't have the time. Also as Corey has noticed, channel reordering introduces some overhead. May be we can add an option like -nochanreorder the tell mplayer/mencoder to not do channels reordering (keeping maximum speed in case it is required). Corey, can you integrate the ideas of this patch in yours? Giacomo