Video image transmission method, device and system
Abstract
The disclosure provides a video image transmission method, including: capturing and uploading video images to a cloud server in real time, by a video image capture terminal; acquiring first speed information of uploading the video images by the video image capture terminal and second speed information of receiving the video images by the cloud server; determining, according to first speed information, second speed information and a current ratio n of a first frame rate at which the video image capture terminal captures the video images and a second frame rate at which the video image capture terminal uploads the video images, a target ratio m of the first frame rate to the second frame rate, the target ratio m and the current ratio n being both positive integers; and adjusting, according to the target ratio m, a speed at which the video image capture terminal uploads the video images, to match an adjusted speed at which the video image capture terminal uploads the video images with a speed at which the cloud server receives the video images.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A video image transmission method, comprising:
capturing video images by a video image capture terminal, and uploading the video images to a cloud server by the video image capture terminal in real time;
acquiring first speed information of uploading the video images by the video image capture terminal and second speed information of receiving the video images by the cloud server;
determining, according to the first speed information, the second speed information and a current ratio n of a first frame rate at which the video image capture terminal captures the video images to a second frame rate at which the video image capture terminal uploads the video images, a target ratio m of the first frame rate to the second frame rate, wherein the target ratio m and the current ratio n are both positive integers; and
adjusting, according to the target ratio m, a speed at which the video image capture terminal uploads the video images, so as to match an adjusted speed at which the video image capture terminal uploads the video images with a speed at which the cloud server receives the video images.
2. The video image transmission method of claim 1 , wherein adjusting, according to the target ratio m of the first frame rate to the second frame rate, the speed at which the video image capture terminal uploads the video images comprises: every time the video image capture terminal captures m frames of video images, allowing the video image capture terminal to upload one of the m frames of video images.
3. The video image transmission method of claim 1 , wherein the first speed information comprises: a bit rate at which the video image capture terminal uploads the video images, and the second speed information comprises: a bit rate at which the cloud server receives the video images; and
in response to the bit rate at which the video image capture terminal uploads the video images being greater than the bit rate at which the cloud server receives the video images, the target ratio m is set to be greater than the current ratio n; and in response to the bit rate at which the video image capture terminal uploads the video images being smaller than the bit rate at which the cloud server receives the video images, the target ratio m is set to be smaller than the current ratio n.
4. The video image transmission method of claim 3 , wherein determining, according to the first speed information, the second speed information and the current ratio n of the first frame rate at which the video image capture terminal captures the video images and the second frame rate at which the video image capture terminal uploads the video images, the target ratio m of the first frame rate to the second frame rate comprises:
determining a ratio x of the bit rate at which the video image capture terminal uploads the video images to the bit rate at which the cloud server receives the video images; and
determining the target ratio m according to a reference frame rate range and a product of the ratio x and the current ratio n.
5. The video image transmission method of claim 4 , wherein determining the target ratio m according to the reference frame rate range and the product of the ratio x and the current ratio n comprises:
determining an adjusted ratio of the first frame rate to the second frame rate according to the ratio x and the current ratio n, wherein the adjusted ratio is a value obtained by rounding the product of the ratio x and the current ratio n;
determining an adjusted second frame rate according to the first frame rate and the adjusted ratio; and
comparing the adjusted second frame rate with the reference frame rate range; taking the adjusted ratio as the target ratio m in response to the adjusted second frame rate being within the reference frame rate range; and determining the target ratio m according to a boundary value of the reference frame rate range in response to the adjusted second frame rate being out of the reference frame rate range.
6. The video image transmission method of claim 5 , wherein a minimum value of the reference frame rate range is between 14 frames/second and 20 frames/second.
7. The video image transmission method of claim 1 , further comprising:
receiving, by the cloud server, the video images uploaded by the video image capture terminal;
determining the second speed information according to a data volume of the video images received by the cloud server per unit of time; and
sending the second speed information to the video image capture terminal.
8. A video image capture terminal, comprising:
a capturing device configured to capture video images;
an uploading device configured to upload the video images captured by the capturing device to a cloud server in real time;
a processing device configured to:
acquire first speed information of uploading the video images by the uploading device and second speed information of receiving the video images by the cloud server, and
determine, according to the first speed information, the second speed information and a current ratio n of a first frame rate at which the capturing device captures the video images to a second frame rate at which the uploading device uploads the video images, a target ratio m of the first frame rate to the second frame rate, wherein the target ratio m and the current ratio n are both positive integers; and
an adjusting device configured to adjust, according to the target ratio m, a speed at which the uploading device uploads the video images, so as to match an adjusted speed at which the uploading device uploads the video images with a speed at which the cloud server receives the video images.
9. The video image capture terminal of claim 8 , wherein the adjusting device is configured to adjust the speed at which the uploading device uploads the video images, such that every time the capturing device captures m frames of video images, the uploading device uploads one of the m frames of video images.
10. The video image capture terminal of claim 8 , wherein the first speed information comprises: a bit rate at which the uploading device uploads the video images, and the second speed information comprises: a bit rate at which the cloud server receives the video images; and
the processor device is configured to set the target ratio m to be greater than the current ratio n in response to the bit rate at which the uploading device uploads the video images being greater than the bit rate at which the cloud server receives the video images, and set the target ratio m to be smaller than the current ratio n in response to the bit rate at which the uploading device uploads the video images being smaller than the bit rate at which the cloud server receives the video images.
11. The video image capture terminal of claim 10 , wherein the processing device is configured to:
determine a ratio x of the bit rate at which the uploading device uploads the video images to the bit rate at which the cloud server receives the video images, and
determine the target ratio m according to a reference frame rate range and a product of the ratio x and the current ratio n.
12. The video image capture terminal of claim 11 , wherein the processing device is configured to:
determine an adjusted ratio of the first frame rate to the second frame rate according to the ratio x and the current ratio n, wherein the adjusted ratio is a value obtained by rounding the product of the ratio x and the current ratio n,
determine an adjusted second frame rate according to the first frame rate and the adjusted ratio, and
compare the adjusted second frame rate with the reference frame rate range; take the adjusted ratio as the target ratio m in response to the adjusted second frame rate being within the reference frame rate range, and determine the target ratio m according to a boundary value of the reference frame rate range in response to the adjusted second frame rate being out of the reference frame rate range.
13. The video image capture terminal of claim 8 , wherein the adjusting device adjusts the speed at which the uploading device uploads the video images in real time.
14. A video transmission system, comprising:
the video image capture terminal of claim 8 ; and
a cloud server configured to:
receive the video images uploaded by the video image capture terminal;
determine the second speed information according to a data volume of the video images received per unit of time; and
send the second speed information to the video image capture terminal.
15. A non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, implements the video image transmission method of claim 1 .
16. An electronic device, comprising:
a processor and a memory;
wherein the memory stores a computer program which, when executed by the processor, implements the video image transmission method of claim 1 .
17. A video playing system, comprising:
the video transmission system of claim 14 ; and
a video playing terminal configured to acquire video images from the cloud server and play the video images.
18. The video transmission system of claim 14 , wherein the adjusting device is configured to adjust the speed at which the uploading device uploads the video images, such that every time the capturing device captures m frames of video images, the uploading device uploads one of the m frames of video images.
19. The video transmission system of claim 14 , wherein the first speed information comprises: a bit rate at which the uploading device uploads the video images, and the second speed information comprises: a bit rate at which the cloud server receives the video images; and
the processor device is configured to set the target ratio m to be greater than the current ratio n in response to the bit rate at which the uploading device uploads the video images being greater than the bit rate at which the cloud server receives the video images, and set the target ratio m to be smaller than the current ratio n in response to the bit rate at which the uploading device uploads the video images being smaller than the bit rate at which the cloud server receives the video images.
20. The video transmission system of claim 14 , wherein the adjusting device adjusts the speed at which the uploading device uploads the video images in real time.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.