Extreme lag on some h264 videos / S912

#1

I am having trouble playing some h264 videos on my 3/32GB Sunvell T95z Plus S912-box.

At first I figured I’d broken something running nightlies installed to eMMC, but I tried testing everything I’d done to try and solve it on stable release running from SD card, and the problem is the same.

Both stable and nightly are using the gxm_q200_3g.dtb device tree.

The video files give me a framerate of about 0,5-1fps running HW decode. Sound plays perfectly both using passthrough or PCM over HDMI. SW decode is not fast enough to give smooth playback, so sadly that wasn’t a workable solution.

The files are H264 - MPEG-4 AVC (part 10) (avc1) @ 1280x720. They play just fine on windows or LibreELEC running on a PC.

I’ve tried pretty much everything I can think of, but there is really no discernable change to the rendered framerate.

  • Running YUV4:2:2 or YUV4:4:4.
  • Different resolutions (the videos are 1280x720) and refreshrates
  • GPU overclock/non overclocked
  • Disabled HQ scalers
  • Tried a couple different skins
  • Passthrough/no passthrough

Logs from a quick test playback:

2019-05-13 16:12:01.371 T:2953851696  NOTICE: Creating InputStream
2019-05-13 16:12:02.571 T:2953851696  NOTICE: Creating Demuxer
2019-05-13 16:12:02.947 T:2953851696  NOTICE: Opening stream: 0 source: 256
2019-05-13 16:12:02.948 T:2953851696  NOTICE: CVideoPlayerVideo::OpenStream - Creating codec: 27
2019-05-13 16:12:02.951 T:2953851696  NOTICE: Creating video thread
2019-05-13 16:12:02.951 T:3015353136  NOTICE: running thread: video_thread
2019-05-13 16:12:02.952 T:2953851696  NOTICE: Opening stream: 1 source: 256
2019-05-13 16:12:02.952 T:2953851696  NOTICE: Finding audio codec for: 86018
2019-05-13 16:12:02.954 T:2953851696  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2019-05-13 16:12:02.954 T:2953851696  NOTICE: Creating audio thread
2019-05-13 16:12:02.955 T:2977952560  NOTICE: running thread: CVideoPlayerAudio::Process()
2019-05-13 16:12:02.955 T:2953851696  NOTICE: Opening stream: 2 source: 256
2019-05-13 16:12:02.965 T:2977952560  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
2019-05-13 16:12:02.984 T:3015353136  NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
2019-05-13 16:12:03.106 T:4087795728  NOTICE: Whitelist search for: width: 1280, height: 720, fps: 59.940, 3D: false
2019-05-13 16:12:03.107 T:4087795728  NOTICE: Display resolution ADJUST : 1920x1080 @ 59.94 - Full Screen (24) (weight: 0.000)
2019-05-13 16:12:03.491 T:4087795728  NOTICE: VideoPlayer: OnLostDisplay received
2019-05-13 16:12:03.919 T:3015353136 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2019-05-13 16:12:03.920 T:4087795728  NOTICE: VideoPlayer: OnResetDisplay received
2019-05-13 16:12:04.253 T:3015353136 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2019-05-13 16:12:10.793 T:4087795728 WARNING: Previous line repeats 8 times.
2019-05-13 16:12:10.793 T:4087795728  NOTICE: CVideoPlayer::CloseFile()
2019-05-13 16:12:10.793 T:4087795728  NOTICE: VideoPlayer: waiting for threads to exit
2019-05-13 16:12:10.850 T:2953851696  NOTICE: CVideoPlayer::OnExit()
2019-05-13 16:12:10.850 T:2953851696  NOTICE: Closing stream player 1
2019-05-13 16:12:10.850 T:2953851696  NOTICE: Waiting for audio thread to exit
2019-05-13 16:12:10.928 T:2977952560  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2019-05-13 16:12:10.929 T:2953851696  NOTICE: Closing audio device
2019-05-13 16:12:11.015 T:2953851696  NOTICE: Deleting audio codec
2019-05-13 16:12:11.015 T:2953851696  NOTICE: Closing stream player 2
2019-05-13 16:12:11.015 T:2953851696  NOTICE: waiting for video thread to exit
2019-05-13 16:12:11.131 T:3015353136  NOTICE: thread end: video_thread
2019-05-13 16:12:11.131 T:2953851696  NOTICE: deleting video codec
2019-05-13 16:12:11.170 T:2953851696  NOTICE: Closing stream player 3
2019-05-13 16:12:11.261 T:4087795728  NOTICE: VideoPlayer: finished waiting
2019-05-13 16:12:11.262 T:4087795728  NOTICE: CVideoPlayer::CloseFile()
2019-05-13 16:12:11.262 T:4087795728  NOTICE: VideoPlayer: waiting for threads to exit
2019-05-13 16:12:11.262 T:4087795728  NOTICE: VideoPlayer: finished waiting

Anyone have any ideas? Is this a lack of support in the HW decoder driver, or is there something I haven’t considered? Any help is appreciated:)

#2

High 10 Profile AVC is not supported by the hardware decoder.

#3

Aha, thank you for the prompt reply - that explains it:)