WangBin
WangBin
你用最新的dll再发个完整log
> > glfwplay加上参数-fps -1会以最快的速度解码和渲染,你看看有没有卡顿,如果没有的话应该是我音视频同步的问题 > > 在MDK 0.13.0 (git 8f7983f)测试, > MFT:d3d=11加这个参数反而加剧了这种现象,且音频完全不同步了 -fps -1 是尽可能快地解码和渲染,不管音视频同步 > 后来意识到之前表述其实是不准确的,其实是一种帧率略快而跳帧的快进感而非卡顿感 跳帧 应该不至于 > 奇怪的是MFT:d3d=11下player_->mediaInfo().video[0].codec.frame_rate得到的帧率也是正确的 这个是视频的固有信息,和播放状态没关系 > 另外问下为何mediainfo要播放几秒才能获取,setmedia之后立即获取,它的几个属性值均为0? 要在视频加载完成时去读取,可以参考 https://github.com/wang-bin/mdk-examples/blob/master/Native/MediaInfoReader.cpp#L23 、https://github.com/wang-bin/mdk-examples/blob/master/Native/offscreen.cpp#L43 、https://github.com/wang-bin/mdk-examples/blob/master/Native/offscreen.cpp#L23 > >...
thanks for your example, it should be fixed in the latest build. tested on mac.
this crash is in the log, it's a know bug, i don't know the reason yet. You can simply disable the log, no setLogHandler
try the latest build
有没有继续涨?没有的话就是正常
给个测试代码
本地视频是正常的,rtsp我测了下vlc也是一直涨,不确定是什么原因。setFrameRate这行可以去掉, DXVA不推荐用
via my email. No public api to consume custom compressed samples. you can add your custom AVInputFormat in libavformat, and FFCodec in libavcodec.
i will fix it add try to add backward frame seeking this weekend.