<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/08/13 00:14, Anshul maheshwari
wrote:<br>
</div>
<blockquote
cite="mid:CAJMy86EWcpo34Cz97iHAdPQEG+h_bbs=n5byB4eyq2dtRsuF7Q@mail.gmail.com"
type="cite">
<p>Mai<br>
On Aug 3, 2013 2:56 AM, "Gonzalo Garramuno" <<a
moz-do-not-send="true" href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>>
wrote:<br>
><br>
> I copied the latest docs/example muxing.c and
decoding_enconding.c and modified it to my needs.<br>
> 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.<br>
> _______________________________________________<br>
> Libav-user mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
> <a moz-do-not-send="true"
href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
</p>
<p>Hi gonzalo</p>
<p>Are u passing, the pts ur self.<br>
Or they are auto generated?</p>
<p>Thanks<br>
Anshul</p>
<br>
</blockquote>
Sorry. They are autogenerated. There's a generation of pts in the
following code (taken from the examples):<br>
<br>
audio_time += audio_st->pts.val *
av_q2d(audio_st->time_base);<br>
<br>
<br>
</body>
</html>