WO2023029846A1 - 多媒体资源上传方法、装置、电子设备以及可读存储介质 - Google Patents
多媒体资源上传方法、装置、电子设备以及可读存储介质 Download PDFInfo
- Publication number
- WO2023029846A1 WO2023029846A1 PCT/CN2022/109178 CN2022109178W WO2023029846A1 WO 2023029846 A1 WO2023029846 A1 WO 2023029846A1 CN 2022109178 W CN2022109178 W CN 2022109178W WO 2023029846 A1 WO2023029846 A1 WO 2023029846A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resource
- network speed
- terminal
- uploading
- target
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004590 computer program Methods 0.000 claims abstract description 21
- 239000012634 fragment Substances 0.000 claims description 168
- 238000012545 processing Methods 0.000 claims description 27
- 230000015654 memory Effects 0.000 claims description 20
- 238000013467 fragmentation Methods 0.000 claims description 10
- 238000006062 fragmentation reaction Methods 0.000 claims description 10
- 238000012549 training Methods 0.000 description 34
- 238000010586 diagram Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000013507 mapping Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000010801 machine learning Methods 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000006403 short-term memory Effects 0.000 description 2
- 101000822695 Clostridium perfringens (strain 13 / Type A) Small, acid-soluble spore protein C1 Proteins 0.000 description 1
- 101000655262 Clostridium perfringens (strain 13 / Type A) Small, acid-soluble spore protein C2 Proteins 0.000 description 1
- 101000655256 Paraclostridium bifermentans Small, acid-soluble spore protein alpha Proteins 0.000 description 1
- 101000655264 Paraclostridium bifermentans Small, acid-soluble spore protein beta Proteins 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000000306 recurrent effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44245—Monitoring the upstream path of the transmission network, e.g. its availability, bandwidth
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/437—Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
- H04N21/64738—Monitoring network characteristics, e.g. bandwidth, congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64784—Data processing by the network
- H04N21/64792—Controlling the complexity of the content stream, e.g. by dropping packets
Definitions
- the embodiments of the present disclosure relate to the technical field of data processing, and in particular, to a multimedia resource uploading method, device, electronic equipment, computer-readable storage medium, computer program product, and computer program.
- the video data can be divided into fixed-size data fragments for uploading.
- this method can improve the success rate of uploading videos, it cannot match the network speed well and has poor flexibility. .
- Embodiments of the present disclosure provide a multimedia resource upload method, device, electronic equipment, computer-readable storage medium, computer program product, and computer program, which can adapt to network speed and improve upload flexibility.
- an embodiment of the present disclosure provides a method for uploading a multimedia resource, including:
- each of the target parameters is related to the size of the resource slice; according to the current network speed, and the value of the at least one target parameter Take a value to determine the size of the i-th resource segment to be uploaded by the target multimedia resource, where i is an integer greater than or equal to 1; according to the size of the i-th resource segment, from the target multimedia resource Acquiring the i-th resource fragment; uploading the i-th resource fragment.
- an embodiment of the present disclosure provides a device for uploading multimedia resources, including:
- a processing module configured to: obtain the current network speed of the terminal, and the value of at least one target parameter of the terminal, each of the target parameters is related to the resource fragment size; according to the current network speed, and, the The value of the at least one target parameter determines the size of the i-th resource fragment to be uploaded currently for the target multimedia resource, where i is an integer greater than or equal to 1.
- a resource fragment obtaining module configured to obtain the ith resource fragment from the target multimedia resource according to the size of the ith resource fragment.
- a resource fragment upload module configured to upload the i-th resource fragment.
- an embodiment of the present disclosure provides an electronic device, including: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the above The multimedia resource uploading method described in the first aspect and various possible designs of the first aspect.
- an embodiment of the present disclosure provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above first aspect and the first Various possible designs of the described method for uploading multimedia resources.
- an embodiment of the present disclosure provides a computer program product, including computer instructions, when the computer instructions are executed by a processor, implement the method for uploading multimedia resources as described in the above first aspect and various possible designs of the first aspect .
- an embodiment of the present disclosure provides a computer program, which, when executed by a processor, implements the multimedia resource uploading method described in the first aspect and various possible designs of the first aspect.
- the multimedia resource uploading method, device, electronic equipment and readable storage medium includes: obtaining the current network speed of the terminal, and the value of at least one target parameter of the terminal, each target parameter and resource Fragment size is related; according to the current network speed and the value of at least one target parameter, determine the size of the i-th resource fragment to be uploaded by the target multimedia resource, where i is an integer greater than or equal to 1; according to the i-th The size of the resource fragment. Obtain the i-th resource fragment from the target multimedia resource; upload the i-th resource fragment.
- the resource fragment size of the multimedia resource to be uploaded can be adaptively adjusted instead of using a fixed resource fragment size, which can better Adapt to the network speed, improve the efficiency and success rate of uploading multimedia resources, and improve the flexibility of uploading.
- FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present disclosure
- FIG. 2 is a first schematic flow diagram of a method for uploading multimedia resources provided by an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of resource fragmentation provided by an embodiment of the present disclosure.
- FIG. 4 is a second schematic flow diagram of a method for uploading multimedia resources provided by an embodiment of the present disclosure
- FIG. 5 is a third schematic flow diagram of a method for uploading multimedia resources provided by an embodiment of the present disclosure.
- FIG. 6 is a schematic diagram of another scenario applicable to an embodiment of the present disclosure.
- FIG. 7 is a structural block diagram of an apparatus for uploading multimedia resources provided by an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- Multimedia resources images, videos, audio, documents, etc., which are not limited in this embodiment of the present disclosure.
- Uploading of multimedia resources refers to uploading multimedia resources to the server by the terminal of the contributor user.
- Publishing of multimedia resources uploading multimedia resources to the server, the server can perform transcoding, packaging and other processing on the multimedia resources before releasing them. After the release is completed, other users can watch the multimedia resources released by the contributor user on their own terminals.
- FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present disclosure.
- a in FIG. 1 shows the main interface of a short video application program, which includes an upload control 11.
- the user operates the upload control 11 to trigger the terminal to display an interface for uploading multimedia resources, as shown in b in FIG. 1 .
- the user can take videos, pictures, etc. to upload, or the user can also select the multimedia resources to be uploaded locally in the terminal.
- take the video A stored locally in the terminal by the user as an example, as shown in Fig.
- the user operates the album control 12 and selects video A as an example, and b in FIG. 1 does not show the process of the user selecting video A.
- the interface for the user to select a multimedia resource may further include a next step control, and the user operates the next step control, and the terminal may display a publishing interface, as shown in c in FIG. 1 .
- the publishing interface may include a publishing control 13, and the user may operate the publishing control 13 to trigger the terminal to send the video A to the server, so as to upload the video A to the server. It should be understood that during the process of the terminal uploading the multimedia resource A, the interface of the terminal may display prompt information such as uploading, as shown in d in FIG. 1 .
- FIG. 1 is an example of uploading a multimedia resource by a contributing user through a terminal, and does not limit the method for uploading a multimedia resource in the embodiments of the present disclosure.
- the terminal uploads multimedia resources to the server
- the terminal sends the multimedia resources (such as all the content of video A) to the server at one time
- the network speed is poor
- problems such as packet loss, resulting in the server being unable to receive the multimedia resources.
- the server sends the multimedia resource.
- the success rate of uploading multimedia resources in this manner is low, and the user experience is poor.
- the terminal can divide multimedia resources into resource fragments of fixed size for uploading. In this way, when the network speed is poor, if a certain resource Re-uploading the resource segment does not need to re-upload the entire multimedia resource, thereby reducing the release time of the multimedia resource and improving the upload success rate of the multimedia resource.
- the multimedia resource is 800k
- the terminal may divide the multimedia resource into 8 resource fragments, each of which has a size of 100k.
- the current method for the terminal to divide multimedia resources into resource fragments of fixed size can reduce the release time of multimedia resources and improve the upload success rate of multimedia resources, but cannot adapt to the network speed and has poor flexibility.
- the size of each resource fragment is 100k
- the network speed is good, it is necessary to repeatedly upload the resource fragment of 100k in size, and the upload time is long and the upload efficiency is low.
- the network speed is poor, the network speed is not enough to upload 100k resource fragments, resulting in failure to upload resource fragments.
- an embodiment of the present disclosure provides a method for uploading multimedia resources.
- the terminal can determine the resource fragment size of the multimedia resource to be uploaded based on the current network speed of the terminal, and then adjust the resource fragmentation of the multimedia resource to be uploaded according to the network speed.
- the size can further improve the efficiency and success rate of uploading multimedia resources, and the flexibility is high. Because the network speed is fluctuating, there may be instantaneous high and low phenomena.
- the terminal can combine the terminal's current network Speed, and other target parameters that affect resource fragmentation determine the resource fragmentation size of the multimedia resource to be uploaded. On the basis of adapting to the network speed, the accuracy of resource fragmentation can be improved.
- the terminal of the user who contributes may be a wireless terminal or a wired terminal.
- a wireless terminal may refer to a handheld device with a wireless connection function, or other processing device connected to a wireless modem.
- the wireless terminal can communicate with one or more core network devices via the radio access network (Radio Access Network, referred to as RAN).
- the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone) and a
- the computers which may be, for example, portable, pocket, handheld, built-in or vehicle-mounted mobile devices, exchange speech and/or data with the radio access network.
- the wireless terminal can also be a Personal Communication Service (PCS for short) phone, a cordless phone, a Session Initiation Protocol (SIP for short) phone, a Wireless Local Loop (WLL for short) station , Personal Digital Assistant (Personal Digital Assistant, referred to as PDA) and other equipment.
- Wireless terminal can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), mobile station (Mobile Station), mobile station (Mobile), remote station (Remote Station), remote terminal (Remote Terminal), access Access Terminal, User Terminal, User Agent, and User Device or User Equipment are not limited here.
- the above-mentioned terminal can also be a smart watch, a tablet computer, and a wearable device, etc.
- the terminal of the contributing user is a mobile phone as an example. illustrate.
- the server may be one server or a cluster composed of multiple servers.
- one server is taken as an example for illustration.
- FIG. 2 is a first schematic flowchart of a method for uploading multimedia resources provided by an embodiment of the present disclosure.
- the method of this embodiment can be applied to the terminal in Figure 1, and the method for uploading multimedia resources includes:
- the current network speed of the terminal can be understood as: the network speed when the terminal receives a publishing instruction from the user, and the publishing instruction is used to instruct the terminal to upload the target multimedia resource to the server for publishing.
- the target multimedia resource can be understood as a multimedia resource to be uploaded.
- the terminal may use the network speed when the user operates the release control 13 as the current network speed.
- the current network speed of the terminal can be understood as: after sending the i-1th resource fragment, and sending the i-1th resource fragment previous internet speed.
- i is an integer greater than or equal to 1.
- the terminal may acquire the value of at least one target parameter of the terminal.
- each target parameter is related to the resource fragment size.
- the target parameter may be at least one of the following: a performance parameter of the terminal, and a network speed within a preset time period before the current upload time. It should be understood that the performance parameters of the terminal and the network speed within the preset time period before the current upload time are examples of the target parameters, and the target parameters may also include other parameters related to the size of resource fragments.
- the performance parameter of the terminal is related to the network speed of uploading multimedia resources supported by the terminal. It can also be said that the performance parameter of the terminal is used to represent the network speed of uploading multimedia resources supported by the terminal. Among them, if the network speed supported by the terminal for uploading multimedia resources is higher, it means that the terminal can upload relatively large resource fragments at one time; if the network speed supported by the terminal for uploading multimedia resources is lower, it means that the terminal can upload relatively small pieces Resource fragmentation.
- the network speed within the preset time period before the current upload time can be understood as: the average value of the network speed within the preset time period before the current upload time.
- the network speed within the preset time before the current upload time can represent the network speed of the current upload time to a certain extent.
- the network speed representing the current upload time is also It is relatively high, and relatively large resource fragments can be uploaded. If the network speed within the preset time before the current upload time is lower, the network speed representing the current upload time is also relatively low, and relatively small resource fragments can be uploaded.
- the terminal can start an application program installed in the terminal to test the network speed, so as to obtain the current network speed of the terminal.
- a preset file is stored in the terminal, and the preset file is used to detect the current network speed.
- the terminal can upload the preset file, such as sending the preset file to the server, and the terminal can determine the current network speed based on the time spent uploading the preset file and the size of the preset file.
- the terminal can record the first moment when the preset file is sent to the server.
- the server receives the preset file, it can feed back a message of successful reception to the terminal, and the terminal can record the second moment of the successful message reception. The difference between the second moment and the first moment is used as the time spent uploading the preset file.
- the terminal can calculate the current network speed based on the following formula 1.
- R is the current network speed
- M is the size of the preset file
- T is the time spent uploading the preset file.
- the preset file may be an empty file. That is to say, the smaller the size of the preset file is, the faster the terminal obtains the current network speed of the terminal, and correspondingly, the faster the terminal uploads multimedia resources.
- the network speed before the current upload time can represent the network speed at the current upload time to a certain extent
- the terminal when the terminal uploads the multimedia resource, it can record the time of uploading the multimedia resource and the network speed. Therefore, the terminal can query the time when the terminal uploaded the multimedia resource last time. The terminal may obtain the time interval between the last time the terminal uploaded the multimedia resource and the current upload time based on the time when the terminal uploaded the multimedia resource last time, and then obtain the current network speed based on the time interval.
- the terminal may use the network speed when uploading the multimedia resource last time as the current internet speed.
- the terminal can record the time and network speed of each resource segment when uploading each multimedia resource.
- the network speed when uploading a multimedia resource last time can be understood as: The average network speed of resource fragments.
- the terminal may store a mapping relationship between a time interval and a ratio, and the terminal may be based on the time interval between the time when the terminal last uploaded multimedia resources and the current upload time, and the "time interval and The mapping relationship of the proportion", to get the proportion. Furthermore, the terminal may use the product of the network speed when the multimedia resource was uploaded last time and the ratio as the current network speed. It should be noted that in this mapping relationship, the larger the time interval, the smaller the ratio.
- the terminal can record the network speed of the terminal in real time to obtain the network speed record, which includes the network speed and the corresponding network speed time.
- the terminal can query the network speed record, and obtain the network speed within the preset time period before the current upload time.
- the terminal may query the attribute information in the terminal to obtain the performance parameters of the terminal.
- the attribute information may include but not limited to: performance parameters of the terminal, model of the terminal, system version, memory size, and the like.
- the network speed, the value of the target parameter, and the size of the resource slice have a mapping relationship, and the terminal can determine the i-th target multimedia resource currently to be uploaded based on the current network speed, the value of at least one target parameter, and the mapping relationship.
- the size of the resource slice may be embodied as a formula, a table, etc., which is not limited in this embodiment of the present disclosure.
- the current network speed may be the network speed when the terminal receives the instruction issued by the user.
- the current network speed is the network speed when the terminal receives the instruction issued by the user, it is a value , therefore, whether the size of each resource segment to be uploaded by the target multimedia resource is the same is related to the current network speed.
- the current network speed may be the network speed after sending the i-1 resource segment and before sending the i-1 resource segment.
- the terminal may send the i-1 resource segment After i-1 resource fragments, the current network speed can be obtained, and then based on the current network speed, the size of the i-th resource fragment can be determined.
- the current network speed corresponding to each resource fragment to be uploaded of the target multimedia resource may be different, and therefore the size of each resource fragment to be uploaded of the target multimedia resource may also be different.
- the terminal may acquire the i-th resource segment from the target multimedia resource.
- the terminal may segment an i-th resource segment from the target multimedia resource, and the size of the i-th resource segment is the same as the size of the i-th resource segment obtained in S202.
- the terminal may use an existing slicing application program or a slicing tool to obtain the i-th resource slice from the target multimedia resource.
- the size of the multimedia resource is 800k
- the sum of the sizes of the first i-1 resource fragments is 500k
- the size of the i-th resource fragment is 200k
- the terminal can wait for the rest of the target multimedia resource.
- the uploaded multimedia resource is divided into 200k resource fragments, that is, the i-th resource fragment.
- the terminal may send the i-th resource segment to the server, that is, upload the i-th resource segment, as shown in d in FIG. 1 .
- the uploading of multimedia resources includes: obtaining the current network speed of the terminal, and the value of at least one target parameter of the terminal, each target parameter is related to the resource fragment size; according to the current network speed, and at least one The value of the target parameter determines the size of the i-th resource segment to be uploaded by the target multimedia resource, and i is an integer greater than or equal to 1; according to the size of the i-th resource segment, obtain the i-th resource segment from the target multimedia resource resource fragments; upload the i-th resource fragment.
- the terminal can adaptively adjust the resource fragment size of the multimedia resource to be uploaded based on the current network speed of the terminal and parameters related to the resource fragment size, instead of using a fixed resource fragment size, which can be more Adapt to the network speed well, improve the efficiency and success rate of uploading multimedia resources, and improve the flexibility of uploading.
- the terminal does not determine the resource fragment size of the multimedia resources to be uploaded solely based on the current network speed, which can avoid the problem of inaccurate resource fragmentation caused by instantaneous network speed fluctuations and improve the accuracy of resource fragmentation.
- the terminal can determine the i-th resource segment of the target multimedia resource to be uploaded based on the current network speed, the value of at least one target parameter, and the mapping relationship between the network speed, the value of the target parameter, and the resource segment
- the first network model based on machine learning can be pre-stored in the terminal, and the terminal can use the current network speed, at least one target The value of the parameter is input to the first network model to obtain the size of the i-th resource fragment to be uploaded currently of the target multimedia resource.
- the at least one target parameter includes at least one of the following: the size of the target multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, the time between the last time the terminal uploaded the multimedia resource and the current upload time Interval, performance parameters of the terminal.
- the target parameters used in S202A are the same as the target parameters used in training the first network model.
- at least one target parameter includes: the size of the target multimedia resource, the network speed when the terminal last uploaded the multimedia resource, and the time interval between the last time the terminal uploaded the multimedia resource and the current upload time.
- the target parameters used in training the first network model also include: the size of the multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, and the time between the time when the terminal uploaded the multimedia resource last time and the time when the terminal uploaded the multimedia resource last time. time interval.
- the first network model is described as follows:
- the first network model may be obtained by the training device based on the training data and preset in the terminal.
- the training device is such as a server or other electronic devices such as a computer.
- the training data may include: the network speed, the value of at least one target parameter, and the size of the resource slice corresponding to the network speed and the value of the at least one target parameter.
- At least one target parameter may include but not limited to: the size of the multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, and the time between the time when the terminal uploaded the multimedia resource last time and the time when the terminal uploaded the multimedia resource last time.
- the time interval between and the performance parameters of the terminal can be replaced by: the level of influence of the time interval on the size of resource fragments, wherein, the mapping relationship between the time interval and the level can refer to the table One shown:
- time intervalX(ms) grade 0 ⁇ X ⁇ 300 0 300 ⁇ X ⁇ 1800 1 1800 ⁇ X ⁇ 3600 2 3600 ⁇ X ⁇ 86400 3
- the grades are represented by numbers as an example, and the smaller the number, the higher the representation grade. Based on Table 1, it can be obtained that the smaller the time interval between the time when the terminal uploaded the multimedia resource last time and the time when the terminal uploaded the multimedia resource last time, the greater the impact of the time interval on the size of resource fragments, and the higher the level. It should be understood that, in the following embodiments, the time interval between the time when the terminal uploaded the multimedia resource last time and the time when the multimedia resource is uploaded next time is taken as an example for illustration as a target parameter for training the first network model.
- the training device can input the training data into the initial network model for training, and obtain the first network model through machine learning.
- the initial network model can be but not limited to: convolutional neural networks (CNN for short), deep neural network (deep neural networks (DNN for short), recurrent neural network (RNN for short), long short-term memory network model (long short-term memory, LSTM for short), and GoogLeNet, tree models, etc.
- CNN convolutional neural networks
- DNN deep neural networks
- RNN recurrent neural network
- long short-term memory network model long short-term memory, LSTM for short
- GoogLeNet GoogLeNet
- the terminal can input the current network speed and the value of at least one target parameter into the first network model to obtain the size of the i-th resource segment of the target multimedia resource currently to be uploaded, which can increase the size of the i-th resource.
- the accuracy of the size of the fragments thereby improving the accuracy of uploading multimedia resources.
- the size of the i-th resource segment to be uploaded by the target multimedia resource can be obtained, but the network speed is not constant, and is fluctuating, so in order to further improve the accuracy of the size of the obtained i-th resource fragment, in the embodiment of the present disclosure, the resource fragment sent by the terminal before the i-th resource fragment (that is, the first i -1 resource fragment) network speed, predict the upload network speed of the i-th resource fragment, and then further combine the predicted upload network speed of the i-th resource fragment to obtain the size of the i-th resource fragment, and improve accuracy.
- At least one target parameter in the training data of the first network model trained by machine learning may include the predicted upload network speed of the i-th resource segment. It should be understood that during the training process, the predicted upload network speed of the i-th resource segment can be obtained by the training device based on the network speed of the previous i-1 resource segments when uploading multimedia resources.
- the training device may use the average value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the uploading network speed of the i-th resource fragment.
- the training device may use the minimum value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the uploading network speed of the i-th resource fragment.
- the training device may use the maximum value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the uploading network speed of the i-th resource fragment.
- the training device can obtain the predicted upload network speed of the i-th resource segment, and then use the predicted upload network speed of the i-th resource segment as a target parameter as training data to obtain the first network model through training.
- a pre-trained second network model may be stored in the training device, and the second network model is used to predict and obtain the first i-1 resource fragments based on the network speed when the multimedia resources are uploaded.
- the upload network speed of i resource fragments In this way, the training device can input the network speed when uploading the first i-1 resource fragments of the target multimedia resource into the second network model, so as to obtain the uploading network speed of the i-th resource fragment.
- the second network model may be pre-obtained by the training device based on the training data and stored in the training device.
- the training data may include: the network speed when uploading the first i-1 resource fragments in the multimedia resource.
- the training device can input the training data into the initial network model for training, and obtain the second network model through machine learning.
- the embodiment of the present disclosure does not repeat the training process of the second network model, and can refer to the existing network model for details. A description of the training.
- the terminal obtains the value of at least one target parameter of the terminal, wherein the at least one target parameter includes "the size of the target multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, the terminal In addition to the time interval between the last upload time of the multimedia resource and the current upload time, and the performance parameters of the terminal", it may also include: the predicted upload network speed of the i-th resource segment.
- the method for the terminal to obtain the predicted upload network speed of the i-th resource fragment can be as follows:
- the terminal can record the network speed record, and the network speed record includes the network speed and the time corresponding to the network speed.
- the network speed record may include the network speed when the terminal uploads each resource segment in each multimedia resource, and the time corresponding to the network speed.
- the terminal can query the network speed record to obtain the network speed of each resource segment in the first i-1 resource segments when the terminal uploads the target multimedia resource.
- the terminal may predict the upload network speed of the i-th resource fragment according to the network speed when uploading the first i-1 resource fragments of the target multimedia resource.
- the training device can obtain the second network model through pre-training and preset it in the terminal.
- the terminal may input the network speed when uploading the first i-1 resource fragments of the target multimedia resource into the pre-trained second network model to obtain the upload network speed of the i-th resource fragment.
- the terminal may use the average network speed when uploading the first i-1 resource fragments of the target multimedia resource as the uploading network speed of the i-th resource fragment.
- the terminal may use the minimum value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the uploading network speed of the i-th resource fragment.
- the terminal may use the maximum value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the uploading network speed of the i-th resource fragment.
- the terminal can obtain the predicted upload network speed of the i-th resource segment, and then the terminal can use the current network speed and the value of at least one target parameter (including the predicted upload network speed of the i-th resource segment) Input to the pre-trained first network model to obtain the size of the i-th resource segment, you can refer to the relevant description in the above-mentioned embodiment.
- the terminal can predict the upload network speed of the i-th resource segment based on the network speed of the resource segment sent by the terminal before the i-th resource segment, and then upload the predicted i-th resource segment to Network speed as a target parameter, input the current network speed and the value of at least one target parameter into the first network model, and obtain the size of the i-th resource fragment.
- the terminal not only sends the last multimedia
- the historical network speed at the time of the resource can also be combined with the network speed at the time of the first i-1 resource fragments when the target multimedia resource is sent, so as to improve the accuracy of the obtained size of the i-th resource fragment.
- the target multimedia resource is a video or image.
- the user can upload the video or image locally stored in the terminal through the terminal, or the user can shoot the video or image through the terminal, and then upload the captured video or image. image.
- a locally stored multimedia resource such as video or image
- the method for uploading a multimedia resource provided by an embodiment of the present disclosure may include:
- the terminal When the user needs to publish a video or image on the terminal, the terminal can be triggered to capture the video or image.
- the user can operate the shooting control 14 in the interface for uploading multimedia resources to trigger the terminal to display the shooting interface.
- the shooting control 14 As shown in c in FIG. The process is not described. It should be understood that a in FIG. 6 is the same as a in FIG. 1 , and reference may be made to the relevant description above.
- the terminal performs shooting in response to receiving the shooting request input by the user, and then can obtain the target multimedia resource for shooting.
- the user can capture target multimedia resources such as videos or images.
- the captured interface may display a next step control, and the user operates the next step control, and the terminal may display the publishing interface, as shown in c in FIG. 6 .
- the publishing interface may include a publishing control 13, and the user may operate the publishing control 13 to trigger the terminal to send the target multimedia resource to the server, and reference may be made to the relevant description in FIG. 1 .
- the terminal may execute S504-S507 in response to detecting that the user operates the publishing control 13, that is, receiving a publishing instruction of the target multimedia resource.
- FIG. 7 is a structural block diagram of an apparatus for uploading multimedia resources provided by an embodiment of the present disclosure.
- the device 70 for uploading multimedia resources includes: a processing module 701 , a module for obtaining resource fragments 702 , a module for uploading resource fragments 703 , and a transceiver module 704 . in,
- the processing module 701 is configured to: obtain the current network speed of the terminal, and the value of at least one target parameter of the terminal, each target parameter is related to the size of the resource slice; according to the current network speed, and the value of at least one target parameter Value, to determine the size of the i-th resource segment to be uploaded currently for the target multimedia resource, where i is an integer greater than or equal to 1.
- the resource segment acquiring module 702 is configured to acquire the i-th resource segment from the target multimedia resource according to the size of the i-th resource segment.
- the processing module 701 is specifically configured to input the current network speed and the value of at least one target parameter into the pre-trained first network model to obtain the size.
- At least one target parameter includes at least one of the following: the size of the target multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, the time when the terminal uploaded the multimedia resource last time and the current upload time
- the time interval between , the performance parameters of the terminal, the predicted upload network speed of the i-th resource fragment, and the performance parameters are related to the network speed of uploading multimedia resources supported by the terminal.
- At least one target parameter includes: a predicted upload network speed of the i-th resource segment.
- the processing module 701 is specifically configured to predict the upload network speed of the i-th resource fragment according to the network speed when uploading the first i-1 resource fragments of the target multimedia resource.
- the processing module 701 is specifically configured to input the network speed when uploading the first i-1 resource fragments of the target multimedia resource into the pre-trained second network model, and obtain the i-th The upload network speed of resource fragments.
- the processing module 701 is specifically configured to use the average value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the upload network speed of the i-th resource fragment ; Or, use the minimum value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the upload network speed of the i-th resource fragment; or, upload the first i-1 resources of the target multimedia resource
- the maximum value of the network speed during sharding is used as the upload network speed of the i-th resource shard.
- the processing module 701 is specifically configured to upload the preset file; obtain the time spent uploading the preset file; and determine the current time according to the time spent uploading the preset file and the size of the preset file internet speed.
- the processing module 701 is specifically configured to obtain the time when the terminal last uploaded multimedia resources; obtain the time interval between the time when the terminal last uploaded multimedia resources and the current upload time; if the time interval is less than or equal to the preset time interval, the network speed when the multimedia resource was uploaded last time is taken as the current network speed.
- i is equal to 1.
- the sending and receiving module 704 is configured to receive an issuing instruction of the target multimedia resource, and the issuing instruction is used to request uploading of the target multimedia resource.
- the transceiving module 704 is further configured to receive a shooting request.
- the shooting module is configured to obtain the target multimedia resource by shooting according to the shooting request.
- the target multimedia resource is a video.
- the device for uploading multimedia resources provided by the embodiments of the present disclosure can be used to implement the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, and details will not be repeated here in this embodiment.
- the embodiments of the present disclosure further provide an electronic device.
- FIG. 8 it shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure, and the electronic device 800 may be the terminal in the foregoing embodiments.
- the electronic device shown in FIG. 8 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
- an electronic device 800 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 808 loads the program in the random access memory (Random Access Memory, referred to as RAM) 803 to execute various appropriate actions and processes.
- RAM Random Access Memory
- various programs and data necessary for the operation of the electronic device 800 are also stored.
- the processing device 801, ROM 802, and RAM 803 are connected to each other through a bus 803.
- An input/output (Input/Output, I/O for short) interface 805 is also connected to the bus 803 .
- an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; ), a speaker, a vibrator, etc.
- a storage device 808 including, for example, a magnetic tape, a hard disk, etc.
- the communication means 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 8 shows electronic device 800 having various means, it is to be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
- embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts.
- the computer program may be downloaded and installed from a network via communication means 809, or from storage means 808, or from ROM 802.
- the processing device 801 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
- the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
- a computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof.
- Computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM or flash memory), optical fiber, portable compact disk read-only memory (Compact Disk Read Only Memory, referred to as CD-ROM), optical storage device, magnetic storage device, or any of the above the right combination.
- a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
- the program code contained on the computer readable medium can be transmitted by any appropriate medium, including but not limited to: electric wire, optical cable, radio frequency (Radio Frequency, RF for short), etc., or any suitable combination of the above.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to execute the methods shown in the above-mentioned embodiments.
- Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language.
- the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it may be connected to an external computer such as use an Internet service provider to connect via the Internet).
- LAN Local Area Network
- WAN Wide Area Network
- each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
- the modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the module does not constitute a limitation of the module itself under certain circumstances, for example, the first obtaining module may also be described as "a module for obtaining at least two Internet Protocol addresses".
- exemplary types of hardware logic components include: Field Programmable Gate Array (Field Programmable Gate Array, FPGA for short), Application Specific Integrated Circuit (ASIC for short), Application Specific Standard Products ( Application Specific Standard Parts (ASSP for short), System on Chip (SOC for short), Complex Programmable Logic Device (CPLD for short), etc.
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
- a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
- machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory erasable programmable read only memory
- CD-ROM compact disk read only memory
- magnetic storage or any suitable combination of the foregoing.
- a method for uploading multimedia resources including: obtaining the current network speed of the terminal, and the value of at least one target parameter of the terminal, each of the The target parameter is related to the size of the resource fragment; according to the current network speed and the value of the at least one target parameter, determine the size of the i-th resource fragment to be uploaded by the target multimedia resource, and the i is An integer greater than or equal to 1; according to the size of the ith resource fragment, obtain the ith resource fragment from the target multimedia resource; upload the ith resource fragment.
- determining the size of the i-th resource segment to be uploaded currently of the target multimedia resource includes: : Input the current network speed and the value of the at least one target parameter into the pre-trained first network model to obtain the size of the i-th resource fragment.
- the at least one target parameter includes at least one of the following: the size of the target multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, the last time the terminal uploaded The time interval between the time of multimedia resources and the current upload time, the performance parameters of the terminal, the predicted upload network speed of the i-th resource fragment, the performance parameters and the network speed of uploading multimedia resources supported by the terminal relevant.
- the at least one target parameter includes: the predicted upload network speed of the i-th resource segment; obtaining the value of the at least one target parameter of the terminal includes: according to The network speed when uploading the first i-1 resource fragments of the target multimedia resource is used to predict the uploading network speed of the i-th resource fragment.
- the predicting the upload network speed of the i-th resource fragment according to the network speed when uploading the first i-1 resource fragments of the target multimedia resource includes: Inputting the network speed when uploading the first i-1 resource fragments of the target multimedia resource into the pre-trained second network model to obtain the uploading network speed of the i-th resource fragment.
- the predicting the upload network speed of the i-th resource fragment according to the network speed when uploading the first i-1 resource fragments of the target multimedia resource includes: The average value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource is used as the upload network speed of the i-th resource fragment; or, upload the first i-1 resource fragments of the target multimedia resource.
- the minimum value of the network speed when 1 resource fragment is used as the upload network speed of the i-th resource fragment; or, the maximum network speed when uploading the first i-1 resource fragments of the target multimedia resource The value is used as the upload network speed of the i-th resource fragment.
- the obtaining the current network speed of the terminal includes: uploading a preset file; obtaining the time spent uploading the preset file; according to the time spent uploading the preset file, and, the preset file size and determine the current network speed.
- the obtaining the current network speed of the terminal includes: obtaining the time when the terminal uploaded the multimedia resource last time; obtaining the time between the time when the terminal uploaded the multimedia resource last time and the current upload time If the time interval is less than or equal to the preset time interval, the network speed when the multimedia resource was uploaded last time is taken as the current network speed.
- the i is equal to 1, and before obtaining the current network speed of the terminal and at least one target parameter value of the terminal, further includes: receiving the publication of the target multimedia resource An instruction, the publishing instruction is used to request uploading of the target multimedia resource.
- the method before receiving the release instruction of the target multimedia resource, the method further includes: receiving a shooting request; and obtaining the target multimedia resource by shooting according to the shooting request.
- the target multimedia resource is video.
- an apparatus for uploading multimedia resources including: a processing module, configured to: obtain the current network speed of the terminal, and at least one target parameter of the terminal value, each of the target parameters is related to the resource fragment size; according to the current network speed, and the value of the at least one target parameter, determine the i-th resource fragment of the target multimedia resource currently to be uploaded Size, the i is an integer greater than or equal to 1.
- a resource fragment obtaining module configured to obtain the ith resource fragment from the target multimedia resource according to the size of the ith resource fragment.
- a resource fragment upload module configured to upload the i-th resource fragment.
- the processing module is specifically configured to input the current network speed and the value of the at least one target parameter into a pre-trained first network model to obtain the i-th The size of resource slices.
- the at least one target parameter includes at least one of the following: the size of the target multimedia resource, the network speed when the terminal uploaded the multimedia resource last time, the last time the terminal uploaded The time interval between the time of multimedia resources and the current upload time, the performance parameters of the terminal, the predicted upload network speed of the i-th resource fragment, the performance parameters and the network speed of uploading multimedia resources supported by the terminal relevant.
- the at least one target parameter includes: the predicted upload network speed of the i-th resource segment.
- the processing module is specifically configured to predict the upload network speed of the i-th resource fragment according to the network speed when uploading the first i-1 resource fragments of the target multimedia resource.
- the processing module is specifically configured to input the network speed when uploading the first i-1 resource fragments of the target multimedia resource into the pre-trained second network model, and obtain the Describes the upload network speed of the i-th resource fragment.
- the processing module is specifically configured to use the average value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the i-th resource fragment Upload network speed; or, upload the minimum value of the network speed when uploading the first i-1 resource fragments of the target multimedia resource as the upload network speed of the i-th resource fragment; or, upload the target multimedia resource
- the maximum value of the network speed of the first i-1 resource fragments of the multimedia resource is used as the upload network speed of the i-th resource fragment.
- the processing module is specifically configured to upload a preset file; obtain the time spent uploading the preset file; according to the time spent uploading the preset file, and the size of the preset file , to determine the current network speed.
- the processing module is specifically configured to obtain the time when the terminal uploaded the multimedia resource last time; obtain the time interval between the time when the terminal uploaded the multimedia resource last time and the current upload time; If the time interval is less than or equal to the preset time interval, the network speed when the multimedia resource was uploaded last time is taken as the current network speed.
- the i is equal to 1.
- the transceiver module is configured to receive a release instruction of a target multimedia resource, and the release instruction is used to request uploading of the target multimedia resource.
- the transceiver module is further configured to receive a shooting request.
- the photographing module is configured to photograph and obtain the target multimedia resource according to the photographing request.
- the target multimedia resource is video.
- an electronic device including: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory , so that the processor executes the multimedia resource uploading method described in the first aspect and various possible designs of the first aspect.
- a computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, Realize the method for uploading multimedia resources described in the above first aspect and various possible designs of the first aspect.
- a computer program product including computer instructions.
- the computer instructions are executed by a processor, the above first aspect and various possible aspects of the first aspect can be realized.
- the method for uploading the multimedia resource is designed.
- a computer program is provided.
- the computer program When the computer program is executed by a processor, it realizes the above-mentioned first aspect and various possible designs of the first aspect.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开实施例提供一种多媒体资源上传方法、装置、电子设备、计算机可读存储介质、计算机程序产品及计算机程序,该方法包括:获取终端的当前网速,以及,终端的至少一个目标参数的取值,每个目标参数与资源分片大小相关;根据当前网速,以及,至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,i为大于或等于1的整数;根据第i个资源分片的大小,从目标多媒体资源中获取第i个资源分片;上传第i个资源分片。本公开实施例中,可以基于终端的当前网速,以及与资源分片大小相关的参数,适应性调整待上传多媒体资源的资源分片大小,能够更好地适配网速,提高上传多媒体资源的效率和上传成功率,且能够提高上传灵活性。
Description
相关申请的交叉引用
本公开要求于2021年09月06日提交中国专利局、申请号为202111036741.1、申请名称为“多媒体资源上传方法、装置、电子设备以及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
本公开实施例涉及数据处理技术领域,尤其涉及一种多媒体资源上传方法、装置、电子设备、计算机可读存储介质、计算机程序产品及计算机程序。
随着终端技术的发展,短视频成为用户获取信息的重要途径。越来越多的用户习惯通过拍照、录制短视频等方式记录和分享生活。投稿用户可以在终端中上传自己录制的视频进行发布,使得其他用户可以在自己的终端中看到投稿用户发布的视频。终端上传视频的速度越快,其他用户可以更快看到该视频,用户体验好。
目前为了缩短视频的发布时长和上传成功率,可以将视频数据切分成固定大小的数据分片进行上传,该种方式虽然可以提高上传视频的成功率,但是不能很好地匹配网速,灵活性差。
发明内容
本公开实施例提供一种多媒体资源上传方法、装置、电子设备、计算机可读存储介质、计算机程序产品及计算机程序,可以适配网速,提高上传灵活性。
第一方面,本公开实施例提供一种多媒体资源上传方法,包括:
获取终端的当前网速,以及,所述终端的至少一个目标参数的取值,每个所述目标参数与资源分片大小相关;根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,所述i为大于或等于1的整数;根据所述第i个资源分片的大小,从所述目标多媒体资源中获取所述第i个资源分片;上传所述第i个资源分片。
第二方面,本公开实施例提供一种多媒体资源上传装置,包括:
处理模块,用于:获取终端的当前网速,以及,所述终端的至少一个目标参数的取值,每个所述目标参数与资源分片大小相关;根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,所述i为大于或等于1的整数。资源分片获取模块,用于根据所述第i个资源分片的大小,从所述目标多媒体资源中获取所述第i个资源分片。资源分片上传模块,用于上传所述第i个资源分片。
第三方面,本公开实施例提供一种电子设备,包括:处理器和存储器;所述存储器存储计算机执行指令;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机指令,所述计算机指令被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
第六方面,本公开实施例提供一种计算机程序,所述计算机程序在被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
本实施例提供的多媒体资源上传方法、装置、电子设备以及可读存储介质,所述方法包括:获取终端的当前网速,以及,终端的至少一个目标参数的取值,每个目标参数与资源分片大小相关;根据当前网速,以及,至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,i为大于或等于1的整数;根据第i个资源分片的大小,从目标多媒体资源中获取第i个资源分片;上传第i个资源分片。本公开实施例中,可以基于终端的当前网速,以及与资源分片大小相关的参数,适应性调整待上传多媒体资源的资源分片大小,而不是采用固定的资源分片大小,能够更好地适配网速,提高上传多媒体资源的效率和上传成功率,且能够提高上传灵活性。
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例适用的一种场景示意图;
图2为本公开实施例提供的多媒体资源上传方法流程示意图一;
图3为本公开实施例提供的一种资源分片的示意图;
图4为本公开实施例提供的多媒体资源上传方法流程示意图二;
图5为本公开实施例提供的多媒体资源上传方法流程示意图三;
图6为本公开实施例适用的另一种场景示意图;
图7为本公开实施例提供的多媒体资源上传装置的结构框图;
图8为本公开实施例提供的电子设备的结构示意图。
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技 术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
多媒体资源:图像、视频、音频、文档等,本公开实施例对此不作限制。
多媒体资源上传:是指投稿用户的终端将多媒体资源上传至服务器。
多媒体资源发布:上传至服务器的多媒体资源,服务器可以对多媒体资源进行转码、封装等处理后进行发布。发布完成后,其他用户可以在自己的终端上观看到投稿用户发布的多媒体资源。
图1为本公开实施例适用的一种场景示意图。图1中的a显示的为一短视频应用程序的主界面,该主界面上包括上传控件11,用户操作上传控件11,可以触发终端显示上传多媒体资源的界面,如图1中的b所示。在上传多媒体资源的界面中,用户可以拍摄视频、图片等进行上传,或者用户也可以在终端本地中选择需要上传的多媒体资源,示例性的,以用户选择终端本地存储的视频A为例,图1中的b中以用户操作相册控件12,选择视频A为例,图1中的b未示出用户选择视频A的过程。
在一种实施例中,在用户选择多媒体资源的界面中还可以包括下一步控件,用户操作该下一步控件,终端可以显示发布界面,如图1中的c所示。其中,发布界面中可以包括发布控件13,用户操作发布控件13,可以触发终端向服务器发送视频A,以向服务器上传视频A。应理解,终端上传多媒体资源A的过程中,终端的界面可以显示正在上传等提示信息,参照图1中的d所示。
当终端成功将视频A上传至服务器后,服务器可以对多媒体资源进行转码、封装等处理后进行发布,当服务器成功发布视频A,服务器可以向终端反馈发布成功的消息。终端响应于接收发布成功的消息,可以显示“发布成功”的提示信息,参照图1中的e所示。应理解,图1为投稿用户通过终端上传多媒体资源的一种示例,并不对本公开实施例中的多媒体资源上传方法造成限制。
其中,终端向服务器上传多媒体资源时,若终端一次性向服务器发送多媒体资源(如视频A的所有内容),当网速差时易造成丢包等问题,导致服务器无法接收多媒体资源,终端需要重复向服务器发送该多媒体资源。该种方式的多媒体资源上传的成功率低,用户体验差。
为了缩短多媒体资源的发布时长,提高多媒体资源的上传成功率,终端可以将多媒体资源切分成固定大小的资源分片进行上传,这样在网速差时,若某一资源分片传输失败,只需重新上传该资源分片,无需重新上传整个多媒体资源,进而减小了多媒体资源的发布时长,提高了多媒体资源的上传成功率。示例性的,多媒体资源为800k,终端可以将多媒体资源切分成8个资源分片,每个资源分片的大小为100k。
目前终端将多媒体资源切分成固定大小的资源分片的方法,虽然能够减小多媒体资源的发布时长,以及提高多媒体资源的上传成功率,但是无法适配于网速,灵活性差。示例性的,如每个资源分片的大小为100k,在网速好时,需要重复多次上传100k大小的资源分片,上传时间长、上传效率低。在网速差时,网速不足以上传100k的资源分片,导致资源分片上传失败。
基于如上问题,因为网速与终端能够成功上传的资源分片的大小相关,如网速好时终端能够上传较大的资源分片,网速差时终端能够上传较小的资源分片,据此,本公开 实施例提供一种多媒体资源上传方法,终端可以基于终端的当前网速确定待上传的多媒体资源的资源分片大小,进而适配于网速调整待上传的多媒体资源的资源分片大小,能够进一步提高多媒体资源上传效率和上传成功率,灵活性高。因为网速具有波动性,可能会出现瞬时高瞬时低的现象,为了避免终端依据瞬时的网速确定资源分片的大小造成不准确的问题,本公开实施例中,终端可以结合终端的当前网速,以及其他影响资源分片的目标参数确定待上传的多媒体资源的资源分片大小,在适配于网速的基础上,可以提高资源分片的准确性。
在一种实施例中,投稿用户的终端可以是无线终端也可以是有线终端。无线终端可以是指具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经无线接入网(Radio Access Network,简称RAN)与一个或多个核心网设备进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。再例如,无线终端还可以是个人通信业务(Personal Communication Service,简称PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,简称SIP)话机、无线本地环路(Wireless Local Loop,简称WLL)站、个人数字助理(Personal Digital Assistant,简称PDA)等设备。无线终端也可以称为***、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment),在此不作限定。可选的,上述终端还可以是智能手表、平板电脑,以及可穿戴设备等,本公开实施例中对投稿用户的终端不做限制,下述实施例中以投稿用户的终端为手机为例进行说明。
其中,服务器可以是一台服务器或多台服务器组成的集群,上述图1中以服务器为一台服务器为例进行说明。
参考图2,图2为本公开实施例提供的多媒体资源上传方法流程示意图一。本实施例的方法可以应用在图1中的终端上,该多媒体资源上传方法包括:
S201,获取终端的当前网速,以及,终端的至少一个目标参数的取值,每个目标参数与资源分片大小相关。
在一种实施例中,终端的当前网速可以理解为:终端接收到来自用户的发布指令时的网速,发布指令用于指示终端将目标多媒体资源上传至服务器,以进行发布。目标多媒体资源可以理解为待上传的多媒体资源。示例性的,参照图1中的c,终端可以将用户操作发布控件13时的网速作为当前网速。
在一种实施例中,因为目标多媒体资源是资源分片发送的,因此终端的当前网速可以理解为:在发送第i-1个资源分片后,以及发送第i-1个资源分片前的网速。其中,i为大于或等于1的整数。
终端在获取终端的当前网速时,可以获取终端的至少一个目标参数的取值。其中,每个目标参数与资源分片大小相关。在一种实施例中,目标参数可以为如下至少一项:终端的性能参数、当前上传时间之前的预设时长内的网速。应理解,终端的性能参数、当前上传时间之前的预设时长内的网速为目标参数的示例说明,目标参数还可以包括其 他资源分片大小相关的参数。
终端的性能参数与终端支持的上传多媒体资源的网速相关,也可以说,终端的性能参数用于表征终端支持的上传多媒体资源的网速。其中,若终端支持的上传多媒体资源的网速越高,则表征终端能够一次上传比较大的资源分片,若终端支持的上传多媒体资源的网速越低,则表征终端能够一次上传比较小的资源分片。当前上传时间之前的预设时长内的网速可以理解为:当前上传时间之前的预设时长内的网速的均值。当前上传时间之前的预设时长内的网速可以在一定程度上表征当前上传时间的网速,若当前上传时间之前的预设时长内的网速越高,则表征当前上传时间的网速也比较高,可以上传比较大的资源分片,若当前上传时间之前的预设时长内的网速越低,则表征当前上传时间的网速也比较低,可以上传比较小的资源分片。
下述说明终端获取终端的当前网速的方法:
在一种实施例中,终端可以启动终端中安装的测试网速的应用程序,以得到终端的当前网速。
在一种实施例中,终端中存储有预设文件,该预设文件用于检测当前网速。终端可以上传预设文件,如向服务器发送预设文件,终端可以基于上传预设文件花费的时间,以及预设文件的大小,确定当前网速。其中,终端可以记录向服务器发送预设文件的第一时刻,服务器在接收到预设文件时,可以向终端反馈接收成功的消息,终端可以记录接收成功的消息的第二时刻,终端可以将第二时刻和第一时刻的差值作为上传预设文件花费的时间。终端可以基于如下公式一计算得到当前网速。
其中,R为当前网速,M为预设文件的大小,T为上传预设文件花费的时间。
其中,为了提高终端获取终端的当前网速的速度,该预设文件可以为一空文件。也就是说,预设文件的大小越小,则终端获取终端的当前网速的速度越快,相应的,终端上传多媒体资源的速度也就越快。
在一种实施例中,因为当前上传时间之前的网速可以在一定程度上表征当前上传时间的网速,其中,若当前上传时间的时间间隔越近,则当前上传时间之前的网速越能够表征当前上传时间的网速,若当前上传时间的时间间隔越远,则当前上传时间之前的网速越能够表征当前上传时间的网速程度就越小。
本公开实施例中,终端在上传多媒体资源时,可以记录上传多媒体资源的时间和网速,因此,终端可以查询终端上一次上传多媒体资源的时间。终端可以基于终端上一次上传多媒体资源的时间,获取终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔,进而基于该时间间隔,获取当前网速。
在一种实施例中,示例性的,若终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔小于或等于预设时间间隔,则终端可以将上一次上传多媒体资源时的网速作为当前网速。在一种实施例中,终端可以记录上传每个多媒体资源时每个资源分片的时间和网速,相应的,上一次上传多媒体资源时的网速可以理解为:上一次上传多媒体资源时每个资源分片的网速的均值。
在一种实施例中,示例性的,终端中可以存储时间间隔与比例的映射关系,终端可 以基于终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔,以及该“时间间隔与比例的映射关系”,得到比例。进而,终端可以将上一次上传多媒体资源时的网速和该比例的乘积作为当前网速。应注意的是,在该映射关系中,时间间隔越大,比例越小。
下述说明终端获取终端的至少一个目标参数的取值的方法:
以目标参数包括终端的性能参数、当前上传时间之前的预设时长内的网速为例,终端可以实时记录终端的网速,得到网速记录,网速记录中包括网速,以及网速对应的时间。其中,终端可以查询网速记录,得到当前上传时间之前的预设时长内的网速。对于终端的性能参数,终端可以查询终端中的属性信息,得到终端的性能参数。其中,属性信息可以包括但不限于:终端的性能参数、终端的型号、***版本、内存大小等。
S202,根据当前网速,以及,至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,i为大于或等于1的整数。
网速、目标参数的取值,以及资源分片的大小具有映射关系,终端可以基于当前网速、至少一个目标参数的取值,以及该映射关系,确定目标多媒体资源当前待上传的第i个资源分片的大小。示例性的,该映射关系可以体现为公式、表格等,本公开实施例对此不作限制。
在一种实施例中,当前网速可以为终端接收到来自用户发布指令时的网速,在该实施例中,因为当前网速为终端接收到来自用户发布指令时的网速,为一个值,因此,目标多媒体资源待上传的每个资源分片的大小是否相同,均与该当前网速相关。
在一种实施例中,当前网速可以为在发送第i-1个资源分片后,以及发送第i-1个资源分片前的网速,在该实施例中,终端可以在发送第i-1个资源分片后,可以获取当前网速,进而基于当前网速,确定第i个资源分片的大小。在该实施例中,目标多媒体资源待上传的每个资源分片对应的当前网速可以是不同的,因此目标多媒体资源待上传的每个资源分片的大小也可以不相同。
S203,根据第i个资源分片的大小,从目标多媒体资源中获取第i个资源分片。
终端在得到目标多媒体资源当前待上传的第i个资源分片的大小后,可以从目标多媒体资源中获取第i个资源分片。示例性的,终端可以从目标多媒体资源中切分出第i个资源分片,该第i个资源分片的大小与S202中得到的第i个资源分片的大小相同。
在一种实施例中,终端可以采用已有的切片应用程序或切片工具从目标多媒体资源中获取第i个资源分片。参照图3,示例性的,多媒体资源的大小为800k,前i-1个资源分片的大小的总和为500k,第i个资源分片的大小为200k,则终端可以从目标多媒体资源剩余待上传的多媒体资源中切分200k的资源分片,即第i个资源分片。
S204,上传第i个资源分片。
终端在切分得到第i个资源分片后,可以向服务器发送该第i个资源分片,即上传第i个资源分片,可以参照图1中的d所示。
本公开实施例提供的多媒体资源上传包括:获取终端的当前网速,以及,终端的至少一个目标参数的取值,每个目标参数与资源分片大小相关;根据当前网速,以及,至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,i为大于或等于1的整数;根据第i个资源分片的大小,从目标多媒体资源中获取第i个资源 分片;上传第i个资源分片。本公开实施例中,终端可以基于终端的当前网速,以及与资源分片大小相关的参数,适应性调整待上传多媒体资源的资源分片大小,而不是采用固定的资源分片大小,能够更好地适配网速,提高上传多媒体资源的效率和上传成功率,且能够提高上传灵活性。另外,终端并不是单一地基于当前网速,确定待上传多媒体资源的资源分片大小,可以避免因网速瞬时波动造成的资源分片不准确的问题,提高资源分片准确性。
如上实施例中终端可以基于当前网速、至少一个目标参数的取值,以及网速、目标参数的取值以及资源分片的映射关系,确定目标多媒体资源当前待上传的第i个资源分片的大小,为了进一步提高得到的第i个资源分片的大小的准确性,本公开实施例中,终端中可以预先存储基于机器学习的第一网络模型,终端可以将当前网速、至少一个目标参数的取值输入至第一网络模型,得到目标多媒体资源当前待上传的第i个资源分片的大小。
相应的,参照图4,上述S202可以替换为S202A:
S202A,将当前网速,以及至少一个目标参数的取值输入至预先训练好的第一网络模型,得到第i个资源分片的大小。
在一种实施例中,至少一个目标参数包括下述至少一个:目标多媒体资源的大小、终端上一次上传多媒体资源时的网速、终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔、终端的性能参数。
应理解的是,S202A中所采用的目标参数与训练第一网络模型所采用的目标参数相同。示例性的,如至少一个目标参数包括:目标多媒体资源的大小、终端上一次上传多媒体资源时的网速,以及终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔。相应的,训练第一网络模型所采用的目标参数中也包括:多媒体资源的大小、终端前一次上传多媒体资源时的网速,以及终端前一次上传多媒体资源的时间与后一次上传多媒体资源之间的时间间隔。
下述对第一网络模型进行说明:
第一网络模型可以是训练设备基于训练数据训练得到,且预置在终端中的,训练设备如服务器或其他电子设备,如计算机等。其中,训练数据可以包括:网速、至少一个目标参数的取值,以及网速和至少一个目标参数的取值对应的资源分片的大小。
在一种实施例中,至少一个目标参数可以包括但不限于为:多媒体资源的大小、终端前一次上传多媒体资源时的网速,以及终端前一次上传多媒体资源的时间与后一次上传多媒体资源之间的时间间隔、终端的性能参数。其中,终端前一次上传多媒体资源的时间与后一次上传多媒体资源之间的时间间隔可以替换为:时间间隔对资源分片的大小的影响的等级,其中,时间间隔与等级的映射关系可以参照表一所示:
表一
时间间隔X(ms) | 等级 |
0<X≤300 | 0 |
300<X≤1800 | 1 |
1800<X≤3600 | 2 |
3600<X≤86400 | 3 |
86400<X | 4 |
如上表一,等级以数字为例进行表征,其中,数字越小,表征等级越高。基于表一可以得到:终端前一次上传多媒体资源的时间与后一次上传多媒体资源之间的时间间隔越小,则时间间隔对资源分片的大小的影响程度越大,等级越高。应理解,下述实施例中以终端前一次上传多媒体资源的时间与后一次上传多媒体资源之间的时间间隔为训练第一网络模型的一个目标参数为例进行说明。
训练设备可以将训练数据输入初始网络模型进行训练,经机器学习得到第一网络模型,初始网络模型可以但不限于为:卷积神经网络模型(convolutional neural networks,简称CNN)、深度神经网络(deep neural networks、简称DNN)、循环神经网络模型(recurrent neural network,简称RNN)、长短期记忆网络模型(long short-term memory,简称LSTM),以及GoogLeNet、树模型等。本公开实施例对第一网络模型的训练过程不做赘述,具体可以参照已有的网络模型的训练的相关描述。
本公开实施例中,终端可以将当前网速、至少一个目标参数的取值输入至第一网络模型,得到目标多媒体资源当前待上传的第i个资源分片的大小,可以提高第i个资源分片的大小的准确性,进而提高多媒体资源上传的准确性。
上述实施例中依据终端的当前网速、以及终端上一次上传多媒体资源的网速,可以得到目标多媒体资源当前待上传的第i个资源分片的大小,但是网速不是固定不变的,而是波动的,因此为了进一步提高得到的第i个资源分片的大小的准确性,本公开实施例中可以基于第i个资源分片之前终端发送的资源分片(即目标多媒体资源的前i-1个资源分片)的网速,预测第i个资源分片的上传网速,进而进一步结合预测的第i个资源分片的上传网速,获取第i个资源分片的大小,提高准确性。
在该实施例中,如上机器学习训练第一网络模型的训练数据中的至少一个目标参数中可以包括预测的第i个资源分片的上传网速。应理解,在训练过程中,预测的第i个资源分片的上传网速可以为训练设备基于上传多媒体资源时前i-1个资源分片的网速得到的。
在一种实施例中,训练设备可以将上传目标多媒体资源的前i-1个资源分片时的网速的平均值作为第i个资源分片的上传网速。或者,训练设备可以将上传目标多媒体资源的前i-1个资源分片时的网速的最小值作为第i个资源分片的上传网速。或者,训练设备可以将上传目标多媒体资源的前i-1个资源分片时的网速的最大值作为第i个资源分片的上传网速。
如此,训练设备可以得到预测的第i个资源分片的上传网速,进而将预测的第i个资源分片的上传网速作为一个目标参数,作为训练数据,以训练得到第一网络模型。
在一种实施例中,训练设备中可以存储有预先训练好的第二网络模型,该第二网络模型用于基于多媒体资源中上传前i-1个资源分片时的网速,预测得到第i个资源分片的上传网速。如此,训练设备可以将上传目标多媒体资源的前i-1个资源分片时的网速输入至第二网络模型,以得到第i个资源分片的上传网速。
应理解,第二网络模型可以是训练设备基于训练数据训练预先得到,且存储在训练设备中的。其中,训练数据可以包括:上传多媒体资源中前i-1个资源分片时的网速。具体的,训练设备可以将训练数据输入初始网络模型进行训练,经机器学习得到第二网络 模型,本公开实施例对第二网络模型的训练过程不做赘述,具体可以参照已有的网络模型的训练的相关描述。
基于上述的描述,在如上S201中,终端获取终端的至少一个目标参数的取值,其中,至少一个目标参数中除了包括“目标多媒体资源的大小、终端上一次上传多媒体资源时的网速、终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔、终端的性能参数”之外,还可以包括:预测的第i个资源分片的上传网速。
其中,终端获取预测的第i个资源分片的上传网速的方式可以为:
如上S201中描述终端可以记录网速记录,网速记录中包括网速,以及网速对应的时间。具体的,网速记录中可以包括终端上传每个多媒体资源中的每个资源分片时的网速,以及网速对应的时间。在该种实施例中,终端可以查询网速记录,得到终端上传目标多媒体资源时前i-1个资源分片时每个资源分片的网速。其中,终端可以根据上传目标多媒体资源的前i-1个资源分片时的网速,预测第i个资源分片的上传网速。
方式1:训练设备可以预先训练得到第二网络模型,且预置在终端中。终端可以将上传目标多媒体资源的前i-1个资源分片时的网速输入至预先训练好的第二网络模型,得到第i个资源分片的上传网速。
方式2:终端可以将上传目标多媒体资源的前i-1个资源分片时的网速的平均值作为第i个资源分片的上传网速。或者,终端可以将上传目标多媒体资源的前i-1个资源分片时的网速的最小值作为第i个资源分片的上传网速。或者,终端可以将上传目标多媒体资源的前i-1个资源分片时的网速的最大值作为第i个资源分片的上传网速。
如此,终端可以获取到预测的第i个资源分片的上传网速,进而终端可以将当前网速,以及至少一个目标参数(包括预测的第i个资源分片的上传网速)的取值输入至预先训练好的第一网络模型,得到第i个资源分片的大小,可以参照上述实施例中的相关描述。
本公开实施例中,终端可以基于第i个资源分片之前终端发送的资源分片的网速,预测第i个资源分片的上传网速,进而将预测的第i个资源分片的上传网速作为一个目标参数,将当前网速和至少一个目标参数的取值输入至第一网络模型,获取第i个资源分片的大小,本公开实施例中,终端不仅结合终端发送上一个多媒体资源时的历史网速,还可以结合发送目标多媒体资源时前i-1个资源分片时的网速,可以提高获取的第i个资源分片的大小的准确性。
在一种实施例中,目标多媒体资源为视频或图像,在该实施例中,用户可以通过终端上传终端本地存储的视频或图像,或者用户可以通过终端拍摄视频或图像,进而上传拍摄的视频或图像。如上图1中示例性的说明了用户在终端中选择本地存储的多媒体资源(如视频或图像)进行上传的过程,下述结合用户通过终端拍摄视频或图像进行上传的过程。参照图5所示,本公开实施例提供的多媒体资源上传方法可以包括:
S501,接收拍摄请求。
用户需要在终端上发布视频或图像时,可以触发终端拍摄视频或图像。参照图6中的b,用户可以在上传多媒体资源的界面中操作拍摄控件14,以触发终端显示拍摄界面,如图6中的c所示,本公开实施例中对用户拍摄得到视频或图像的过程不做描述。应理解,图6中的a与图1中的a相同,可以参照上述的相关描述。
S502,根据拍摄请求,拍摄得到目标多媒体资源。
终端响应于接收用户输入的拍摄请求,进行拍摄,进而可以得到拍摄的目标多媒体资源。参照图6中的c,用户可以拍摄得到视频或图像等目标多媒体资源。
S503,接收目标多媒体资源的发布指令。
当用户拍摄得到目标多媒体资源后,拍摄后的界面上可以显示包括下一步控件,用户操作该下一步控件,终端可以显示发布界面,如图6中的c所示,应理解,图6中未示出拍摄后的界面。其中,发布界面中可以包括发布控件13,用户操作发布控件13,可以触发终端向服务器发送目标多媒体资源,可以参照图1中的相关描述。其中,终端响应于检测到用户操作发布控件13,即接收到目标多媒体资源的发布指令,可以执行S504-S507。
S504,获取终端的当前网速,以及,终端的至少一个目标参数的取值,每个目标参数与资源分片大小相关。
S505,根据当前网速,以及,至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,i为大于或等于1的整数。
S506,根据第i个资源分片的大小,从目标多媒体资源中获取第i个资源分片。
S507,上传第i个资源分片。
S504-S507可以参照S201-S204中的相关描述。
本公开实施例具有与上述实施例相同的技术效果,可以参照上述实施例的相关描述,在此不做赘述。
参考图7,图7为本公开实施例提供的多媒体资源上传装置的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图7,多媒体资源上传装置70包括:处理模块701、资源分片获取模块702、资源分片上传模块703,以及收发模块704。其中,
处理模块701,用于:获取终端的当前网速,以及,终端的至少一个目标参数的取值,每个目标参数与资源分片大小相关;根据当前网速,以及,至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,i为大于或等于1的整数。
资源分片获取模块702,用于根据第i个资源分片的大小,从目标多媒体资源中获取第i个资源分片。资源分片上传模块703,用于上传第i个资源分片。
根据本公开的一个或多个实施例,处理模块701,具体用于将当前网速,以及至少一个目标参数的取值输入至预先训练好的第一网络模型,得到第i个资源分片的大小。
根据本公开的一个或多个实施例,至少一个目标参数包括下述至少一个:目标多媒体资源的大小、终端上一次上传多媒体资源时的网速、终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔、终端的性能参数、预测的第i个资源分片的上传网速,性能参数与终端支持的上传多媒体资源的网速相关。
根据本公开的一个或多个实施例,至少一个目标参数包括:预测的第i个资源分片的上传网速。处理模块701,具体用于根据上传目标多媒体资源的前i-1个资源分片时的网速,预测第i个资源分片的上传网速。
根据本公开的一个或多个实施例,处理模块701,具体用于将上传目标多媒体资源的前i-1个资源分片时的网速输入至预先训练好的第二网络模型,得到第i个资源分片的上传网速。
根据本公开的一个或多个实施例,处理模块701,具体用于将上传目标多媒体资源的 前i-1个资源分片时的网速的平均值作为第i个资源分片的上传网速;或者,将上传目标多媒体资源的前i-1个资源分片时的网速的最小值作为第i个资源分片的上传网速;或者,将上传目标多媒体资源的前i-1个资源分片时的网速的最大值作为第i个资源分片的上传网速。
根据本公开的一个或多个实施例,处理模块701,具体用于上传预设文件;获取上传预设文件花费的时间;根据上传预设文件花费的时间,以及,预设文件大小,确定当前网速。
根据本公开的一个或多个实施例,处理模块701,具体用于获取终端上一次上传多媒体资源的时间;获取终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔;若时间间隔小于或等于预设时间间隔,则将上一次上传多媒体资源时的网速作为当前网速。
根据本公开的一个或多个实施例,i等于1。收发模块704,用于接收目标多媒体资源的发布指令,发布指令用于请求上传目标多媒体资源。
根据本公开的一个或多个实施例,收发模块704,还用于接收拍摄请求。拍摄模块,用于根据拍摄请求,拍摄得到目标多媒体资源。
根据本公开的一个或多个实施例,目标多媒体资源为视频。
本公开实施例提供的多媒体资源上传装置,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
为了实现上述实施例,本公开实施例还提供了一种电子设备。
参考图8,其示出了适于用来实现本公开实施例的电子设备的结构示意图,该电子设备800可以为上述实施例中的终端。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图8所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(Read Only Memory,简称ROM)802中的程序或者从存储装置808加载到随机访问存储器(Random Access Memory,简称RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线803彼此相连。输入/输出(Input/Output,简称I/O)接口805也连接至总线803。
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(Liquid Crystal Display,简称LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本 公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,简称EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disk Read Only Memory,简称CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,简称RF)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括局域网(Local Area Network,简称LAN)或广域网(Wide Area Network,简称WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用 专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,第一获取模块还可以被描述为“获取至少两个网际协议地址的模块”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、专用标准产品(Application Specific Standard Parts,简称ASSP)、片上***(System on Chip,简称SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,简称CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行***、装置或设备使用或与指令执行***、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体***、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种多媒体资源上传方法,包括:获取终端的当前网速,以及,所述终端的至少一个目标参数的取值,每个所述目标参数与资源分片大小相关;根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,所述i为大于或等于1的整数;根据所述第i个资源分片的大小,从所述目标多媒体资源中获取所述第i个资源分片;上传所述第i个资源分片。
根据本公开的一个或多个实施例,所述根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,包括:将所述当前网速,以及所述至少一个目标参数的取值输入至预先训练好的第一网络模型,得到所述第i个资源分片的大小。
根据本公开的一个或多个实施例,所述至少一个目标参数包括下述至少一个:所述目标多媒体资源的大小、所述终端上一次上传多媒体资源时的网速、所述终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔、所述终端的性能参数、预测的第i个资源分片的上传网速,所述性能参数与所述终端支持的上传多媒体资源的网速相关。
根据本公开的一个或多个实施例,所述至少一个目标参数包括:所述预测的第i个资源分片的上传网速;获取所述终端的至少一个目标参数的取值,包括:根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速。
根据本公开的一个或多个实施例,所述根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速,包括:将上传所述目标多媒体资源的前i-1个资源分片时的网速输入至预先训练好的第二网络模型,得到所述第i个资源分片的上传网速。
根据本公开的一个或多个实施例,所述根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速,包括:将上传所述目标多媒体资源的前i-1个资源分片时的网速的平均值作为所述第i个资源分片的上传网速;或者,将上传所述目标多媒体资源的前i-1个资源分片时的网速的最小值作为所述第i个资源分片的上传网速;或者,将上传所述目标多媒体资源的前i-1个资源分片时的网速的最大值作为所述第i个资源分片的上传网速。
根据本公开的一个或多个实施例,所述获取终端的当前网速,包括:上传预设文件;获取上传所述预设文件花费的时间;根据上传预设文件花费的时间,以及,所述预设文件大小,确定所述当前网速。
根据本公开的一个或多个实施例,所述获取终端的当前网速,包括:获取所述终端上一次上传多媒体资源的时间;获取所述终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔;若所述时间间隔小于或等于预设时间间隔,则将上一次上传多媒体资源时的网速作为所述当前网速。
根据本公开的一个或多个实施例,所述i等于1,所述获取终端的当前网速,以及,所述终端的至少一个目标参数的取值之前,还包括:接收目标多媒体资源的发布指令,所述发布指令用于请求上传所述目标多媒体资源。
根据本公开的一个或多个实施例,所述接收目标多媒体资源的发布指令之前,还包括:接收拍摄请求;根据所述拍摄请求,拍摄得到所述目标多媒体资源。
根据本公开的一个或多个实施例,所述目标多媒体资源为视频。
第二方面,根据本公开的一个或多个实施例,提供了一种多媒体资源上传装置,包括:处理模块,用于:获取终端的当前网速,以及,所述终端的至少一个目标参数的取值,每个所述目标参数与资源分片大小相关;根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,所述i为大于或等于1的整数。
资源分片获取模块,用于根据所述第i个资源分片的大小,从所述目标多媒体资源中获取所述第i个资源分片。资源分片上传模块,用于上传所述第i个资源分片。
根据本公开的一个或多个实施例,处理模块,具体用于将所述当前网速,以及所述至少一个目标参数的取值输入至预先训练好的第一网络模型,得到所述第i个资源分片的大小。
根据本公开的一个或多个实施例,所述至少一个目标参数包括下述至少一个:所述目标多媒体资源的大小、所述终端上一次上传多媒体资源时的网速、所述终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔、所述终端的性能参数、预测的第i个资源分片的上传网速,所述性能参数与所述终端支持的上传多媒体资源的网速相关。
根据本公开的一个或多个实施例,所述至少一个目标参数包括:所述预测的第i个资源分片的上传网速。处理模块,具体用于根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速。
根据本公开的一个或多个实施例,处理模块,具体用于将上传所述目标多媒体资源的前i-1个资源分片时的网速输入至预先训练好的第二网络模型,得到所述第i个资源分片的上传网速。
根据本公开的一个或多个实施例,处理模块,具体用于将上传所述目标多媒体资源的前i-1个资源分片时的网速的平均值作为所述第i个资源分片的上传网速;或者,将上传所述目标多媒体资源的前i-1个资源分片时的网速的最小值作为所述第i个资源分片的上传网速;或者,将上传所述目标多媒体资源的前i-1个资源分片时的网速的最大值作为所述第i个资源分片的上传网速。
根据本公开的一个或多个实施例,处理模块,具体用于上传预设文件;获取上传所述预设文件花费的时间;根据上传预设文件花费的时间,以及,所述预设文件大小,确定所述当前网速。
根据本公开的一个或多个实施例,处理模块,具体用于获取所述终端上一次上传多媒体资源的时间;获取所述终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔;若所述时间间隔小于或等于预设时间间隔,则将上一次上传多媒体资源时的网速作为所述当前网速。
根据本公开的一个或多个实施例,所述i等于1。收发模块,用于接收目标多媒体资源的发布指令,所述发布指令用于请求上传所述目标多媒体资源。
根据本公开的一个或多个实施例,收发模块,还用于接收拍摄请求。拍摄模块,用于根据所述拍摄请求,拍摄得到所述目标多媒体资源。
根据本公开的一个或多个实施例,所述目标多媒体资源为视频。
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:处理器和存储器;所述存储器存储计算机执行指令;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
第五方面,根据本公开的一个或多个实施例,提供了一种计算机程序产品,包括计算机指令,所述计算机指令被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
第六方面,根据本公开的一个或多个实施例,提供了一种计算机程序,所述计算机程序在被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的多媒体资源上传方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个 实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。
Claims (15)
- 一种多媒体资源上传方法,包括:获取终端的当前网速,以及,所述终端的至少一个目标参数的取值,每个所述目标参数与资源分片大小相关;根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,所述i为大于或等于1的整数;根据所述第i个资源分片的大小,从所述目标多媒体资源中获取所述第i个资源分片;上传所述第i个资源分片。
- 根据权利要求1所述的方法,其中,所述根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,包括:将所述当前网速,以及所述至少一个目标参数的取值输入至预先训练好的第一网络模型,得到所述第i个资源分片的大小。
- 根据权利要求1或2所述的方法,其中,所述至少一个目标参数包括下述至少一个:所述目标多媒体资源的大小、所述终端上一次上传多媒体资源时的网速、所述终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔、所述终端的性能参数、预测的第i个资源分片的上传网速,所述性能参数与所述终端支持的上传多媒体资源的网速相关。
- 根据权利要求3所述的方法,其中,所述至少一个目标参数包括:所述预测的第i个资源分片的上传网速;获取所述终端的至少一个目标参数的取值,包括:根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速。
- 根据权利要求4所述的方法,其中,所述根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速,包括:将上传所述目标多媒体资源的前i-1个资源分片时的网速输入至预先训练好的第二网络模型,得到所述第i个资源分片的上传网速。
- 根据权利要求4所述的方法,其中,所述根据上传所述目标多媒体资源的前i-1个资源分片时的网速,预测所述第i个资源分片的上传网速,包括:将上传所述目标多媒体资源的前i-1个资源分片时的网速的平均值作为所述第i个资源分片的上传网速;或者,将上传所述目标多媒体资源的前i-1个资源分片时的网速的最小值作为所述第i个资源分片的上传网速;或者,将上传所述目标多媒体资源的前i-1个资源分片时的网速的最大值作为所述第i个资源分片的上传网速。
- 根据权利要求1-6中任一项所述的方法,其中,所述获取终端的当前网速,包括:上传预设文件;获取上传所述预设文件花费的时间;根据所述上传预设文件花费的时间,以及,所述预设文件大小,确定所述当前网速。
- 根据权利要求1-6中任一项所述的方法,其中,所述获取终端的当前网速,包括:获取所述终端上一次上传多媒体资源的时间;获取所述终端上一次上传多媒体资源的时间与当前上传时间之间的时间间隔;若所述时间间隔小于或等于预设时间间隔,则将上一次上传多媒体资源时的网速作为所述当前网速。
- 根据权利要求1-8中任一项所述的方法,其中,所述i等于1,所述获取终端的当前网速,以及,所述终端的至少一个目标参数的取值之前,还包括:接收目标多媒体资源的发布指令,所述发布指令用于请求上传所述目标多媒体资源。
- 根据权利要求9所述的方法,其中,所述接收目标多媒体资源的发布指令之前,还包括:接收拍摄请求;根据所述拍摄请求,拍摄得到所述目标多媒体资源。
- 一种多媒体资源上传装置,包括:处理模块,用于:获取终端的当前网速,以及,所述终端的至少一个目标参数的取值,每个所述目标参数与资源分片大小相关;根据所述当前网速,以及,所述至少一个目标参数的取值,确定目标多媒体资源当前待上传的第i个资源分片的大小,所述i为大于或等于1的整数;资源分片获取模块,用于根据所述第i个资源分片的大小,从所述目标多媒体资源中获取所述第i个资源分片;资源分片上传模块,用于上传所述第i个资源分片。
- 一种电子设备,包括:至少一个处理器和存储器;所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1-10中任一项所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1-10中任一项所述的方法。
- 一种计算机程序产品,包括计算机指令,所述计算机指令被处理器执行时实现权利要求1-10中任一项所述的方法。
- 一种计算机程序,所述计算机程序被处理器执行时实现权利要求1-10中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111036741.1A CN113747245A (zh) | 2021-09-06 | 2021-09-06 | 多媒体资源上传方法、装置、电子设备以及可读存储介质 |
CN202111036741.1 | 2021-09-06 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023029846A1 true WO2023029846A1 (zh) | 2023-03-09 |
Family
ID=78735930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/109178 WO2023029846A1 (zh) | 2021-09-06 | 2022-07-29 | 多媒体资源上传方法、装置、电子设备以及可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113747245A (zh) |
WO (1) | WO2023029846A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113747245A (zh) * | 2021-09-06 | 2021-12-03 | 北京字跳网络技术有限公司 | 多媒体资源上传方法、装置、电子设备以及可读存储介质 |
CN115529307A (zh) * | 2022-08-23 | 2022-12-27 | 北京奇艺世纪科技有限公司 | 一种文件上传方法、***、客户端设备及服务器 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102801690A (zh) * | 2011-05-25 | 2012-11-28 | 华为技术有限公司 | 流媒体的处理方法、分发服务器、客户端及*** |
CN104022852A (zh) * | 2014-06-25 | 2014-09-03 | 北京奇艺世纪科技有限公司 | 一种文件传输方法及装置 |
CN104967634A (zh) * | 2014-05-21 | 2015-10-07 | 腾讯科技(北京)有限公司 | 文件上传方法及装置 |
WO2016124130A1 (zh) * | 2015-02-06 | 2016-08-11 | 上海交通大学 | 一种异构网络传输下的动态时间窗口及缓存机制 |
US20180124146A1 (en) * | 2016-10-28 | 2018-05-03 | Google Inc. | Bitrate optimization for multi-representation encoding using playback statistics |
CN109982160A (zh) * | 2019-04-09 | 2019-07-05 | 北京奇艺世纪科技有限公司 | 一种视频上传的方法、装置、客户端设备及服务器 |
CN111240577A (zh) * | 2018-11-28 | 2020-06-05 | ***通信集团山东有限公司 | 基于mpp数据库的数据多分片存储方法及装置 |
CN113747245A (zh) * | 2021-09-06 | 2021-12-03 | 北京字跳网络技术有限公司 | 多媒体资源上传方法、装置、电子设备以及可读存储介质 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104185216B (zh) * | 2013-05-28 | 2018-09-04 | 腾讯科技(深圳)有限公司 | 一种文件的传输方法和装置 |
WO2019222934A1 (zh) * | 2018-05-23 | 2019-11-28 | 优视科技新加坡有限公司 | 文件处理方法、装置和*** |
CN111200622B (zh) * | 2018-11-16 | 2022-04-08 | 腾讯科技(深圳)有限公司 | 一种资源传输方法及装置、存储介质 |
CN112153428B (zh) * | 2020-11-04 | 2022-07-12 | 上海连尚网络科技有限公司 | 视频的处理方法和装置 |
-
2021
- 2021-09-06 CN CN202111036741.1A patent/CN113747245A/zh active Pending
-
2022
- 2022-07-29 WO PCT/CN2022/109178 patent/WO2023029846A1/zh unknown
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102801690A (zh) * | 2011-05-25 | 2012-11-28 | 华为技术有限公司 | 流媒体的处理方法、分发服务器、客户端及*** |
CN104967634A (zh) * | 2014-05-21 | 2015-10-07 | 腾讯科技(北京)有限公司 | 文件上传方法及装置 |
CN104022852A (zh) * | 2014-06-25 | 2014-09-03 | 北京奇艺世纪科技有限公司 | 一种文件传输方法及装置 |
WO2016124130A1 (zh) * | 2015-02-06 | 2016-08-11 | 上海交通大学 | 一种异构网络传输下的动态时间窗口及缓存机制 |
US20180124146A1 (en) * | 2016-10-28 | 2018-05-03 | Google Inc. | Bitrate optimization for multi-representation encoding using playback statistics |
CN111240577A (zh) * | 2018-11-28 | 2020-06-05 | ***通信集团山东有限公司 | 基于mpp数据库的数据多分片存储方法及装置 |
CN109982160A (zh) * | 2019-04-09 | 2019-07-05 | 北京奇艺世纪科技有限公司 | 一种视频上传的方法、装置、客户端设备及服务器 |
CN113747245A (zh) * | 2021-09-06 | 2021-12-03 | 北京字跳网络技术有限公司 | 多媒体资源上传方法、装置、电子设备以及可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113747245A (zh) | 2021-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023029846A1 (zh) | 多媒体资源上传方法、装置、电子设备以及可读存储介质 | |
US11941883B2 (en) | Video classification method, model training method, device, and storage medium | |
CN112394895B (zh) | 画面跨设备显示方法与装置、电子设备 | |
WO2017041366A1 (zh) | 图像识别方法和装置 | |
EP4262214A1 (en) | Screen projection method and apparatus, and electronic device and storage medium | |
WO2017101355A1 (zh) | 图像处理方法及装置 | |
CN112272226B (zh) | 图片加载方法、装置及可读存储介质 | |
EP3865995A1 (en) | Method, device and server for playing audio | |
US20150058397A1 (en) | Information processing system, information processing apparatus, terminal apparatus and information transmission method | |
WO2017050090A1 (zh) | 生成gif文件的方法、设备及计算机可读存储介质 | |
CN112153415B (zh) | 一种视频转码方法、装置、设备及存储介质 | |
CN112083853A (zh) | 账号举报方法、审核方法、装置、电子设备和存储介质 | |
US20110211087A1 (en) | Method and apparatus providing for control of a content capturing device with a requesting device to thereby capture a desired content segment | |
WO2019140963A1 (zh) | 数据传输 | |
CN111478916B (zh) | 基于视频流的数据传输方法、设备和存储介质 | |
US20200252497A1 (en) | Switching to a Single Radio Chain for Voice Communications | |
CN112000842A (zh) | 视频处理方法和装置 | |
CN110083321B (zh) | 内容展示方法及装置、智能投屏终端和可读存储介质 | |
US8824854B2 (en) | Method and arrangement for transferring multimedia data | |
WO2023029986A1 (zh) | 多媒体资源处理方法、装置、电子设备以及可读存储介质 | |
WO2023226742A1 (zh) | 视频转码方法、装置、设备和存储介质 | |
CN113364672B (zh) | 媒体网关信息确定方法、装置、设备和计算机可读介质 | |
CN112804312B (zh) | 文件上传方法、设备以及计算机可读介质 | |
WO2024022427A1 (zh) | 视频录制方法、装置、设备、存储介质和程序产品 | |
CN116320616A (zh) | 多媒体文件处理方法、装置、电子设备以及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22862987 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |