Hello,

I'm muxing mp3 audio and mpeg4 video to avi. Is it normal that the
muxer sets different AVStream::time_base for audio and video?
To be more exact, it leaves 1/10 time_base that I set for video, but
sets 1/4000 for the audio.

Both of the streams have actual time-stamp in milliseconds, so I
rescale them for each stream before setting packet pts, and then I
call av_interleaved_write_frame(). But it seams that something goes
wrong with time_base and/or pts, because the file is growing slowly in
the beginning, and doubles its size when I perform the finalizing
procedure -- so it looks like av_interleaved_write_frame() can't
interleave the frames correctly. Besides, when I play the avi, I don't
hear the audio, and the video gets stuck for a few seconds.
So I'd appreciate any idea about the correct time_base setting.

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

Reply via email to