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.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user