-
公开(公告)号:US20180054649A1
公开(公告)日:2018-02-22
申请号:US15429306
申请日:2017-02-10
Inventor: Yongxing Li , Huifeng Shen , Jun Ge , Jingbo Huang , Xu Li
IPC: H04N21/438 , H04N21/2387 , H04N21/472 , H04N21/44 , H04N21/234 , H04N21/434 , H04N21/433
CPC classification number: H04N21/4383 , H04N21/234 , H04N21/2387 , H04N21/4331 , H04N21/4345 , H04N21/44 , H04N21/47217
Abstract: Disclosed is a method and device for switching video streams. The method comprises: acquiring video streams of a video in response to receiving a playback request for the video sent by a terminal, the video streams comprising: a video stream with a first group of pictures (GOP) frame number and a video stream with a second GOP frame number; sending the video stream with the first GOP frame number to the terminal, searching for a third key frame in the video stream with the first GOP frame number, and extracting a decoding time stamp (DTS) of the third key frame; searching the video stream with the second GOP frame number for a frame having an identical DTS; determining whether the frame is a fourth key frame in response to finding the frame having the identical DTS; and sending the video stream with the second GOP frame number to the terminal.
-
公开(公告)号:US09961398B2
公开(公告)日:2018-05-01
申请号:US15429306
申请日:2017-02-10
Inventor: Yongxing Li , Huifeng Shen , Jun Ge , Jingbo Huang , Xu Li
IPC: H04N21/438 , H04N21/2387 , H04N21/472 , H04N21/44 , H04N21/234 , H04N21/434 , H04N21/433
CPC classification number: H04N21/4383 , H04N21/234 , H04N21/2387 , H04N21/4331 , H04N21/4345 , H04N21/44 , H04N21/47217
Abstract: Disclosed is a method and device for switching video streams. The method comprises: acquiring video streams of a video in response to receiving a playback request for the video sent by a terminal, the video streams comprising: a video stream with a first group of pictures (GOP) frame number and a video stream with a second GOP frame number; sending the video stream with the first GOP frame number to the terminal, searching for a third key frame in the video stream with the first GOP frame number, and extracting a decoding time stamp (DTS) of the third key frame; searching the video stream with the second GOP frame number for a frame having an identical DTS; determining whether the frame is a fourth key frame in response to finding the frame having the identical DTS; and sending the video stream with the second GOP frame number to the terminal.
-