[MPlayer-dev-eng] How to Access Audio Stream PTS

Paul Curtis pfc at terrapin.com
Fri Jun 23 17:50:05 CEST 2006


I would like to use MPlayer as the video player and transport controller 
for a 'jack' application. Currently, mplayer compiled with jack support 
will pass the audio stream(s) to jack for further connections and 
processing. I have added basic transport control to the ao_jack (libao2) 
to allow mplayer to start and stop a jack connected client. I am using 
this to control ardour, to allow me to easily add additional audio tracks.

This application would allow me to seek around in a video stream, and 
begin recording or filtering the stream audio at that point. 
Additionally, this would also allow me to create as many tracks as 
needed, using ardour to mix/control them at the approriate time in the 
video. The final output would then be remuxed back to the video.

However, to fully utilize mplayer as the video display/transport control 
for ardour, I need to have mplayer also provide information on current 
timecode for the audio stream. The 'ao_data.pts' looked to be a likely 
candidate, but it is not the absolute timecode from the stream, but the 
relative pts from the point at which the audio began playing. I have 
looked through the 'libao2' code to see if this information is 
available, but I don't see it.

Is there a method or function to access the current pts (either from the 
audio stream or the demuxer) from inside a 'libao' plugin?

Regards,
Paul



More information about the MPlayer-dev-eng mailing list