[MPlayer-dev-eng] How to synchronize audio/video RTP streams?

Arpi arpi at thot.banki.hu
Mon Sep 23 14:04:34 CEST 2002


Hi,

> My question, then, is: How best can the rest of mplayer use this 
> information to properly synchronize audio and video?  I.e., can mplayer's 
> existing audio/video synchronization mechanism make use of the timestamp 
> information that's available for each 'demux_packet', and if so, 
> how?  (There's no obvious field in a "demux_packet_t" for 
> timestamp/synchronization information.)

there IS.

the 'pts' field of demux_packet is teh presentation timestamp, in seconds,
float value. set it for each packet, and set it to 0 if you don't have
timestamp.

the sync job is done by the mplayer core, your job only to set the correct
timestamp on packets


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list