IP Library Granted Patent US 11,190,773
Granted Patent B2
US 11,190,773 · App. 16/634,548 · Granted Nov 30, 2021

Video coder-based code rate control method and device, and video server

Inventor: Li Zhu (Shenzhen, CN)
Assignee: ARASHI VISION INC.
H04N19/146H04N19/172
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,190,773
App. No.
16/634,548
Granted
Nov 30, 2021
Kind
B2
Abstract

The invention is applicable to the field of videos and provides a video coder-based code rate control method and device, and a video server. The method comprises the following steps: in the video playback process, when a code rate needs to be switched, modifying time stamps of frames transmitted to the video coder in a switching process; transmitting, to the video coder, the frames having modified time stamps; and for each frame output by the video coder, restoring the time stamp of the output frame to be the original time stamp. The present invention avoids the stuttering resulted from interruption of coding, providing a very smooth switching process.

Claims (36)

1. A video coder-based code rate control method, comprising steps of:

modifying time stamps of frames transmitted to a video coder in a switching process when a code rate needs to be switched during video playback;

transmitting the frames having modified time stamps to the video coder; and

restoring time stamps of output frames to the original time stamps for each output frame of the video coder;

wherein the step of modifying time stamps of frames transmitted to a video coder in a switching process when a code rate needs to be switched during video playback, specifically comprising steps of:

modifying a first time stamp interval between neighbor frames at a first code rate to a second time stamp interval between neighbor frames at a second code rate when the first code rate needs to be switched to the second code rate during video playback, where a ratio of the second code rate to the first code rate is equal to a ratio of the second time stamp interval to the first time stamp interval; and

modifying the time stamp of the current frames based on the actual time stamp of the latest frames transmitted to the video coder and the second time stamp interval between neighbor frames.

2. The method of claim 1 , wherein, before the step of modifying time stamps of frames transmitted to a video coder in a switching process when a code rate needs to be switched during video playback, the method further comprises steps of:

configuring a fixed frame rate and code rate, and transmitting frames based on correct time stamps to the video coder for coding during the video coder initialization; and

coding by the video coder at the configured code rate, and outputting videos at a code rate being consistent with the configured code rate.

3. The method of claim 2 , wherein the correct time stamps mean that a time stamp interval between neighbor frames corresponds to the frame rate, whereby the output video code rate by the video coder is consistent with the configured code rate.

4. The method of claim 1 , wherein the step of restoring time stamps of output frames to the original time stamps for each output frame of the video coder, specifically comprises steps of:

creating a mapping table for correct time stamps and modified time stamps;

adding both the original time stamps and the modified time stamps of the modified frames to the mapping table accordingly;

finding the corresponding original time stamp from the mapping table based on the marked time stamp of the received frames, for each output frame of the video coder output; and

restoring the time stamps of the output frames to original time stamps.

5. A non-transitory computer readable medium having stored thereon, a set of computer-executable instructions for causing one or more processors to perform the steps of the video coder-based code rate control method of claim 1 .

6. A video server, comprising:

one or more processors;

a non-transitory, computer readable memory; and

one or more computer-executable instructions; where the one or more computer-executable instructions are stored in the memory and are executable by the one or more processors to perform the steps of:

modifying time stamps of frames transmitted to a video coder in a switching process when a code rate needs to be switched during video playback;

transmitting the frames having modified time stamps to the video coder; and

restoring time stamps of output frames to the original time stamps for each output frame of the video code;

wherein the step of modifying time stamps of frames transmitted to a video coder in a switching process when a code rate needs to be switched during video playback, specifically comprising steps of:

modifying a first time stamp interval between neighbor frames at a first code rate to a second time stamp interval between neighbor frames at a second code rate when the first code rate needs to be switched to the second code rate during video playback, where a ratio of the second code rate to the first code rate is equal to a ratio of the second time stamp interval to the first time stamp interval; and

modifying the time stamp of the current frames based on the actual time stamp of the latest frames transmitted to the video coder and the second time stamp interval between neighbor frames.

7. The video server of claim 6 , wherein, before the step of modifying time stamps of frames transmitted to a video coder in a switching process when a code rate needs to be switched during video playback, the method further comprises steps of:

configuring a fixed frame rate and code rate, and transmitting frames based on correct time stamps to the video coder for coding during the video coder initialization; and

coding by the video coder at the configured code rate, and outputting videos at a code rate being consistent with the configured code rate.

8. The video server of claim 7 , wherein the correct time stamps mean that a time stamp interval between neighbor frames corresponds to the frame rate, whereby the output video code rate by the video coder is consistent with the configured code rate.

9. The video server of claim 6 , wherein the step of restoring time stamps of output frames to the original time stamps for each output frame of the video coder, specifically comprises steps of:

creating a mapping table for correct time stamps and modified time stamps;

adding both the original time stamps and the modified time stamps of the modified frames to the mapping table accordingly;

finding the corresponding original time stamp from the mapping table based on the marked time stamp of the received frames, for each output frame of the video coder output; and

restoring the time stamps of the output frames to original time stamps.

Assignments (2)
CHANGE OF NAME Recorded Sep 7, 2021
From: ZHU, LI
To: ARASHI VISION INC.
Reel/Frame 057403/0971 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 27, 2020
From: ZHU, LI
To: SHENZHEN ARASHI VISION COMPANY LIMITED
Reel/Frame 051635/0842 →
Priority Claims (1)
CN 201710632656.9 · Jul 28, 2017 · national
Continuity (1)
Related Publication 20210092400A1 · Mar 25, 2021