CN111954005A - Multimedia resource transmission method and device - Google Patents

Multimedia resource transmission method and device Download PDF

Info

Publication number
CN111954005A
CN111954005A CN201910413492.XA CN201910413492A CN111954005A CN 111954005 A CN111954005 A CN 111954005A CN 201910413492 A CN201910413492 A CN 201910413492A CN 111954005 A CN111954005 A CN 111954005A
Authority
CN
China
Prior art keywords
multimedia
multimedia file
file
playing
splicing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910413492.XA
Other languages
Chinese (zh)
Other versions
CN111954005B (en
Inventor
施建雄
刘琦
王能
董辰辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910413492.XA priority Critical patent/CN111954005B/en
Publication of CN111954005A publication Critical patent/CN111954005A/en
Application granted granted Critical
Publication of CN111954005B publication Critical patent/CN111954005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a multimedia resource transmission method and device. Wherein, the method comprises the following steps: receiving a splicing request sent by a first client, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream which is being played; responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file; and transmitting the second multimedia file to the video server, wherein the second multimedia file is used for instructing the video server to replace the stored first multimedia file with the second multimedia file. The invention solves the technical problem of poor transmission flexibility of multimedia resources in the related technology.

Description

Multimedia resource transmission method and device
Technical Field
The invention relates to the field of computers, in particular to a multimedia resource transmission method and device.
Background
In the current technical mode of converting live stream into on-demand data, the common mode is that live stream is downloaded and combined into mp4, and uploaded and converted into on-demand content, but other operations can not be performed on the on-demand content any more, when the content is changed, an independent playing link needs to be generated again, and operations such as content sharing and playing are affected.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for transmitting multimedia resources, which are used for at least solving the technical problem of poor transmission flexibility of the multimedia resources in the related technology.
According to an aspect of the embodiments of the present invention, there is provided a method for transmitting multimedia resources, including:
receiving a splicing request sent by a first client, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream which is being played;
responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
and transmitting the second multimedia file to a video server, wherein the second multimedia file is used for indicating the video server to replace the stored first multimedia file with the second multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided a method for transmitting multimedia resources, including:
receiving a second multimedia file transmitted by a merge server, wherein the second multimedia file is used for indicating that a stored first multimedia file is replaced by the second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided a method for transmitting multimedia resources, including:
receiving a playing request sent by a second client, wherein the playing request is used for requesting to play a playing link corresponding to a first multimedia file;
responding to the playing request, and acquiring a file replacement record, wherein the file replacement record is used for recording that a multimedia file corresponding to the playing link is replaced from the first multimedia file to a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and responding to the file replacement record, and instructing the second client to play the second multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided a method for transmitting multimedia resources, including:
sending a playing request to a playing server, wherein the playing request is used for requesting to play a playing link corresponding to a first multimedia file;
receiving a playing instruction sent by the playing server, wherein the playing instruction is used for instructing to play a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and responding to the playing indication, and playing the second multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided a transmission apparatus of multimedia resources, including:
the system comprises a first receiving module, a second receiving module and a splicing module, wherein the first receiving module is used for receiving a splicing request sent by a first client and a second client, the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream which is being played;
the splicing module is used for responding to the splicing request and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
and the first transmission module is used for transmitting the second multimedia file to a video server, wherein the second multimedia file is used for indicating the video server to replace the stored first multimedia file with the second multimedia file.
Optionally, the splicing module comprises:
a first obtaining unit, configured to respond to the splicing request, obtain the second multimedia resource from the live stream, and obtain the stored first multimedia file;
and the first splicing unit is used for splicing the second multimedia resource and the first multimedia file to obtain the second multimedia file.
Optionally, the splicing request carries an editing instruction, where the editing instruction is used to instruct to perform an editing operation on a target portion in the first multimedia resource, where the first obtaining unit includes:
the execution subunit is configured to respond to the editing instruction, execute the editing operation on the stored target portion of the first multimedia resource, and obtain a third multimedia resource;
a determining subunit, configured to determine the third multimedia resource as the first multimedia file.
Optionally, the splicing module is configured to: responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file; allocating a second file identifier for the second multimedia file;
the transmission module is used for: and transmitting the second multimedia file and the second file identifier to the video server, wherein the second file identifier is used for indicating the video server to replace the file identifier corresponding to the playing link of the first multimedia file from the first file identifier to the second file identifier, and the first file identifier is the identifier corresponding to the first multimedia file.
Optionally, the splicing module comprises:
a second splicing unit for splicing the second multimedia resource behind the first multimedia file; or
A third splicing unit, configured to splice the second multimedia resource before the first multimedia file; or
And the fourth splicing unit is used for splicing the second multimedia resource in the middle of the first multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided a transmission apparatus of multimedia resources, including:
a second receiving module, configured to receive a second multimedia file transmitted by a merge server, where the second multimedia file is used to indicate that a stored first multimedia file is replaced with the second multimedia file, the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
and the replacing module is used for replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
Optionally, the second receiving module is configured to: receiving the second multimedia file and a second file identifier transmitted by the merge server, where the second file identifier is an identifier allocated by the merge server for the second multimedia file, the second file identifier is used to indicate that a file identifier corresponding to a play link of the first multimedia file is replaced from a first file identifier to the second file identifier, and the first file identifier is an identifier corresponding to the first multimedia file;
the replacement module is to: and replacing the stored first multimedia file with the second multimedia file, and replacing the file identifier corresponding to the playing link of the first multimedia file from the first file identifier to the second file identifier.
According to another aspect of the embodiments of the present invention, there is also provided a transmission apparatus of multimedia resources, including:
the third receiving module is used for receiving a playing request sent by a second client, wherein the playing request is used for requesting to play a playing link corresponding to the first multimedia file;
an obtaining module, configured to respond to the play request, and obtain a file replacement record, where the file replacement record is used to record that a multimedia file corresponding to the play link is replaced from the first multimedia file to a second multimedia file, where the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
and the indicating module is used for responding to the file replacement record and indicating the second client to play the second multimedia file.
Optionally, the obtaining module includes:
the first sending unit is used for responding to the playing request and sending an inquiry request to a video server, wherein the inquiry request is used for requesting to inquire the multimedia file corresponding to the playing link, and the video server is used for storing the playing link and the multimedia file which have a corresponding relation;
a first receiving unit, configured to receive the file replacement record transmitted by the video server.
Optionally, the file replacement record is configured to record that a file identifier corresponding to the play link is replaced from a first file identifier to a second file identifier, where the first file identifier is used to identify the first multimedia file, and the second file identifier is used to identify the second multimedia file, and the indicating module includes:
and the second sending unit is used for responding to the file replacement record and sending the second file identifier to the second client, wherein the second file identifier is used for indicating the second client to play the second multimedia file.
Optionally, the indication module includes:
a first indicating unit, configured to respond to the file replacement record, instruct the second client to play the second multimedia file, and send a replacement instruction to the second client, where the replacement instruction is used to instruct the second client that the multimedia file corresponding to the play link is replaced;
a second receiving unit, configured to receive a timing query request sent by the second client in response to the replacement instruction, where the timing query request is used to query whether a multimedia file corresponding to the play link is replaced;
and the second indicating unit is used for responding to the timing query request and indicating the second client to play the third multimedia file under the condition that the multimedia file corresponding to the playing link is replaced by the third multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided a transmission apparatus of multimedia resources, including:
the system comprises a sending module, a playing module and a playing module, wherein the sending module is used for sending a playing request to a playing server, and the playing request is used for requesting to play a playing link corresponding to a first multimedia file;
a fourth receiving module, configured to receive a play instruction sent by the play server, where the play instruction is used to instruct to play a second multimedia file, where the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
and the playing module is used for responding to the playing instruction and playing the second multimedia file.
Optionally, the play instruction further carries a replacement instruction, where the replacement instruction is used to indicate that the multimedia file corresponding to the play link is replaced, and the play module includes:
the first playing unit is used for responding to the playing instruction, playing the second multimedia file and responding to the replacing instruction to send a timing query request to the playing server at a timing, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced or not;
a third receiving unit, configured to receive an instruction sent by the play server to instruct to play a third multimedia file, where the multimedia file corresponding to the play link has been replaced with the third multimedia file;
the second acquisition unit is used for acquiring a first playing point in the second multimedia file;
a determining unit, configured to determine a second play point corresponding to the first play point in the third multimedia file;
and the second playing unit is used for playing the third multimedia file from the second playing point.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, characterized in that the storage medium stores therein a computer program, wherein the computer program is configured to execute the method described in any one of the above when executed.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory and a processor, wherein the memory stores therein a computer program, and the processor is configured to execute the method described in any one of the above through the computer program.
In the embodiment of the invention, a splicing request sent by a first client is received, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream being played; responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file; and transmitting a second multimedia file to the video server, wherein the second multimedia file is used for indicating the mode that the video server replaces the stored first multimedia file with the second multimedia file, allowing the first client to perform splicing operation on the stored first multimedia file, responding to the splicing request of the first client to splice the first multimedia file and the second multimedia resource, and replacing the first multimedia file stored in the video server with the second multimedia file, so that a user can order the version of the newly released multimedia file when ordering, thereby realizing the technical effect of improving the transmission flexibility of the multimedia resource, and further solving the technical problem of poor transmission flexibility of the multimedia resource in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic application environment diagram of an alternative multimedia resource transmission method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an alternative transmission method of multimedia resources according to an embodiment of the present invention;
fig. 3 is a first diagram illustrating an alternative multimedia resource transmission method according to an alternative embodiment of the present invention;
fig. 4 is a first schematic diagram of an alternative multimedia resource transmission method according to an embodiment of the present invention;
fig. 5 is a first schematic diagram of an alternative multimedia resource transmission method according to an alternative embodiment of the present invention;
FIG. 6 is a diagram illustrating another alternative multimedia resource transmission method according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an alternative method for transmitting multimedia resources according to an alternative embodiment of the present invention;
fig. 8 is a third diagram illustrating another alternative multimedia resource transmission method according to an embodiment of the present invention;
fig. 9 is a third schematic diagram of an alternative multimedia resource transmission method according to an alternative embodiment of the present invention;
fig. 10 is a first schematic diagram of an alternative multimedia resource transmission apparatus according to an embodiment of the present invention;
FIG. 11 is a second diagram of an alternative multimedia resource transmission apparatus according to an embodiment of the present invention;
fig. 12 is a third schematic diagram of an alternative multimedia resource transmission apparatus according to an embodiment of the present invention;
fig. 13 is a fourth schematic diagram of an alternative multimedia resource transmission apparatus according to an embodiment of the present invention;
fig. 14 is a schematic view of an application scenario of an alternative multimedia resource transmission method according to an embodiment of the present invention; and
FIG. 15 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The multimedia resource transmission method provided by the embodiment of the invention can be applied to, but is not limited to, a hardware environment formed by the first client 102, the merge server 104, the video server 106, the play server 108 and the second client 110 shown in fig. 1. As shown in fig. 1, the merge server 104 receives a splicing request sent by the first client 102, where the splicing request is used to request that a second multimedia asset be spliced with a first multimedia file, and the first multimedia file includes a stored first multimedia asset in a live stream being played. The merge server 104 responds to the splicing request, splices the second multimedia resource with the first multimedia file to obtain a second multimedia file, and transmits the second multimedia file to the video server 106, wherein the second multimedia file is used for instructing the video server 106 to replace the stored first multimedia file with the second multimedia file.
The video server 106 receives the second multimedia file transmitted by the merge server 104 and replaces the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
The playing server 108 receives a playing request sent by the second client 110, where the playing request is used to request to play a playing link corresponding to the first multimedia file. The playing server 108 responds to the playing request and obtains a file replacement record, wherein the file replacement record is used for recording that the multimedia file corresponding to the playing link is replaced from the first multimedia file to the second multimedia file. The play server 108, in response to the file replacement record, instructs the second client 110 to play the second multimedia file.
The second client 110 receives the playing instruction sent by the playing server, and plays the second multimedia file in response to the playing instruction.
According to an aspect of the embodiments of the present invention, there is provided a method for transmitting a multimedia resource, which can be applied to, but is not limited to, the merge server, as shown in fig. 2, the method includes:
s202, receiving a splicing request sent by a first client, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream being played;
s204, responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
s206, transmitting a second multimedia file to the video server, wherein the second multimedia file is used for indicating the video server to replace the stored first multimedia file with the second multimedia file.
Optionally, in this embodiment, the transmission method of the multimedia resource may be applied, but not limited to, in a scenario where an on-demand file is generated for a live stream being played. The video server may be, but not limited to, a server of various types of applications, such as an online education application, an instant messaging application, a community space application, a game application, a shopping application, a browser application, a financial application, a multimedia application, a live broadcast application, and the like. Specifically, the method can be applied to, but not limited to, a scene in which an on-demand file is generated for a live stream being played in the live application, or can also be applied to, but not limited to, a scene in which an on-demand file is generated for a live stream being played in the multimedia application, so as to improve the transmission flexibility of the multimedia file. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the first client may be, but is not limited to, a client for editing the live stream. Such as: in the live in-process of sports, first customer end can acquire the live stream of sports event, and the operator can cut, add the sticker, add editing operation such as filter, cutout to the live stream on first customer end. Or the first client may automatically perform an editing operation on the live stream, such as: automatically identifying highlights, etc. The first client sends the editing instruction to the merging server, the merging server edits the direct-broadcast stream according to the editing operation executed on the first client, generates a multimedia file serving as on-demand content from the edited video stream, stores the multimedia file on the video server, and provides a playing link of the on-demand content on the playing server.
Optionally, in this embodiment, the first client further has a splicing function. The first client may initiate a splicing request to indicate splicing of two segments of a multimedia resource in a live stream. And the merging server responds to the splicing request, performs splicing operation on the second multimedia resource and the first multimedia file to obtain a second multimedia file, and informs the video server to replace the stored first multimedia file with the second multimedia file.
For example: the first client may be, but is not limited to, a clipping system, which mainly faces a video operator, and on a live program, such as an event, a synthesis art, and the like, a clipping operation may be performed on the live content through the clipping system, and a target item finally clipped is submitted, merged, transcoded into a target video, and distributed on a video platform for a user to play.
Optionally, in this embodiment, the splicing request may be, but is not limited to, any specified location for requesting to splice the second multimedia resource to the first multimedia file, such as: splicing the second multimedia asset to the first multimedia file before splicing the second multimedia asset to the first multimedia file, splicing the second multimedia asset to the first multimedia file between two frames, appending the second multimedia asset to the first multimedia file, and so on.
In an alternative embodiment, as shown in fig. 3, a first multimedia asset in a live stream is clipped by a first client, packaged as a first multimedia file by a merge server and uploaded to a video server, and a play link for the first multimedia file is provided on a play server. The first client can also add a second multimedia resource in the live stream after the first multimedia file, the first client sends the splicing request to the merge server, the merge server receives the splicing request sent by the first client, responds to the splicing request, adds the second multimedia resource to the first multimedia file to obtain a second multimedia file, and transmits the second multimedia file to the video server to indicate the video server to replace the stored first multimedia file with the second multimedia file. Thereby flexibly providing richer video-on-demand contents for the user.
Therefore, through the steps, the first client is allowed to splice the stored first multimedia file, the first multimedia file and the second multimedia resource are spliced in response to the splicing request of the first client, and the first multimedia file stored in the video server is replaced by the second multimedia file, so that a user can order the version of the newly released multimedia file when ordering, the technical effect of improving the transmission flexibility of the multimedia resource is achieved, and the technical problem of poor transmission flexibility of the multimedia resource in the related technology is solved.
As an optional scheme, in response to the splicing request, splicing the second multimedia resource with the first multimedia file to obtain the second multimedia file includes:
s1, responding to the splicing request, acquiring a second multimedia resource from the live stream, and acquiring a stored first multimedia file;
and S2, splicing the second multimedia resource and the first multimedia file to obtain a second multimedia file.
Optionally, in this embodiment, the merge server may store the generated multimedia file, cache the live stream, obtain, when receiving the splicing request, a first multimedia file that needs to be spliced with another resource from the stored multimedia file, obtain, from the cached live stream, a second multimedia resource that needs to be spliced with the first multimedia file, and splice the two multimedia resources, thereby obtaining a second multimedia file.
As an optional scheme, the splicing request carries an editing instruction, where the editing instruction is used to instruct to perform an editing operation on a target portion in the first multimedia resource, and acquiring the stored first multimedia file includes:
s1, responding to the editing instruction, and executing editing operation on the stored target part of the first multimedia resource to obtain a third multimedia resource;
s2, the third multimedia resource is determined as the first multimedia file.
Optionally, in this embodiment, the first client may further perform a second editing operation on the generated multimedia file, carry the editing instruction in the splicing request, the merge server edits the target portion of the first multimedia resource according to the instruction of the editing instruction to obtain a third multimedia resource, splice the third multimedia resource and the second multimedia resource to obtain a second multimedia file, and instruct the video server to replace the stored first multimedia file with the second multimedia file.
As an optional scheme, in response to the splicing request, splicing the second multimedia resource with the first multimedia file to obtain the second multimedia file includes:
s1, responding to the splicing request, splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file; allocating a second file identifier for the second multimedia file;
transmitting the second multimedia file to the video server comprises:
and S1, transmitting the second multimedia file and a second file identifier to the video server, wherein the second file identifier is used for instructing the video server to replace the file identifier corresponding to the playing link of the first multimedia file from the first file identifier to the second file identifier, and the first file identifier is an identifier corresponding to the first multimedia file.
Optionally, in this embodiment, each time the merge server generates a multimedia file, a file identifier is allocated to the multimedia file, and the video server is instructed to replace the file identifier corresponding to the play link while the multimedia file is replaced. Therefore, the user can play the newly released on-demand content when playing the link on demand.
Optionally, in this embodiment, but not limited to, the file identifier of the originally published multimedia file may be used as the play LINK, and when a replacement instruction of the file identifier is received, a new file identifier LINK is added to the file identifier of the originally published multimedia file. The video server may record such LINK relationships as media bars.
As an optional scheme, splicing the second multimedia resource with the first multimedia file includes:
s1, splicing the second multimedia resource behind the first multimedia file; or
S2, splicing the second multimedia resource in front of the first multimedia file; or
And S3, splicing the second multimedia resource in the middle of the first multimedia file.
Optionally, in this embodiment, the splicing position may be indicated by the first client. Such as: the second multimedia asset is appended to the first multimedia file after the last frame, or is added before the first frame of the first multimedia file, or is inserted between frame 1 and frame 2 of the first multimedia file.
Optionally, in this embodiment, the first client may further instruct the merge server to splice different portions of the second multimedia asset to different locations of the first multimedia file. Such as: the second multimedia asset includes Part1, Part2, and Part3, and the splicing request may request that Part1 be appended to the first multimedia file, Part2 be inserted between frame a and frame b in the first multimedia file, and Part3 be inserted between frame c and frame d in the first multimedia file.
According to another aspect of the embodiments of the present invention, another method for transmitting a multimedia resource is provided, which may be but is not limited to be performed by the video server, as shown in fig. 4, and includes:
s402, receiving a second multimedia file transmitted by a merge server, wherein the second multimedia file is used for indicating that a stored first multimedia file is replaced by a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
s404, in response to the indication of the second multimedia file, replacing the stored first multimedia file with the second multimedia file.
Alternatively, in the present embodiment, the video server may be, but is not limited to, a server for controlling storage of multimedia files and recording a replacement history of the multimedia files. The video server may instruct a Content Delivery Network (CDN) to store the multimedia file, and when the multimedia file is replaced, the video server may record the replacement relationship and instruct the CDN to store the latest version of the multimedia file.
As an alternative, the receiving of the second multimedia file transmitted by the merge server comprises:
s1, receiving a second multimedia file and a second file identifier transmitted by the merge server, wherein the second file identifier is an identifier allocated by the merge server for the second multimedia file, the second file identifier is used for indicating that a file identifier corresponding to a play link of the first multimedia file is replaced from a first file identifier to the second file identifier, and the first file identifier is an identifier corresponding to the first multimedia file;
replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file comprises:
s1, replacing the stored first multimedia file with a second multimedia file, and replacing the file identifier corresponding to the playing link of the first multimedia file with a second file identifier.
Optionally, in this embodiment, the video server may further receive a second file identifier transmitted by the merge server while receiving the second multimedia file transmitted by the merge server, and record a replacement relationship of the file identifier while replacing the multimedia file. So that the user can watch the latest version of the on-demand content when the user requests the multimedia file.
In an alternative embodiment, as shown in fig. 5, the merge server is used to transcode the live stream to obtain the multimedia file for on-demand. A first client (e.g., a cloud clipping system) may initiate a live merge process to a merge server. In the live broadcast merging process, the merging server supports the pre-downloading logic, and live broadcast contents are cached locally in the merging server, so that the time consumption of downloading can be eliminated. And the merging process supports a content adding function for many times, and ensures that operations such as editing, adding additional content and the like can be modified after the video content is released to the external network. The cloud clipping system provides operation addition operation, the merging server generates a unique VID for each merged video, and the video files are locally cached, and the video files can comprise a plurality of definition files. After receiving a video addition request reported by the cloud clipping system, the merging server acquires ts files (i.e., the second multimedia resources) of the added segments from the pre-download cache, and merges the ts files into final video files (i.e., the second multimedia files) by combining with the video files (i.e., the first multimedia files) generated last time by the local cache. And the newly generated video file generates a new VID, records the LINK to the most original video VID which is sent quickly, and reports the LINK to the video server. The merge server stores the newly generated video file.
For example: the file identification of the multi-definition video which is originally rapidly released is VID, a new file identification is allocated to the multi-definition video as VID _1 after ADD _1 is appended to the multi-definition video by a content appending request for the first time, VID _2 is allocated to the multi-definition video after ADD _2 is appended to the multi-definition video by a content appending request for the second time, VID _2 is allocated to the multi-definition video by a content appending request for the third time, ADD _3 is allocated to the multi-definition video as VID _3 after ADD _2 is appended to the multi-definition video for the third time, and the new file identification is allocated to the multi-definition video as VID _ n after ADD _ n-1 is appended to the content appending request for the nth time, and the new file. Finally, the file identifier corresponding to the playing link VID is VID _ n.
According to another aspect of the embodiments of the present invention, another method for transmitting a multimedia resource is provided, which may be but is not limited to be performed by the above-mentioned playing server, as shown in fig. 6, the method includes:
s602, receiving a playing request sent by a second client, wherein the playing request is used for requesting to play a playing link corresponding to a first multimedia file;
s604, responding to the playing request, and acquiring a file replacement record, wherein the file replacement record is used for recording that a multimedia file corresponding to a playing link is replaced from a first multimedia file to a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a playing live stream, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
s606, responding to the file replacement record, and instructing the second client to play the second multimedia file.
Optionally, in this embodiment, the playing server may be, but is not limited to, a server for executing playing logic of a video. The user can click the video link on the second client to watch the on-demand content, and the playing server provides the video playing service for the second client.
As an alternative, the obtaining the file replacement record in response to the play request includes:
s1, responding to the playing request, sending an inquiry request to the video server, wherein the inquiry request is used for requesting to inquire the multimedia file corresponding to the playing link, and the video server is used for storing the playing link and the multimedia file with the corresponding relation;
and S2, receiving the file replacement record transmitted by the video server.
Optionally, in this embodiment, the playing server may query, but is not limited to, the video server for the multimedia file corresponding to the playing link requested by the second client.
Optionally, in this embodiment, the playing server calls a storage address of the playing content to the video server according to a playing request of the user, the video server indicates the replacement record of the file identifier corresponding to the playing link to the playing server, that is, the video server notifies the playing server that the playing link corresponding to the first multimedia file requested to be played by the playing server has been replaced by the second multimedia file, and the playing server notifies the second client to play the second multimedia file according to the indication of the video server.
As an alternative, the file replacement record is used to record that a file identifier corresponding to the playing link is replaced from a first file identifier to a second file identifier, where the first file identifier is used to identify the first multimedia file, and the second file identifier is used to identify the second multimedia file, and instructing the second client to play the second multimedia file in response to the file replacement record includes:
and S1, responding to the file replacement record, and sending a second file identifier to the second client, wherein the second file identifier is used for instructing the second client to play the second multimedia file.
Optionally, in this embodiment, the multimedia file may be, but is not limited to be, stored on the CDN, and the video server only needs to notify the playing server of the second file identifier currently corresponding to the playing link, and the playing server may call the second multimedia file corresponding to the second file identifier on the CDN.
As an alternative, instructing the second client to play the second multimedia file in response to the file replacement record comprises:
s1, responding to the file replacement record, instructing the second client to play the second multimedia file, and sending a replacement instruction to the second client, wherein the replacement instruction is used for instructing the second client to play the multimedia file corresponding to the link and to replace the multimedia file;
s2, receiving a timing query request sent by the second client in response to the replacement instruction, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced;
and S3, responding to the timing inquiry request, and instructing the second client to play the third multimedia file under the condition that the multimedia file corresponding to the playing link is replaced by the third multimedia file.
Optionally, in this embodiment, if the first multimedia file requested to be played by the play request received by the play server is replaced, when the play server instructs the second client to play the replaced second multimedia file, the second client may be simultaneously notified that the play link is replaced, so as to give the second client a capability of querying at a certain time, thereby ensuring that the second client can play the latest updated multimedia file at any time.
In an alternative embodiment, as shown in FIG. 7, the user accesses the original quick-release VID link for outbound playback. When the operator submits the addition and the video service records the new VID of the VID up-to-date LINK (VID _1, VID _2 … VID _ n), the playback service will automatically return the physical file of the new VID of the up-to-date LINK, i.e. the multimedia file to which VID _ n corresponds, when the user accesses the VID LINK. The user client (i.e. the second client) initiates a VID playing request to the playing service, and after receiving the request, the playing service queries the video service for VID information. And the playing service judges whether the video has LINK replacement information according to the information returned by the video service, if not, the CDN address of the VID (namely the address of the first multimedia file) is directly returned, and if so, the CDN address of the LINK VID (namely the address of the second multimedia file) is returned. And the user client requests the CDN to play the address according to the playing service return address.
According to another aspect of the embodiments of the present invention, there is provided another method for transmitting a multimedia resource, which may be but is not limited to be performed by the second client, as shown in fig. 8, the method includes:
s802, sending a playing request to a playing server, wherein the playing request is used for requesting to play a playing link corresponding to the first multimedia file;
s804, receiving a playing instruction sent by a playing server, wherein the playing instruction is used for instructing to play a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
s806, responding to the playing indication, playing the second multimedia file.
Optionally, in this embodiment, the second client may be, but is not limited to, a client for playing a live video stream or an on-demand video file. Such as: a live client, a multimedia client, a browser client, and the like. The user can click the video link on the second client to obtain the address of the video resource, and then call the video resource to the address to play.
Optionally, in this embodiment, the user clicks the play link corresponding to the first multimedia file on the second client, the second client responds to the click operation of the user to request the play server for the multimedia file of the play link, and plays the second multimedia file currently corresponding to the play link according to the play instruction sent by the play server. Thereby enabling the user to view the newly released on-demand content.
As an optional scheme, the playing instruction further carries a replacement instruction, where the replacement instruction is used to indicate that the multimedia file corresponding to the playing link is replaced, and playing the second multimedia file in response to the playing instruction includes:
s1, responding to the playing instruction, playing the second multimedia file, responding to the replacing instruction, and sending a timing query request to the playing server at a timing, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced;
s2, receiving an instruction sent by the playing server for instructing playing of a third multimedia file, wherein the multimedia file corresponding to the playing link has been replaced by the third multimedia file;
s3, acquiring a first playing point in the second multimedia file;
s4, determining a second playing point corresponding to the first playing point in the third multimedia file;
s5, the third multimedia file is played from the second playing point.
Optionally, in this embodiment, the second client may further periodically query, according to an instruction of the replacement instruction sent by the play server, whether a play link corresponding to the currently played second multimedia file is updated, and when it is detected that the second multimedia file is updated to the third multimedia file, start to play the third multimedia file at a second time point corresponding to the third multimedia file from the first time point of the current play, so that the update of the multimedia file is not sensible to the user, and the user experience is improved.
In an alternative embodiment, as shown in fig. 9, for the first time the user enters the playback, the latest full playback address (which may be the original multimedia file or the latest replacement multimedia file) is accessed. However, for a user in the playing process, after the replacement occurs, the user side plays a video with an old CDN address, and the content and duration of the video are all old versions, and the content and duration of the playing are not consistent with those of a user who is playing newly, which may result in a discount on the experience of the user. In contrast, when the replacement occurs, the playing service may notify the user client of the content updating time length and the CDN playing address, and after receiving the playing service updating notification, the client performs playing switching and updates the playing time axis time length according to the current point location of the user playing, so as to ensure that the latest content is played by the user. When the playing service returns a playing link to the client, the client is provided with the replacement identifier and provides the query capability; the client regularly inquires the playing service according to the replacement identifier and checks whether the playing LINK generates the latest LINK replacement; when the client inquires that the VID generates replacement, the client requests the playing service for the latest CDN playing address of the VID again; the client downloads the latest video file again according to the returned latest CDN playing address; and searching the current playing time point position of the user, switching the playing picture, and updating the playing time axis duration.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided a multimedia resource transmission apparatus for implementing the above multimedia resource transmission method, as shown in fig. 10, the apparatus includes:
a first receiving module 1002, configured to receive a splicing request sent by a first client, where the splicing request is used to request to splice a second multimedia resource with a first multimedia file, and the first multimedia file includes a stored first multimedia resource in a live stream being played;
the splicing module 1004 is configured to respond to the splicing request, splice the second multimedia resource with the first multimedia file, and obtain a second multimedia file;
the first transmission module 1006 is configured to transmit a second multimedia file to the video server, where the second multimedia file is used to instruct the video server to replace the stored first multimedia file with the second multimedia file.
Optionally, the splicing module comprises:
the first obtaining unit is used for responding to the splicing request, obtaining a second multimedia resource from the live stream and obtaining a stored first multimedia file;
and the first splicing unit is used for splicing the second multimedia resource and the first multimedia file to obtain a second multimedia file.
Optionally, the splicing request carries an editing instruction, where the editing instruction is used to instruct to perform an editing operation on a target portion in the first multimedia resource, and the first obtaining unit includes:
the execution subunit is used for responding to the editing instruction and executing editing operation on the target part of the stored first multimedia resource to obtain a third multimedia resource;
and the determining subunit is used for determining the third multimedia resource as the first multimedia file.
Optionally, the splicing module is configured to: responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file; allocating a second file identifier for the second multimedia file;
the transmission module is used for: and transmitting the second multimedia file and a second file identifier to the video server, wherein the second file identifier is used for indicating the video server to replace the file identifier corresponding to the playing link of the first multimedia file from the first file identifier to the second file identifier, and the first file identifier is the identifier corresponding to the first multimedia file.
Optionally, the splicing module comprises:
the second splicing unit is used for splicing the second multimedia resource behind the first multimedia file; or
The third splicing unit is used for splicing the second multimedia resource in front of the first multimedia file; or
And the fourth splicing unit is used for splicing the second multimedia resource in the middle of the first multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided another multimedia resource transmission apparatus for implementing the above multimedia resource transmission method, as shown in fig. 11, the apparatus includes:
a second receiving module 1102, configured to receive a second multimedia file transmitted by the merge server, where the second multimedia file is used to indicate that a stored first multimedia file is replaced by a second multimedia file, the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
and a replacing module 1104, configured to replace the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
Optionally, the second receiving module is configured to: receiving a second multimedia file and a second file identifier transmitted by a merge server, wherein the second file identifier is an identifier allocated by the merge server for the second multimedia file, the second file identifier is used for indicating that a file identifier corresponding to a play link of a first multimedia file is replaced from a first file identifier to the second file identifier, and the first file identifier is an identifier corresponding to the first multimedia file;
the replacement module is to: and replacing the stored first multimedia file with a second multimedia file, and replacing the file identifier corresponding to the playing link of the first multimedia file with a second file identifier from the first file identifier.
According to another aspect of the embodiments of the present invention, there is also provided another multimedia resource transmission apparatus for implementing the above multimedia resource transmission method, as shown in fig. 12, the apparatus includes:
a third receiving module 1202, configured to receive a play request sent by a second client, where the play request is used to request to play a play link corresponding to a first multimedia file;
an obtaining module 1204, configured to respond to the play request, and obtain a file replacement record, where the file replacement record is used to record that a multimedia file corresponding to the play link is replaced from a first multimedia file to a second multimedia file, the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
an indicating module 1206 is configured to indicate the second client to play the second multimedia file in response to the file replacement record.
Optionally, the obtaining module includes:
the video server is used for storing the playing links and the multimedia files with corresponding relations;
and the first receiving unit is used for receiving the file replacement record transmitted by the video server.
Optionally, the file replacement record is configured to replace a file identifier corresponding to the record playing link from a first file identifier to a second file identifier, where the first file identifier is used to identify a first multimedia file, and the second file identifier is used to identify a second multimedia file, and the indicating module includes:
and the second sending unit is used for responding to the file replacement record and sending a second file identifier to the second client, wherein the second file identifier is used for indicating the second client to play a second multimedia file.
Optionally, the indication module comprises:
the first indication unit is used for responding to the file replacement record, indicating the second client to play the second multimedia file and sending a replacement instruction to the second client, wherein the replacement instruction is used for indicating that the multimedia file corresponding to the playing link of the second client is replaced;
the second receiving unit is used for receiving a timing query request sent by a second client in response to the replacement instruction, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced or not;
and the second indicating unit is used for responding to the timing query request, and indicating the second client to play the third multimedia file under the condition that the multimedia file corresponding to the playing link is replaced by the third multimedia file.
According to another aspect of the embodiments of the present invention, there is also provided another multimedia resource transmission apparatus for implementing the above multimedia resource transmission method, as shown in fig. 13, the apparatus includes:
a sending module 1302, configured to send a play request to a play server, where the play request is used to request to play a play link corresponding to a first multimedia file;
a fourth receiving module 1304, configured to receive a play instruction sent by the play server, where the play instruction is used to instruct to play a second multimedia file, where the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
the playing module 1306 is configured to play the second multimedia file in response to the playing indication.
Optionally, the playing instruction further carries a replacement instruction, where the replacement instruction is used to indicate that the multimedia file corresponding to the playing link is replaced, and the playing module includes:
the first playing unit is used for responding to the playing instruction, playing the second multimedia file and responding to the replacing instruction to send a timing query request to the playing server at a timing, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced or not;
a third receiving unit, configured to receive an instruction sent by the play server to instruct to play a third multimedia file, where the multimedia file corresponding to the play link has been replaced with the third multimedia file;
the second acquisition unit is used for acquiring a first playing point in a second multimedia file;
the determining unit is used for determining a second playing point corresponding to the first playing point in the third multimedia file;
and the second playing unit is used for playing the third multimedia file from the second playing point.
The application environment of the embodiment of the present invention may refer to the application environment in the above embodiments, but is not described herein again. The embodiment of the invention provides an optional specific application example of the connection method for implementing the real-time communication.
As an alternative embodiment, the transmission method of the multimedia resource can be applied, but not limited to, in the scenario of converting a live video stream into on-demand content as shown in fig. 14. In this scenario, there is provided a system for transmitting a multimedia file, the system comprising: the system comprises a cloud clipping system (equivalent to the first client), a background merging server, a playing server, a video server and a user client (equivalent to the second client).
When the live content is accessed, the cloud editing system is encoded into an HLS stream format through hardware encoding equipment or software encoding equipment. The HLS live broadcast streams keep the same with the video content specification generated by coding in the aspects of definition, code rate and packaging specification. The cloud editing system capable of being operated and edited online is built, operators are provided to conduct editing operations such as live broadcast dotting, editing, label covering and material inserting online, tasks are submitted to a background merging service to be merged, and the video publishing mode can be selected: and quick release and ordinary release. And the background merging service downloads, analyzes, cuts and merges the live stream tasks submitted by the cloud editing system, and decides a next processing mode according to the issuing mode.
The cloud clipping system also provides operation addition operation, and the background merging server generates a unique VID for each merged video and locally caches video files, including a plurality of definition files. After receiving a video addition request reported by the cloud clipping system, the background merging server acquires a ts file of an additional segment (namely, a second multimedia resource) from the pre-download cache, and merges the ts file into a final video file (namely, a second multimedia file) by combining with a video file (namely, a first multimedia file) generated last time by the local cache. And the newly generated video file generates a new VID, records the LINK to the most original video VID which is sent quickly, and reports the LINK to the video server. And the background merging server stores the newly generated video file and locally caches the live stream.
A user client initiates a VID playing address request to a playing service; after receiving the request, the playing service inquires VID information from the video service; the playing service judges whether the video has LINK replacement information according to the video service return information, if not, the CDN address of the VID is directly returned, and if so, the CDN address of the LINK VID is returned; and the user client requests the CDN to play the address according to the playing service return address.
Through the system, on the content operation popular program, the on-shelf speed of the on-demand content is higher, the multi-section additional function is realized, the full version content of the program is on line immediately, the content can be additionally updated at any time, the content is guaranteed to be improved to the utmost in the user presentation speed, the content updating has no perception on the user, the user watching experience is guaranteed, HLS including H264, H265 and the like and MP4 combined multi-grade definition formats are provided, different playing scenes are adapted, and the aggregated playing bandwidth brought by popular art is effectively saved.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing transmission of the multimedia resource, as shown in fig. 15, the electronic device including: one or more processors 1502 (only one of which is shown in the figure), in which a computer program is stored, a memory 1504, in which a sensor 1506, an encoder 1508, and a transmission means 1510 are stored, the processor being arranged to perform the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a splicing request sent by a first client, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream being played;
s2, responding to the splicing request, splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
and S3, transmitting the second multimedia file to a video server, wherein the second multimedia file is used for instructing the video server to replace the stored first multimedia file with the second multimedia file.
Optionally, in this embodiment, another electronic device for implementing transmission of the multimedia resource is further provided, and a processor included in the electronic device may be configured to execute the following steps through a computer program:
s1, receiving a second multimedia file transmitted by a merge server, wherein the second multimedia file is used for indicating that a stored first multimedia file is replaced by the second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and S2, replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
Optionally, in this embodiment, another electronic device for implementing transmission of the multimedia resource is further provided, and a processor included in the electronic device may be configured to execute the following steps through a computer program:
s1, receiving a play request sent by a second client, wherein the play request is used for requesting to play a play link corresponding to a first multimedia file;
s2, in response to the play request, acquiring a file replacement record, where the file replacement record is used to record that a multimedia file corresponding to the play link is replaced from the first multimedia file to a second multimedia file, where the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
s3, instructing the second client to play the second multimedia file in response to the file replacement record.
Optionally, in this embodiment, another electronic device for implementing transmission of the multimedia resource is further provided, and a processor included in the electronic device may be configured to execute the following steps through a computer program:
s1, sending a play request to a play server, wherein the play request is used for requesting to play a play link corresponding to the first multimedia file;
s2, receiving a play instruction sent by the play server, where the play instruction is used to instruct to play a second multimedia file, where the first multimedia file includes a first multimedia resource in a stored live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
s3, responding to the playing instruction, playing the second multimedia file.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 15 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 15 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 15, or have a different configuration than shown in FIG. 15.
The memory 1504 may be used for storing software programs and modules, such as program instructions/modules corresponding to the multimedia resource transmission method and apparatus in the embodiments of the present invention, and the processor 1502 executes various functional applications and data processing by executing the software programs and modules stored in the memory 1504, that is, the control method of the target component is implemented. The memory 1504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1504 can further include memory located remotely from the processor 1502, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 1510 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1510 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 1510 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Wherein the memory 1504 is used, among other things, to store application programs.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a splicing request sent by a first client, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream being played;
s2, responding to the splicing request, splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
and S3, transmitting the second multimedia file to a video server, wherein the second multimedia file is used for instructing the video server to replace the stored first multimedia file with the second multimedia file.
An embodiment of the invention also provides another storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-described method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a second multimedia file transmitted by a merge server, wherein the second multimedia file is used for indicating that a stored first multimedia file is replaced by the second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and S2, replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
An embodiment of the invention also provides another storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-described method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a play request sent by a second client, wherein the play request is used for requesting to play a play link corresponding to a first multimedia file;
s2, in response to the play request, acquiring a file replacement record, where the file replacement record is used to record that a multimedia file corresponding to the play link is replaced from the first multimedia file to a second multimedia file, where the first multimedia file includes a stored first multimedia resource in a live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
s3, instructing the second client to play the second multimedia file in response to the file replacement record.
An embodiment of the invention also provides another storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-described method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, sending a play request to a play server, wherein the play request is used for requesting to play a play link corresponding to the first multimedia file;
s2, receiving a play instruction sent by the play server, where the play instruction is used to instruct to play a second multimedia file, where the first multimedia file includes a first multimedia resource in a stored live stream being played, and the second multimedia file includes the first multimedia resource and a second multimedia resource;
s3, responding to the playing instruction, playing the second multimedia file.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for transmitting multimedia resources, comprising:
receiving a splicing request sent by a first client, wherein the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream which is being played;
responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
and transmitting the second multimedia file to a video server, wherein the second multimedia file is used for indicating the video server to replace the stored first multimedia file with the second multimedia file.
2. The method of claim 1, wherein splicing the second multimedia resource with the first multimedia file in response to the splicing request to obtain a second multimedia file comprises:
responding to the splicing request, acquiring the second multimedia resource from the live stream, and acquiring the stored first multimedia file;
and splicing the second multimedia resource and the first multimedia file to obtain the second multimedia file.
3. The method according to claim 2, wherein the splicing request carries an editing instruction, the editing instruction being used to instruct to perform an editing operation on a target portion of the first multimedia resource, and wherein obtaining the stored first multimedia file comprises:
responding to the editing instruction, and executing the editing operation on the target part of the stored first multimedia resource to obtain a third multimedia resource;
determining the third multimedia asset as the first multimedia file.
4. The method of claim 1,
responding to the splicing request, splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file, wherein the step of splicing the second multimedia resource with the first multimedia file comprises the following steps: responding to the splicing request, and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file; allocating a second file identifier for the second multimedia file;
transmitting the second multimedia file to the video server comprises: and transmitting the second multimedia file and the second file identifier to the video server, wherein the second file identifier is used for indicating the video server to replace the file identifier corresponding to the playing link of the first multimedia file from the first file identifier to the second file identifier, and the first file identifier is the identifier corresponding to the first multimedia file.
5. The method of any of claims 1 to 4, wherein splicing the second multimedia asset with the first multimedia file comprises:
splicing the second multimedia asset after the first multimedia file; or
Splicing the second multimedia asset before the first multimedia file; or
Splicing the second multimedia resource in the middle of the first multimedia file.
6. A method for transmitting multimedia resources, comprising:
receiving a second multimedia file transmitted by a merge server, wherein the second multimedia file is used for indicating that a stored first multimedia file is replaced by the second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file.
7. The method of claim 6,
receiving the second multimedia file transmitted by the merge server comprises: receiving the second multimedia file and a second file identifier transmitted by the merge server, where the second file identifier is an identifier allocated by the merge server for the second multimedia file, the second file identifier is used to indicate that a file identifier corresponding to a play link of the first multimedia file is replaced from a first file identifier to the second file identifier, and the first file identifier is an identifier corresponding to the first multimedia file;
replacing the stored first multimedia file with the second multimedia file in response to the indication of the second multimedia file comprises: and replacing the stored first multimedia file with the second multimedia file, and replacing the file identifier corresponding to the playing link of the first multimedia file from the first file identifier to the second file identifier.
8. A method for transmitting multimedia resources, comprising:
receiving a playing request sent by a second client, wherein the playing request is used for requesting to play a playing link corresponding to a first multimedia file;
responding to the playing request, and acquiring a file replacement record, wherein the file replacement record is used for recording that a multimedia file corresponding to the playing link is replaced from the first multimedia file to a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and responding to the file replacement record, and instructing the second client to play the second multimedia file.
9. The method of claim 8, wherein obtaining the file replacement record in response to the play request comprises:
responding to the playing request, and sending a query request to a video server, wherein the query request is used for requesting to query the multimedia file corresponding to the playing link, and the video server is used for storing the playing link and the multimedia file with the corresponding relation;
and receiving the file replacement record transmitted by the video server.
10. The method of claim 8, wherein the file replacement record is used to record that the file identifier corresponding to the playing link is replaced with a second file identifier from a first file identifier for identifying the first multimedia file to a second file identifier for identifying the second multimedia file, and wherein instructing the second client to play the second multimedia file in response to the file replacement record comprises:
and responding to the file replacement record, and sending the second file identifier to the second client, wherein the second file identifier is used for indicating the second client to play the second multimedia file.
11. The method of claim 8, wherein instructing the second client to play the second multimedia file in response to the file replacement record comprises:
responding to the file replacement record, instructing the second client to play the second multimedia file, and sending a replacement instruction to the second client, wherein the replacement instruction is used for instructing the second client that the multimedia file corresponding to the play link is replaced;
receiving a timing query request sent by the second client in response to the replacement instruction, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced or not;
and responding to the timing query request, and instructing the second client to play a third multimedia file under the condition that the multimedia file corresponding to the playing link is replaced by the third multimedia file.
12. A method for transmitting multimedia resources, comprising:
sending a playing request to a playing server, wherein the playing request is used for requesting to play a playing link corresponding to a first multimedia file;
receiving a playing instruction sent by the playing server, wherein the playing instruction is used for instructing to play a second multimedia file, the first multimedia file comprises a stored first multimedia resource in a live stream being played, and the second multimedia file comprises the first multimedia resource and a second multimedia resource;
and responding to the playing indication, and playing the second multimedia file.
13. The method according to claim 12, wherein the playing indication further carries a replacement instruction, wherein the replacement instruction is used to indicate that the multimedia file corresponding to the playing link is replaced, and wherein playing the second multimedia file in response to the playing indication comprises:
responding to the playing instruction, playing the second multimedia file, and responding to the replacing instruction to send a timing query request to the playing server at a timing, wherein the timing query request is used for querying whether the multimedia file corresponding to the playing link is replaced or not;
receiving an instruction sent by the playing server for instructing playing of a third multimedia file, wherein the multimedia file corresponding to the playing link is replaced by the third multimedia file;
acquiring a first playing point in the second multimedia file;
determining a second playing point corresponding to the first playing point in the third multimedia file;
and starting to play the third multimedia file from the second playing point.
14. An apparatus for transmitting multimedia resources, comprising:
the system comprises a first receiving module, a second receiving module and a splicing module, wherein the first receiving module is used for receiving a splicing request sent by a first client, the splicing request is used for requesting to splice a second multimedia resource with a first multimedia file, and the first multimedia file comprises a stored first multimedia resource in a live stream which is being played;
the splicing module is used for responding to the splicing request and splicing the second multimedia resource with the first multimedia file to obtain a second multimedia file;
and the first transmission module is used for transmitting the second multimedia file to a video server, wherein the second multimedia file is used for indicating the video server to replace the stored first multimedia file with the second multimedia file.
15. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 13 when executed.
CN201910413492.XA 2019-05-17 2019-05-17 Multimedia resource transmission method and device Active CN111954005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910413492.XA CN111954005B (en) 2019-05-17 2019-05-17 Multimedia resource transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910413492.XA CN111954005B (en) 2019-05-17 2019-05-17 Multimedia resource transmission method and device

Publications (2)

Publication Number Publication Date
CN111954005A true CN111954005A (en) 2020-11-17
CN111954005B CN111954005B (en) 2022-12-20

Family

ID=73336780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910413492.XA Active CN111954005B (en) 2019-05-17 2019-05-17 Multimedia resource transmission method and device

Country Status (1)

Country Link
CN (1) CN111954005B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727140A (en) * 2021-08-31 2021-11-30 维沃移动通信(杭州)有限公司 Audio and video processing method and device and electronic equipment
CN114697298A (en) * 2022-02-23 2022-07-01 青岛海尔科技有限公司 Multimedia resource acquisition method and device, storage medium and electronic device
WO2022242461A1 (en) * 2021-05-21 2022-11-24 北京字节跳动网络技术有限公司 Method and apparatus for processing livestream audio/video, client, and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454391A (en) * 2016-10-31 2017-02-22 腾讯科技(深圳)有限公司 Method, apparatus and terminal of converting live to on-demand
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106937129A (en) * 2015-12-31 2017-07-07 广州华多网络科技有限公司 A kind of live real-time clipping method of Online Video and device
CN108235141A (en) * 2018-03-01 2018-06-29 北京网博视界科技股份有限公司 Live video turns method, apparatus, server and the storage medium of fragmentation program request

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106937129A (en) * 2015-12-31 2017-07-07 广州华多网络科技有限公司 A kind of live real-time clipping method of Online Video and device
CN106454391A (en) * 2016-10-31 2017-02-22 腾讯科技(深圳)有限公司 Method, apparatus and terminal of converting live to on-demand
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN108235141A (en) * 2018-03-01 2018-06-29 北京网博视界科技股份有限公司 Live video turns method, apparatus, server and the storage medium of fragmentation program request

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242461A1 (en) * 2021-05-21 2022-11-24 北京字节跳动网络技术有限公司 Method and apparatus for processing livestream audio/video, client, and server
CN113727140A (en) * 2021-08-31 2021-11-30 维沃移动通信(杭州)有限公司 Audio and video processing method and device and electronic equipment
CN114697298A (en) * 2022-02-23 2022-07-01 青岛海尔科技有限公司 Multimedia resource acquisition method and device, storage medium and electronic device
CN114697298B (en) * 2022-02-23 2023-11-28 青岛海尔科技有限公司 Method and device for acquiring multimedia resources, storage medium and electronic device

Also Published As

Publication number Publication date
CN111954005B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
US20210006848A1 (en) System for measuring video playback events using a server generated manifest/playlist
US10911789B2 (en) Automatic failover for live video streaming
CN111954005B (en) Multimedia resource transmission method and device
US8489760B2 (en) Media file storage format and adaptive delivery system
US20160080470A1 (en) Server-side playlist stitching
US20120317305A1 (en) Method and Arrangement for Representation Switching in HTTP Streaming
US20220141507A1 (en) Transcoding of video content
CN105516736B (en) Video file processing method and device
CA2840827A1 (en) System and method for advertisement delivery within a video time shifting architecture
CN105681827B (en) Poster generation method, system and the relevant apparatus of direct broadcast band
CN107690081B (en) Video playing method and device, storage medium and electronic device
EP3826310A1 (en) Methods and systems for dynamic routing of content using a static playlist manifest
CN111510789B (en) Video playing method, system, computer equipment and computer readable storage medium
US20180191587A1 (en) Customizing manifest file for enhancing media streaming
US11438675B1 (en) Subsequent look media presentation on a playing device
US20180191801A1 (en) Adaptively updating content delivery network link in a manifest file
CN105872630A (en) Network video customizing and downloading method based on cloud platform
CN109348240A (en) Video broadcasting method, apparatus and system, electronic equipment and storage medium
US20180191799A1 (en) Effectively fetch media content for enhancing media streaming
CN113727189A (en) Media playing method and system supporting multiple streaming media transmission protocols
US11445271B2 (en) Real-time ad tracking proxy
CN110225370B (en) Timeline control method for personalized presentation of multimedia content
CN113473247B (en) Video playing request processing method, device and system and electronic equipment
CN114051150A (en) Live broadcast method and device, electronic equipment and computer readable storage medium
US12022169B2 (en) Real-time ad tracking proxy

Legal Events

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