I had some recordings, that contain AC3 audio with 5.1 channel audio, but I needed a copy from these video files with stereo sound. I usually use ffmpeg for video recoding stuff, so primarily I searched for a solution for this program.
Firstly, I found several forums, where other guys were talking about similar problem. It seemed, that the only solution is to add a patch to ffmpeg's source code and rebuild it.
Other guys used Audacity to downmix the audio. They used a WAV-files, which contained the 6-channel audio and for decoding 6 channel audio was used ffmpeg.
Well, I was more satisfied with the second solution, but a didn't want to use Audacity for this task, because I considered, that making a WAV file with 6-channel uncompressed sound data isn't very elegant :).
So my final solution became this:
- I extracted with VirtualDub the AC3 sound data to a WAV file ( which contains the compressed audio data, so it's a single AC3 audio file )
- Using ffmpeg tha AC3 audio file was converted to a stereo MP3 file (It isn't clear to me why it works, perhaps the patch was included in the latest versions)
The ffmpeg command was: ffmpeg -i audio.wav -ac 2 -ab 160k audio.mp3
The -ac 2 option says, that the user wants a 2 channel output.
Nincsenek megjegyzések:
Megjegyzés küldése