How to get PTS from the H264 decoder Module ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get PTS from the H264 decoder Module ?

Jump to solution
2,663 Views
subodh
Contributor III

Hi,

I am trying to write a sample media player on iMX6.

One of the primary objectives is to understand the synchronization between audio and video.

To accomplish this my application needs to get video PTS from decoder and the submit the corresponding

audio data to the AACPlus decoder API.

The VPU documentation does not mention any specifics about the timing information.

I am not sure but from what I understood, Gstreamer maintains its own clock and submits the data accordingly.

Please guide me on this front regarding AV synchronization.

Thanks in advance.

Labels (4)
0 Kudos
1 Solution
2,115 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos
3 Replies
2,115 Views
igorpadykov
NXP Employee
NXP Employee

Hi Subodh

you are correct VPU does not maintain audio synchro

it is done in gstreamer . Please check timestamping API

gstreamer documentation below

GStreamer: Documentation

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/pwg.pdf

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,115 Views
subodh
Contributor III

Hi Igor,

I want to write a native player around the vpu API, in that case what method would you suggest for AV Synchronization.

0 Kudos
2,116 Views
igorpadykov
NXP Employee
NXP Employee

Hi Subodh

I think you can look below and choose what is suitable

http://en.wikipedia.org/wiki/Audio_to_video_synchronization#MPEG:_Presentation_Time_Stamp_.28PTS.29....

Best regards

igor

0 Kudos