Kwiboo/linux-rockchip

RK3328 : VPU playback issues

Closed this issue · 8 comments

A few videos tend to show unexpected behaviors. Here are two samples :

Will provide kernel log for each playback

The second video stuttering seems to be solved with running VPU @600MHz.

So we only have the first video issue at this point :)

@ayaka check both videos , can not find problem

We made further investigations.

One the first video, i can get some log from commandline playback :

mpi: mpp version: 9758dfa author: Randy Li [osal]: fixup for build in linux
[vd] Selected video codec: hevc (HEVC (High Efficiency Video Coding))
[cplayer] Starting playback...
[cache] Dropping cache at pos 90487, cached range: 1204810740-1204810814.
[cache] Seeking underlying stream: 1204810814 -> 90487
H265D_PARSER: No start code is found.
H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006
H265PARSER_PS: vps_id = 0x0
mpp_buf_slot: new width 3840 height 2160 stride hor 4864 ver 2160 fmt    1
[ffmpeg] hevc_rkmpp: Decoder noticed an info change (3840x2160), format=1
H265D_PARSER: IS_IRAP frame found error
H265PARSER_PS: vps_id = 0x0
H265_PARSER_REF: Could not find ref with POC 114
H265_PARSER_REF: generate_missing_ref in
H265_PARSER_REF: generate_missing_ref frame poc 114 slot_index 2

@hizukiayaka : hope this can help

On the second one what we found out is that is seems that without display the video can be decoded properly at 60 fps. but as soon as we use drm/vop to display it then it can't keep up with rendering.

Could this be a display system issue (maybe VOP) ?

This only seems to happen on 60 Fps videos. in our tests we used a 4K@60 fps video and a 1080p@60Hz mode (as we can't use 4K@60 hz yet because of #15.

It could be maybe VOP scaling down from 4K to 1080p at 60 fps that is over the VOP capabilities ? It happenned both on :

Also testing 1080p @ 60 video (Big Buck Bunny) didn't show that issue.

Confirmed

@ayaka , anything update to @LongChair

Both videos don't seem to be available anymore from the website ... maybe we should close this issue and there is not real way to reproduce them.

Closing as samples is removed, possibly also fixed by #22 (comment)