android ffmpeg player
hhool / ffplayer Goto Github PK
View Code? Open in Web Editor NEWandroid ffmpeg player
License: Apache License 2.0
android ffmpeg player
License: Apache License 2.0
在Masterclock.cpp中init初始化函数中,给全局变量赋值, mfAudioOriginPts = INVALID_TIME_VALUE; // from CAudioDecoderImp::Decode () returned pts
mfAudioOriginTime = INVALID_TIME_VALUE; // av_gettime() / 1000000.0
然后再音视频同步的地方,通过CMasterClock::GetAudioClock ()这个函数,返回的什么的时间,有些没看懂
double CMasterClock::GetAudioClock ()
{
//DEBUG("mfAudioOriginPts %f,mfAudioOriginTime %f",mfAudioOriginPts,mfAudioOriginTime);
if (mfAudioOriginPts < 0 || mfAudioOriginTime < 0)
{
return INVALID_TIME_VALUE;
}
else if(mfAudioOriginPts>=0.0f)
{
return SystemTime() - mfAudioOriginTime + mfAudioOriginPts;
}
else
return mfAudioOriginTime;
}
视频的pts大于当前的pts的问题,特别是播放高清的时候,特别明显,大家都是怎么解决的,可以讨论一下。打印的警告信息,如下所示:
video FramePTS far early than curr_pts Diff %f
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.