WangBin

Results 587 comments of WangBin

log 里的update表示两次绘制的平均间隔,看上去间隔有点长,40~50多毫秒,这样帧率比解码慢,会有一部分帧没渲染。你试试用定时器来渲染

试下最新的包有没有流畅点。顺便贴下log

The code you pasted looks fine. Can you share your example so I can reproduce the issues?

> It seems like mdk remembers the frame rate of the first loaded video No. It plays at video frame rate * playbackRate(). I've tested your example on Mac, but...

> Tried with callback, and it stutters unfortunately, like without frame_time_counter Can you update your example? When receive the event, you should renderVideo() on the texture without displaying the texture...

I tested your videos on my Mac, the speed is right. You can set env var MDK_LOG=1 and MDK_LOG_STATUS=1 to see the playback progress

I mean you can check whether the playback progress increases correctly. Don't play fullscreen, so you can see the log when playing.

Sync to audio if possible, sync to system clock if no audio track or no audio device

I forgot to test whether input sample rate is supported. Will fix it this week.

> Have you managed to figure out how to fix that sample_rate sticking by any chance? I guess enbling alsa resample will work. But my rpi supports all sample rates...