US 12,328,529 B2
Seamless switching method, device and storage medium of hardware decoding dynamic resolution
Honglei Cui, Shanghai (CN); Hanchao Zheng, Shanghai (CN); and Hui Chen, Shanghai (CN)
Assigned to SHANGHAI BILIBILI TECHNOLOGY CO., LTD., Shanghai (CN)
Appl. No. 17/425,226
Filed by SHANGHAI BILIBILI TECHNOLOGY CO., LTD., Shanghai (CN)
PCT Filed Dec. 16, 2019, PCT No. PCT/CN2019/125522
§ 371(c)(1), (2) Date Jul. 22, 2021,
PCT Pub. No. WO2020/151398, PCT Pub. Date Jul. 30, 2020.
Claims priority of application No. 201910061500.9 (CN), filed on Jan. 23, 2019.
Prior Publication US 2022/0124281 A1, Apr. 21, 2022
Int. Cl. H04N 7/01 (2006.01); H04N 19/169 (2014.01); H04N 19/423 (2014.01); H04N 21/4402 (2011.01); H04N 21/442 (2011.01)
CPC H04N 7/0117 (2013.01) [H04N 19/188 (2014.11); H04N 19/423 (2014.11); H04N 21/440263 (2013.01); H04N 21/44209 (2013.01)] 12 Claims
OG exemplary drawing
 
1. A method of implementing a seamless and dynamic switch between resolutions based on hardware decoding, comprising:
in response to receiving packaged video data associated with a video, performing an unpacking operation on the packaged video data to obtain a video stream of the video in a first encoded format by a player, wherein the packaged video data are in a DASH (Dynamic Adaptive Streaming over HTTP) format, and wherein the first encoded format is one of two encoded formats comprising an H.264 (MPEG-4 Advanced Video Coding) encoded format or an H.265 (High Efficiency Video Coding) encoded format;
decoding the video stream in the first encoded format using a first decoder, and playing the video at a first resolution by the player;
receiving an instruction of switching to a second resolution of the video, wherein the instruction of switching is external to the packaged video data;
performing the unpacking operation on the packaged video data to obtain a video stream of the video in a second encoded format by the same player, wherein the second encoded format is another one of the two encoded formats, and wherein the second encoded format is different from the first encoded format;
receiving at least one portion of the video stream in the second encoded format by the first decoder;
initializing a second decoder of the same player based on the at least one portion of the video stream in the second encoded format received by the first decoder while decoding data associated with the video stream in the first encoded format stored in a buffer by the first decoder, wherein the second decoder of the same player is in coordination with the first decoder of the same player to implement the seamless and dynamic switch between the first resolution and the second resolution, wherein the first decoder is a decoder corresponding to the first encoded format, and the second decoder is a decoder corresponding to the second encoded format;
decoding the video stream in the second encoded format using the second decoder and playing the video at the second resolution; and
wherein the method further comprises:
generating, by the player, the instruction of switching to the second resolution of the video based on user input received by the player.