# US 12,574,574 B2 · Method, apparatus, electronic device and storage medium for video bitrate switching

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,574,574 B2
- Document ID: US12574574B2
- Status: Granted
- Kind: B2
- Application number: 18/572,165
- Filed: 2022-09-14
- Published: 2024-04-11
- Granted: 2026-03-10
- Earliest claimed: 2021-09-29
- Assignees: Beijing Bytedance Network Technology Co., Ltd.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.
- Inventors: Jianping Chen; Tianyi Liu
- Web page: https://patentgrep.com/patent/US12574574B2

## CPC

- H04N 21/23805: {Controlling the feeding rate to the network, e.g. by controlling the video pump}
- H04N 21/23439: {for generating different versions}
- H04N 21/2402: {Monitoring of the downstream path of the transmission network, e.g. bandwidth available (traffic monitoring in data switching networks H04L43/00; monitoring data switching networks utilization H04L43/0876)}
- H04N 21/6587: Control parameters, e.g. trick play commands, viewpoint selection
- H04N 21/8456: {by decomposing the content in the time domain, e.g. in time segments}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of the disclosure provides a method, apparatus, electronic device and storage medium for video bitrate switching. The method includes: in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to; determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate; and in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence.

## Claims

### Claim 1

A method for video bitrate switching, the method applied to a server end and comprising:
in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to;
determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate;
in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence; and
in response to a determination that a timestamp of the audio and video frame to be delivered is inconsistent with a target switching timestamp of the target switching audio and video frame in the target switching data, sending audio and video frames to be delivered corresponding to an original video bitrate to the client, wherein the original video bitrate is a bitrate before switching to the target video bitrate.

### Claim 2 (depends on 1)

The method of claim 1, wherein the in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to comprises:
in response to a determination that a request for bitrate switching sent by the client is received, determining the target video bitrate to be switched to based on a bitrate parameter carried in the request for bitrate switching.

### Claim 3 (depends on 1)

The method of claim 1, wherein the in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to comprises:
in response to determining to deliver audio and video frames to the client, recording a network status corresponding to the client;
in response to a determination that the network status has changed, determining that the condition for video bitrate switching is satisfied; and
determining the target video bitrate to be switched to based on the network status.

### Claim 4 (depends on 1)

The method of claim 1, wherein the determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate comprises:
determining the playback time of the delivered audio and video frame corresponding to the client, and determining the target switching data of the target video stream after the playback time, wherein the target switching data includes a target switching audio and video frame and a target switching timestamp.

### Claim 5 (depends on 1)

The method of claim 1, wherein the in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence comprises:
in response to a determination that a timestamp of the audio and video frame to be delivered is the same as the target switching timestamp of the target switching audio and video frame in the target switching data, delivering the audio and video frames in the target video stream to the client in sequence.

### Claim 6 (depends on 1)

The method of claim 1, wherein the delivering audio and video frames in the target video stream to a client in sequence comprises:
delivering a plurality of audio and video frames in the target video stream with timestamps after the target switching timestamp to the client in sequence.

### Claim 7

An electronic device comprising:
one or more processors, and
a storage device configured to store one or more programs,
the one or more programs when executed by the one or more processors, causing the one or more processors to implement operations, the operations comprising:
in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to;
determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate;
in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence; and
in response to a determination that a timestamp of the audio and video frame to be delivered is inconsistent with a target switching timestamp of the target switching audio and video frame in the target switching data, sending audio and video frames to be delivered corresponding to an original video bitrate to the client, wherein the original video bitrate is a bitrate before switching to the target video bitrate.

### Claim 8

A non-transitory storage medium comprising computer-executable instructions, the computer-executable instructions when executed by a processor of a computer, configured to perform operations, the operations comprising:
in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to;
determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate;
in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence; and
in response to a determination that a timestamp of the audio and video frame to be delivered is inconsistent with a target switching timestamp of the target switching audio and video frame in the target switching data, sending audio and video frames to be delivered corresponding to an original video bitrate to the client, wherein the original video bitrate is a bitrate before switching to the target video bitrate.

### Claim 9 (depends on 7)

The electronic device of claim 7, wherein the in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to comprises:
in response to a determination that a request for bitrate switching sent by the client is received, determining the target video bitrate to be switched to based on a bitrate parameter carried in the request for bitrate switching.

### Claim 10 (depends on 7)

The electronic device of claim 7, wherein the in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to comprises:
in response to determining to deliver audio and video frames to the client, recording a network status corresponding to the client;
in response to a determination that the network status has changed, determining that the condition for video bitrate switching is satisfied; and
determining the target video bitrate to be switched to based on the network status.

### Claim 11 (depends on 7)

The electronic device of claim 7, wherein the determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate comprises:
determining the playback time of the delivered audio and video frame corresponding to the client, and determining the target switching data of the target video stream after the playback time, wherein the target switching data includes a target switching audio and video frame and a target switching timestamp.

### Claim 12 (depends on 7)

The electronic device of claim 7, wherein the in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence comprises:
in response to a determination that a timestamp of the audio and video frame to be delivered is the same as the target switching timestamp of the target switching audio and video frame in the target switching data, delivering the audio and video frames in the target video stream to the client in sequence.

### Claim 13 (depends on 7)

The electronic device of claim 7, wherein the delivering audio and video frames in the target video stream to a client in sequence comprises:
delivering a plurality of audio and video frames in the target video stream with timestamps after the target switching timestamp to the client in sequence.

### Claim 14 (depends on 8)

The non-transitory storage medium of claim 8, wherein the in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to comprises:
in response to a determination that a request for bitrate switching sent by the client is received, determining the target video bitrate to be switched to based on a bitrate parameter carried in the request for bitrate switching.

### Claim 15 (depends on 8)

The non-transitory storage medium of claim 8, wherein the in response to a determination that a condition for video bitrate switching is satisfied, determining a target video bitrate to be switched to comprises:
in response to determining to deliver audio and video frames to the client, recording a network status corresponding to the client;
in response to a determination that the network status has changed, determining that the condition for video bitrate switching is satisfied; and
determining the target video bitrate to be switched to based on the network status.

### Claim 16 (depends on 8)

The non-transitory storage medium of claim 8, wherein the determining, based on a playback time of a delivered audio and video frame, target switching data for switching to a target video stream corresponding to the target video bitrate comprises:
determining the playback time of the delivered audio and video frame corresponding to the client, and determining the target switching data of the target video stream after the playback time, wherein the target switching data includes a target switching audio and video frame and a target switching timestamp.

### Claim 17 (depends on 8)

The non-transitory storage medium of claim 8, wherein the in response to a determination that an audio and video frame to be delivered is consistent with the target switching data, delivering audio and video frames in the target video stream to a client in sequence comprises:
in response to a determination that a timestamp of the audio and video frame to be delivered is the same as the target switching timestamp of the target switching audio and video frame in the target switching data, delivering the audio and video frames in the target video stream to the client in sequence.

### Claim 18 (depends on 8)

The non-transitory storage medium of claim 8, wherein the delivering audio and video frames in the target video stream to a client in sequence comprises:
delivering a plurality of audio and video frames in the target video stream with timestamps after the target switching timestamp to the client in sequence.
