CN110324681B - Slicing method, device, storage medium and transmission system of multimedia data - Google Patents

Slicing method, device, storage medium and transmission system of multimedia data Download PDF

Info

Publication number
CN110324681B
CN110324681B CN201910612006.7A CN201910612006A CN110324681B CN 110324681 B CN110324681 B CN 110324681B CN 201910612006 A CN201910612006 A CN 201910612006A CN 110324681 B CN110324681 B CN 110324681B
Authority
CN
China
Prior art keywords
length
slice
multimedia data
historical
target
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.)
Active
Application number
CN201910612006.7A
Other languages
Chinese (zh)
Other versions
CN110324681A (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.)
Guangzhou shiyinlian Software Technology Co.,Ltd.
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201910612006.7A priority Critical patent/CN110324681B/en
Publication of CN110324681A publication Critical patent/CN110324681A/en
Application granted granted Critical
Publication of CN110324681B publication Critical patent/CN110324681B/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
    • 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/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The application discloses a multimedia data slicing method, a multimedia data slicing device, a storage medium and a transmission system, and relates to the field of data transmission. The slicing method of the multimedia data has high flexibility because the target slice length of the target slice file in the method is determined according to the transmitted historical slice length and the transmission time length and is not fixed and constant. In addition, the historical slice length and the transmission time length can reflect the network bandwidth of the historical slice file during transmission, so that the determined target slice length of the target slice file can be adapted to the current network bandwidth, and the utilization rate of the current network bandwidth during transmission of the target slice file is effectively improved.

Description

Slicing method, device, storage medium and transmission system of multimedia data
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a method, an apparatus, a storage medium, and a transmission system for transmitting multimedia data.
Background
When multimedia data is transmitted, in order to reduce the loading time before the multimedia data is played, the multimedia data may be sliced.
In the related art, the multimedia data may be sliced into a plurality of slice files having the same slice length according to a predetermined fixed slice length. Thereafter, the plurality of slice files are transmitted one by one.
However, the related art method of slicing multimedia data according to a fixed slice length has low flexibility.
Disclosure of Invention
The application provides a multimedia data slicing method, a multimedia data slicing device, a storage medium and a transmission system, which can solve the problem of low flexibility of a method for slicing multimedia data according to a fixed slicing length in the related art. The technical scheme is as follows:
in one aspect, a method for slicing multimedia data is provided, the method comprising:
acquiring the historical slice length and the transmission duration of a transmitted historical slice file in the multimedia data;
determining a target slice length according to the historical slice length and the transmission time length, wherein the target slice length is positively correlated with the historical slice length and negatively correlated with the transmission time length;
and slicing the data to be transmitted in the multimedia data based on the target slicing length to obtain a target slicing file.
Optionally, the determining a target slice length according to the historical slice length and the transmission duration includes:
determining the length of a reference slice according to the transmission duration and the code rate of the multimedia data;
and determining the length of the target slice according to the difference value of the historical slice length and the reference slice length.
Optionally, the determining a reference slice length according to the transmission duration and the code rate of the multimedia data includes:
determining a product of the transmission duration and a code rate of the multimedia data as a reference slice length;
the determining a target slice length from the difference of the historical slice length and the reference slice length comprises:
determining a difference between twice the historical slice length and the reference slice length as a target slice length.
Optionally, the obtaining of the historical slice length and the transmission duration of the transmitted historical slice file in the multimedia data includes:
and acquiring the average value of the historical slice lengths of a plurality of historical slice files transmitted in the multimedia data and the average value of the transmission durations of the plurality of historical slice files.
Optionally, the obtaining of the historical slice length and the transmission duration of the transmitted historical slice file in the multimedia data includes:
and acquiring the historical slice length and the transmission time length of a most recently transmitted historical slice file in the multimedia data.
Optionally, the obtaining of the historical slice length and the transmission duration of the transmitted historical slice file in the multimedia data includes:
and if the multimedia data is detected to further comprise data to be transmitted, acquiring the historical slice length and the transmission duration of the historical slice file transmitted in the multimedia data.
Optionally, after obtaining the target slice file, the method further includes:
and transmitting the target slice file.
In another aspect, there is provided an apparatus for slicing multimedia data, the apparatus including:
the acquisition module is used for acquiring the historical slice length and the transmission time length of the transmitted historical slice file in the multimedia data;
a determining module, configured to determine a target slice length according to the historical slice length and the transmission duration, where the target slice length is positively correlated with the historical slice length and negatively correlated with the transmission duration;
and the slicing module is used for slicing the data to be transmitted in the multimedia data based on the target slicing length to obtain a target slicing file.
Optionally, the determining module includes:
the first determining submodule is used for determining the length of a reference slice according to the transmission duration and the code rate of the multimedia data;
and the second determining submodule is used for determining the length of the target slice according to the difference value of the historical slice length and the reference slice length.
Optionally, the first determining sub-module is configured to:
determining a product of the transmission duration and a code rate of the multimedia data as a reference slice length;
the second determining submodule is configured to:
determining a difference between twice the historical slice length and the reference slice length as a target slice length.
Optionally, the obtaining module is configured to:
and acquiring the average value of the historical slice lengths of a plurality of historical slice files transmitted in the multimedia data and the average value of the transmission durations of the plurality of historical slice files.
Optionally, the obtaining module is configured to:
and acquiring the historical slice length and the transmission time length of a most recently transmitted historical slice file in the multimedia data.
Optionally, the obtaining module is configured to:
and if the multimedia data is detected to further comprise data to be transmitted, acquiring the historical slice length and the transmission duration of the historical slice file transmitted in the multimedia data.
Optionally, the apparatus further comprises:
and the transmission module is used for transmitting the target slice file.
In yet another aspect, there is provided a slicing apparatus for multimedia data, the apparatus including: a memory and a processor;
the memory stores a computer program which, when executed by the processor, causes the processor to perform the method of slicing multimedia data as described in the above aspect.
In yet another aspect, a computer storage medium having instructions stored therein, which when run on a computer, causes the computer to perform the slicing method of multimedia data as described in the above aspect.
In still another aspect, a transmission system of multimedia data is provided, the system including: a multimedia client and a multimedia server;
the multimedia client comprises a slicing device of multimedia data as described in the above aspect.
The beneficial effect that technical scheme that this application provided brought includes at least:
the application provides a slicing method, a slicing device, a storage medium and a transmission system of multimedia data, and the target slice length of a target slice file in the method is determined according to the transmitted historical slice length and the transmission time length, but is not fixed and unchanged, so that the flexibility of the slicing method of the multimedia data is effectively improved. In addition, the historical slice length and the transmission time length can reflect the network bandwidth of the historical slice file during transmission, so that the determined target slice length of the target slice file can be adapted to the current network bandwidth, and the utilization rate of the current network bandwidth during transmission of the target slice file is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a multimedia data transmission system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for slicing multimedia data according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for slicing multimedia data according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for determining a target slice length according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a slicing apparatus for multimedia data according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a determining module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another slicing apparatus for multimedia data according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another slicing apparatus for multimedia data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a multimedia data transmission system according to an embodiment of the present invention. As shown in fig. 1, the system may include: at least one terminal 110, and a multimedia server 120 connected to each terminal 110. The at least one means one or more, and the plurality means two or more.
The terminal 110 may be a mobile phone (e.g., a smart phone), a tablet computer, or a computer. And the terminal 110 can establish a communication connection with the multimedia server 120 through a wired network or a wireless network. The multimedia server 120 may be a server, or may be a server cluster composed of several servers, or may be a cloud computing service center.
In the embodiment of the present invention, the multimedia server 120 may store multimedia data therein. Each terminal 110 may have a multimedia client installed thereon, which can play multimedia data. The multimedia client can interact with the multimedia server 120 for multimedia data. That is, the multimedia client may upload the multimedia data to the multimedia server 120, or the multimedia server 120 may issue the multimedia data to the multimedia client.
Optionally, the multimedia data may include: at least one of audio data and video data. The multimedia client can be an audio playing client or a video playing client.
Fig. 2 is a flowchart of a method for slicing multimedia data according to an embodiment of the present invention. The method may be applied to a transmitting end of multimedia data, for example, may be applied to a multimedia client installed on the multimedia server 120 or the terminal 110 in the transmission system shown in fig. 1. Referring to fig. 2, the method may include:
step 101, obtaining the historical slice length and transmission duration of the transmitted historical slice file in the multimedia data.
Wherein the multimedia data may include: at least one of audio data and video data. In the embodiment of the present invention, the slice length may refer to a size of a storage space occupied by a slice file, and may also be referred to as a slice size. The unit of the slice length may be a bit (bit), or may be a conversion unit of bits, such as byte (byte), Kilobyte (KB), megabyte (mega byte, MB), Gigabyte (GB), Terabyte (TB), or the like. The transmission duration may refer to a duration required for the sending end of the multimedia data to send the history slice file to the receiving end.
And step 102, determining a target slice length according to the historical slice length and the transmission time length.
Wherein the target slice length may be positively correlated with the historical slice length and may be negatively correlated with the transmission duration. That is, the longer the historical slice length, the shorter the transmission duration, and the longer the target slice length.
And 103, slicing the data to be transmitted in the multimedia data based on the target slicing length to obtain a target slicing file.
After determining the target slice length, the sending end of the multimedia data can segment the data to be transmitted in the multimedia data according to the target slice length, thereby obtaining a target slice file.
In summary, the embodiments of the present invention provide a slicing method for multimedia data, in which a target slice length of a target slice file is determined according to a transmitted historical slice length and a transmission time duration, rather than being fixed, so that the slicing method for multimedia data has high flexibility. In addition, the historical slice length and the transmission time length can reflect the network bandwidth of the historical slice file during transmission, so that the determined target slice length of the target slice file can be adapted to the current network bandwidth, and the utilization rate of the current network bandwidth during transmission of the target slice file is effectively improved.
Fig. 3 is a flowchart of another method for slicing multimedia data according to an embodiment of the present invention. The method may be applied to a transmitting end of multimedia data, for example, may be applied to a multimedia client installed on the multimedia server 120 or the terminal 110 in the transmission system shown in fig. 1. Referring to fig. 3, the method may include:
step 201, detecting whether the multimedia data further includes data to be transmitted.
In the embodiment of the invention, in the process of transmitting the multimedia data to the receiving end, the transmitting end of the multimedia data can detect whether the multimedia data also comprises the data to be transmitted in real time, namely, can detect whether the transmission of the multimedia data is finished in real time. Wherein the multimedia data may include at least one of audio data or video data.
If the sending end of the multimedia data detects that the multimedia data further includes data to be transmitted, it may be determined that the transmission of the multimedia data is not completed, and at this time, the sending end of the multimedia data may execute step 202. If the sending end of the multimedia data detects that the multimedia data does not include the data to be transmitted, it can be determined that the transmission of the multimedia data is completed, and the operation can be ended.
Optionally, the sending end of the multimedia data may determine whether the multimedia data further includes data to be transmitted according to the total length of the multimedia data and the sum of the historical slice lengths of all transmitted historical slice files in the multimedia data. If the sum of the historical slice lengths is less than the total length, it can be determined that the multimedia data further includes data to be transmitted. If the sum of the historical slice lengths is equal to the total length, it may be determined that the multimedia data has been transmitted.
For example, assuming that the multimedia data is audio data (also called an audio file), and the total length of the audio data is 2045 bytes, and the sum of the historical slice lengths of all the transmitted historical slice files determined by the sending end of the multimedia data is 1645 bytes, since 1645 is less than 2045, the sending end of the multimedia data may determine that the audio data is not completely sent, and may perform step 202.
Step 202, obtaining the historical slice length and the transmission time length of the transmitted historical slice file in the multimedia data.
In the embodiment of the present invention, the history slice file refers to a slice file transmitted in the multimedia data. The historical slice length of each historical slice file may refer to the size of the storage space occupied by the historical slice file, and may also be referred to as the slice size. The transmission duration may refer to a duration required for the transmitting end to transmit the history slice file to the receiving end. For example, if the time when the sending end of the multimedia data sends the history slice file is a, and the time when the receiving end receives the history slice file is b, the transmission time T may satisfy: t ═ b-a.
The receiving end of the multimedia data may send a response message indicating that the history slice file is received to the sending end after receiving the history slice file, and since the transmission duration of the response message is shorter than the transmission duration of the slice file and can be ignored, the sending end of the multimedia data may determine the time when the response message is received as the time b when the history slice file is received. Or, the receiving end of the multimedia data may send a response message carrying the time b to the sending end after receiving the history slice file, and the sending end may determine the transmission duration T of the history slice file according to the response message.
It should be noted that, if the sending end determines the transmission duration of the historical slice file according to the response message sent by the receiving end and carrying the time b of receiving the historical slice file, it is necessary to ensure that clocks of the sending end and the receiving end of the multimedia data are kept consistent before the transmission duration of the historical slice file is determined by the sending end of the multimedia data, so as to ensure the accuracy of the determined target slice length of the target slice file.
In an optional implementation manner, a sending end of multimedia data may obtain an average value of historical slice lengths of a plurality of historical slice files transmitted in the multimedia data, and an average value of transmission durations of the plurality of historical slice files. The average may be a weighted average, an arithmetic average, a geometric average, a root mean square value, or the like.
When the average value is a weighted average value, the weight of each history slice file may be a fixed value set in advance. The weight of each history slice file is related to the slicing order of each history slice file. The earlier the slicing time, the smaller the weight of the history slice file, and the later the slicing time, the larger the weight of the history slice file.
For example, after starting to transmit the multimedia data, the sending end of the multimedia data may record the historical slice length and the transmission duration of the transmitted slice file (i.e., the historical slice file) after transmitting one slice file each time. Correspondingly, before the data to be transmitted needs to be segmented, the sending end of the multimedia data can obtain the average value of the recorded slice lengths of the historical slice files and the average value of the transmission duration.
It should be noted that the plurality of historical slice files may refer to all or part of the transmitted historical slice files. When the plurality of history slices are transmitted partial history slices, the plurality of history slices may be a specified number of history slices that have been transmitted recently. The specified amount may be preset in the transmitting end of the multimedia data.
In another optional implementation manner, the sending end of the multimedia data may obtain a historical slice length and a transmission duration of a most recently transmitted historical slice file in the multimedia data.
For example, after starting to transmit the multimedia data, the sending end of the multimedia data may update the historical slice length and the transmission duration of the historical slice file recorded before according to the historical slice length and the transmission duration of the transmitted slice file (i.e., the historical slice file) after transmitting one slice file each time. Correspondingly, before data to be transmitted in the multimedia data needs to be segmented, the segment length and the transmission duration of the recorded historical segment file can be obtained.
And step 203, determining the target slice length according to the historical slice length and the transmission time length.
Wherein the target slice length may be positively correlated with the historical slice length and negatively correlated with the transmission duration. That is, the longer the historical slice length, the shorter the transmission duration, and the longer the target slice length.
Since the target slice length is determined according to the historical slice length and the transmission time, and the quotient of the historical slice length and the transmission time of each historical slice file (i.e. the transmission rate of the historical slice file) can reflect the network bandwidth of the historical slice file during transmission. I.e. the transmission rate of the historical slice file is determined by the network bandwidth. And when the historical slice length of the historical slice file is fixed, the larger the network bandwidth is, the shorter the transmission time of the historical slice file is, and the larger the transmission rate is.
Therefore, in the embodiment of the present invention, when the sending end of the multimedia data determines that the quotient value according to the obtained historical slice length of the historical slice file and the transmission duration is larger, it can be determined that the current network bandwidth is larger. In order to improve the utilization rate of the current network bandwidth during subsequent transmission of the slice file, the target slice length determined by the sending end of the multimedia data can be larger. When the quotient value determined by the sending end of the multimedia data according to the obtained historical slice length and the transmission duration of the historical slice file is smaller, it can be determined that the current network bandwidth is smaller. In order to ensure the transmission rate of the slice file cut out later, the target slice length determined by the sending end of the multimedia data may be smaller.
In the embodiment of the invention, the sending end of the multimedia data can determine the target slice length according to the transmission rate of the historical slice file, and the transmission rate can reflect the network bandwidth, so the sending end of the multimedia data does not need to detect the network bandwidth in real time, and the load of the sending end of the multimedia data is reduced.
Fig. 4 is a flowchart of a method for determining a target slice length according to an embodiment of the present invention. Referring to fig. 4, the determination method may include:
step 2031, determining the reference slice length according to the transmission duration and the code rate of the multimedia data.
The bit rate of the multimedia data may refer to a bit rate used for encoding the multimedia data. The bit rate of the multimedia data is an inherent attribute parameter of the multimedia data. The sending end of the multimedia data can obtain the code rate of the multimedia data through a specified tool or command.
In the embodiment of the invention, the sending end of the multimedia data can transmit the multimedia dataThe product of the length, the code rate of the multimedia data, and the slice length coefficient is determined as the reference slice length. Wherein the slice length coefficient may be pre-stored by a transmitting end of the multimedia data. That is, the reference slice length
Figure BDA0002122643520000095
Can satisfy the following conditions:
Figure BDA0002122643520000091
where k is the slice length coefficient, TlFor the transmission duration, V, of the transmitted historical slice file0Is the code rate of the multimedia data.
Optionally, the slice length coefficient k may be 1, or the slice length coefficient k may also be 1.1 or 0.9, and so on. When the slice length coefficient is 1, the sending end of the multimedia data may determine the product of the transmission duration and the code rate of the multimedia data as a reference slice length, that is, the reference slice length
Figure BDA0002122643520000092
Can satisfy the following conditions:
Figure BDA0002122643520000093
step 2032, determining the target slice length according to the difference between the historical slice length and the reference slice length.
In this embodiment of the present invention, the sending end of the multimedia data may determine a difference between twice the historical slice length of the transmitted historical slice file and the reference slice length as the target slice length. That is, the target slice length CmCan satisfy the following conditions:
Figure BDA0002122643520000094
wherein, ClFor the transmitted calendar obtained in the above-mentioned step 202Slice length of the smith slice file. The C islCan satisfy the following conditions:
Cl=Vl*Tlformula (3)
Wherein, the VlThe transmission rate of the transmitted historical slice file.
The target slice length C can be determined according to the above equations (1) to (3)mThe formula of (c) is transformed into:
Cm=Cl+(Vl-k*V0)*Tlformula (4)
In the embodiment of the present invention, if a sending end of multimedia data determines a target slice length, a historical slice length and a transmission duration of a most recently transmitted historical slice file are obtained, and the slice length coefficient is 1. Then, according to the formula (4), it can be deduced that the target slice length C used when the transmitting end of the multimedia data cuts the (i + 1) th slice filei+1Satisfies the following conditions: ci+1=Ci+(Vi-V0)*Ti
Wherein, CiFor the historical slice length, T, of a recently transmitted historical slice fileiFor the transmission duration, V, of a recently transmitted history slice fileiThe transmission rate of a recently transmitted one of the historical slice files.
It should be noted that, in the embodiment of the present invention, before a sending end of multimedia data slices the multimedia data for the first time, a current network bandwidth of the sending end and a current network bandwidth of a receiving end may be obtained, and a slice length of a first slice file is determined according to the current network bandwidth of the sending end and the current network bandwidth of the receiving end. For example, the product of the smaller of the two network bandwidths and the slice length coefficient is determined as the slice length of the first slice file, and the multimedia data can be sliced according to the slice length. That is, when i is 0, C0K × min (network bandwidth of the current transmitting end, network bandwidth of the current receiving end). When k is 1, the slice length of the first slice file is the current network bandwidth of the transmitting end and the receiving end is the sameSmaller value of the front network bandwidth, i.e. C0Min (the network bandwidth of the current transmitting end, the network bandwidth of the current receiving end).
And 204, slicing the data to be transmitted in the multimedia data based on the target slicing length to obtain a target slicing file.
After the sending end of the multimedia data determines the target slice length, the sending end of the multimedia data can segment the multimedia data to be transmitted according to the target slice length to obtain a target slice file.
Step 205, transmitting the target slice file.
After the sending end of the multimedia data obtains the target slice file, the sending end can transmit the target slice file to the receiving end.
Optionally, the order of the steps of the slicing method for multimedia data provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the situation. Any method that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application is also covered by the scope of the invention, and thus, the detailed description thereof is omitted.
In summary, the embodiments of the present invention provide a slicing method for multimedia data, in which a target slice length of a target slice file is determined according to a transmitted historical slice length and a transmission time duration, rather than being fixed, so that the slicing method for multimedia data has high flexibility. In addition, the historical slice length and the transmission time length can reflect the network bandwidth of the historical slice file during transmission, so that the target slice length can be dynamically adjusted according to the network bandwidth during recent transmission, the target slice file determined based on the target slice length can be adapted to the current network bandwidth during transmission, and the utilization rate of the current network bandwidth during transmission of the target slice file is effectively improved.
Fig. 5 is a schematic structural diagram of a slicing apparatus for multimedia data according to an embodiment of the present invention. Referring to fig. 5, the apparatus may include:
an obtaining module 301, configured to obtain a historical slice length and a transmission duration of a historical slice file transmitted in multimedia data.
A determining module 302, configured to determine a target slice length according to the historical slice length and the transmission duration.
Wherein the target slice length is positively correlated with the historical slice length and negatively correlated with the transmission duration.
The slicing module 303 is configured to slice data to be transmitted in the multimedia data based on the target slice length to obtain a target slice file.
In summary, the embodiments of the present invention provide a slicing apparatus for multimedia data, which can determine a target slice length of a target slice file according to a transmitted historical slice length and a transmitted time length, and the determined target slice length of the target slice file is not fixed, so that the slicing apparatus for multimedia data has high flexibility. In addition, the historical slice length and the transmission time length can reflect the network bandwidth of the historical slice file during transmission, so that the determined target slice length of the target slice file can be adapted to the current network bandwidth, and the utilization rate of the current network bandwidth during transmission of the target slice file is effectively improved.
Fig. 6 is a schematic structural diagram of a determining module according to an embodiment of the present invention. Referring to fig. 6, the determining module 302 may include:
a first determining submodule 3021 configured to determine the reference slice length according to the transmission duration and the code rate of the multimedia data.
A second determining submodule 3022 configured to determine the target slice length from a difference between the historical slice length and the reference slice length.
Optionally, the first determining submodule 3021 may be configured to:
the product of the transmission duration and the code rate of the multimedia data is determined as a reference slice length.
The second determining submodule 3022 may be configured to:
the difference between twice the historical slice length and the reference slice length is determined as the target slice length.
Optionally, the obtaining module 301 may be configured to:
the average value of the historical slice lengths of a plurality of historical slice files transmitted in the multimedia data and the average value of the transmission duration of the plurality of historical slice files are obtained.
Optionally, the obtaining module 301 may be configured to:
and acquiring the historical slice length and the transmission time length of a recently transmitted historical slice file in the multimedia data.
Optionally, the obtaining module 301 may be configured to:
when the multimedia data to be transmitted is detected to further comprise data to be transmitted, the historical slice length and the transmission time length of the historical slice file transmitted in the multimedia data are obtained.
Fig. 7 is a schematic structural diagram of another slicing apparatus for multimedia data according to an embodiment of the present invention. Referring to fig. 7, the apparatus may further include:
a transmission module 304, configured to transmit the target slice file.
In summary, the embodiments of the present invention provide a slicing apparatus for multimedia data, which can determine a target slice length of a target slice file according to a transmitted historical slice length and a transmitted time length, and the determined target slice length of the target slice file is not fixed, so that the slicing apparatus for multimedia data has high flexibility. In addition, the historical slice length and the transmission time length can reflect the network bandwidth of the historical slice file during transmission, so that the determined target slice length of the target slice file can be adapted to the current network bandwidth, and the utilization rate of the current network bandwidth during transmission of the target slice file is effectively improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus, the modules and the sub-modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 8 is a schematic structural diagram of another slicing apparatus for multimedia data according to an embodiment of the present invention. Referring to fig. 8, the apparatus 400 may include: a memory 401 and a processor 402. The memory 401 stores a computer program which, when executed by the processor 402, causes the processor 402 to perform a method of slicing multimedia data as provided by the above method embodiments, for example, the method of slicing multimedia data shown in fig. 2 or fig. 3.
Embodiments of the present invention also provide a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform a slicing method of multimedia data as provided in the above method embodiments, for example, the slicing method of multimedia data shown in fig. 2 or fig. 3.
An embodiment of the present invention further provides a system for transmitting multimedia data, and referring to fig. 1, the system may include: a multimedia client, and a multimedia server 120. The multimedia client may comprise a slicing apparatus for multimedia data as described in the above embodiments, such as the slicing apparatus shown in any of fig. 5, fig. 7 or fig. 8.
Wherein the multimedia client may be installed on the terminal 110 as shown in fig. 1.
Optionally, the system may include one or more multimedia clients. Wherein, a plurality means two or more.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of slicing multimedia data, the method comprising:
acquiring the historical slice length and the transmission duration of a transmitted historical slice file in the multimedia data;
determining a target slice length according to the historical slice length and the transmission time length, wherein the target slice length is positively correlated with the historical slice length and negatively correlated with the transmission time length;
slicing data to be transmitted in the multimedia data based on the target slicing length to obtain a target slicing file;
the determining a target slice length according to the historical slice length and the transmission duration includes:
determining the length of a reference slice according to the transmission duration and the code rate of the multimedia data;
and determining the length of the target slice according to the difference value of the historical slice length and the reference slice length.
2. The method of claim 1, wherein determining the reference slice length according to the transmission duration and the coding rate of the multimedia data comprises:
determining a product of the transmission duration and a code rate of the multimedia data as a reference slice length;
the determining a target slice length from the difference of the historical slice length and the reference slice length comprises:
determining a difference between twice the historical slice length and the reference slice length as a target slice length.
3. The method according to any one of claims 1 to 2, wherein the obtaining of the historical slice length and the transmission time length of the transmitted historical slice file in the multimedia data comprises:
and acquiring the average value of the historical slice lengths of a plurality of historical slice files transmitted in the multimedia data and the average value of the transmission durations of the plurality of historical slice files.
4. The method according to any one of claims 1 to 2, wherein the obtaining of the historical slice length and the transmission time length of the transmitted historical slice file in the multimedia data comprises:
and acquiring the historical slice length and the transmission time length of a most recently transmitted historical slice file in the multimedia data.
5. The method according to any one of claims 1 to 2, wherein the obtaining of the historical slice length and the transmission time length of the transmitted historical slice file in the multimedia data comprises:
and if the multimedia data is detected to further comprise data to be transmitted, acquiring the historical slice length and the transmission duration of the historical slice file transmitted in the multimedia data.
6. The method of any of claims 1 to 2, wherein after said obtaining the target slice file, the method further comprises:
and transmitting the target slice file.
7. An apparatus for slicing multimedia data, the apparatus comprising:
the acquisition module is used for acquiring the historical slice length and the transmission time length of the transmitted historical slice file in the multimedia data;
a determining module, configured to determine a target slice length according to the historical slice length and the transmission duration, where the target slice length is positively correlated with the historical slice length and negatively correlated with the transmission duration;
the slicing module is used for slicing data to be transmitted in the multimedia data based on the target slicing length to obtain a target slicing file;
the determining module is used for determining the length of a reference slice according to the transmission duration and the code rate of the multimedia data; and determining the length of the target slice according to the difference value of the historical slice length and the reference slice length.
8. An apparatus for slicing multimedia data, the apparatus comprising: a memory and a processor;
the memory stores a computer program which, when executed by the processor, causes the processor to perform the method of slicing multimedia data as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to execute the slicing method of multimedia data according to any one of claims 1 to 6.
10. A system for transmitting multimedia data, the system comprising: a multimedia client and a multimedia server;
the multimedia client comprises a slicing device of multimedia data according to claim 7 or 8.
CN201910612006.7A 2019-07-08 2019-07-08 Slicing method, device, storage medium and transmission system of multimedia data Active CN110324681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910612006.7A CN110324681B (en) 2019-07-08 2019-07-08 Slicing method, device, storage medium and transmission system of multimedia data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910612006.7A CN110324681B (en) 2019-07-08 2019-07-08 Slicing method, device, storage medium and transmission system of multimedia data

Publications (2)

Publication Number Publication Date
CN110324681A CN110324681A (en) 2019-10-11
CN110324681B true CN110324681B (en) 2021-05-25

Family

ID=68121504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910612006.7A Active CN110324681B (en) 2019-07-08 2019-07-08 Slicing method, device, storage medium and transmission system of multimedia data

Country Status (1)

Country Link
CN (1) CN110324681B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153681B (en) * 2020-09-22 2024-02-23 北京达佳互联信息技术有限公司 Resource segmentation method, device, electronic equipment and storage medium
CN113079106B (en) * 2021-06-04 2021-10-08 明品云(北京)数据科技有限公司 Method, system, equipment and medium for controlling data transmission
CN115174679A (en) * 2022-07-27 2022-10-11 天翼云科技有限公司 Network file caching method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969551A (en) * 2010-09-26 2011-02-09 中兴通讯股份有限公司 Method and system for fragmenting code streams in internet protocol television (IPTV) system
CN105357591A (en) * 2015-11-16 2016-02-24 北京理工大学 QoE monitoring and optimization method for adaptive code rate video direct broadcast
CN106231440A (en) * 2016-07-22 2016-12-14 华为技术有限公司 A kind of files in stream media burst method for down loading, device and terminal
CN106713948A (en) * 2015-11-13 2017-05-24 北京国双科技有限公司 Video sectional loading method and device
CN108924667A (en) * 2018-08-03 2018-11-30 阳雨哲 A kind of maximized available bandwidth adaptive video fragment request method of support QoE

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10152080B2 (en) * 2015-09-23 2018-12-11 Adobe Systems Incorporated Power efficient multimedia content streaming based on media segment duration
CN106686036A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Multimedia data downloading method and system, client and server
CN109089174B (en) * 2018-08-16 2020-12-22 咪咕视讯科技有限公司 Multimedia data stream processing method and device and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969551A (en) * 2010-09-26 2011-02-09 中兴通讯股份有限公司 Method and system for fragmenting code streams in internet protocol television (IPTV) system
CN106713948A (en) * 2015-11-13 2017-05-24 北京国双科技有限公司 Video sectional loading method and device
CN105357591A (en) * 2015-11-16 2016-02-24 北京理工大学 QoE monitoring and optimization method for adaptive code rate video direct broadcast
CN106231440A (en) * 2016-07-22 2016-12-14 华为技术有限公司 A kind of files in stream media burst method for down loading, device and terminal
CN108924667A (en) * 2018-08-03 2018-11-30 阳雨哲 A kind of maximized available bandwidth adaptive video fragment request method of support QoE

Also Published As

Publication number Publication date
CN110324681A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN110324681B (en) Slicing method, device, storage medium and transmission system of multimedia data
CN107172131B (en) File uploading method and device
CN109739810B (en) File synchronization method, server, client and device with storage function
EP3197167B1 (en) Image transmission method and apparatus
CN106688239A (en) Video downloading method, apparatus, and system
CN112312135B (en) Video publishing method and device, computer equipment and storage medium
EP3253065B1 (en) Streaming media resource downloading method and apparatus, and terminal device
CN103152606B (en) Video file processing method and device, system
CN109788251B (en) Video processing method, device and storage medium
US8681860B2 (en) Moving picture compression apparatus and method of controlling operation of same
CN116233083B (en) Efficient transmission method for digital media information
CN111405293B (en) Video transmission method and device
CN111510715B (en) Video processing method, system, computer device and storage medium
CN110134547B (en) Middleware-based repeated data deleting method and related device
CN114500036A (en) Method, device and medium for transmitting data
CN111587417A (en) Method, device, computer program and computer program product for data storage
KR102425039B1 (en) Apparatus and method for compressing data in distributed deep-learning environment
KR101637022B1 (en) Apparatus and method for transmitting and receiving content
CN111245949A (en) File filing and transmission method, device and equipment
CN111209254A (en) File fingerprint acquisition method and device, electronic equipment and storage medium
CN111064774A (en) Distributed data storage method and device
CN110096483B (en) Duplicate file detection method, terminal and server
CN113726832B (en) Data storage method, device, system and equipment of distributed storage system
CN105306537A (en) Method for transmitting files of office automation (OA) system, server and client
CN114422499B (en) File downloading method, system and device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210825

Address after: 510000 self compiled 1-18-4, No. 315, middle Huangpu Avenue, Tianhe District, Guangzhou City, Guangdong Province (office only)

Patentee after: Guangzhou shiyinlian Software Technology Co.,Ltd.

Address before: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.