CN104980773B - streaming media processing method and device, terminal and server - Google Patents

streaming media processing method and device, terminal and server Download PDF

Info

Publication number
CN104980773B
CN104980773B CN201410491438.4A CN201410491438A CN104980773B CN 104980773 B CN104980773 B CN 104980773B CN 201410491438 A CN201410491438 A CN 201410491438A CN 104980773 B CN104980773 B CN 104980773B
Authority
CN
China
Prior art keywords
media segment
media
playing
segment
streaming media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410491438.4A
Other languages
Chinese (zh)
Other versions
CN104980773A (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 CN201410491438.4A priority Critical patent/CN104980773B/en
Publication of CN104980773A publication Critical patent/CN104980773A/en
Application granted granted Critical
Publication of CN104980773B publication Critical patent/CN104980773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a streaming media processing method, a device, a terminal and a server, wherein the method comprises the following steps: when playing the streaming media, acquiring attribute information of at least one media segment of the streaming media; outputting attribute information of the at least one media segment in the playing process of the streaming media; downloading a target media segment of the at least one media segment when a download request for the target media segment is received. The invention can download the media segments according to the attribute information of the media segments, thereby improving the convenience of processing the streaming media and improving the efficiency of processing the streaming media.

Description

Streaming media processing method and device, terminal and server
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a terminal, and a server for processing streaming media.
background
streaming media refers to media files that are played on a network in a streaming manner, and may include, but is not limited to: audio files, video files, and multimedia files such as GIF (Graphics Interchange Format), etc.; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. In the existing streaming media processing scheme, a downloading function is usually provided in the streaming media playing process to help a user to download complete resource content of the currently played streaming media to a terminal for storage, and a subsequent user can locally pull the resource content of the streaming media from the terminal for offline viewing. However, the existing streaming media processing scheme provides downloading of the complete resource content of the streaming media, if the user wants to obtain the partial resource content of the streaming media, for example: the user wants to save the wonderful goal segment of the ball game, or the user wants to download and play the video segment with high popularity, and the like, at this time, the user needs to manually clip through a professional media clipping tool, the operation is complex, and the streaming media processing efficiency is low.
disclosure of Invention
Embodiments of the present invention provide a streaming media processing method, an apparatus, a terminal, and a server, which can download a media segment according to attribute information of the media segment, so as to improve convenience of streaming media processing and efficiency of streaming media processing.
A first aspect of an embodiment of the present invention provides a method for processing streaming media, where the method may include:
when playing the streaming media, acquiring attribute information of at least one media segment of the streaming media;
Outputting attribute information of the at least one media segment in the playing process of the streaming media;
downloading a target media segment of the at least one media segment when a download request for the target media segment is received.
a second aspect of the embodiments of the present invention provides another streaming media processing method, which may include:
When a terminal plays streaming media, sending attribute information of at least one media segment of the streaming media to the terminal so that the terminal outputs the attribute information of the at least one media segment in the playing process of the streaming media;
When a downloading request of a target media segment in the at least one media segment sent by the terminal is received, acquiring resource content of the target media segment;
and sending the resource content of the target media segment to the terminal.
A third aspect of the present invention provides a streaming media processing apparatus, which may include:
The device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring attribute information of at least one media fragment of streaming media when the streaming media are played;
The output module is used for outputting the attribute information of the at least one media segment in the playing process of the streaming media;
and the downloading module is used for downloading the target media segment when receiving a downloading request of the target media segment in the at least one media segment.
a fourth aspect of the embodiments of the present invention provides a terminal, which may include the streaming media processing apparatus provided in the third aspect.
a fifth aspect of the present invention provides another streaming media processing apparatus, which includes:
An attribute information sending module, configured to send attribute information of at least one media segment of a streaming media to a terminal when the terminal plays the streaming media, so that the terminal outputs the attribute information of the at least one media segment in a playing process of the streaming media;
The acquisition module is used for acquiring the resource content of a target media segment in the at least one media segment when receiving a downloading request of the target media segment sent by the terminal;
And the resource content sending module is used for sending the resource content of the target media segment to the terminal.
a sixth aspect of the embodiments of the present invention provides a server, which may include the streaming media processing apparatus provided in the fifth aspect.
The embodiment of the invention has the following beneficial effects:
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a streaming media processing method according to an embodiment of the present invention;
Fig. 2 is a flowchart of another streaming media processing method according to an embodiment of the present invention;
fig. 3 is a flowchart of another streaming media processing method according to an embodiment of the present invention;
Fig. 4 is a schematic effect diagram of a streaming media processing method according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a streaming media processing apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an embodiment of the acquisition module shown in FIG. 5;
FIG. 7 is a schematic structural diagram of an embodiment of the output module shown in FIG. 5;
FIG. 8 is a block diagram of an embodiment of the download module shown in FIG. 5;
Fig. 9 is a schematic structural diagram of another streaming media processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another streaming media processing apparatus according to an embodiment of the present invention;
Fig. 11 is a schematic structural diagram of an embodiment of an attribute information sending module according to an embodiment of the present invention;
Fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
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.
The following describes the streaming media processing method according to the embodiment of the present invention in detail with reference to fig. 1 to 4.
please refer to fig. 1, which is a flowchart illustrating a streaming media processing method according to an embodiment of the present invention; the present embodiment explains the flow of the information acquisition method from the terminal side, and the method may include the following steps S101 to S103.
S101, when playing the streaming media, acquiring the attribute information of at least one media segment of the streaming media.
The streaming media refers to a media file played on a network in a streaming mode, and may include but is not limited to: audio files, video files, and multimedia files such as GIF; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. At least one media segment of the streaming media is: dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule; for example: the media segments of the streaming media may be: a highlight goal in a live game, a climax episode in an online-viewed movie, etc. Wherein, the preset slicing rule can be set according to actual conditions, for example: according to the actual situation, the preset slicing rule is set to be that N (N is a positive integer) equal-dividing slicing is carried out according to the size of the resource content, so that the resource content of the streaming media can be divided into N media segments; the following steps are repeated: according to actual needs, setting the preset slicing rule to divide the slices into M (M is a positive integer) equally according to the total playing duration, so that the resource content of the streaming media can be divided into M media segments; for another example: the preset slicing rule can be set to be divided according to the time period of the streaming media being commented according to the comment condition of the streaming media, if the playing time of a certain streaming media is 30 minutes in 00:00-29:59, and statistics shows that the streaming media is commented in the time periods of 00:00-05:30 and 09:20-15:00, the streaming media can be divided into 4 media segments, and the playing time periods of the 4-year media segments are 00:00-05:30, 05:30-09:19, 09:20-15:00 and 15:01-29:59 respectively; and so on.
The attribute information may include, but is not limited to: time length of play, start time, end time, title of clip, heat of play, etc. In the embodiment of the present invention, preferably, the attribute information may be a play popularity. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment.
S102, outputting the attribute information of the at least one media segment in the playing process of the streaming media.
In this step, the attribute information of the at least one media segment may be output in the playing interface of the streaming media, for example: the playing popularity of the at least one media segment can be displayed in various colors in the playing progress bar of the streaming media, and so on. By outputting the attribute information of the at least one media segment in the playing process of the streaming media, a user can intuitively know the playing heat and other conditions of the at least one media segment in the process of watching the streaming media, so that the user can be helped to determine a downloading strategy.
s103, when a downloading request of a target media segment in the at least one media segment is received, downloading the target media segment.
After determining the downloading strategy, the user can select a target media segment to be downloaded from the at least one media segment and initiate a downloading request; and receiving the downloading request and downloading the target media segment. It should be noted that, after the target media segment is downloaded in this step, the resource content of the target media segment is stored in the terminal, and the user can locally search and view the resource content of the target media segment stored in the terminal.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
please refer to fig. 2, which is a flowchart illustrating another streaming media processing method according to an embodiment of the present invention; the present embodiment describes the flow of the information acquisition method from the server side, and the method may include the following steps S201 to S203.
S201, when a terminal plays streaming media, sending attribute information of at least one media segment of the streaming media to the terminal, so that the terminal outputs the attribute information of the at least one media segment in the playing process of the streaming media.
The streaming media refers to a media file played on a network in a streaming mode, and may include but is not limited to: audio files, video files, and multimedia files such as GIF; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. At least one media segment of the streaming media is: dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule; for example: the media segments of the streaming media may be: a highlight goal in a live game, a climax episode in an online-viewed movie, etc. The attribute information may include, but is not limited to: time length of play, start time, end time, title of clip, heat of play, etc. In the embodiment of the present invention, preferably, the attribute information may be a play popularity. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment.
In this step, when a terminal plays a streaming media, attribute information of at least one media segment of the streaming media may be sent to the terminal, and the terminal may output the attribute information of the at least one media segment in a playing interface of the streaming media, for example: the playing popularity of the at least one media segment can be displayed in various colors in the playing progress bar of the streaming media, and so on. By outputting the attribute information of the at least one media segment in the playing process of the streaming media, a user can intuitively know the playing heat and other conditions of the at least one media segment in the process of watching the streaming media, so that the user can be helped to determine a downloading strategy.
s202, when a downloading request of a target media segment in the at least one media segment sent by the terminal is received, acquiring the resource content of the target media segment.
after determining the downloading strategy, the user can select a target media segment to be downloaded from the at least one media segment and initiate a downloading request through the terminal; in this step, when the download request sent by the terminal is received, the resource content of the requested target media segment is obtained.
S203, the resource content of the target media segment is sent to the terminal.
in this step, after the requested resource content of the target media segment is obtained, the resource content of the target media segment may be sent to the terminal. It should be noted that, after the terminal receives the resource content of the target media segment, the resource content of the target media segment is stored in the terminal, and the user can locally search and view the resource content of the target media segment stored in the terminal.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Please refer to fig. 3, which is a flowchart illustrating a streaming media processing method according to another embodiment of the present invention; the present embodiment describes the flow of the information obtaining method from the interactive side of the terminal and the server, and the method may include the following steps S301 to S319.
S301, the server adopts a preset slicing rule to segment the resource content of the streaming media to obtain at least one media segment of the streaming media.
The streaming media refers to a media file played on a network in a streaming mode, and may include but is not limited to: audio files, video files, and multimedia files such as GIF; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. At least one media segment of the streaming media is: dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule; for example: the media segments of the streaming media may be: a highlight goal in a live game, a climax episode in an online-viewed movie, etc. Wherein, the preset slicing rule can be set according to actual conditions, for example: according to the actual situation, the preset slicing rule is set to be that N (N is a positive integer) equal-dividing slicing is carried out according to the size of the resource content, so that the resource content of the streaming media can be divided into N media segments; the following steps are repeated: according to actual needs, setting the preset slicing rule to divide the slices into M (M is a positive integer) equally according to the total playing duration, so that the resource content of the streaming media can be divided into M media segments; for another example: the preset slicing rule can be set to be divided according to the time period of the streaming media being commented according to the comment condition of the streaming media, if the playing time of a certain streaming media is 30 minutes in 00:00-29:59, and statistics shows that the streaming media is commented in the time periods of 00:00-05:30 and 09:20-15:00, the streaming media can be divided into 4 media segments, and the playing time periods of the 4-year media segments are 00:00-05:30, 05:30-09:19, 09:20-15:00 and 15:01-29:59 respectively; and so on. It should be noted that, after at least one media segment of the streaming media is obtained, each media segment in the at least one media segment corresponds to one piece of identification information, and the identification information of the media segment is used to uniquely identify the media segment, for example: if the streaming media is divided into M media segments, the identification information of the first media segment may be a1, the identification information of the second media segment may be a2, and so on.
s302, the server calculates the playing heat of each media segment in the at least one media segment according to the playing data of the at least one media segment.
In the embodiment of the present invention, preferably, the attribute information of the media segment may be a playing popularity of the media segment. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment. In this step, the playing data may include, but is not limited to: number of plays, number of comments obtained, number of downloads, and number of times play is denied.
in this step, a calculation manner such as a weighting algorithm, a statistical algorithm, or a linear algorithm may be adopted according to actual needs to calculate the playing heat of each media segment in the at least one media segment, for example: taking a statistical algorithm as an example, assuming that the initial values of the playing heat of each media segment in the at least one media segment are all 0, if a certain media segment is played once, the value of the playing heat of the media segment is updated to 0+1 ═ 1; if the media segment obtains two comments, updating the playing popularity value of the media segment to 1+ 2-3; if the media segment is downloaded once, the playing heat value of the media segment is updated to 3+ 1-4; if the media segment is skipped by the user and not played when the terminal plays the streaming media, that is, the media segment is refused to be played for 1 time, the playing heat of the media segment is updated to 4-1 to 3, and the playing heat of the media segment is calculated to be 4; and in the same way, the playing heat of each media segment of the at least one media segment can be calculated and obtained.
S303, when the terminal plays the streaming media, the terminal acquires the identification information of the streaming media.
the identification information of the streaming media may be used to uniquely identify the streaming media, and the identification information of the streaming media may be an ID of the streaming media or address information of the streaming media. In this step, when playing the streaming media, the terminal may obtain the identification information of the streaming media, for example: assuming that a terminal plays a live ball game, the terminal can acquire the ID of the ball game from the resource configuration information of the ball game; the following steps are repeated: assuming that a terminal plays an online video, the terminal can acquire address information of the video from an address bar of a browser; and so on.
S304, the terminal generates an attribute acquisition request carrying the identification information of the streaming media.
the attribute obtaining request is used for requesting to obtain attribute information of at least one media segment of the streaming media. The attribute information may include, but is not limited to: time length of play, start time, end time, title of clip, heat of play, etc. In the embodiment of the present invention, preferably, the attribute information may be a play popularity. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment.
S305, the terminal sends the attribute acquisition request to a server.
S306, the server receives the attribute acquisition request which is sent by the terminal and carries the identification information of the streaming media.
S307, the server obtains the identification information of the streaming media carried by the request according to the attribute, and searches the playing heat of at least one media segment of the streaming media.
Since the server has already obtained the playing heat of at least one media segment of the streaming media through steps S301 to S302, in this step, the server first obtains the identification information of the streaming media carried by the request according to the attribute, and determines the requested streaming media; and searching the playing heat of at least one media segment of the requested streaming media.
s308, the server returns the playing heat of the at least one media segment to the terminal.
steps S306 to S308 of the present embodiment may be detailed refinement steps of step S201 of the embodiment shown in fig. 2.
s309, the terminal receives the playing heat of the at least one media segment returned by the server.
steps S303 to S305 and S309 of the present embodiment may be specific refinements of step S101 of the embodiment shown in fig. 1.
s310, the terminal searches for the playing color corresponding to the playing heat of each media segment in the at least one media segment by adopting a preset heat color rule.
The preset heat color rule can be set according to actual needs, and may include but is not limited to: one play heat corresponds to one play color, or one play heat range corresponds to one play color. In a specific implementation, the preset heat color rule may refer to the contents of the following table one or table two:
Table one: preset heat color rule table one
Playing heat playing colors
0 White colour
1 Cyan color
-1 Black color
3 Pink colour
5 Purple color
…… ……
Table two: preset heat color rule table two
playing heat Playing colors
[-5,0] white colour
[1,3] Cyan color
[4,7] red colour
[10,15] yellow colour
…… ……
It should be noted that the above table one and table two are only examples, and may be adjusted according to the actual playing heat value, or may be adjusted according to the actual display requirement. In practical application, the table I and/or the table II can be flexibly selected to convert and correspond the playing heat and the playing color.
s311, the terminal adopts the playing color of each media segment to color the playing progress bar of the streaming media according to the playing time of each media segment in the streaming media, and obtains the playing progress color block of each media segment.
S312, the terminal adopts the playing progress color blocks of the media segments to output the playing heat of the media segments.
In step S311 to step S312, the playing frequency of each media segment can be visually displayed by using the playing progress color block, so that the user can visually know the playing frequency and the like of at least one media segment in the process of watching the streaming media, thereby helping the user determine a downloading strategy.
steps S310 to S312 of the present embodiment may be a detailed refinement of step S102 of the embodiment shown in fig. 1.
S313, when the selection operation of the at least one media segment is detected, the terminal determines the selected media segment as a target media segment.
because step S312 outputs the playing heat of each media segment in a manner of playing a progress color block, after the user determines the downloading policy, the user may perform a selection operation on one or more playing progress color blocks to determine one or more target media segments, for example: and the terminal determines the media segment corresponding to the playing progress color block selected by the user as the target media segment.
S314, when receiving the downloading request of the target media segment, the terminal acquires the identification information of the target media segment.
When the user confirms to download the selected target media segment, a download request can be initiated, and the terminal acquires the identification information of the target media segment requested to be downloaded.
S315, the terminal generates a downloading request carrying the identification information of the target media segment. The download request is used for requesting to download the resource content of the target media segment.
s316, the terminal sends the downloading request to a server.
s317, when receiving a download request for a target media segment of the at least one media segment sent by the terminal, the server obtains the resource content of the target media segment.
s318, the server sends the resource content of the target media segment to the terminal.
Steps S317 to S318 of this embodiment can refer to steps S202 to S203 of the embodiment shown in fig. 2, which are not described herein again.
s319, the terminal receives the resource content of the target media segment returned by the server.
steps S313 to S316 and S319 of the present embodiment may be specific refinements of step S103 of the embodiment shown in fig. 1.
the following describes a specific flow of the streaming media processing method according to the embodiment of the present invention in detail by using an example with reference to fig. 4.
Please refer to fig. 4, which is a schematic diagram illustrating an effect of a streaming media processing method according to an embodiment of the present invention; in the example shown in fig. 4, the mobile phone is playing the 2 nd set of the online video XX, and the identification information of the video XX-2 is a; the server divides the video XX-2 into 8 video segments according to the comment situation of the video XX-2, and the identification information of the 8 media segments is a1-a 8. Further, the server calculates, according to the playing data of each video clip, that the playing heat of the video clip a1 is 0, the playing heat of the video clip a2 is 2, the playing heat of the video clip a3 is 1, the playing heat of the video clip a4 is 5, the playing heat of the video clip a5 is-1, the playing heat of the video clip a6 is 3, the playing heat of the video clip a7 is 0, and the playing heat of the video clip a8 is 1. The mobile phone plays the video XX-2, acquires the identification information A of the video XX-2, generates an attribute acquisition request carrying the identification information A and sends the attribute acquisition request to the server. The server finds the playing heat of 8 video clips of the video XX-2 and returns the playing heat to the mobile phone.
The mobile phone can use the table two to search for the playing color corresponding to the playing heat of each video clip in the 8 video clips, which sequentially comprises: the playing heat of the video clip a1 is 0, and the corresponding playing color is white; the playing heat of the video clip a2 is 2, and the corresponding playing color is cyan; the playing heat of the video clip a3 is 1, and the corresponding playing color is cyan; the playing heat of the video clip a4 is 5, and the corresponding playing color is red; the playing heat of the video clip a5 is-1, and the corresponding playing color is white; the playing heat of the video clip a6 is 3, and the corresponding playing color is cyan; the playing heat of the video clip a7 is 0, and the corresponding playing color is white; the playing popularity of the video segment a8 is 1, and its corresponding playing color is white. The mobile phone sequentially performs coloring processing on the playing progress bar according to the playing time of each video clip in the video XX-2 to obtain a playing progress color block of each video clip, which may be specifically shown in fig. 4. Preferably, in the embodiment of the present invention, when the user finger moves to the playing progress color block of each video segment, the playing heat and the playing data of each video segment can be displayed to the user for browsing.
When the user selects one or more play progress color blocks shown in fig. 4, the mobile phone determines a video segment corresponding to the selected play progress color block as a target video segment, for example: the user selects the playing progress color block of the video segment a2 and the video segment a5, and the mobile phone determines the video segment a2 and the video segment a5 as target video segments. If the user clicks the download key shown in fig. 4 to confirm that the selected target video segments a2 and a5 are downloaded, the mobile phone obtains the identification information a2 and a5 of the target video segments a2 and a5, generates a download request carrying a2 and a5, and sends the download request to the server. The resource content of the video clips a2 and a5 acquired by the server is returned to the mobile phone storage, and then the user can locally search the video clips a2 and a5 stored in the mobile phone for offline viewing.
in the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
A streaming media processing device according to an embodiment of the present invention will be described in detail below with reference to fig. 5 to 8. It should be noted that the streaming media processing apparatus shown in fig. 5 to 8 can be various applications for performing streaming media processing, such as: a browser application, an audio-video application, etc., which is operable in a terminal to be used in the methods shown in fig. 1-4.
Fig. 5 is a schematic structural diagram of a streaming media processing device according to an embodiment of the present invention; the apparatus may include: an acquisition module 101, an output module 102 and a download module 103.
The acquiring module 101 is configured to acquire attribute information of at least one media segment of a streaming media when the streaming media is played.
the streaming media refers to a media file played on a network in a streaming mode, and may include but is not limited to: audio files, video files, and multimedia files such as GIF; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. At least one media segment of the streaming media is: dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule; for example: the media segments of the streaming media may be: a highlight goal in a live game, a climax episode in an online-viewed movie, etc. Wherein, the preset slicing rule can be set according to actual conditions, for example: according to the actual situation, the preset slicing rule is set to be that N (N is a positive integer) equal-dividing slicing is carried out according to the size of the resource content, so that the resource content of the streaming media can be divided into N media segments; the following steps are repeated: according to actual needs, setting the preset slicing rule to divide the slices into M (M is a positive integer) equally according to the total playing duration, so that the resource content of the streaming media can be divided into M media segments; for another example: the preset slicing rule can be set to be divided according to the time period of the streaming media being commented according to the comment condition of the streaming media, if the playing time of a certain streaming media is 30 minutes in 00:00-29:59, and statistics shows that the streaming media is commented in the time periods of 00:00-05:30 and 09:20-15:00, the streaming media can be divided into 4 media segments, and the playing time periods of the 4-year media segments are 00:00-05:30, 05:30-09:19, 09:20-15:00 and 15:01-29:59 respectively; and so on.
The attribute information may include, but is not limited to: time length of play, start time, end time, title of clip, heat of play, etc. In the embodiment of the present invention, preferably, the attribute information may be a play popularity. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment.
an output module 102, configured to output the attribute information of the at least one media segment in the playing process of the streaming media.
The output module 102 may output the attribute information of the at least one media segment in the playing interface of the streaming media, for example: the playing popularity of the at least one media segment can be displayed in various colors in the playing progress bar of the streaming media, and so on. By outputting the attribute information of the at least one media segment in the playing process of the streaming media, a user can intuitively know the playing heat and other conditions of the at least one media segment in the process of watching the streaming media, so that the user can be helped to determine a downloading strategy.
A downloading module 103, configured to download a target media segment of the at least one media segment when a downloading request for the target media segment is received.
after determining the downloading strategy, the user can select a target media segment to be downloaded from the at least one media segment and initiate a downloading request; the downloading module 103 receives the downloading request and downloads the target media segment. It should be noted that, after the downloading module 103 finishes downloading the target media segment, the resource content of the target media segment is stored in the terminal, and the user may locally search and view the resource content of the target media segment stored in the terminal.
in the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Please refer to fig. 6, which is a schematic structural diagram of an embodiment of the obtaining module shown in fig. 5; the acquisition module 101 may include: a first acquisition unit 1101, a first generation unit 1102, a first request unit 1103, and a first reception unit 1104.
a first obtaining unit 1101, configured to obtain identification information of a streaming media when the streaming media is played.
The identification information of the streaming media may be used to uniquely identify the streaming media, and the identification information of the streaming media may be an ID of the streaming media or address information of the streaming media. When playing streaming media, the first obtaining unit 1101 may obtain identification information of the streaming media, such as: assuming that the terminal is playing a live ball game, the first obtaining unit 1101 may obtain an ID of the ball game from the resource allocation information of the ball game; the following steps are repeated: assuming that the terminal is playing an online video, the first obtaining unit 1101 may obtain address information of the video from an address bar of the browser; and so on.
A first generating unit 1102, configured to generate an attribute obtaining request carrying the identification information of the streaming media.
The attribute obtaining request is used for requesting to obtain attribute information of at least one media segment of the streaming media. The attribute information may include, but is not limited to: time length of play, start time, end time, title of clip, heat of play, etc. In the embodiment of the present invention, preferably, the attribute information may be a play popularity. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment.
a first requesting unit 1103, configured to send the attribute obtaining request to a server, so that the server searches for a playing heat of at least one media segment of the streaming media according to the identification information of the streaming media carried in the attribute obtaining request.
a first receiving unit 1104, configured to receive the playing heat of the at least one media segment returned by the server.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
please refer to fig. 7, which is a schematic structural diagram of an embodiment of the output module shown in fig. 5; the output module 102 may include: a play color search unit 1201, a coloring processing unit 1202, and a play heat output unit 1203.
The playing color searching unit 1201 is configured to search, by using a preset popularity color rule, a playing color corresponding to the playing popularity of each media segment of the at least one media segment.
The preset heat color rule can be set according to actual needs, and may include but is not limited to: one play heat corresponds to one play color, or one play heat range corresponds to one play color. In a specific implementation, the preset heat color rule may refer to the contents of the table one or the table two.
and a coloring unit 1202, configured to perform coloring processing on the playing progress bar of the streaming media by using the playing color of each media segment according to the playing time of each media segment in the streaming media, so as to obtain a playing progress color block of each media segment.
A playing heat output unit 1203, configured to output the playing heat of each media segment by using the playing progress color block of each media segment.
The playing heat output unit 1203 may visually display the playing heat of each media segment by using a playing progress color block, so that a user may visually know the playing heat of at least one media segment and other conditions in the process of watching the streaming media, thereby helping the user determine a downloading strategy.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Please refer to fig. 8, which is a schematic structural diagram of an embodiment of the download module shown in fig. 5; the download module 103 may include: a determining unit 1301, a second obtaining unit 1302, a second generating unit 1303, a second requesting unit 1304, and a second receiving unit 1305.
A determining unit 1301, configured to determine, when it is detected that a selecting operation is performed on the at least one media segment, the selected media segment as a target media segment.
because the playing heat of each media segment can be output by adopting a playing progress color block mode, after a user determines a downloading strategy, the user can select one or more playing progress color blocks to determine one or more target media segments, for example: the user clicks a certain playing progress color block in the playing interface of the streaming media to select the playing progress color block, and the determining unit 1301 determines the media segment corresponding to the playing progress color block selected by the user as the target media segment.
A second obtaining unit 1302, configured to obtain the identification information of the target media segment when a download request for the target media segment is received.
when the user confirms to download the selected target media segment, a download request may be initiated, and the second obtaining unit 1302 obtains the identification information of the target media segment requested to be downloaded.
The second generating unit 1303 is configured to generate a download request carrying the identification information of the target media segment. The download request is used for requesting to download the resource content of the target media segment.
A second request unit 1304, configured to send the download request to a server, so that the server obtains the resource content of the target media segment according to the identification information of the target media segment carried in the download request.
a second receiving unit 1305, configured to receive the resource content of the target media segment returned by the server.
in the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
The embodiment of the present invention further discloses a terminal, which may be a Personal Computer (PC), a notebook Computer, a mobile phone, a PAD (tablet Computer), a smart wearable device, a vehicle-mounted terminal, and the like, and the terminal may include a streaming media processing device, and the structure and function of the device may refer to the description related to the embodiment shown in fig. 5 to 8, which is not repeated herein. The terminal of the present embodiment can be applied to the methods shown in fig. 1 to 4 described above.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
another streaming media processing apparatus according to an embodiment of the present invention will be described in detail with reference to fig. 9 to 11. It should be noted that the streaming media processing apparatus shown in fig. 9-11 can be operated in a server to be applied to the method shown in fig. 1-4.
Fig. 9 is a schematic structural diagram of another streaming media processing apparatus according to an embodiment of the present invention; the apparatus may include: an attribute information sending module 201, an acquisition module 202 and a resource content sending module 203.
An attribute information sending module 201, configured to send, when a terminal plays a streaming media, attribute information of at least one media segment of the streaming media to the terminal, so that the terminal outputs the attribute information of the at least one media segment in a playing process of the streaming media.
The streaming media refers to a media file played on a network in a streaming mode, and may include but is not limited to: audio files, video files, and multimedia files such as GIF; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. At least one media segment of the streaming media is: dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule; for example: the media segments of the streaming media may be: a highlight goal in a live game, a climax episode in an online-viewed movie, etc. The attribute information may include, but is not limited to: time length of play, start time, end time, title of clip, heat of play, etc. In the embodiment of the present invention, preferably, the attribute information may be a play popularity. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment.
When a terminal plays streaming media, the attribute information sending module 201 may send attribute information of at least one media segment of the streaming media to the terminal, and the terminal may output the attribute information of the at least one media segment in a playing interface of the streaming media, for example: the playing popularity of the at least one media segment can be displayed in various colors in the playing progress bar of the streaming media, and so on. By outputting the attribute information of the at least one media segment in the playing process of the streaming media, a user can intuitively know the playing heat and other conditions of the at least one media segment in the process of watching the streaming media, so that the user can be helped to determine a downloading strategy.
An obtaining module 202, configured to obtain resource content of a target media segment in the at least one media segment when a download request for the target media segment is received, where the download request is sent by the terminal.
after determining the downloading strategy, the user can select a target media segment to be downloaded from the at least one media segment and initiate a downloading request through the terminal; the obtaining module 202 obtains the requested resource content of the target media segment when receiving the download request sent by the terminal.
A resource content sending module 203, configured to send the resource content of the target media segment to the terminal.
After acquiring the requested resource content of the target media segment, the resource content sending module 203 may send the resource content of the target media segment to the terminal. It should be noted that, after the terminal receives the resource content of the target media segment, the resource content of the target media segment is stored in the terminal, and the user can locally search and view the resource content of the target media segment stored in the terminal.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Fig. 10 is a schematic structural diagram of another streaming media processing apparatus according to an embodiment of the present invention; the apparatus may include: the system comprises an attribute information sending module 201, an obtaining module 202, a resource content sending module 203, a segmentation processing module 204 and a playing heat calculation module 205. The structures and functions of the attribute information sending module 201, the obtaining module 202, and the resource content sending module 203 may refer to the related description of the embodiment shown in fig. 9, which is not described herein again.
The segmentation processing module 204 is configured to segment the resource content of the streaming media by using a preset segmentation rule, so as to obtain at least one media segment of the streaming media.
The streaming media refers to a media file played on a network in a streaming mode, and may include but is not limited to: audio files, video files, and multimedia files such as GIF; for example: the streaming media may be a live ball game, a movie viewed online, music listened to online, and so on. At least one media segment of the streaming media is: dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule; for example: the media segments of the streaming media may be: a highlight goal in a live game, a climax episode in an online-viewed movie, etc. Wherein, the preset slicing rule can be set according to actual conditions, for example: according to the actual situation, the preset slicing rule is set to be that N (N is a positive integer) equal-dividing slicing is carried out according to the size of the resource content, so that the resource content of the streaming media can be divided into N media segments; the following steps are repeated: according to actual needs, setting the preset slicing rule to divide the slices into M (M is a positive integer) equally according to the total playing duration, so that the resource content of the streaming media can be divided into M media segments; for another example: the preset slicing rule can be set to be divided according to the time period of the streaming media being commented according to the comment condition of the streaming media, if the playing time of a certain streaming media is 30 minutes in 00:00-29:59, and statistics shows that the streaming media is commented in the time periods of 00:00-05:30 and 09:20-15:00, the streaming media can be divided into 4 media segments, and the playing time periods of the 4-year media segments are 00:00-05:30, 05:30-09:19, 09:20-15:00 and 15:01-29:59 respectively; and so on. It should be noted that, after at least one media segment of the streaming media is obtained, each media segment in the at least one media segment corresponds to one piece of identification information, and the identification information of the media segment is used to uniquely identify the media segment, for example: if the streaming media is divided into M media segments, the identification information of the first media segment may be a1, the identification information of the second media segment may be a2, and so on.
The playing heat calculation module 205 is configured to calculate a playing heat of each media segment in the at least one media segment according to the playing data of the at least one media segment.
In the embodiment of the present invention, preferably, the attribute information of the media segment may be a playing popularity of the media segment. The popularity of a media segment may be used to characterize the level of interest associated with that media segment. Wherein, the attention of the media segment may refer to: the media segment is played, the media segment is reviewed, the media segment is downloaded, and so on. The higher the playing heat, the higher the attention degree of the media segment is; the lower the playing popularity, the lower the attention of the media segment. The playback data may include, but is not limited to: number of plays, number of comments obtained, number of downloads, and number of times play is denied.
The playing heat calculation module 205 may adopt a calculation manner such as a weighting algorithm, a statistical algorithm, or a linear algorithm according to actual needs to calculate the playing heat of each media segment in the at least one media segment, for example: taking a statistical algorithm as an example, assuming that the initial values of the playing heat of each media segment in the at least one media segment are all 0, if a certain media segment is played once, the value of the playing heat of the media segment is updated to 0+1 ═ 1; if the media segment obtains two comments, updating the playing popularity value of the media segment to 1+ 2-3; if the media segment is downloaded once, the playing heat value of the media segment is updated to 3+ 1-4; if the media segment is skipped by the user and not played when the terminal plays the streaming media, that is, the media segment is refused to be played for 1 time, the playing heat of the media segment is updated to 4-1 to 3, and the playing heat of the media segment is calculated to be 4; and in the same way, the playing heat of each media segment of the at least one media segment can be calculated and obtained.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Fig. 11 is a schematic structural diagram of an embodiment of an attribute information sending module according to an embodiment of the present invention; the attribute information transmission module 201 may include: a request receiving unit 2101, a play heat lookup unit 2102, and a play heat returning unit 2103.
A request receiving unit 2101, configured to receive an attribute acquisition request carrying identification information of a streaming media sent by a terminal when the terminal plays the streaming media.
A playing heat searching unit 2102, configured to search the playing heat of at least one media segment of the streaming media according to the identification information of the streaming media carried by the attribute obtaining request.
the playing heat searching unit 2102 first obtains the identification information of the streaming media carried by the request according to the attribute, and determines the requested streaming media; and searching the playing heat of at least one media segment of the requested streaming media.
A playing heat returning unit 2103, configured to return the playing heat of the at least one media segment to the terminal.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
The embodiment of the present invention further discloses a server, which may include a streaming media processing apparatus, and the structure and function of the apparatus may refer to the related descriptions of the embodiments shown in fig. 9 to fig. 11, which are not described herein again. The server of the present embodiment may be applied to the methods shown in fig. 1 to 4.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Another terminal is also provided in the embodiments of the present invention, please refer to fig. 12 together, which is a schematic structural diagram of a terminal provided in the embodiments of the present invention; the terminal of the embodiment of the invention comprises: at least one processor 301, e.g., a CPU, at least one communication bus 302, at least one network interface 303, and memory 304. Wherein a communication bus 302 is used to enable the connection communication between these components. The network interface 303 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The memory 304 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 304 may optionally be at least one storage device located remotely from the processor 301. As shown in fig. 12, the memory 304, which is a kind of computer storage medium, stores an operating system, a network communication module, and a program for performing article acquisition and other programs.
in a possible implementation manner, the processor 301 may be configured to call a program stored in the memory 304 for streaming media processing, and perform the following steps:
When playing the streaming media, acquiring attribute information of at least one media segment of the streaming media;
outputting attribute information of the at least one media segment in the playing process of the streaming media;
Downloading a target media segment of the at least one media segment when a download request for the target media segment is received.
wherein the attribute information comprises a playing heat; at least one media segment of the streaming media is: and dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule.
Further, when the processor 301 executes the step of acquiring the attribute information of at least one media segment of the streaming media when the streaming media is played, the following steps are specifically executed:
When playing the streaming media, acquiring the identification information of the streaming media;
generating an attribute acquisition request carrying the identification information of the streaming media;
Sending the attribute acquisition request to a server so that the server searches the playing heat of at least one media segment of the streaming media according to the identification information of the streaming media carried by the attribute acquisition request;
And receiving the playing heat of the at least one media segment returned by the server.
further, when the processor 301 executes the step of outputting the attribute information of the at least one media segment in the playing process of the streaming media, the following steps are specifically executed:
Searching for a playing color corresponding to the playing heat of each media segment in the at least one media segment by adopting a preset heat color rule;
According to the playing time of each media segment in the streaming media, coloring the playing progress bar of the streaming media by adopting the playing color of each media segment to obtain a playing progress color block of each media segment;
Outputting the playing heat of each media segment by adopting the playing progress color block of each media segment;
wherein the preset heat color rule comprises: one play heat corresponds to one play color, or one play heat range corresponds to one play color.
further, when the processor 301 executes the step of downloading the target media segment when the download request for the target media segment in the at least one media segment is detected, the following steps are specifically executed:
when the at least one media fragment is detected to be selected, determining the selected media fragment as a target media fragment;
When a downloading request of the target media segment is received, acquiring the identification information of the target media segment;
generating a downloading request carrying the identification information of the target media segment;
Sending the downloading request to a server so that the server acquires the resource content of the target media segment according to the identification information of the target media segment carried by the downloading request;
And receiving the resource content of the target media segment returned by the server.
in the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
Another server is provided in the embodiment of the present invention, please refer to fig. 13 together, which is a schematic structural diagram of a server provided in the embodiment of the present invention; the server of the embodiment of the invention comprises: at least one processor 401, e.g., a CPU, at least one communication bus 402, at least one network interface 403, and memory 404. Wherein a communication bus 402 is used to enable connective communication between these components. The network interface 403 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The memory 404 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 404 may optionally be at least one memory device located remotely from the processor 401. As shown in fig. 13, the memory 404, which is a kind of computer storage medium, stores an operating system, a network communication module, and a program for performing streaming media processing and other programs.
In a possible implementation manner, the processor 401 may be configured to call a program stored in the memory 404 for streaming media processing, and perform the following steps:
When a terminal plays streaming media, sending attribute information of at least one media segment of the streaming media to the terminal so that the terminal outputs the attribute information of the at least one media segment in the playing process of the streaming media;
When a downloading request of a target media segment in the at least one media segment sent by the terminal is received, acquiring resource content of the target media segment;
And sending the resource content of the target media segment to the terminal.
further, the processor 401, before performing the step of sending attribute information of at least one media segment of the streaming media to the terminal when the streaming media is played by the terminal, further performs the following steps:
Segmenting the resource content of the streaming media by adopting a preset segmentation rule to obtain at least one media segment of the streaming media;
According to the playing data of the at least one media segment, calculating the playing heat of each media segment in the at least one media segment;
Wherein the playback data includes: number of plays, number of comments obtained, number of downloads, and number of times play is denied.
Further, when the processor 401 executes the step of sending the attribute information of at least one media segment of the streaming media to the terminal when the terminal plays the streaming media, the following steps are specifically executed:
When a terminal plays streaming media, receiving an attribute acquisition request which is sent by the terminal and carries identification information of the streaming media;
acquiring identification information of the streaming media carried by the request according to the attribute, and searching the playing heat of at least one media segment of the streaming media;
And returning the playing heat of the at least one media segment to the terminal.
In the embodiment of the invention, the attribute information of at least one media segment of the streaming media being played can be acquired, the attribute information of at least one media segment can be output in the playing process of the streaming media to help a user to formulate a downloading strategy, the target media segment can be downloaded when a downloading request of the target media segment is received, the media segment can be acquired without manually using a professional media editing tool, the convenience of streaming media processing is effectively improved, and the efficiency of streaming media processing is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (18)

1. a streaming media processing method, comprising:
When playing the streaming media, acquiring attribute information of at least one media segment of the streaming media; the attribute information comprises playing heat; the playing heat of the media segment is used for representing the attention degree of the media segment; the concern includes the media segment being downloaded;
Outputting attribute information of the at least one media segment in the playing process of the streaming media; the playing heat of the at least one media segment is displayed in a playing progress bar of the streaming media by adopting a progress color block comprising a plurality of playing colors;
downloading a target media segment of the at least one media segment when a download request for the target media segment is received; the media segment corresponding to the selected progress color block in the playing progress bar of the streaming media is a target media segment; confirming that a downloading request for a target media segment is received when a progress color block corresponding to the playing heat of the target media segment in a playing progress bar of the streaming media is selected; and after the downloading is finished, the resource content of the target media segment is stored in the terminal.
2. the method of claim 1, wherein the at least one media segment of the streaming media is: and dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule.
3. The method as claimed in claim 2, wherein said obtaining attribute information of at least one media segment of the streaming media when playing the streaming media comprises:
when playing the streaming media, acquiring the identification information of the streaming media;
Generating an attribute acquisition request carrying the identification information of the streaming media;
Sending the attribute acquisition request to a server so that the server searches the playing heat of at least one media segment of the streaming media according to the identification information of the streaming media carried by the attribute acquisition request;
and receiving the playing heat of the at least one media segment returned by the server.
4. the method according to claim 2 or 3, wherein outputting the attribute information of the at least one media segment during the playing of the streaming media comprises:
searching for a playing color corresponding to the playing heat of each media segment in the at least one media segment by adopting a preset heat color rule;
According to the playing time of each media segment in the streaming media, coloring the playing progress bar of the streaming media by adopting the playing color of each media segment to obtain a playing progress color block of each media segment;
outputting the playing heat of each media segment by adopting the playing progress color block of each media segment;
wherein the preset heat color rule comprises: one play heat corresponds to one play color, or one play heat range corresponds to one play color.
5. The method of claim 4, wherein downloading a target media segment of the at least one media segment when a download request for the target media segment is detected comprises:
When the at least one media fragment is detected to be selected, determining the selected media fragment as a target media fragment;
When a downloading request of the target media segment is received, acquiring the identification information of the target media segment;
Generating a downloading request carrying the identification information of the target media segment;
Sending the downloading request to a server so that the server acquires the resource content of the target media segment according to the identification information of the target media segment carried by the downloading request;
and receiving the resource content of the target media segment returned by the server.
6. a streaming media processing method, comprising:
When a terminal plays streaming media, sending attribute information of at least one media segment of the streaming media to the terminal so that the terminal outputs the attribute information of the at least one media segment in the playing process of the streaming media; the attribute information comprises playing heat; the playing heat of the at least one media segment is displayed in a playing progress bar of the streaming media by adopting a progress color block comprising a plurality of playing colors; the playing heat of the media segment is used for representing the attention degree of the media segment; the concern includes the media segment being downloaded;
When a downloading request of a target media segment in the at least one media segment sent by the terminal is received, acquiring resource content of the target media segment; the media segment corresponding to the selected progress color block in the playing progress bar of the streaming media is a target media segment; confirming that a downloading request for a target media segment is received when a progress color block corresponding to the playing heat of the target media segment in a playing progress bar of the streaming media is selected;
And sending the resource content of the target media segment to the terminal, and storing the resource content of the target media segment in the terminal after downloading is completed.
7. The method of claim 6, wherein before sending the attribute information of the at least one media segment of the streaming media to the terminal when the streaming media is played by the terminal, further comprising:
segmenting the resource content of the streaming media by adopting a preset segmentation rule to obtain at least one media segment of the streaming media;
According to the playing data of the at least one media segment, calculating the playing heat of each media segment in the at least one media segment;
Wherein the playback data includes: number of plays, number of comments obtained, number of downloads, and number of times play is denied.
8. The method of claim 7, wherein the transmitting attribute information of at least one media segment of the streaming media to the terminal when the streaming media is played by the terminal comprises:
When a terminal plays streaming media, receiving an attribute acquisition request which is sent by the terminal and carries identification information of the streaming media;
acquiring identification information of the streaming media carried by the request according to the attribute, and searching the playing heat of at least one media segment of the streaming media;
And returning the playing heat of the at least one media segment to the terminal.
9. A streaming media processing apparatus, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring attribute information of at least one media fragment of streaming media when the streaming media are played; the attribute information comprises playing heat; the playing heat of the media segment is used for representing the attention degree of the media segment; the concern includes the media segment being downloaded;
The output module is used for outputting the attribute information of the at least one media segment in the playing process of the streaming media; the playing heat of the at least one media segment is displayed in a playing progress bar of the streaming media by adopting a progress color block comprising a plurality of playing colors;
The downloading module is used for downloading a target media segment in the at least one media segment when a downloading request of the target media segment is received; the media segment corresponding to the selected progress color block in the playing progress bar of the streaming media is a target media segment; confirming that a downloading request for a target media segment is received when a progress color block corresponding to the playing heat of the target media segment in a playing progress bar of the streaming media is selected; and after the downloading is finished, the resource content of the target media segment is stored in the terminal.
10. The apparatus of claim 9, wherein the at least one media segment of the streaming media is: and dividing the resource content of the streaming media into at least one segment by adopting a preset slicing rule.
11. The apparatus of claim 10, wherein the acquisition module comprises:
A first obtaining unit, configured to obtain identification information of a streaming media when the streaming media is played;
A first generating unit, configured to generate an attribute acquisition request carrying identification information of the streaming media;
A first request unit, configured to send the attribute obtaining request to a server, so that the server searches for a playing heat of at least one media segment of the streaming media according to identification information of the streaming media carried in the attribute obtaining request;
and the first receiving unit is used for receiving the playing heat of the at least one media segment returned by the server.
12. the apparatus of claim 10 or 11, wherein the output module comprises:
the playing color searching unit is used for searching the playing color corresponding to the playing heat of each media segment in the at least one media segment by adopting a preset heat color rule;
A coloring processing unit, configured to perform coloring processing on the playing progress bar of the streaming media by using the playing color of each media segment according to the playing time of each media segment in the streaming media, so as to obtain a playing progress color block of each media segment;
the playing heat output unit is used for outputting the playing heat of each media segment by adopting the playing progress color block of each media segment;
wherein the preset heat color rule comprises: one play heat corresponds to one play color, or one play heat range corresponds to one play color.
13. The apparatus of claim 12, wherein the download module comprises:
The determining unit is used for determining the selected media segment as a target media segment when the selecting operation of the at least one media segment is detected;
The second acquisition unit is used for acquiring the identification information of the target media segment when receiving a downloading request of the target media segment;
a second generating unit, configured to generate a download request carrying identification information of the target media segment;
A second request unit, configured to send the download request to a server, so that the server obtains resource content of the target media segment according to the identification information of the target media segment carried in the download request;
And the second receiving unit is used for receiving the resource content of the target media segment returned by the server.
14. A terminal, characterized by comprising a streaming media processing arrangement according to any of claims 9-13.
15. A streaming media processing apparatus, comprising:
An attribute information sending module, configured to send attribute information of at least one media segment of a streaming media to a terminal when the terminal plays the streaming media, so that the terminal outputs the attribute information of the at least one media segment in a playing process of the streaming media; the attribute information comprises playing heat; the playing heat of the at least one media segment is displayed in a playing progress bar of the streaming media by adopting a progress color block comprising a plurality of playing colors; the playing heat of the media segment is used for representing the attention degree of the media segment; the concern includes the media segment being downloaded;
The acquisition module is used for acquiring the resource content of a target media segment in the at least one media segment when receiving a downloading request of the target media segment sent by the terminal; the media segment corresponding to the selected progress color block in the playing progress bar of the streaming media is a target media segment; confirming that a downloading request for a target media segment is received when a progress color block corresponding to the playing heat of the target media segment in a playing progress bar of the streaming media is selected;
The resource content sending module is used for sending the resource content of the target media segment to the terminal; and after the downloading is finished, the resource content of the target media segment is stored in the terminal.
16. the apparatus of claim 15, further comprising:
the segmentation processing module is used for segmenting the resource content of the streaming media by adopting a preset segmentation rule to obtain at least one media segment of the streaming media;
The playing heat calculation module is used for calculating the playing heat of each media segment in the at least one media segment according to the playing data of the at least one media segment;
Wherein the playback data includes: number of plays, number of comments obtained, number of downloads, and number of times play is denied.
17. the apparatus of claim 16, wherein the attribute information transmission module comprises:
A request receiving unit, configured to receive an attribute acquisition request carrying identification information of a streaming media sent by a terminal when the terminal plays the streaming media;
a playing heat searching unit, configured to obtain, according to the attribute, identification information of the streaming media carried by the request, and search for a playing heat of at least one media segment of the streaming media;
and the playing heat returning unit is used for returning the playing heat of the at least one media segment to the terminal.
18. a server, characterized by comprising a streaming media processing arrangement according to any of claims 15-17.
CN201410491438.4A 2014-09-23 2014-09-23 streaming media processing method and device, terminal and server Active CN104980773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410491438.4A CN104980773B (en) 2014-09-23 2014-09-23 streaming media processing method and device, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410491438.4A CN104980773B (en) 2014-09-23 2014-09-23 streaming media processing method and device, terminal and server

Publications (2)

Publication Number Publication Date
CN104980773A CN104980773A (en) 2015-10-14
CN104980773B true CN104980773B (en) 2019-12-13

Family

ID=54276785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410491438.4A Active CN104980773B (en) 2014-09-23 2014-09-23 streaming media processing method and device, terminal and server

Country Status (1)

Country Link
CN (1) CN104980773B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979387A (en) * 2015-12-01 2016-09-28 乐视网信息技术(北京)股份有限公司 Video clip display method and system
CN105812889A (en) * 2016-03-31 2016-07-27 北京奇艺世纪科技有限公司 Method and system for displaying playing progress bar
CN107071587A (en) * 2017-04-25 2017-08-18 腾讯科技(深圳)有限公司 The acquisition methods and device of video segment
CN110545480A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Preloading control method and device of media file and storage medium
CN109040796A (en) * 2018-08-17 2018-12-18 深圳市迅雷网络技术有限公司 The calculation method of contents fragment temperature, the playback method of video content and device
CN110891192B (en) * 2018-09-11 2021-10-15 阿里巴巴(中国)有限公司 Video editing method and device
CN109495505B (en) * 2018-12-21 2021-10-08 北京金山云网络技术有限公司 Streaming media protocol conversion method, device, system and computer readable medium
CN109727151B (en) * 2018-12-29 2023-04-28 咪咕互动娱乐有限公司 Information processing method, device and computer storage medium
CN110798716A (en) * 2019-11-19 2020-02-14 深圳市迅雷网络技术有限公司 Video highlight playing method and related device
CN110769284A (en) * 2019-11-19 2020-02-07 深圳市迅雷网络技术有限公司 Video highlight caching method and related device
CN111651111A (en) * 2020-05-29 2020-09-11 腾讯科技(深圳)有限公司 Media file processing method and device
CN115079908A (en) * 2021-03-12 2022-09-20 北京字节跳动网络技术有限公司 Media content collection method and device, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064825A (en) * 2006-04-24 2007-10-31 中国科学院自动化研究所 Mobile equipment based sport video personalized customization method and apparatus thereof
CN102056023A (en) * 2009-11-04 2011-05-11 Lg电子株式会社 Providing access to parts of contents for network display device
CN102196008A (en) * 2010-03-08 2011-09-21 株式会社日立制作所 Peer-to-peer downloading method, video equipment and content transmission method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999041734A1 (en) * 1998-02-17 1999-08-19 Lextron Systems, Inc. Progressively-sectioned graphics (psg) file and software enabling selective download, upload and display
CN102487456B (en) * 2009-11-30 2015-06-17 国际商业机器公司 Method for providing visit rate of online video and device thereof
CN102196001B (en) * 2010-03-15 2014-03-19 腾讯科技(深圳)有限公司 Movie file downloading device and method
KR101431114B1 (en) * 2010-07-01 2014-08-18 에스케이플래닛 주식회사 Contents searching service system and contents searching service method
CN103024458B (en) * 2011-09-27 2015-11-04 腾讯科技(深圳)有限公司 A kind of Online Video player method and video playback server
CN103501461A (en) * 2013-09-17 2014-01-08 北京奇艺世纪科技有限公司 Method for playing video and player

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064825A (en) * 2006-04-24 2007-10-31 中国科学院自动化研究所 Mobile equipment based sport video personalized customization method and apparatus thereof
CN102056023A (en) * 2009-11-04 2011-05-11 Lg电子株式会社 Providing access to parts of contents for network display device
CN102196008A (en) * 2010-03-08 2011-09-21 株式会社日立制作所 Peer-to-peer downloading method, video equipment and content transmission method

Also Published As

Publication number Publication date
CN104980773A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104980773B (en) streaming media processing method and device, terminal and server
CN110139135B (en) Methods, systems, and media for presenting recommended media content items
CN106488252B (en) Live broadcast room list processing method and device
EP3012752A1 (en) Information searching apparatus and control method thereof
CN105635764B (en) Method and device for playing push information in live video
US9674253B2 (en) Method for allocating a specific portion of multimedia file and skipping the specific portion automatically and electronic device thereof
US10579325B2 (en) Method and system for playback of audio content using wireless mobile device
US9043702B2 (en) Methods and systems for creating a shaped playlist
WO2017113840A1 (en) Information recommending method and device
US9537913B2 (en) Method and system for delivery of audio content for use on wireless mobile device
WO2017181597A1 (en) Method and device for video playback
CN106658226B (en) Playing method and device
US9584842B2 (en) Method and apparatus for playing multimedia resource
CN109862100B (en) Method and device for pushing information
WO2015070761A1 (en) Smart tv media player and caption processing method thereof, and smart tv
CN103823870B (en) Information processing method and electronic equipment
CN110365973B (en) Video detection method and device, electronic equipment and computer readable storage medium
CN103702171A (en) Method for downloading video stream and electronic equipment
CN110691281B (en) Video playing processing method, terminal device, server and storage medium
CN110958470A (en) Multimedia content processing method, device, medium and electronic equipment
CN108600780B (en) Method for pushing information, electronic device and computer readable medium
CN102625161A (en) Method, device and equipment for determining evaluation information about media information
CN104572707A (en) Preferable object information providing method and device
CN105323652B (en) Method and device for playing multimedia file
CN114245229B (en) Short video production method, device, equipment and storage medium

Legal Events

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