How to get PTS from the H264 decoder Module ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to get PTS from the H264 decoder Module ?

跳至解决方案
2,744 次查看
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.

标签 (4)
0 项奖励
1 解答
2,196 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励
3 回复数
2,196 次查看
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 项奖励
2,196 次查看
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 项奖励
2,197 次查看
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 项奖励