CN111225254A - Video transmission method, device, terminal equipment and storage medium - Google Patents

Video transmission method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111225254A
CN111225254A CN202010066589.0A CN202010066589A CN111225254A CN 111225254 A CN111225254 A CN 111225254A CN 202010066589 A CN202010066589 A CN 202010066589A CN 111225254 A CN111225254 A CN 111225254A
Authority
CN
China
Prior art keywords
video
packet
bandwidth value
preset
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010066589.0A
Other languages
Chinese (zh)
Other versions
CN111225254B (en
Inventor
吕亚亚
李云鹏
谢文龙
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010066589.0A priority Critical patent/CN111225254B/en
Publication of CN111225254A publication Critical patent/CN111225254A/en
Application granted granted Critical
Publication of CN111225254B publication Critical patent/CN111225254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • H04N21/26216Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2385Channel allocation; Bandwidth allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a video transmission method, a video transmission device, terminal equipment and a storage medium, which are applied to a picture transmission terminal in a video network and comprise the following steps: acquiring a packet sequence of a first video packet and a packet sequence of a second video packet returned by the image transmission server within a preset time period, and determining a packet loss rate according to the first video packet sequence and the second video packet sequence; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.

Description

Video transmission method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a video transmission method, an apparatus, a terminal device, and a storage medium.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users.
In the network transmission process of sending the video packet to the video transmission equipment by the video networking terminal, the sampling parameter of the video sent to the video transmission equipment by the video networking terminal cannot be adjusted in real time according to the network condition, so that the fluency of video transmission is ensured, and the video delay is reduced.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a video transmission method, apparatus, terminal device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a video transmission method, where the method is applied to an image transmission terminal in a video network, and the method includes:
acquiring a packet sequence of a first video packet within a preset time period, wherein the packet sequence of the first video packet is the packet sequence of the video packet sent by the graph transmission terminal to the graph transmission server by using a preset initial bandwidth value;
acquiring a packet sequence of a second video packet returned by the image transmission server, wherein the packet sequence of the second video packet is the packet sequence of the video packet received by the image transmission server and sent by the image transmission terminal;
determining the packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet;
adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value;
determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule;
and sending the video sampling parameter corresponding to the adjusted bandwidth value to a video networking terminal so that the video networking terminal adjusts the video sampling parameter transmitted by the current video packet according to the video sampling parameter.
Optionally, when acquiring a packet sequence of the second video packet returned by the image transmission server, the method further includes:
and acquiring a predicted bandwidth value returned by the image transmission server, wherein the predicted bandwidth value returned by the image transmission server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet.
Optionally, the predicted bandwidth value returned by the graph-passing server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet, and includes:
the image transmission server obtains a time delay numerical value corresponding to the second video packet by adopting a Kalman filtering algorithm according to a timestamp carried by the video packet corresponding to the packet sequence of the second video packet;
and the image transmission server determines a predicted bandwidth value of video packet transmission in the preset time period according to the capacity of the video packet corresponding to the packet sequence of the second video packet, the timestamp carried by the video packet corresponding to the packet sequence of the second video packet and the time delay value of the video packet corresponding to the packet sequence of the second video packet.
Optionally, the adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value includes:
if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value;
and determining the minimum value of the intermediate bandwidth value and the predicted bandwidth value returned by the image transmission server as the adjusted bandwidth value.
Optionally, if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value, including:
and if the packet loss rate is greater than a first preset value, reducing the preset initial bandwidth value by a third preset value to obtain the intermediate bandwidth value.
Optionally, if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value, including:
and if the packet loss rate is smaller than a second preset value, increasing the preset initial bandwidth value by the third preset value to obtain the intermediate bandwidth value.
Optionally, the determining, according to the packet order of the first video packet and the packet order of the second video packet, a packet loss rate of video packet transmission in the preset time period includes:
determining the number of video packets corresponding to the packet sequence of the first video packet according to the packet sequence of the first video packet;
determining the number of video packets corresponding to the packet sequence of the second video packet according to the packet sequence of the second video packet;
dividing the difference value between the number of the video packets corresponding to the packet sequence of the first video packet and the number of the video packets corresponding to the packet sequence of the second video packet by the number of the video packets corresponding to the packet sequence of the first video packet, and determining the obtained result as the packet loss rate of video packet transmission in the preset time period.
In a second aspect, an embodiment of the present invention provides a video transmission apparatus, where the apparatus is applied to a video transmission terminal in a video network, and the apparatus includes:
the first obtaining module is used for obtaining a packet sequence of a first video packet within a preset time period, wherein the packet sequence of the first video packet is the packet sequence of the video packet sent by the image transmission terminal to the image transmission server by using a preset initial bandwidth value;
a second obtaining module, configured to obtain a packet sequence of a second video packet returned by the mapping server, where the packet sequence of the second video packet is a packet sequence of the video packet received by the mapping server and sent by the mapping terminal;
a packet loss rate determining module, configured to determine a packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet;
the bandwidth adjusting module is used for adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjusting rule, and determining an adjusted bandwidth value;
the sampling parameter adjusting module is used for determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjusting rule;
and the sending module is used for sending the video sampling parameters corresponding to the adjusted bandwidth values to a video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters.
Optionally, the second obtaining module is further configured to:
and acquiring a predicted bandwidth value returned by the image transmission server, wherein the predicted bandwidth value returned by the image transmission server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet.
Optionally, the internet of view further includes a server, the server further includes a prediction module, and the prediction module includes:
the computing module is used for obtaining a time delay numerical value corresponding to the second video packet by adopting a Kalman filtering algorithm according to the timestamp carried by the video packet corresponding to the packet sequence of the second video packet;
and the prediction module is used for determining a prediction bandwidth value of video packet transmission in the preset time period according to the capacity of the video packet corresponding to the packet sequence of the second video packet, the timestamp carried by the video packet corresponding to the packet sequence of the second video packet and the time delay value of the video packet corresponding to the packet sequence of the second video packet.
Optionally, the bandwidth adjusting module is configured to:
if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value;
and determining the minimum value of the intermediate bandwidth value and the predicted bandwidth value returned by the image transmission server as the adjusted bandwidth value.
Optionally, the bandwidth adjusting module is specifically configured to:
and if the packet loss rate is greater than a first preset value, reducing the preset initial bandwidth value by a third preset value to obtain the intermediate bandwidth value.
Optionally, the bandwidth adjusting module is specifically configured to:
and if the packet loss rate is smaller than a second preset value, increasing the preset initial bandwidth value by the third preset value to obtain the intermediate bandwidth value.
Optionally, the packet loss rate determining module is configured to:
determining the number of video packets corresponding to the packet sequence of the first video packet according to the packet sequence of the first video packet;
determining the number of video packets corresponding to the packet sequence of the second video packet according to the packet sequence of the second video packet;
dividing the difference value between the number of the video packets corresponding to the packet sequence of the first video packet and the number of the video packets corresponding to the packet sequence of the second video packet by the number of the video packets corresponding to the packet sequence of the first video packet, and determining the obtained result as the packet loss rate of video packet transmission in the preset time period.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the video transmission method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed, the computer program implements the video transmission method provided in the first aspect.
The embodiment of the invention has the following advantages:
the method comprises the steps that by applying the characteristics of a video network, an image transmission terminal obtains a packet sequence of a first video packet and a packet sequence of a second video packet returned by an image transmission server in a preset time period, and determines the packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a video transmission method of the present invention;
FIG. 2 is a flow chart of steps of another embodiment of a video transmission method of the present invention;
FIG. 3 is a block diagram of a video transmission apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
The noun explains:
video code rate: which is the number of data bits transmitted per unit time during data transmission, is typically in kbps, i.e., kilobits per second. The popular understanding is that the sampling rate is higher, the higher the sampling rate in unit time is, the higher the precision is, and the closer the processed file is to the original file, wherein the bandwidth is represented by the video code rate.
Frame rate: (Frame rate) is the frequency (rate) at which bitmap images appear continuously on the display in units of frames. The term applies equally to film and video cameras, computer graphics and motion capture systems. The frame rate may also be referred to as a frame frequency and is expressed in hertz (Hz).
The display resolution (screen resolution) is the precision of the screen image and refers to how many pixels can be displayed on the display. Since the dots, lines and planes on the screen are all composed of pixels, the more pixels the display can display, the finer the picture is, and the more information can be displayed in the same screen area, so that the resolution is a very important performance index. The whole image can be thought of as a large chessboard, and the resolution is expressed by the number of all the longitude and latitude intersections. Under the condition of a certain display resolution, the smaller the display screen is, the clearer the image is, on the contrary, when the size of the display screen is fixed, the clearer the image is when the display resolution is higher.
Based on the characteristics of the video network, one of the core concepts of the embodiments of the present invention is provided, in which, following a protocol of the video network, in a preset time period, the packet sequence of the first video packet and the packet sequence of the second video packet returned by the video server are obtained by the video transmission terminal, and the packet loss rate of video packet transmission in the preset time period is determined according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
An embodiment of the present invention provides a video transmission method, which is used for adjusting video sampling parameters by acquiring a bandwidth condition in real time in a process of transmitting a video packet to a video transmission terminal by a video networking terminal. The execution main body of the embodiment is a video transmission device and is arranged on the image transmission terminal.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a video transmission method according to the present invention is shown, where the method may be applied to a video transmission terminal in a video network, and specifically may include the following steps:
s101, acquiring a packet sequence of a first video packet within a preset time period, wherein the packet sequence of the first video packet is the packet sequence of the video packet sent by the image transmission terminal to the image transmission server by using a preset initial bandwidth value;
specifically, the video network terminal is respectively connected with the acquisition device and the image transmission terminal, the acquisition device sends the acquired video packet to the video network terminal according to a preset initial bandwidth value, and the video network terminal sends the video packet to the image transmission terminal according to the preset initial bandwidth value.
S102, acquiring a packet sequence of a second video packet returned by the image transmission server, wherein the packet sequence of the second video packet is the packet sequence of the video packet received by the image transmission server and sent by the image transmission terminal;
specifically, in the process that the graph-based transmission terminal sends the video packet to the graph-based transmission server, a packet loss phenomenon may occur, and the graph-based transmission server determines the received video packet sent by the graph-based transmission terminal as the second video packet and obtains a packet sequence of the second video packet.
It should be noted that the first video packet and the second video packet include at least one video packet, and the packet sequence of the first video packet and the packet sequence of the second video packet may be the same or different, which is not specifically limited in the embodiment of the present invention.
S103, determining the packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet;
specifically, the map transmission terminal obtains a packet sequence of a first video packet and a packet sequence of a second video packet, calculates a packet loss rate of video packet transmission in a preset time period according to the first video packet sequence and the second video packet sequence, and can obtain which video packets the lost video packets are by comparing the packet sequence of the first video packet with the packet sequence of the second video packet.
S104, adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining the adjusted bandwidth value;
specifically, the graph transmission terminal obtains the packet loss rate in a preset time period, adjusts the preset initial bandwidth value according to a preset bandwidth adjustment rule, and determines the adjusted bandwidth value, wherein if the packet loss rate is high, the preset initial bandwidth value needs to be decreased, and if the packet loss rate is low, the preset initial bandwidth value needs to be increased.
Illustratively, after obtaining the packet loss rate, the graph transmission terminal determines whether the packet loss rate is greater than 10%, if the packet loss rate is greater than 10%, reduces the preset initial bandwidth value by 8%, then compares the preset initial bandwidth value with the predicted bandwidth value returned by the server, and takes the minimum value of the preset initial bandwidth value and the predicted bandwidth value returned by the server as the adjusted bandwidth value, if the packet loss rate is less than 10% but greater than 2%, keeps the preset initial bandwidth value unchanged, compares the preset initial bandwidth value with the predicted bandwidth value returned by the server, and takes the minimum value as the adjusted bandwidth value; and if the bandwidth is less than 2%, increasing the preset initial bandwidth value by 8%, comparing the preset initial bandwidth value with the predicted bandwidth value returned by the server, and taking the minimum value as the adjusted bandwidth value.
S105, determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule;
specifically, different bandwidth values correspond to different video sampling parameters, wherein the video sampling parameters include resolution, frame rate and code rate; and the image transmission terminal determines a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule, wherein the preset video sampling adjustment rule is obtained through an empirical value.
And S106, sending the video sampling parameter corresponding to the adjusted bandwidth value to a video networking terminal so that the video networking terminal adjusts the video sampling parameter transmitted by the current video packet according to the video sampling parameter.
Specifically, the image transmission terminal sends the video sampling parameter corresponding to the adjusted bandwidth value to the video networking terminal, and the video networking terminal adjusts the video sampling parameter, namely the resolution, the frame rate and the code rate, of the current video packet transmission according to the video sampling parameter period corresponding to the adjusted bandwidth value.
According to the video transmission method provided by the embodiment of the invention, the packet sequence of a first video packet is acquired by the image transmission terminal within a preset time period; the image transmission terminal acquires a packet sequence of a second video packet returned by the image transmission server, and determines the packet loss rate of video packet transmission in a preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; the image transmission terminal sends the video sampling parameters corresponding to the adjusted bandwidth values to the video network terminal, so that the video network terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, and thus, the video network terminal can adjust the video sampling parameters in real time according to different network conditions, the smoothness of video transmission is guaranteed, and video delay is reduced.
The method provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, when acquiring a packet sequence of the second video packet returned by the image transmission server, the method further includes:
and acquiring a predicted bandwidth value returned by the image transmission server, wherein the predicted bandwidth value returned by the image transmission server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet.
Specifically, when the image transmission server returns the packet sequence of the second video packet, a predicted bandwidth value is also returned, the predicted bandwidth value is calculated according to the timestamp carried by the video packet corresponding to the packet sequence of the second video packet, that is, the second video packet, and the capacity of each second video packet, and the packet sequence of the second video packet and the predicted bandwidth value are sent to the image transmission terminal.
Optionally, the predicted bandwidth value returned by the graph-passing server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet, and includes:
the image transmission server obtains a time delay numerical value corresponding to the second video packet by adopting a Kalman filtering algorithm according to a timestamp carried by the video packet corresponding to the packet sequence of the second video packet;
and the image transmission server determines a predicted bandwidth value of video packet transmission in the preset time period according to the capacity of the video packet corresponding to the packet sequence of the second video packet, the timestamp carried by the video packet corresponding to the packet sequence of the second video packet and the time delay value of the video packet corresponding to the packet sequence of the second video packet.
Specifically, a video packet sent by an image transmission terminal to an image transmission server is determined as a first video packet, the image transmission server determines a received video packet as a second video packet, the image transmission server acquires a timestamp carried by the second video packet, and a time delay numerical value corresponding to the second video packet in a preset time is calculated by adopting a Kalman filtering algorithm; the video packets corresponding to the packet sequence of the first video packet are the first video packet, and the video packets corresponding to the packet sequence of the second video packet are the second video packet.
And the image transmission server calculates to obtain a basic bandwidth according to the total capacity of all the second video packets and the preset time corresponding to the time stamp, namely, the total capacity is divided by the preset time, and the obtained basic bandwidth is adjusted by using a time delay value to obtain a predicted bandwidth value of video packet transmission in a preset time period.
Optionally, the adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value includes:
if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value;
and determining the minimum value of the intermediate bandwidth value and the predicted bandwidth value returned by the image transmission server as the adjusted bandwidth value.
Specifically, the graph transmission terminal judges the packet loss rate according to a preset bandwidth adjustment rule, and if the packet loss rate meets a preset range, the graph transmission terminal adjusts the initial bandwidth value to obtain an intermediate bandwidth value; and comparing the intermediate bandwidth value with the predicted bandwidth value returned by the image transmission server, and determining the minimum value as the adjusted bandwidth value.
Optionally, if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value, including:
and if the packet loss rate is greater than a first preset value, reducing the preset initial bandwidth value by a third preset value to obtain the intermediate bandwidth value.
Specifically, after obtaining the packet loss rate, the graph transmission terminal adjusts a preset initial bandwidth value by using a preset bandwidth adjustment rule, specifically:
if the packet loss rate is greater than the first preset value, the mapping terminal reduces the preset initial bandwidth value by a third preset value to obtain an intermediate bandwidth value, wherein the third preset value is the product of the preset initial bandwidth value and a preset percentage; and comparing the intermediate bandwidth value with the predicted bandwidth value returned by the server, and determining the minimum value as the adjusted bandwidth value.
For example: after obtaining the packet loss rate, the mapping terminal determines whether the packet loss rate is greater than 10%, if the packet loss rate is greater than 10% (the first preset value), the preset initial bandwidth value is reduced by 8% (the third preset value), then the packet loss rate is compared with the predicted bandwidth value returned by the server, the minimum value of the two is taken as the adjusted bandwidth value, if the packet loss rate is greater than 10%, the preset initial bandwidth value is 5Mkb/s, and the predicted bandwidth value returned by the server is 5.2Mkb/s, the preset initial bandwidth value is reduced by 8%, the obtained intermediate bandwidth value is 5-5 × 8% — 4.6, 4.6 and 5.2 are compared, 4.6Mkb/s is determined as the adjusted bandwidth value, and 5Mkb/s is adjusted to 4.6 Mkb/s.
Optionally, if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value, including:
and if the packet loss rate is smaller than a second preset value, increasing the preset initial bandwidth value by the third preset value to obtain the intermediate bandwidth value.
Further, after obtaining the packet loss rate, the map transmission terminal adjusts a preset initial bandwidth value by using a preset bandwidth adjustment rule, specifically:
if the packet loss rate is greater than the second preset value, the mapping terminal increases the preset initial bandwidth value by a third preset value to obtain a middle bandwidth value, wherein the third preset value is the product of the preset initial bandwidth value and a preset percentage; and comparing the intermediate bandwidth value with the predicted bandwidth value returned by the server, and determining the minimum value as the adjusted bandwidth value.
For example: after obtaining the packet loss rate, the graph transmission terminal judges whether the packet loss rate is less than 2%, if the packet loss rate is less than 2% (the second preset value), the preset initial bandwidth value is increased by 8% (the third preset value), then the comparison is performed with the predicted bandwidth value returned by the server, the minimum value of the two is taken as the adjusted bandwidth value, if the packet loss rate is less than 2%, the preset initial bandwidth value is 5Mkb/s, and the predicted bandwidth value returned by the server is 5.2Mkb/s, the preset initial bandwidth value is increased by 8%, the obtained intermediate bandwidth value is 5+5 × 8% — 5.4, 5.4 and 5.2 are compared, and the minimum value 5.2Mkb/s is determined as the adjusted bandwidth value.
And if the packet loss rate is greater than the second preset value and less than the first preset value, keeping the preset initial bandwidth value unchanged, comparing the preset initial bandwidth value with the predicted bandwidth value, and determining the minimum value as the adjusted bandwidth value.
It should be noted that the first preset value, the second preset value, and the third preset value may be set according to actual needs, and are not specifically limited in the embodiment of the present invention.
Optionally, the determining, according to the packet order of the first video packet and the packet order of the second video packet, a packet loss rate of video packet transmission in the preset time period includes:
determining the number of video packets corresponding to the packet sequence of the first video packet according to the packet sequence of the first video packet;
determining the number of video packets corresponding to the packet sequence of the second video packet according to the packet sequence of the second video packet;
dividing the difference value between the number of the video packets corresponding to the packet sequence of the first video packet and the number of the video packets corresponding to the packet sequence of the second video packet by the number of the video packets corresponding to the packet sequence of the first video packet, and determining the obtained result as the packet loss rate of video packet transmission in the preset time period.
Specifically, the image transmission terminal determines the number of video packets corresponding to the packet sequence of the first video packet according to the packet sequence of the first video packet, determines the number of video packets corresponding to the packet sequence of the second video packet according to the packet sequence of the second video packet, and divides the difference value between the number of video packets corresponding to the packet sequence of the first video packet and the number of video packets corresponding to the packet sequence of the second video packet by the number of video packets corresponding to the packet sequence of the first video packet to obtain the packet loss rate of video packet transmission in a preset time period.
Fig. 2 is a flowchart of steps of another embodiment of a video transmission method according to the present invention, as shown in fig. 2, specifically:
s201, the video networking terminal sends a video packet to the image transmission terminal according to a preset initial bandwidth value, the image transmission terminal sends the video packet to the image transmission server, and the video packet sent by the image transmission terminal to the image transmission server is determined to be a first video packet;
s202, determining the video packet received by the image transmission server as a second video packet, and the image transmission server invoking a bandwidth prediction model to predict a predicted bandwidth within a preset time period, that is, a predicted bandwidth value in the foregoing embodiment;
s203, the image transmission server returns the calculated predicted bandwidth value and the received packet sequence of the second video packet to the image transmission terminal;
s204, the image transmission terminal receives feedback information returned by the image transmission server, namely the packet sequence and the predicted bandwidth value of a second video packet returned by the image transmission server;
s205, the graph transmission terminal calculates the packet loss rate according to the packet sequence of the first video packet and the packet sequence of the second video packet in a preset time period;
s206, the image transmission terminal judges whether the packet loss rate is greater than 10%, if so, S207 is executed; if not, executing S208;
s207, reducing the preset initial bandwidth value by 8% to obtain a middle bandwidth value;
s208, the image transmission terminal judges whether the packet loss rate is less than 2%, if so, S209 is executed; if not, executing S210;
s209, increasing the preset initial bandwidth value by 8% to obtain a middle bandwidth value;
s210, keeping the original preset initial bandwidth value unchanged;
s211, comparing the intermediate bandwidth value with the predicted bandwidth value, and taking the minimum value of the intermediate bandwidth value and the predicted bandwidth value as the adjusted bandwidth;
s212, according to the adjusted bandwidth, calling an adjustment sampling module, namely presetting a video sampling adjustment rule, determining video sampling parameters, and sending the video sampling parameters to a video network terminal;
the method specifically comprises the following steps: wherein, the bandwidth mentioned below is the adjusted bandwidth value;
when the bandwidth is less than 0.4mb/s, the resolution is adjusted to be the height 144 width 192, the frame rate is 20, and the code rate is the current bandwidth; when the bandwidth is larger than 0.4 and smaller than 0.9, the resolution is adjusted to be 240 high and 320 wide, the frame rate is 20, and the code rate is the current bandwidth; when the bandwidth is larger than 0.9 and smaller than 1.6, the resolution is adjusted to be 360 high and 480 wide, the frame rate is 20, and the code rate is the current bandwidth; when the bandwidth is more than 1.6 and less than 4.67, the resolution is adjusted to be 480 high and 640 wide, the frame rate is 20, and the code rate is the current bandwidth; when the bandwidth is larger than 4.67 and smaller than 11, the resolution is adjusted to be 720 high and 1280 wide, the frame rate is 30, and the code rate is the current bandwidth; when the bandwidth is larger than 11, the resolution is adjusted to be 1920 with a height of 1080 and a frame rate of 30, and the code rate is the current bandwidth; the adjustment strategy is used for presetting a video sampling adjustment rule, so that the fluency of the video under different network bandwidths is guaranteed.
In the video transmission method provided by the embodiment of the invention, the packet sequence of the first video packet and the packet sequence of the second video packet returned by the image transmission server are obtained by the image transmission terminal within the preset time period, and the packet loss rate of video packet transmission within the preset time period is determined according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
Another embodiment of the present invention provides a video transmission apparatus for performing the method provided by the above embodiment.
Referring to fig. 3, a block diagram of a video transmission apparatus according to an embodiment of the present invention is shown, where the apparatus may be applied to a video transmission terminal in a video network, and specifically may include the following modules: a first obtaining module 301, a second obtaining module 302, a packet loss rate determining module 303, a bandwidth adjusting module 304, a sampling parameter adjusting module 305, and a sending module 306, where:
the first obtaining module 301 is configured to obtain a packet sequence of a first video packet within a preset time period, where the packet sequence of the first video packet is a packet sequence of a video packet sent by the map transmission terminal to the map transmission server by using a preset initial bandwidth value;
the second obtaining module 302 is configured to obtain a packet sequence of a second video packet returned by the mapping server, where the packet sequence of the second video packet is a packet sequence of the video packet received by the mapping server and sent by the mapping terminal;
the packet loss rate determining module 303 is configured to determine, according to the packet sequence of the first video packet and the packet sequence of the second video packet, a packet loss rate of video packet transmission in the preset time period;
the bandwidth adjusting module 304 is configured to adjust the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjusting rule, and determine an adjusted bandwidth value;
the sampling parameter adjusting module 305 is configured to determine a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule;
the sending module 306 is configured to send the video sampling parameter corresponding to the adjusted bandwidth value to a video networking terminal, so that the video networking terminal adjusts the video sampling parameter transmitted by the current video packet according to the video sampling parameter.
According to the video transmission device provided by the embodiment of the invention, the packet sequence of the first video packet and the packet sequence of the second video packet returned by the image transmission server are obtained by the image transmission terminal in the preset time period, and the packet loss rate of video packet transmission in the preset time period is determined according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
The device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the second obtaining module 302 is further configured to:
and acquiring a predicted bandwidth value returned by the image transmission server, wherein the predicted bandwidth value returned by the image transmission server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet.
Optionally, the internet of view further includes a server, the server further includes a prediction module, and the prediction module includes:
the computing module is used for obtaining a time delay numerical value corresponding to the second video packet by adopting a Kalman filtering algorithm according to the timestamp carried by the video packet corresponding to the packet sequence of the second video packet;
and the prediction module is used for determining a prediction bandwidth value of video packet transmission in the preset time period according to the capacity of the video packet corresponding to the packet sequence of the second video packet, the timestamp carried by the video packet corresponding to the packet sequence of the second video packet and the time delay value of the video packet corresponding to the packet sequence of the second video packet.
Optionally, the bandwidth adjusting module 304 is configured to:
if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value;
and determining the minimum value of the intermediate bandwidth value and the predicted bandwidth value returned by the image transmission server as the adjusted bandwidth value.
Optionally, the bandwidth adjusting module 304 is specifically configured to:
and if the packet loss rate is greater than a first preset value, reducing the preset initial bandwidth value by a third preset value to obtain the intermediate bandwidth value.
Optionally, the bandwidth adjusting module 304 is specifically configured to:
and if the packet loss rate is smaller than a second preset value, increasing the preset initial bandwidth value by the third preset value to obtain the intermediate bandwidth value.
Optionally, the packet loss rate determining module 303 is specifically configured to:
determining the number of video packets corresponding to the packet sequence of the first video packet according to the packet sequence of the first video packet;
determining the number of video packets corresponding to the packet sequence of the second video packet according to the packet sequence of the second video packet;
dividing the difference value between the number of the video packets corresponding to the packet sequence of the first video packet and the number of the video packets corresponding to the packet sequence of the second video packet by the number of the video packets corresponding to the packet sequence of the first video packet, and determining the obtained result as the packet loss rate of video packet transmission in the preset time period.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to the video transmission device provided by the embodiment of the invention, the packet sequence of the first video packet and the packet sequence of the second video packet returned by the image transmission server are obtained by the image transmission terminal in the preset time period, and the packet loss rate of video packet transmission in the preset time period is determined according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
Still another embodiment of the present invention provides a terminal device, configured to execute the video transmission method provided in the foregoing embodiment.
Fig. 4 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 4, the electronic device includes: at least one processor 401 and memory 402;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the video transmission method provided by the above-mentioned embodiments.
In the embodiment of the invention, the terminal equipment is a graph transmission terminal.
In the terminal device provided in this embodiment, the packet sequence of the first video packet and the packet sequence of the second video packet returned by the packet forwarding server are obtained by the packet forwarding terminal within a preset time period, and the packet loss rate of video packet transmission within the preset time period is determined according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the video transmission method provided in any of the above embodiments.
According to the computer-readable storage medium of the embodiment, the packet sequence of the first video packet and the packet sequence of the second video packet returned by the mapping server are obtained by the mapping terminal within the preset time period, and the packet loss rate of video packet transmission within the preset time period is determined according to the packet sequence of the first video packet and the packet sequence of the second video packet; adjusting a preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value; determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule; and sending the video sampling parameters corresponding to the adjusted bandwidth values to the video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters, thus the video networking terminal can adjust the video sampling parameters in real time according to different network conditions, thereby ensuring the smoothness of video transmission and reducing video delay.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The video transmission method and the video transmission apparatus provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A video transmission method is applied to a picture transmission terminal in a video network, and comprises the following steps:
acquiring a packet sequence of a first video packet within a preset time period, wherein the packet sequence of the first video packet is the packet sequence of the video packet sent by the graph transmission terminal to the graph transmission server by using a preset initial bandwidth value;
acquiring a packet sequence of a second video packet returned by the image transmission server, wherein the packet sequence of the second video packet is the packet sequence of the video packet received by the image transmission server and sent by the image transmission terminal;
determining the packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet;
adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining an adjusted bandwidth value;
determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjustment rule;
and sending the video sampling parameter corresponding to the adjusted bandwidth value to a video networking terminal so that the video networking terminal adjusts the video sampling parameter transmitted by the current video packet according to the video sampling parameter.
2. The method according to claim 1, wherein when the mapping terminal obtains the packet sequence of the second video packet returned by the mapping server, the method further comprises:
and acquiring a predicted bandwidth value returned by the image transmission server, wherein the predicted bandwidth value returned by the image transmission server is determined according to the timestamp and the capacity carried by the video packet corresponding to the packet sequence of the second video packet.
3. The method according to claim 2, wherein the predicted bandwidth value returned by the mapping server is determined according to the timestamp and the capacity size carried by the video packet corresponding to the packet sequence of the second video packet, and includes:
the image transmission server obtains a time delay numerical value corresponding to the second video packet by adopting a Kalman filtering algorithm according to a timestamp carried by the video packet corresponding to the packet sequence of the second video packet;
and the image transmission server determines a predicted bandwidth value of video packet transmission in the preset time period according to the capacity of the video packet corresponding to the packet sequence of the second video packet, the timestamp carried by the video packet corresponding to the packet sequence of the second video packet and the time delay value of the video packet corresponding to the packet sequence of the second video packet.
4. The method according to claim 2, wherein the adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjustment rule, and determining the adjusted bandwidth value comprises:
if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value;
and determining the minimum value of the intermediate bandwidth value and the predicted bandwidth value returned by the image transmission server as the adjusted bandwidth value.
5. The method according to claim 4, wherein if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value comprises:
and if the packet loss rate is greater than a first preset value, reducing the preset initial bandwidth value by a third preset value to obtain the intermediate bandwidth value.
6. The method according to claim 4, wherein if the packet loss rate meets a preset range, adjusting the preset initial bandwidth value to obtain an intermediate bandwidth value comprises:
and if the packet loss rate is smaller than a second preset value, increasing a third preset value to the preset initial bandwidth value to obtain the intermediate bandwidth value.
7. The method of claim 1, wherein the determining the packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet comprises:
determining the number of video packets corresponding to the packet sequence of the first video packet according to the packet sequence of the first video packet;
determining the number of video packets corresponding to the packet sequence of the second video packet according to the packet sequence of the second video packet;
dividing the difference value between the number of the video packets corresponding to the packet sequence of the first video packet and the number of the video packets corresponding to the packet sequence of the second video packet by the number of the video packets corresponding to the packet sequence of the first video packet, and determining the obtained result as the packet loss rate of video packet transmission in the preset time period.
8. A video transmission apparatus, applied to a video transmission terminal in a video network, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a packet sequence of a first video packet within a preset time period, and the packet sequence of the first video packet is the packet sequence of the video packet sent by a mapping terminal to a mapping server by using a preset initial bandwidth value;
a second obtaining module, configured to obtain a packet sequence of a second video packet returned by the mapping server, where the packet sequence of the second video packet is a packet sequence of the video packet received by the mapping server and sent by the mapping terminal;
a packet loss rate determining module, configured to determine a packet loss rate of video packet transmission in the preset time period according to the packet sequence of the first video packet and the packet sequence of the second video packet;
the bandwidth adjusting module is used for adjusting the preset initial bandwidth value according to the packet loss rate and a preset bandwidth adjusting rule, and determining an adjusted bandwidth value;
the sampling parameter adjusting module is used for determining a video sampling parameter corresponding to the adjusted bandwidth value according to the adjusted bandwidth value and a preset video sampling adjusting rule;
and the sending module is used for sending the video sampling parameters corresponding to the adjusted bandwidth values to a video networking terminal so that the video networking terminal adjusts the video sampling parameters transmitted by the current video packet according to the video sampling parameters.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the video transmission method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the video transmission method of any of claims 1-7.
CN202010066589.0A 2020-01-20 2020-01-20 Video transmission method, device, terminal equipment and storage medium Active CN111225254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010066589.0A CN111225254B (en) 2020-01-20 2020-01-20 Video transmission method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010066589.0A CN111225254B (en) 2020-01-20 2020-01-20 Video transmission method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111225254A true CN111225254A (en) 2020-06-02
CN111225254B CN111225254B (en) 2023-04-18

Family

ID=70831297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010066589.0A Active CN111225254B (en) 2020-01-20 2020-01-20 Video transmission method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111225254B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770309A (en) * 2020-06-24 2020-10-13 浙江大华技术股份有限公司 Video uploading method and device, electronic equipment and storage medium
CN112954414A (en) * 2021-02-09 2021-06-11 睿云联(厦门)网络通讯技术有限公司 Streaming media transmission optimization method and system
CN113115078A (en) * 2021-04-09 2021-07-13 浙江大华技术股份有限公司 Bandwidth adjusting method and device
CN113207015A (en) * 2021-05-07 2021-08-03 中山大学 Task scheduling strategy generation method and device, storage medium and computer equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964755A (en) * 2010-11-03 2011-02-02 中南大学 Explicit congestion control method based on bandwidth estimation in high-bandwidth delay network
CN102065468A (en) * 2009-11-13 2011-05-18 华为技术有限公司 Code rate adjustment method and server
US20120141089A1 (en) * 2010-12-06 2012-06-07 Hunt Neil D Variable Bit Video Streams for Adaptive Streaming
CN102547206A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Method and device for determining video transmission parameter during video communication
CN103763216A (en) * 2014-01-24 2014-04-30 深圳市华宝电子科技有限公司 System and method for adjusting data transmission
CN103916367A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and apparatus for transmission of multimedia data
CN105430532A (en) * 2015-11-18 2016-03-23 南京创维信息技术研究院有限公司 Control method and system for adaptive adjustment of video data transmission
CN106357453A (en) * 2016-09-30 2017-01-25 邦彦技术股份有限公司 System and method for bandwidth adaptive control
US20170063702A1 (en) * 2015-08-28 2017-03-02 Imagination Technologies Limited Bandwidth Management
CN108093257A (en) * 2017-12-05 2018-05-29 北京小米移动软件有限公司 Bit rate control method, electronic equipment and the storage medium of Video coding
CN109040855A (en) * 2018-09-03 2018-12-18 重庆邮电大学 A kind of wireless DASH streaming media bit rate smooth adaptive transmission method
CN109587073A (en) * 2019-01-07 2019-04-05 北京三体云联科技有限公司 Method for controlling network congestion, device and terminal device
CN109874031A (en) * 2017-12-04 2019-06-11 华平信息技术股份有限公司 Multipriority dynamic code rate method of adjustment and system based on network bandwidth prediction
CN110266551A (en) * 2019-07-29 2019-09-20 腾讯科技(深圳)有限公司 A kind of bandwidth prediction method, apparatus, equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065468A (en) * 2009-11-13 2011-05-18 华为技术有限公司 Code rate adjustment method and server
CN101964755A (en) * 2010-11-03 2011-02-02 中南大学 Explicit congestion control method based on bandwidth estimation in high-bandwidth delay network
US20120141089A1 (en) * 2010-12-06 2012-06-07 Hunt Neil D Variable Bit Video Streams for Adaptive Streaming
CN102547206A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Method and device for determining video transmission parameter during video communication
CN103916367A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and apparatus for transmission of multimedia data
CN103763216A (en) * 2014-01-24 2014-04-30 深圳市华宝电子科技有限公司 System and method for adjusting data transmission
US20170063702A1 (en) * 2015-08-28 2017-03-02 Imagination Technologies Limited Bandwidth Management
CN105430532A (en) * 2015-11-18 2016-03-23 南京创维信息技术研究院有限公司 Control method and system for adaptive adjustment of video data transmission
CN106357453A (en) * 2016-09-30 2017-01-25 邦彦技术股份有限公司 System and method for bandwidth adaptive control
CN109874031A (en) * 2017-12-04 2019-06-11 华平信息技术股份有限公司 Multipriority dynamic code rate method of adjustment and system based on network bandwidth prediction
CN108093257A (en) * 2017-12-05 2018-05-29 北京小米移动软件有限公司 Bit rate control method, electronic equipment and the storage medium of Video coding
CN109040855A (en) * 2018-09-03 2018-12-18 重庆邮电大学 A kind of wireless DASH streaming media bit rate smooth adaptive transmission method
CN109587073A (en) * 2019-01-07 2019-04-05 北京三体云联科技有限公司 Method for controlling network congestion, device and terminal device
CN110266551A (en) * 2019-07-29 2019-09-20 腾讯科技(深圳)有限公司 A kind of bandwidth prediction method, apparatus, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张倩等: "基于AVS视频流媒体传输系统的设计与实现", 《计算机工程与设计》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770309A (en) * 2020-06-24 2020-10-13 浙江大华技术股份有限公司 Video uploading method and device, electronic equipment and storage medium
CN112954414A (en) * 2021-02-09 2021-06-11 睿云联(厦门)网络通讯技术有限公司 Streaming media transmission optimization method and system
CN113115078A (en) * 2021-04-09 2021-07-13 浙江大华技术股份有限公司 Bandwidth adjusting method and device
CN113115078B (en) * 2021-04-09 2022-08-16 浙江大华技术股份有限公司 Bandwidth adjusting method and device
CN113207015A (en) * 2021-05-07 2021-08-03 中山大学 Task scheduling strategy generation method and device, storage medium and computer equipment
CN113207015B (en) * 2021-05-07 2022-07-15 中山大学 Task scheduling strategy generation method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN111225254B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN111225254B (en) Video transmission method, device, terminal equipment and storage medium
EP2637403B1 (en) Method and device for adjusting bandwidth in conference place, conference terminal and media control server
US11546596B2 (en) Dynamic codec adaptation
US8493431B2 (en) Video conference system, processing method used in the same, and machine-readable medium
US20170103577A1 (en) Method and apparatus for optimizing video streaming for virtual reality
JP2015536594A (en) Aggressive video frame drop
CN111741248B (en) Data transmission method, device, terminal equipment and storage medium
CN110708570B (en) Video coding rate determining method, device, equipment and storage medium
CN111556315A (en) Data transmission method and device
CN112203043A (en) Video transmission method and system
CN105025294A (en) Video transmission control device and method
JP4810088B2 (en) Image processing apparatus, image processing method, and program thereof
WO2024108950A1 (en) Bitstream control method and apparatus, and electronic device
EP2265025A1 (en) Video encoding amount control method, video encoding amount control device, video encoding amount control program, and computer readable recording medium on which said program is recorded
US9357170B2 (en) Device and method for managing bandwidth of video conference
JP2006033884A (en) Receiving-side device of image data transmitting/receiving system and storage medium with program thereof stored thereon
US10848769B2 (en) Method and system for encoding video streams
CN114866763A (en) Video quality evaluation method and device, terminal equipment and storage medium
CN108124155B (en) Code rate control method and device and electronic equipment
JP2006197096A (en) Television telephone
CN114302145A (en) Video coding optimization method, device, equipment and storage medium for adaptive network environment
CN114025171A (en) Video processing method and device, terminal equipment and storage medium
KR101795958B1 (en) Adaptive control method, apparatus and user device for providing video in real time network cameras
US8107525B1 (en) Variable bit rate video CODEC using adaptive tracking for video conferencing
JP2017028622A (en) Image quality control device, image quality control method, image quality control system, and image quality controlling program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant