CN107438204B - Method for circularly playing media file and mobile terminal - Google Patents

Method for circularly playing media file and mobile terminal Download PDF

Info

Publication number
CN107438204B
CN107438204B CN201710617603.XA CN201710617603A CN107438204B CN 107438204 B CN107438204 B CN 107438204B CN 201710617603 A CN201710617603 A CN 201710617603A CN 107438204 B CN107438204 B CN 107438204B
Authority
CN
China
Prior art keywords
media file
original media
playing
subtitle
segments
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
CN201710617603.XA
Other languages
Chinese (zh)
Other versions
CN107438204A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710617603.XA priority Critical patent/CN107438204B/en
Publication of CN107438204A publication Critical patent/CN107438204A/en
Application granted granted Critical
Publication of CN107438204B publication Critical patent/CN107438204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

the invention provides a method for circularly playing media files and a mobile terminal, relates to the technical field of electronics, and solves the problem that circularly played contents do not meet user requirements in the conventional method for carrying out all circularly played. The method comprises the following steps: when a circular playing instruction for an original media file is received, determining one or more target segments in the original media file according to preset characteristic information of the original media file; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of an original media file; and circularly playing one or more target segments. The scheme of the invention realizes the cyclic playing of partial segments of the original media file, meets the user requirements, improves the intellectualization and the convenience, and improves the user experience.

Description

