[Libav-user] Encoding AC3
Gonzalo Garramuno
ggarra13 at gmail.com
Mon Aug 5 01:05:56 CEST 2013
On 03/08/13 12:41, Gonzalo Garramuno wrote:
> Sorry. They are autogenerated. There's a generation of pts in the
> following code (taken from the examples):
>
> audio_time += audio_st->pts.val * av_q2d(audio_st->time_base);
>
>
I apologize. The above should be:
audio_time = audio_st->pts.val * av_q2d(audio_st->time_base);
video_time = video_st->pts.val * av_q2d(video_st->time_base);
while ( audio_time < video_time )
{
write_audio_frame(oc, audio_st, img);
audio_time = audio_st->pts.val * av_q2d(audio_st->time_base);
}
write_video_frame( oc, video_st, img );
where img is the class container for audio and video.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130804/a617316a/attachment.html>
More information about the Libav-user
mailing list