[Libav-user] Encoding AC3

Gonzalo Garramuno ggarra13 at gmail.com
Fri Aug 2 23:26:14 CEST 2013

I copied the latest docs/example muxing.c and decoding_enconding.c and 
modified it to my needs.
I am able to save a movie with synced sound if I use audio codec 
pcm_s16le and convert the float values into s16 values using 
swresample.  However, when I want to save ac3 to keep the data in float 
(fltp), the video gets created fine, but the audio comes out of sync.  
My guess is that I am not using proper pts/dts values.

More information about the Libav-user mailing list