Method for circularly playing media file and mobile terminal
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method for playing media files cyclically and a mobile terminal.
background
With the continuous development of electronic technology, mobile electronic devices such as mobile phones have become the main communication and entertainment tools of people. People often use mobile phones to watch videos, and many users can use the function of circular playing when watching the videos. Currently, most players provide a circular playing function, which only can play circularly. However, when all the contents are played in a circulating way, part of the contents are not wanted to be watched by the user, and the contents are played when the contents are played in a circulating way, so that the watching experience of the user is influenced. Therefore, the current circulating playing mode is not intelligent and convenient enough, and cannot meet the user requirements.
Disclosure of Invention
The embodiment of the invention provides a method for circularly playing media files and a mobile terminal, which aim to solve the problem that circularly played contents do not meet the requirements of users in the prior art of carrying out all circular playing.
in a first aspect, a method for playing media files cyclically is provided, which includes:
When a circular playing instruction for an original media file is received, determining one or more target segments in the original media file according to preset characteristic information of the original media file; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file;
And circularly playing one or more target segments.
in a second aspect, a mobile terminal is provided, including:
The device comprises a determining module, a playing module and a playing module, wherein the determining module is used for determining one or more target segments in an original media file according to preset characteristic information of the original media file when a circular playing instruction for the original media file is received; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file;
And the circular playing module is used for circularly playing one or more target segments.
in a third aspect, a mobile terminal is provided, including: the media file playback device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the method for playing back the media file circularly as described in any one of the above items.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method for loop playing of a media file as defined in any one of the above.
In this way, in the embodiment of the present invention, when a circular play instruction for an original media file is received, first, one or more target segments are determined in the original media file according to historical play record information, subtitle information, or bullet screen information of the original media file; and then circularly playing the one or more target segments. Therefore, the method and the device realize the circular playing of partial segments of the original media file, meet the user requirements, improve the intelligence and the convenience and improve the user experience.
drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a method for playing media files cyclically according to the present invention;
FIG. 2 is a flow chart illustrating the sub-steps of a method for playing a media file in a loop according to the present invention;
FIG. 3 is a flow chart of sub-steps of a method for looping play of media files in accordance with the present invention;
FIG. 4 is a schematic diagram of a time-varying bullet screen amount curve in the method for cyclically playing media files according to the present invention;
FIG. 5 is a schematic structural diagram of a mobile terminal according to the present invention;
FIG. 6 is a schematic diagram of another structure of the mobile terminal according to the present invention;
FIG. 7 is a schematic diagram of another structure of a mobile terminal according to the present invention;
Fig. 8 is another structural diagram of the mobile terminal according to 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 some, not all, embodiments of the present invention. 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.
In some embodiments of the present invention, referring to fig. 1, a method for playing a media file cyclically is provided, including:
Step 101, when a circular playing instruction for an original media file is received, determining one or more target segments in the original media file according to preset characteristic information of the original media file; the preset feature information comprises historical playing record information, subtitle information or bullet screen information of the original media file.
Here, when receiving a circular playing instruction for an original media file, first, one or more target segments are determined in the original media file according to preset feature information (history playing record information, subtitle information, or bullet screen information) of the original media file, thereby realizing circular playing of partial segments of the original media file.
The original media file may be a video file or an audio file, etc.
and 102, circularly playing one or more target segments.
And the determined one or more target segments are played circularly, so that the circular playing of partial segments of the original media file is realized, the user requirements are met, and the user experience is improved.
for example, when A, B, C three target segments are determined in the original media file, A, B, C three target segments are played circularly, and A, B, C three target segments are played circularly in turn, for example, in the sequence of abcabcabc ….
the method for circularly playing the media file realizes the circular playing of partial segments of the original media file, meets the user requirements, improves the intelligence and the convenience, and improves the user experience.
As an optional implementation manner, the preset feature information includes history playing record information of the original media file; in step 101, the determining one or more target segments in the original media file according to the preset feature information of the original media file includes:
step 1011, according to the history playing record information, extracting one or more segments with continuous playing time exceeding a first preset threshold value from the original media file, and determining the extracted segments as the target segments; and the continuous playing time length is the time length of continuous playing in the original media file according to the original playing speed.
generally, when an original media file is played by a user, a progress bar is often dragged to a position where the user wants to see, and when the user does not want to continue to see after seeing a part of the original media file, the user can directly end the currently played media file, or drag the progress bar forward to watch the currently played media file again.
Here, one or more segments whose continuous playing time length exceeds a first preset threshold are automatically extracted from the original media file according to the history playing record information of the original media file, and at this time, the extracted segments are segments played by the user at the original playing speed during playing, but not fast-forwarded segments, that is, the extracted segments are segments that the user wants to watch. The extracted one or more segments are used as the segments of the circular playing, so that the watching requirements of the user are met, and the user experience is improved.
the first preset threshold value can be set according to requirements by combining the total duration of the original media file. For example, when the original media file is a video file within 10 minutes, the first preset threshold may be set to 3 minutes; the first preset threshold may be set to 10 minutes when the original media file is a video file within 1 hour.
Assuming that the original media file is a video file of 10 minutes, the first preset threshold is 3 minutes, and the continuously played segments recorded in the history play record are segments of "00: 00:00-00:00: 05" and "00: 01:00-00:05: 30", the segment of "00: 01:00-00:05: 30" is determined as the target segment by applying the method of the present invention.
At the moment, one or more segments which the user wants to watch are automatically extracted to be used as segments of the circular playing according to the historical playing record information of the original media file, so that the watching requirement of the user is met, and the watching experience is improved.
As another optional implementation manner, the preset feature information includes subtitle information of the original media file; in the above step 101, referring to fig. 2, the determining one or more target segments in the original media file according to the preset feature information of the original media file includes:
Step 1012, dividing the original media file according to the subtitle information of the original media file to obtain one or more scene segments including subtitles; the time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold.
The original media files such as video files contain subtitles, and the original media files can be divided into different scenes, and the scenes containing the subtitles are watched by a user.
the method comprises the steps of firstly carrying out scene division on an original media file according to subtitle information to obtain one or more scene segments, wherein the scene segments are all segments including subtitles watched by a user, and determining the segments played circularly from the scene segments, so that the user requirements are met, and the user experience is improved.
The time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold. At this time, because the time interval between the subtitles of the same scene is not too long, the time interval between two adjacent subtitles of the same scene segment is limited within the second preset threshold value, and the accuracy of scene segment division is ensured.
the second preset threshold may be set according to a requirement, for example, may be set to 6 seconds.
And 1013, when the duration of the scene segment is greater than a third preset threshold, determining the scene segment as the target segment.
And when the duration of the scene segment is greater than a third preset threshold, the scene segment is determined as a target segment, and the scene segment with too short duration is not circulated, so that the requirements of users are further met, and the user experience is improved.
The third preset threshold may also be set according to requirements, for example, may be set to 10 seconds.
Further, the step 1012 may include:
Step 10121, obtaining the start time and the end time of the segment corresponding to each subtitle in the original media file.
here, the start time and the end time of the segment corresponding to each subtitle in the original media file are first obtained, and support is provided for subsequently dividing the scene segments based on the time interval of the subtitles.
Step 10122, obtaining the time interval between the end time of the first caption and the start time of the second caption; and the second subtitle is a subtitle appearing for the first time after the first subtitle.
here, the time interval between the ending time of the first subtitle and the starting time of the second subtitle is obtained, and support is also provided for the subsequent scene segment division based on the time interval of the subtitles.
the first subtitle refers to any one subtitle in the original media file and has no special meaning.
Step 10123, if the time interval is smaller than the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into the same scene segment.
step 10124, if the second time interval is greater than or equal to the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into two different scene segments.
here, if the time interval between the first subtitle and the second subtitle is less than a second preset threshold (e.g., 6 seconds), the segments corresponding to the two subtitles are divided into the same scene segment, otherwise, the segments corresponding to the two subtitles are divided into different scene segments, so that the time interval between two adjacent subtitles of the same scene segment is limited within the second preset threshold.
at this time, scene division is automatically carried out on the original media file based on the time interval between the subtitles, one or more scene segments comprising the subtitles are obtained, and the segments played circularly are determined from the scene segments, so that the user requirements are met, and the user experience is improved.
An example of an application of the above method according to an embodiment of the present invention is illustrated as follows.
Assume that the second preset threshold is 6 seconds and the third preset threshold is 10 seconds. Firstly, the start time and the end time of a segment corresponding to each subtitle in an original media file are obtained, as shown in the following table 1:
number L Caption Starting time End time
1 aaa 00:01:15:760 00:01:17:320
2 bbb 00:01:20:360 00:01:22:120
3 ccc 00:01:23:560 00:01:25:080
4 ddd 00:01:30:480 00:01:34:080
5 eee 00:02:17:480 00:02:18:800
6 fff 00:02:21:160 00:02:23:920
7 ddd 00:02:36:320 00:02:49:240
TABLE 1
then, the time interval between two adjacent subtitles is obtained through table 1 above, and it can be obtained that:
the time interval N1 between L1 and L2 is 03: 020;
The time interval N2 between L2 and L3 was 01: 440;
The time interval N3 between L3 and L4 was 05: 400;
The time interval N4 between L4 and L5 was 43: 300;
The time interval N5 between L5 and L6 was 02: 360;
The time interval N6 between L6 and L7 was 12: 400.
and if the N1, the N2 and the N3 are all less than 6 seconds, dividing the L1-L4 into the same scene segment A of '00: 01:15:760-00:01:34: 080'. If N4 is greater than 6 seconds and N5 is less than 6 seconds, L4 and L5 are divided into different scene segments, and L5 and L6 are divided into the same scene segment, i.e., L5 and L6 are divided into another scene segment B "00: 02:17:480-00:02:23: 920". N6 is greater than 6 seconds, L6, L7 are divided into different scene segments, i.e., L7 alone as another scene segment C "00: 02:36:320-00:02:49: 240".
The duration of the scene segment B is less than 10 seconds, and the durations of the scene segments a and C are greater than 10 seconds, so that the scene segments a and C are determined as target segments.
At this time, scene division is automatically carried out on the original media file based on the time interval between the subtitles, one or more scene segments comprising the subtitles are obtained, and the segments played circularly are determined from the scene segments, so that the user requirements are met, and the user experience is improved.
As another optional implementation manner, the preset feature information includes bullet screen information of the original media file; in the above step 101, referring to fig. 3, the determining one or more target segments in the original media file according to the preset feature information of the original media file includes:
1014, acquiring one or more bullet screen dense points in the original media file according to the bullet screen information of the original media file; and the bullet screen dense points are peak points in a curve of the bullet screen quantity changing along with time.
Currently, the barrage function is already common in the playing process of media files, and the user group is huge. Usually, the media file is a region with a dense bullet screen around the time point which is very wonderful and is most desired to be watched by the user.
here, first, according to the bullet screen information of the original media file, one or more bullet screen dense points are obtained from the original media file, the bullet screen dense points represent time points which a user most wants to watch, and the segment of the circular playing is determined based on the time points, so that the user demand is met, and the user experience is improved.
the curve of the bullet screen quantity changing along with time visually displays the trend of the bullet screen quantity changing, and bullet screen dense points can be accurately acquired based on the curve. The vicinity of the peak point in the curve of the bullet screen quantity changing along with the time is the bullet screen dense area, so that the peak point in the curve of the bullet screen quantity changing along with the time can be extracted as a bullet screen dense point.
Specifically, the time of occurrence of each bullet screen in the bullet screen information of the original media file may be read first. Taking the b-station bullet screen file as an example, for example, the format of each bullet screen in the b-station bullet screen file is as follows:
< d p ═ 36.870998368,1,25,16777215,1312863760,0, eff85771,42759017"> head-line position.
The first parameter is the time of the bullet screen, in seconds. The "front occupation position" is the bullet screen content.
and then, counting the number of the bullet screens in unit time according to the occurrence time of each bullet screen, and obtaining a curve of the number of the bullet screens changing along with the time. The unit time can be set according to the requirement, such as 1 second, 5 seconds, 10 seconds, and the like. And finally, extracting a peak point from a curve of the bullet screen quantity changing along with time to serve as a bullet screen dense point.
for example, a curve of the number of bullet screens changing with time is shown in fig. 4, and if three peak points d, e, and f are included in the curve, the three peak points are taken as bullet screen dense points.
Step 1015, determining the segments of the original media file with the preset duration including the bullet screen dense points as the target segments.
Here, the fragments of the original media file including the bullet screen dense points within the preset time duration, namely the bullet screen dense areas near the bullet screen dense points, are determined as the target fragments, so that the user requirements are met, and the user experience is improved.
Specifically, the bullet screen dense point can be used as a central point, and a certain time is respectively prolonged to the front and the back of the bullet screen dense point, so that fragments with preset duration including the bullet screen dense point are obtained.
For example, as shown in fig. 4, three bullet screen dense points d, e, and f are respectively used as center points, and the distance is extended by 120 seconds from front to back, so that D, E, F three segments are obtained as target segments.
at the moment, based on the bullet screen information, the bullet screen dense area near the bullet screen dense point is automatically determined as a segment of the circular playing, so that the user requirement is met, and the user experience is improved.
Optionally, the number of bullet screens corresponding to the bullet screen dense point is greater than a fourth preset threshold.
Here, the bullet screen dense point is a peak point in a curve of the bullet screen quantity changing along with time, and the bullet screen quantity corresponding to the bullet screen dense point is greater than a fourth preset threshold value. The fourth preset threshold value can be set according to requirements.
At this moment, the fragments near the peak point with the bullet screen quantity larger than the fourth preset threshold value are circulated, and the fragments near the peak point with the small bullet screen quantity, namely the fragments which are not very interesting to the user, are not circulated, so that the user demand is further ensured, and the user experience is improved.
To sum up, the method for cyclically playing the media file according to the embodiment of the present invention can automatically determine one or more segments to cyclically play according to the history playing record information, the subtitle information, or the barrage information of the original media file, so as to implement cyclic playing of a part of segments of the original media file, meet the user requirements, improve the intelligence and the convenience, and improve the user experience.
in some embodiments of the present invention, there is also provided a mobile terminal, as shown in fig. 5, the mobile terminal 500 including:
A determining module 501, configured to determine one or more target segments in an original media file according to preset feature information of the original media file when a circular playing instruction for the original media file is received; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file;
and a loop playing module 502, configured to play one or more target segments in a loop.
The mobile terminal 500 of the embodiment of the invention realizes the cyclic playing of partial segments of the original media file, meets the user requirements, improves the intelligence and the convenience, and improves the user experience.
Optionally, referring to fig. 6, the preset feature information includes history playing record information of the original media file;
the determining module 501 includes:
the first determining submodule 5011 is configured to extract, according to the history playing record information, one or more segments of which continuous playing time exceeds a first preset threshold from the original media file, and determine the extracted segments as the target segments; and the continuous playing time length is the time length of continuous playing in the original media file according to the original playing speed.
Optionally, the preset feature information includes subtitle information of the original media file;
The determining module 501 includes:
The dividing submodule 5012 is configured to divide the original media file according to the subtitle information of the original media file to obtain one or more scene segments including subtitles; the time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold;
The second determining submodule 5013 is configured to determine the scene segment as the target segment when the duration of the scene segment is greater than a third preset threshold.
Optionally, the dividing sub-module 5012 includes:
the first obtaining unit 50121 is configured to obtain a start time and an end time of a segment corresponding to each subtitle in the original media file;
a second obtaining unit 50122, configured to obtain a time interval between an end time of the first subtitle and a start time of the second subtitle; the second subtitle is a subtitle appearing for the first time after the first subtitle;
The first dividing unit 50123 is configured to divide the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into the same scene segment if the time interval is smaller than the second preset threshold;
The second dividing unit 50124 is configured to divide the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into two different scene segments if the time interval is greater than or equal to the second preset threshold.
Optionally, the preset feature information includes bullet screen information of the original media file;
The determining module 501 includes:
the obtaining submodule 5014 is configured to obtain one or more bullet screen dense points in the original media file according to the bullet screen information of the original media file; the bullet screen dense points are peak points in a curve of the bullet screen quantity changing along with time;
The third determining sub-module 5015 is configured to determine, as the target segment, a segment of a preset duration including the bullet screen dense point in the original media file.
Optionally, the number of bullet screens corresponding to the bullet screen dense point is greater than a fourth preset threshold.
the terminal embodiment of the present invention can implement each step in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition. The mobile terminal 500 of the embodiment of the invention realizes the cyclic playing of partial segments of the original media file, meets the user requirements, improves the intelligence and the convenience, and improves the user experience.
In some embodiments of the present invention, there is also provided a mobile terminal, including: the media file playback device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the method for playing back the media file circularly as described in any one of the above items.
Fig. 7 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 700 shown in fig. 7 includes: at least one processor 701, memory 702, at least one network interface 704, and other user interfaces 703. The various components in the mobile terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
it is to be understood that the memory 702 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 702 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
the operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In this embodiment of the present invention, by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022, the processor 701 is configured to determine one or more target segments in an original media file according to preset feature information of the original media file when receiving a loop play instruction for the original media file; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file; and circularly playing one or more target segments.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions of the present application, or a combination thereof.
For a software implementation, the techniques herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
optionally, the preset feature information includes history playing record information of the original media file; the processor 701 is specifically configured to: extracting one or more segments with continuous playing time exceeding a first preset threshold value from the original media file according to the historical playing record information, and determining the extracted segments as the target segments; and the continuous playing time length is the time length of continuous playing in the original media file according to the original playing speed.
optionally, the preset feature information includes subtitle information of the original media file; the processor 701 is specifically configured to: dividing the original media file according to the subtitle information of the original media file to obtain one or more scene segments comprising subtitles; the time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold; and when the duration of the scene segment is greater than a third preset threshold, determining the scene segment as the target segment.
optionally, the processor 701 is specifically configured to: acquiring the starting time and the ending time of a segment corresponding to each subtitle in the original media file; acquiring the time interval between the ending time of the first caption and the starting time of the second caption; the second subtitle is a subtitle appearing for the first time after the first subtitle; if the time interval is smaller than the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into the same scene segment; if the time interval is greater than or equal to the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into two different scene segments.
Optionally, the preset feature information includes bullet screen information of the original media file; the processor 701 is specifically configured to: acquiring one or more bullet screen dense points in the original media file according to the bullet screen information of the original media file; the bullet screen dense points are peak points in a curve of the bullet screen quantity changing along with time; and determining the segments of the original media file with preset duration including the bullet screen dense points as the target segments.
Optionally, the number of bullet screens corresponding to the bullet screen dense point is greater than a fourth preset threshold.
the mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition. The mobile terminal 700 realizes the circular playing of partial segments of the original media file, meets the user requirements, improves the intelligence and the convenience, and improves the user experience.
fig. 8 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 800 in fig. 8 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 800 in fig. 8 includes a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a wifi (wireless fidelity) module 880, and a power supply 890.
The input unit 830 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 800. Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 831, the input unit 830 may include other input devices 832, and the other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 840 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 800. The display unit 840 may include a display panel 841, and the display panel 841 may be alternatively configured in the form of an LCD or an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that the touch panel 831 can overlay the display panel 841 to form a touch display screen, which, when it detects a touch operation thereon or nearby, is passed to the processor 860 to determine the type of touch event, and then the processor 860 provides a corresponding visual output on the touch display screen according to the type of touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 860 is a control center of the mobile terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 800 and processes data by operating or executing software programs and/or modules stored in the first memory 821 and calling data stored in the second memory 822, thereby integrally monitoring the mobile terminal 800. Optionally, processor 860 may include one or more processing units.
in this embodiment of the present invention, by calling the software program and/or module stored in the first memory 821 and/or the data stored in the second memory 822, the processor 860 is configured to determine one or more target segments in an original media file according to preset feature information of the original media file when receiving a loop play instruction for the original media file; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file; and circularly playing one or more target segments.
optionally, the preset feature information includes history playing record information of the original media file; processor 860 is specifically configured to: extracting one or more segments with continuous playing time exceeding a first preset threshold value from the original media file according to the historical playing record information, and determining the extracted segments as the target segments; and the continuous playing time length is the time length of continuous playing in the original media file according to the original playing speed.
Optionally, the preset feature information includes subtitle information of the original media file; processor 860 is specifically configured to: dividing the original media file according to the subtitle information of the original media file to obtain one or more scene segments comprising subtitles; the time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold; and when the duration of the scene segment is greater than a third preset threshold, determining the scene segment as the target segment.
Optionally, the processor 860 is specifically configured to: acquiring the starting time and the ending time of a segment corresponding to each subtitle in the original media file; acquiring the time interval between the ending time of the first caption and the starting time of the second caption; the second subtitle is a subtitle appearing for the first time after the first subtitle; if the time interval is smaller than the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into the same scene segment; if the time interval is greater than or equal to the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into two different scene segments.
Optionally, the preset feature information includes bullet screen information of the original media file; processor 860 is specifically configured to: acquiring one or more bullet screen dense points in the original media file according to the bullet screen information of the original media file; the bullet screen dense points are peak points in a curve of the bullet screen quantity changing along with time; and determining the segments of the original media file with preset duration including the bullet screen dense points as the target segments.
Optionally, the number of bullet screens corresponding to the bullet screen dense point is greater than a fourth preset threshold.
therefore, the mobile terminal 800 realizes the circular playing of partial segments of the original media file, meets the user requirements, improves the intelligence and convenience, and improves the user experience.
in some embodiments of the present invention, there is also provided a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method for loop playback of a media file as described in any one of the above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. A method for cyclically playing media files, comprising:
when a circular playing instruction for an original media file is received, determining one or more target segments in the original media file according to preset characteristic information of the original media file; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file;
Circularly playing one or more target segments;
And when a plurality of target segments are determined in the original media file, circularly playing the plurality of target segments.
2. The method according to claim 1, wherein the preset feature information includes history play record information of the original media file;
determining one or more target segments in the original media file according to the preset characteristic information of the original media file, including:
Extracting one or more segments with continuous playing time exceeding a first preset threshold value from the original media file according to the historical playing record information, and determining the extracted segments as the target segments; and the continuous playing time length is the time length of continuous playing in the original media file according to the original playing speed.
3. the method of claim 1, wherein the preset feature information comprises subtitle information of the original media file;
determining one or more target segments in the original media file according to the preset characteristic information of the original media file, including:
Dividing the original media file according to the subtitle information of the original media file to obtain one or more scene segments comprising subtitles; the time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold;
And when the duration of the scene segment is greater than a third preset threshold, determining the scene segment as the target segment.
4. the method of claim 3, wherein the dividing the original media file according to the subtitle information of the original media file to obtain one or more scene segments including subtitles comprises:
acquiring the starting time and the ending time of a segment corresponding to each subtitle in the original media file;
Acquiring the time interval between the ending time of the first caption and the starting time of the second caption; the second subtitle is a subtitle appearing for the first time after the first subtitle;
If the time interval is smaller than the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into the same scene segment;
If the time interval is greater than or equal to the second preset threshold, dividing the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into two different scene segments.
5. the method according to claim 1, wherein the preset feature information includes bullet screen information of the original media file;
determining one or more target segments in the original media file according to the preset characteristic information of the original media file, including:
Acquiring one or more bullet screen dense points in the original media file according to the bullet screen information of the original media file; the bullet screen dense points are peak points in a curve of the bullet screen quantity changing along with time;
and determining the segments of the original media file with preset duration including the bullet screen dense points as the target segments.
6. the method of claim 5, wherein the number of bullet screens corresponding to the bullet screen dense points is greater than a fourth preset threshold.
7. A mobile terminal, comprising:
The device comprises a determining module, a playing module and a playing module, wherein the determining module is used for determining one or more target segments in an original media file according to preset characteristic information of the original media file when a circular playing instruction for the original media file is received; the preset characteristic information comprises historical playing record information, subtitle information or bullet screen information of the original media file;
The cyclic playing module is used for cyclically playing one or more target segments;
And when a plurality of target segments are determined in the original media file, circularly playing the plurality of target segments.
8. The mobile terminal according to claim 7, wherein the preset feature information includes history play record information of the original media file;
The determining module comprises:
The first determining submodule is used for extracting one or more segments with continuous playing time exceeding a first preset threshold value from the original media file according to the historical playing record information, and determining the extracted segments as the target segments; and the continuous playing time length is the time length of continuous playing in the original media file according to the original playing speed.
9. The mobile terminal of claim 7, wherein the preset feature information comprises subtitle information of the original media file;
the determining module comprises:
The dividing submodule is used for dividing the original media file according to the subtitle information of the original media file to obtain one or more scene segments comprising subtitles; the time interval between two adjacent subtitles of the same scene segment is smaller than a second preset threshold, and the time interval between any two subtitles of different scene segments is larger than or equal to the second preset threshold;
And the second determining submodule is used for determining the scene segment as the target segment when the duration of the scene segment is greater than a third preset threshold.
10. The mobile terminal of claim 9, wherein the partitioning sub-module comprises:
the first acquisition unit is used for acquiring the starting time and the ending time of a segment corresponding to each subtitle in the original media file;
The second acquisition unit is used for acquiring the time interval between the ending time of the first caption and the starting time of the second caption; the second subtitle is a subtitle appearing for the first time after the first subtitle;
A first dividing unit, configured to divide the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into the same scene segment if the time interval is smaller than the second preset threshold;
A second dividing unit, configured to divide the segment corresponding to the first subtitle and the segment corresponding to the second subtitle into two different scene segments if the time interval is greater than or equal to the second preset threshold.
11. The mobile terminal according to claim 7, wherein the preset feature information includes bullet screen information of the original media file;
the determining module comprises:
The acquisition submodule is used for acquiring one or more bullet screen dense points in the original media file according to the bullet screen information of the original media file; the bullet screen dense points are peak points in a curve of the bullet screen quantity changing along with time;
And the third determining submodule is used for determining the fragments with preset duration including the bullet screen dense points in the original media file as the target fragments.
12. The mobile terminal of claim 11, wherein the number of bullet screens corresponding to the bullet screen dense point is greater than a fourth preset threshold.
13. a mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method of media file loop playing according to any of claims 1 to 6 when executing the program.
14. A computer readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method of loop playing a media file according to any one of claims 1 to 6.
CN201710617603.XA 2017-07-26 2017-07-26 Method for circularly playing media file and mobile terminal Active CN107438204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710617603.XA CN107438204B (en) 2017-07-26 2017-07-26 Method for circularly playing media file and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710617603.XA CN107438204B (en) 2017-07-26 2017-07-26 Method for circularly playing media file and mobile terminal

Publications (2)

Publication Number Publication Date
CN107438204A CN107438204A (en) 2017-12-05
CN107438204B true CN107438204B (en) 2019-12-17

Family

ID=60461233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710617603.XA Active CN107438204B (en) 2017-07-26 2017-07-26 Method for circularly playing media file and mobile terminal

Country Status (1)

Country Link
CN (1) CN107438204B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307230B (en) * 2018-02-07 2021-01-22 北京奇艺世纪科技有限公司 Method and device for extracting video highlight
CN109089127B (en) * 2018-07-10 2021-05-28 武汉斗鱼网络科技有限公司 Video splicing method, device, equipment and medium
CN109089154B (en) * 2018-07-10 2021-03-16 武汉斗鱼网络科技有限公司 Video extraction method, device, equipment and medium
CN109309880B (en) * 2018-10-08 2021-10-22 腾讯科技(深圳)有限公司 Video playing method and device, computer equipment and storage medium
CN112995770B (en) * 2019-12-02 2023-03-24 深圳市雅阅科技有限公司 Video playing method and device, storage medium and computer equipment
CN113497972A (en) * 2020-04-01 2021-10-12 煜健贸易有限公司 Video cover generation method and device, storage medium and terminal equipment
CN111988663B (en) * 2020-08-28 2022-09-06 北京百度网讯科技有限公司 Method, device and equipment for positioning video playing node and storage medium
CN114189739B (en) * 2020-09-15 2024-06-18 英业达科技有限公司 Method for generating cyclic film
CN112738635B (en) * 2020-12-28 2023-05-05 上海掌门科技有限公司 Method and equipment for playing video information
CN114530064A (en) * 2022-02-22 2022-05-24 北京思明启创科技有限公司 Calligraphy practicing method, calligraphy practicing device, calligraphy practicing equipment and calligraphy practicing storage medium based on video

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011110063A1 (en) * 2010-03-09 2011-09-15 Li Pinghui Method and system for generating video scene library, method and system for retrieving video scenes
CN104717571A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Key playing time point determination method, video playing method and related device
CN104994425A (en) * 2015-06-30 2015-10-21 北京奇艺世纪科技有限公司 Video labeling method and device
CN105744356A (en) * 2016-01-29 2016-07-06 杭州观通科技有限公司 Content-based video segmentation method
CN105847993A (en) * 2016-04-19 2016-08-10 乐视控股(北京)有限公司 Method and device for sharing video clip
CN106899876A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 The methods of exhibiting and device of a kind of video feature information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011110063A1 (en) * 2010-03-09 2011-09-15 Li Pinghui Method and system for generating video scene library, method and system for retrieving video scenes
CN104717571A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Key playing time point determination method, video playing method and related device
CN104994425A (en) * 2015-06-30 2015-10-21 北京奇艺世纪科技有限公司 Video labeling method and device
CN106899876A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 The methods of exhibiting and device of a kind of video feature information
CN105744356A (en) * 2016-01-29 2016-07-06 杭州观通科技有限公司 Content-based video segmentation method
CN105847993A (en) * 2016-04-19 2016-08-10 乐视控股(北京)有限公司 Method and device for sharing video clip

Also Published As

Publication number Publication date
CN107438204A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN107438204B (en) Method for circularly playing media file and mobile terminal
CN107484025B (en) Bullet screen display method and mobile terminal
CN106293410B (en) Video progress adjusting method and mobile terminal
KR102113683B1 (en) Mobile apparatus providing preview by detecting rub gesture and control method thereof
US9483857B2 (en) Display control device, display control method, and program
KR101720849B1 (en) Touch screen hover input handling
CN107678644B (en) Image processing method and mobile terminal
US9170722B2 (en) Display control device, display control method, and program
EP2670132B1 (en) Method and apparatus for playing video in portable terminal
CN108156407A (en) A kind of video clipping method and terminal
CN107105342B (en) Video playing control method and mobile terminal
CN107221347B (en) Audio playing method and terminal
CN103914258A (en) Mobile terminal and method for operating same
CN105812941A (en) Video playing method and device and electronic equipment
CN109218819B (en) Video preview method and mobile terminal
CN103646655A (en) Method and device for multimedia playing
CN107479818B (en) Information interaction method and mobile terminal
CN108124198B (en) Control method of media file playing progress, terminal and computer readable storage medium
CN106775755B (en) Application recommendation method and mobile terminal
CN107454255B (en) Lyric display method, mobile terminal and computer readable storage medium
CN107678813B (en) Desktop icon theme switching method and mobile terminal
CN111857510B (en) Parameter adjusting method and device and electronic equipment
CN111694490B (en) Setting method and device and electronic equipment
CN107193878B (en) Automatic naming method of song list and mobile terminal
KR20150039552A (en) Display manipulating method of electronic apparatus and electronic apparatus thereof

Legal Events

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