At Wed, 14 Aug 2002 19:11:23 +0200, Emmanuel Fleury wrote: > > It seems feasible: >
yes, extracting from ac3 to multi-channel wav is not available as default, but can be enabled by applying the patch below. running ffmpeg like this % ffmpeg -ac 6 -ar 48000 -i foo.ac3 foo.wav will result in a wav file with 6 channels. it's not a normal wav, for example, iirc, sox cannot handle this type but can be also fixed easily. note that the patch may have a side effect, that it always tries to encode with the source channels. creating ac3 is just in reverse. provide a wav file with 6 channels, 48000 Hz, S16LE. % ffmpeg -i foo.ac3 -ab 192 foo.ac3 will create a 192kbps ac3 file encoded with 5.1 mode. by converting the sample rate to 44.1kHz, you can make even an AC3 CD :) Takashi
pcm-multi-channel.dif
Description: Binary data