rtc_video_decoder reports wrong size of video sometimes |
|||
Issue descriptionSometimes the size reported by rtc_video_decoder is different to actual size reported by gpu decoder. In the below logs, vp9_decoder.cc detects resolution changed from 960x540 to 720x405, but rtc_video_decoder.cc still thinks the resolution is 960x540. vp9 and h264 are ok, but vp8 has serious issue because only keyframe knows resolution and keyframe can be 1 over thousands frames. [15166:16643:0412/183721.242147:VERBOSE2:vp9_decoder.cc(153)] Render resolution: 0,0 960x540 [15166:16643:0412/183721.286566:VERBOSE1:vp9_decoder.cc(118)] New resolution: 720x405 [1:54:0412/183721.687762:VERBOSE2:rtc_video_decoder.cc(205)] Got new size=960x540 [15166:16789:0412/183721.688577:VERBOSE1:vp9_decoder.cc(118)] New resolution: 720x405 Full log: [15166:16643:0412/183721.242147:VERBOSE2:vp9_decoder.cc(153)] Render resolution: 0,0 960x540 [15166:16643:0412/183721.242259:VERBOSE4:vaapi_wrapper.cc(1348)] Pending VA bufs to commit: 1 [15166:16643:0412/183721.242337:VERBOSE4:vaapi_wrapper.cc(1349)] Pending slice bufs to commit: 2 [15166:16643:0412/183721.243342:VERBOSE4:vaapi_wrapper.cc(1375)] Target VA surface 67108880 [15166:15166:0412/183721.243519:VERBOSE4:vaapi_video_decode_accelerator.cc(218)] OutputPicture(): Outputting VASurface 67108880 into pixmap bound to picture buffer id 26 [15166:15166:0412/183721.243763:VERBOSE4:vaapi_video_decode_accelerator.cc(230)] OutputPicture(): Notifying output picture id 26 for input 2392 is ready. visible rect: 0,0 960x540 [1:16:0412/183721.244709:VERBOSE3:rtc_video_decoder.cc(377)] PictureReady [15166:15166:0412/183721.245171:VERBOSE4:vaapi_video_decode_accelerator.cc(472)] RecycleVASurfaceID(): VASurfaceID: 67108888 [15166:16643:0412/183721.245331:VERBOSE2:vp9_parser.cc(442)] ParseNextFrame [15166:16643:0412/183721.245422:VERBOSE4:vaapi_video_decode_accelerator.cc(92)] ~InputBuffer(): id = 2392 [15166:16643:0412/183721.245783:VERBOSE2:vp9_parser.cc(442)] ParseNextFrame [1:16:0412/183721.246466:VERBOSE3:rtc_video_decoder.cc(484)] NotifyEndOfBitstreamBuffer. id=2392 [1:16:0412/183721.261200:VERBOSE3:rtc_video_decoder.cc(713)] ReusePictureBuffer. id=22 [15166:15166:0412/183721.261752:VERBOSE4:vaapi_video_decode_accelerator.cc(585)] ReusePictureBuffer(): picture id=22 [1:54:0412/183721.285049:VERBOSE3:rtc_video_decoder.cc(165)] Decode [15166:15166:0412/183721.286322:VERBOSE4:vaapi_video_decode_accelerator.cc(445)] Decode(): Queueing new input buffer id: 2393 size: 1912 [15166:15166:0412/183721.286369:VERBOSE4:vaapi_video_decode_accelerator.cc(260)] QueueInputBuffer(): Queueing new input buffer id: 2393 size: 1912 [15166:16643:0412/183721.286475:VERBOSE4:vaapi_video_decode_accelerator.cc(337)] DecodeTask(): New |curr_input_buffer|, id 2393 size: 1912B [15166:16643:0412/183721.286504:VERBOSE4:vp9_decoder.cc(33)] New input stream id: 2393 at: 0x7a98a1333000 size: 1912 [15166:16643:0412/183721.286523:VERBOSE2:vp9_parser.cc(442)] ParseNextFrame [15166:16643:0412/183721.286543:VERBOSE2:vp9_uncompressed_header_parser.cc(916)] Vp9UncompressedHeaderParser::Parse [15166:16643:0412/183721.286566:VERBOSE1:vp9_decoder.cc(118)] New resolution: 720x405 [15166:16643:0412/183721.286584:VERBOSE1:vp9_decoder.cc(124)] Resolution change currently supported for keyframes only [15166:15166:0412/183721.286635:VERBOSE4:vaapi_video_decode_accelerator.cc(472)] RecycleVASurfaceID(): VASurfaceID: 67108880 [15166:15166:0412/183721.286700:VERBOSE4:vaapi_video_decode_accelerator.cc(472)] RecycleVASurfaceID(): VASurfaceID: 67108887 [15166:15166:0412/183721.286769:VERBOSE4:vaapi_video_decode_accelerator.cc(472)] RecycleVASurfaceID(): VASurfaceID: 67108881 [15166:16643:0412/183721.286826:VERBOSE1:vaapi_video_decode_accelerator.cc(385)] DecodeTask(): Error decoding stream [15166:15166:0412/183721.286883:VERBOSE1:vaapi_video_decode_accelerator.cc(123)] NotifyError(): Notifying of error 4 [15166:15166:0412/183721.286939:VERBOSE2:vaapi_video_decode_accelerator.cc(758)] Cleanup(): Destroying VAVDA [1:16:0412/183721.287973:ERROR:rtc_video_decoder.cc(529)] VDA Error:4 [1:16:0412/183721.288161:VERBOSE2:rtc_video_decoder.cc(786)] DestroyVDA [15166:15166:0412/183721.288666:VERBOSE2:vaapi_wrapper.cc(772)] Destroying 14 surfaces [15166:15166:0412/183721.288785:VERBOSE4:vaapi_video_decode_accelerator.cc(92)] ~InputBuffer(): id = 2393 [1:54:0412/183721.333586:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.333748:ERROR:rtc_video_decoder.cc(175)] Decoding error occurred. [1:54:0412/183721.333859:VERBOSE2:rtc_video_decoder.cc(284)] Release [1:54:0412/183721.333927:VERBOSE2:rtc_video_decoder.cc(665)] Reset_Locked [1:54:0412/183721.334018:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832488410, error code: -1 [1:16:0412/183721.334019:VERBOSE2:rtc_video_decoder.cc(677)] ResetInternal [15166:15166:0412/183721.334958:VERBOSE2:vaapi_video_decode_accelerator.cc(170)] Initialize(): Initializing VAVDA, profile: vp9 profile0 [15166:15166:0412/183721.335010:VERBOSE2:vaapi_wrapper.cc(1389)] vaSetDisplayAttributes unsupported, ignoring by default. [1:54:0412/183721.379300:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.379515:VERBOSE1:rtc_video_decoder.cc(229)] The first frame should have resolution. Drop this. [1:54:0412/183721.379666:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832492730, error code: -1 [1:54:0412/183721.427837:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.428329:VERBOSE1:rtc_video_decoder.cc(229)] The first frame should have resolution. Drop this. [1:54:0412/183721.428489:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832497050, error code: -1 [1:54:0412/183721.473742:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.473995:VERBOSE1:rtc_video_decoder.cc(229)] The first frame should have resolution. Drop this. [1:54:0412/183721.474152:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832501280, error code: -1 [1:54:0412/183721.521521:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.521667:VERBOSE1:rtc_video_decoder.cc(229)] The first frame should have resolution. Drop this. [1:54:0412/183721.521755:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832505600, error code: -1 [1:54:0412/183721.569870:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.570065:VERBOSE1:rtc_video_decoder.cc(229)] The first frame should have resolution. Drop this. [1:54:0412/183721.570367:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832509920, error code: -1 [1:54:0412/183721.628520:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.628705:VERBOSE1:rtc_video_decoder.cc(229)] The first frame should have resolution. Drop this. [1:54:0412/183721.628858:WARNING:generic_decoder.cc(239)] Failed to decode frame with timestamp 2832515140, error code: -1 [1:54:0412/183721.687545:VERBOSE3:rtc_video_decoder.cc(165)] Decode [1:54:0412/183721.687762:VERBOSE2:rtc_video_decoder.cc(205)] Got new size=960x540 [15166:15166:0412/183721.688282:VERBOSE4:vaapi_video_decode_accelerator.cc(445)] Decode(): Queueing new input buffer id: 2394 size: 4146 [15166:15166:0412/183721.688329:VERBOSE4:vaapi_video_decode_accelerator.cc(260)] QueueInputBuffer(): Queueing new input buffer id: 2394 size: 4146 [15166:16789:0412/183721.688402:VERBOSE4:vaapi_video_decode_accelerator.cc(337)] DecodeTask(): New |curr_input_buffer|, id 2394 size: 4146B [15166:16789:0412/183721.688450:VERBOSE4:vp9_decoder.cc(33)] New input stream id: 2394 at: 0x7a98a132f000 size: 4146 [15166:16789:0412/183721.688481:VERBOSE2:vp9_parser.cc(442)] ParseNextFrame [15166:16789:0412/183721.688514:VERBOSE2:vp9_uncompressed_header_parser.cc(916)] Vp9UncompressedHeaderParser::Parse [15166:16789:0412/183721.688577:VERBOSE1:vp9_decoder.cc(118)] New resolution: 720x405 [15166:16789:0412/183721.688614:VERBOSE2:vaapi_video_decode_accelerator.cc(351)] DecodeTask(): Decoder requesting a new set of surfaces [15166:15166:0412/183721.688712:VERBOSE2:vaapi_wrapper.cc(772)] Destroying 0 surfaces [15166:15166:0412/183721.688747:VERBOSE2:vaapi_video_decode_accelerator.cc(429)] TryFinishSurfaceSetChange(): Requesting 14 pictures of size: 720x405 [1:16:0412/183721.689003:VERBOSE3:rtc_video_decoder.cc(307)] ProvidePictureBuffers. texture_target=36197
,
Apr 13 2018
the log in the description was gotten by https://appr.tc/?vsc=vp9 on 2 chromebooks connected each other.
,
Apr 26 2018
Ping for triaging.
,
Apr 26 2018
Sounds like this is any issue with the chrome hw codec stack, changing component.
,
Apr 27 2018
+posciak@ for triaging vp8 issue. |
|||
►
Sign in to add a comment |
|||
Comment 1 by dongseon...@intel.com
, Apr 13 2018