{"action":"created","issue":{"url":"https://api.github.com/repos/Kwiboo/linux-rockchip/issues/22","repository_url":"https://api.github.com/repos/Kwiboo/linux-rockchip","labels_url":"https://api.github.com/repos/Kwiboo/linux-rockchip/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Kwiboo/linux-rockchip/issues/22/comments","events_url":"https://api.github.com/repos/Kwiboo/linux-rockchip/issues/22/events","html_url":"https://github.com/Kwiboo/linux-rockchip/issues/22","id":249274054,"number":22,"title":"RK3328 : HDR media playback issues.","user":{"login":"LongChair","id":2814651,"avatar_url":"https://avatars2.githubusercontent.com/u/2814651?v=4","gravatar_id":"","url":"https://api.github.com/users/LongChair","html_url":"https://github.com/LongChair","followers_url":"https://api.github.com/users/LongChair/followers","following_url":"https://api.github.com/users/LongChair/following{/other_user}","gists_url":"https://api.github.com/users/LongChair/gists{/gist_id}","starred_url":"https://api.github.com/users/LongChair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LongChair/subscriptions","organizations_url":"https://api.github.com/users/LongChair/orgs","repos_url":"https://api.github.com/users/LongChair/repos","events_url":"https://api.github.com/users/LongChair/events{/privacy}","received_events_url":"https://api.github.com/users/LongChair/received_events","type":"User","site_admin":false},"labels":[{"id":629438212,"url":"https://api.github.com/repos/Kwiboo/linux-rockchip/labels/prio%20:%20medium","name":"prio : medium","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2017-08-10T08:43:41Z","updated_at":"2018-05-04T13:52:00Z","closed_at":null,"author_association":"COLLABORATOR","body":"We are having issues to play our HDR samples on RK3328.\r\n\r\nOne of the samples that shows that issue is http://demo-uhd3d.com/fiche.php?cat=uhd&id=159\r\n\r\nFrom what we see, MPP seems to error while parsing the data, this is the log we have been able to retrieve :\r\n\r\n```\r\n[ffmpeg] hevc_rkmpp: Initializing RKMPP decoder.\r\nmpi: mpp version:\r\n[ffmpeg] hevc_rkmpp: RKMPP decoder initialized successfully.\r\n[ffmpeg] hevc_rkmpp: Flush.\r\n[ffmpeg] hevc_rkmpp: Wrote 1874 bytes to decoder\r\nH265D_PARSER: No start code is found.\r\n[ffmpeg] hevc_rkmpp: Wrote 705617 bytes to decoder\r\nH265D_PARSER: nal_unit_type: 32, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 33, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 34, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 32, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 33, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 34, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 19, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: nal_unit_type: 32, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 32,len = 24\r\nH265PARSER_PS: Decoding VPS\r\nH265PARSER_PS: vps_id = 0x0\r\nH265PARSER_PS: Main 10 profile bitstream\r\nH265D_PARSER: nal_unit_type: 33, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 33,len = 46\r\nH265PARSER_PS: Decoding SPS\r\nH265PARSER_PS: Main 10 profile bitstream\r\nH265PARSER_PS: read bit left 161\r\nH265PARSER_PS: 2 read bit left 148\r\nH265PARSER_PS: sps->log2_min_cb_size 3\r\nH265PARSER_PS: sps->log2_diff_max_min_coding_block_size 3\r\nH265PARSER_PS: sps->log2_min_tb_size 2\r\nH265PARSER_PS: sps->log2_diff_max_min_transform_block_size 3\r\nH265PARSER_PS: sps->log2_max_trafo_size 5\r\nH265PARSER_PS: sps->amp_enabled_flag = 0\r\nH265PARSER_PS: sps->sao_enabled = 1\r\nH265PARSER_PS: sps->pcm_enabled_flag = 0\r\nH265PARSER_PS: Decoding VUI\r\nH265PARSER_PS: sps->log2_min_cb_size = 3 sps->log2_diff_max_min_coding_block_size = 3\r\nH265PARSER_PS: plus sps->log2_ctb_size 6\r\nH265PARSER_PS: sps->log2_ctb_size 6\r\nH265D_PARSER: nal_unit_type: 34, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 34,len = 7\r\nH265PARSER_PS: Decoding PPS\r\nH265PARSER_PS: Decoding PPS 1\r\nH265PARSER_PS: num bit left 3\r\nH265PARSER_PS: num bit left 2\r\nH265PARSER_PS: num bit left 1\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 39,len = 10\r\nh265d_sei: Decoding SEI\r\nh265d_sei: s->nal_unit_type 39 payload_type 144 payload_size 4\r\nh265d_sei: Skipped PREFIX SEI 144\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 39,len = 30\r\nh265d_sei: Decoding SEI\r\nh265d_sei: s->nal_unit_type 39 payload_type 137 payload_size 24\r\nh265d_sei: mastering_display_colour_volume in\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 39,len = 1754\r\nh265d_sei: Decoding SEI\r\nh265d_sei: s->nal_unit_type 39 payload_type 5 payload_size 1743\r\nh265d_sei: Skipped PREFIX SEI 5\r\nH265D_PARSER: nal_unit_type: 32, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 32,len = 24\r\nH265PARSER_PS: Decoding VPS\r\nH265PARSER_PS: vps_id = 0x0\r\nH265PARSER_PS: Main 10 profile bitstream\r\nH265D_PARSER: nal_unit_type: 33, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 33,len = 46\r\nH265PARSER_PS: Decoding SPS\r\nH265PARSER_PS: Main 10 profile bitstream\r\nH265PARSER_PS: read bit left 161\r\nH265PARSER_PS: 2 read bit left 148\r\nH265PARSER_PS: sps->log2_min_cb_size 3\r\nH265PARSER_PS: sps->log2_diff_max_min_coding_block_size 3\r\nH265PARSER_PS: sps->log2_min_tb_size 2\r\nH265PARSER_PS: sps->log2_diff_max_min_transform_block_size 3\r\nH265PARSER_PS: sps->log2_max_trafo_size 5\r\nH265PARSER_PS: sps->amp_enabled_flag = 0\r\nH265PARSER_PS: sps->sao_enabled = 1\r\nH265PARSER_PS: sps->pcm_enabled_flag = 0\r\nH265PARSER_PS: Decoding VUI\r\nH265PARSER_PS: sps->log2_min_cb_size = 3 sps->log2_diff_max_min_coding_block_size = 3\r\nH265PARSER_PS: plus sps->log2_ctb_size 6\r\nH265PARSER_PS: sps->log2_ctb_size 6\r\nH265D_PARSER: nal_unit_type: 34, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 34,len = 7\r\nH265PARSER_PS: Decoding PPS\r\nH265PARSER_PS: Decoding PPS 1\r\nH265PARSER_PS: num bit left 7\r\nH265PARSER_PS: num bit left 6\r\nH265PARSER_PS: num bit left 5\r\nH265D_PARSER: nal_unit_type: 39, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 39,len = 1754\r\nh265d_sei: Decoding SEI\r\nh265d_sei: s->nal_unit_type 39 payload_type 5 payload_size 1743\r\nh265d_sei: Skipped PREFIX SEI 5\r\nH265D_PARSER: nal_unit_type: 19, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 19,len = 701871\r\nH265D_PARSER: hls_slice_header in\r\nH265D_PARSER: hls_slice_header out\r\nH265_PARSER_REF: width = 3840 height = 2160\r\nH265_PARSER_REF: w_stride 3840 h_stride 2160\r\nH265_PARSER_REF: alloc frame poc 0 slot_index 0\r\nmpp_buf_slot: new width 3840 height 2160 stride hor 4864 ver 2160 fmt    1\r\nH265D_PARSER: decode poc = 0\r\nH265D_PARSER: Decoded frame with POC 0.\r\nH265D_PARSER: Output frame with POC 0 frame->slot_index = 0\r\n[ffmpeg] hevc_rkmpp: Wrote 61183 bytes to decoder\r\n[ffmpeg] hevc_rkmpp: Wrote 2284 bytes to decoder\r\n[ffmpeg] hevc_rkmpp: Wrote 1312 bytes to decoder\r\n[ffmpeg] hevc_rkmpp: Wrote 1493 bytes to decoder\r\n[ffmpeg] hevc_rkmpp: Decoder noticed an info change (3840x2160), format=1\r\nH265D_PARSER: nal_unit_type: 1, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: IS_IRAP frame found error\r\nH265D_PARSER: nal_unit_type: 1, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 1,len = 61179\r\nH265D_PARSER: hls_slice_header in\r\n[ffmpeg] hevc_rkmpp: Received a discard/errinfo frame.\r\nH265D_PARSER: Invalid collocated_ref_idx: 7.\r\nH265D_PARSER: hls_slice_header out\r\nH265D_PARSER: hls_slice_header error ret = -1004\r\nH265D_PARSER: Error parsing NAL unit #0,error ret = 0xd.\r\nH265D_PARSER: current stream is no right skip it\r\nH265D_PARSER: nal_unit_type: 1, nuh_layer_id: 0 temporal_id: 0\r\n[ffmpeg] hevc_rkmpp: Wrote 91034 bytes to decoder\r\nH265D_PARSER: nal_unit_type: 1, nuh_layer_id: 0 temporal_id: 0\r\nH265D_PARSER: s->nal_unit_type = 1,len = 2280\r\nH265D_PARSER: hls_slice_header in\r\nH265D_PARSER: hls_slice_header out\r\nH265D_PARSER: decode poc = 2\r\nH265D_PARSER: nal_unit_type: 0, nuh_layer_id: 0 temporal_id: 0\r\n[ffmpeg] hevc_rkmpp: Wrote 2520 bytes to decoder\r\n```"},"comment":{"url":"https://api.github.com/repos/Kwiboo/linux-rockchip/issues/comments/386607916","html_url":"https://github.com/Kwiboo/linux-rockchip/issues/22#issuecomment-386607916","issue_url":"https://api.github.com/repos/Kwiboo/linux-rockchip/issues/22","id":386607916,"user":{"login":"mcerveny","id":1438115,"avatar_url":"https://avatars0.githubusercontent.com/u/1438115?v=4","gravatar_id":"","url":"https://api.github.com/users/mcerveny","html_url":"https://github.com/mcerveny","followers_url":"https://api.github.com/users/mcerveny/followers","following_url":"https://api.github.com/users/mcerveny/following{/other_user}","gists_url":"https://api.github.com/users/mcerveny/gists{/gist_id}","starred_url":"https://api.github.com/users/mcerveny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcerveny/subscriptions","organizations_url":"https://api.github.com/users/mcerveny/orgs","repos_url":"https://api.github.com/users/mcerveny/repos","events_url":"https://api.github.com/users/mcerveny/events{/privacy}","received_events_url":"https://api.github.com/users/mcerveny/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T13:52:00Z","updated_at":"2018-05-04T13:52:00Z","author_association":"NONE","body":"I did not make bisect. But https://github.com/rockchip-linux/kernel/commit/d4953cfed336fc3197ba8e98d69ea6a37f2b5fdc equals to my https://github.com/mcerveny/rockchip-linux/commit/b4bc703f2dca4e5115b22155920d2277671a9f00 and add something new for faster \"clock ratio\". Maybe more in history [sysnopsys](https://github.com/rockchip-linux/kernel/commits/release-4.4/drivers/gpu/drm/bridge/synopsys), [drm/rockchip](https://github.com/rockchip-linux/kernel/commits/release-4.4/drivers/gpu/drm/rockchip) and/or [phy/rockchip](https://github.com/rockchip-linux/kernel/commits/release-4.4/drivers/phy/rockchip).\r\n"}}
{"actor":{"display_login":"mcerveny"}}