[Ffmpeg-devel] Audio/Video Synchronization
Peter
mpegavc
Mon Jul 3 16:18:11 CEST 2006
Hi,
Can anyone give me a roadmap about this issue?
I'm trying to decode an MPEG2 TS using libavcodec/libavformat/libavutil.
Well, I know that audio and video are synchronized using STC, right? I have
to compare audio/video PTS and STC.
If (PTS - STC) > limit_value
repeat displayed frame
if (PTS - STC) < limit_value
discard frame
Is this correct?
How can I get STC from MPEG2 TS?
What is the difference between AVFrame.pts and AVPacket.pts?
Thanks in advance,
Peter
More information about the ffmpeg-devel
mailing list