Please ignore setting request_channels=2 did the trick.


----- Original Message ----
From: Burk <[email protected]>
To: [email protected]
Sent: Sat, February 26, 2011 10:36:45 AM
Subject: [libav-user] Downmixing 5.1 audio to stereo?

Hi, 
I have an AC3 input stream that I want to downmix to stereo using ffmpeg right 
after decoding:

int len = avcodec_decode_audio3(aCodecCtx, (int16_t *)audio_buf, 
&audio_buf_size, &packet);

Is there a function I can call to do the downmix on the audio buffer? I don't 
want to simply filter out 4 channels to get to stereo. I have found plenty 
about 

resampling, but hardly anything about downmixing.

I have been researching this for hours and cannot find an elegant solution. I 
must be missing something. Can you please help?

Thanks, Thomas



      
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user



      
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to