CN115866349A - Multimedia file playing method and device and electronic equipment - Google Patents

Multimedia file playing method and device and electronic equipment Download PDF

Info

Publication number
CN115866349A
CN115866349A CN202211411085.3A CN202211411085A CN115866349A CN 115866349 A CN115866349 A CN 115866349A CN 202211411085 A CN202211411085 A CN 202211411085A CN 115866349 A CN115866349 A CN 115866349A
Authority
CN
China
Prior art keywords
multimedia file
playing
display
time stamp
offset position
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.)
Pending
Application number
CN202211411085.3A
Other languages
Chinese (zh)
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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202211411085.3A priority Critical patent/CN115866349A/en
Publication of CN115866349A publication Critical patent/CN115866349A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The disclosure provides a multimedia file playing method and device and electronic equipment, relates to the technical field of display, and aims to solve the problem of how to ensure that the picture of a multimedia file with a specific file format played by the electronic equipment cannot be blocked. The method comprises the following steps: playing the multimedia file under the condition of receiving the selection operation of the multimedia file; performing data pre-reading on the multimedia file, and determining a display time stamp and an actual offset position of each I frame contained in the multimedia file; under the condition that a fast forward operation of the playing progress of the multimedia file is received, determining a playing time stamp corresponding to the fast forward operation; and under the condition that the display time stamp with the difference value of the playing time stamp smaller than or equal to the target threshold value exists, reading the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value of the playing time stamp smaller than or equal to the target threshold value, and playing the multimedia data.

Description

Multimedia file playing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a method and an apparatus for playing a multimedia file, and an electronic device.
Background
Currently, in the display technology field, in the process of playing a multimedia file by an electronic device, a user often instructs the electronic device to play the content of the multimedia file at a specified time by means of a fast forward operation, for example, when the electronic device currently plays the content of the multimedia file in the 10 th minute, and the user needs to watch the content of the multimedia file in the 15 th minute, the user may instruct the electronic device to play the content of the multimedia file in the 15 th minute by means of the fast forward operation.
However, for some multimedia data in a specific file format (e.g., transport Stream (TS) format), when the difference between the specified time and the current time of the multimedia file currently played by the electronic device is large, the picture of the multimedia file played by the electronic device may be stuck.
Therefore, how to ensure that the electronic device does not pause the multimedia file in a specific file format on the screen becomes a problem to be solved.
Disclosure of Invention
In order to solve the technical problem, the present disclosure provides a method and an apparatus for playing a multimedia file, and an electronic device.
The technical scheme of the disclosure is as follows:
in a first aspect, the present disclosure provides a method for playing a multimedia file, including: playing the multimedia file under the condition of receiving the selection operation of the multimedia file; the multimedia file is stored with audio/video index information; performing data pre-reading on the multimedia file, and determining a display time stamp and an actual offset position of each I frame contained in the multimedia file; under the condition that a fast forward operation of the playing progress of the multimedia file is received, determining a playing time stamp corresponding to the fast forward operation; and under the condition that the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value exists, reading the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value, and playing the multimedia data.
In some practical examples, the playing method of the multimedia file provided by the present disclosure further includes: determining an estimated offset position according to configuration information and a playing time stamp of the multimedia file under the condition that the display time stamp with the difference value smaller than or equal to a target threshold does not exist; determining a display time stamp corresponding to the estimated offset position according to the estimated offset position; determining a display timestamp meeting a preset condition based on the display timestamp and the play timestamp corresponding to the estimated offset position; and reading the multimedia data of the actual offset position corresponding to the display timestamp meeting the preset condition, and playing the multimedia data.
In some practical examples, determining the display timestamp satisfying the preset condition based on the display timestamp and the play timestamp corresponding to the estimated offset position includes: under the condition that the display time stamp corresponding to the estimated offset position is different from the play time stamp, sequentially searching the display time stamps which are less than or equal to the play time stamp by taking one picture group as a step length; and according to the display time stamps which are less than or equal to the playing time stamps, determining the display time stamps meeting the preset condition to be the display time stamps which have the difference value with the playing time stamps less than or equal to the target threshold value in the display time stamps which are less than or equal to the playing time stamps.
In some practical examples, pre-reading the data of the multimedia file, and determining the display time stamp and the actual offset position of each I frame contained in the multimedia file comprises: performing data pre-reading on a multimedia file, and determining an initial position and at least two actual offset positions; for the segment data between two adjacent actual offset positions, or the segment data between the actual offset positions adjacent to the start position and the start position, the following operations are performed: creating a thread, analyzing the segmented data, and determining the display time stamp of each I frame contained in the segmented data; and determining the display time stamp and the actual offset position of each I frame contained in the multimedia file according to the display time stamp and the actual offset position of each I frame corresponding to each segment data.
In some practical examples, in a case where a fast forward operation of a play progress of a multimedia file is received, determining a play timestamp corresponding to the fast forward operation includes: under the condition of receiving a fast forward operation of the playing progress of the multimedia file, determining a fast forward time point corresponding to the fast forward operation; and switching the fast forward time point and determining the play time stamp.
In some practical examples, the playing method of the multimedia file provided by the present disclosure further includes: receiving an exit operation of exiting playing of the multimedia file; and storing the display time stamp and the actual offset position of each I frame contained in the multimedia file to a target position.
In some practical examples, the playing method of the multimedia file provided by the present disclosure further includes: obtaining the exit time of the last time of receiving the exit operation of exiting playing the multimedia file; and deleting the display time stamp and the actual offset position of each I frame contained in the multimedia file stored in the target position under the condition that the difference value between the current time and the exit time is larger than the time threshold.
In a second aspect, the present disclosure provides a playing device for multimedia files, including: the processing unit is used for controlling the display unit to play the multimedia file under the condition that the receiving unit receives the selection operation of the multimedia file; the multimedia file is stored with audio/video index information; the processing unit is also used for pre-reading the data of the multimedia file received by the receiving unit and determining the display time stamp and the actual offset position of each I frame contained in the multimedia file; the processing unit is further used for determining a playing time stamp corresponding to the fast forward operation received by the receiving unit under the condition that the receiving unit receives the fast forward operation of the playing progress of the multimedia file; and the processing unit is also used for reading the multimedia data of the multimedia file at the actual offset position corresponding to the display timestamp of which the difference value with the playing timestamp is less than or equal to the target threshold value under the condition that the display timestamp of which the difference value with the playing timestamp is less than or equal to the target threshold value exists, and controlling the display unit to play the multimedia data.
In some practical examples, the processing unit is further configured to determine, in the absence of a display timestamp having a difference from the play timestamp that is less than or equal to a target threshold, an estimated offset position according to the configuration information of the multimedia file and the play timestamp; the processing unit is also used for determining a display timestamp corresponding to the estimated offset position according to the estimated offset position; the processing unit is further used for determining a display timestamp meeting a preset condition based on the display timestamp and the play timestamp corresponding to the estimated offset position; and the processing unit is also used for reading the multimedia data of the actual offset position corresponding to the display timestamp meeting the preset condition and controlling the display unit to play the multimedia data.
In some practical examples, the processing unit is specifically configured to, in a case that the display timestamp corresponding to the estimated offset position is different from the play timestamp, sequentially search for display timestamps smaller than or equal to the play timestamp with one frame group as a step length; and the processing unit is specifically configured to determine, according to the display timestamp less than or equal to the play timestamp, that the display timestamp meeting the preset condition is the display timestamp whose difference value from the play timestamp is less than or equal to the target threshold value in the display timestamps less than or equal to the play timestamp.
In some practical examples, the processing unit is specifically configured to perform data pre-reading on the multimedia file, determine a start position and at least two actual offset positions; the processing unit is specifically configured to perform the following operations on the segment data between two adjacent actual offset positions, or the segment data between the actual offset positions adjacent to the start position and the start position: creating a thread, analyzing the segmented data, and determining the display time stamp of each I frame contained in the segmented data; and the processing unit is specifically configured to determine the display timestamp and the actual offset position of each I frame included in the multimedia file according to the display timestamp and the actual offset position of each I frame corresponding to each segment data.
In some practical examples, the processing unit is specifically configured to, in a case where the receiving unit receives a fast forward operation on a play progress of the multimedia file, determine a fast forward time point corresponding to the fast forward operation; and the processing unit is specifically used for converting the fast forward time point and determining the play time stamp.
In some practical examples, the receiving unit is further configured to receive an exit operation to exit playing the multimedia file; and the processing unit is also used for storing the display time stamp and the actual offset position of each I frame contained in the multimedia file to the target position.
In some implementable examples, the playing apparatus of the multimedia file further includes an obtaining unit; the multimedia file playing device comprises an acquisition unit, a playing unit and a playing unit, wherein the acquisition unit is used for acquiring the exit time of the last exit operation of receiving the exit of playing the multimedia file; and the processing unit is used for deleting the display time stamp and the actual offset position of each I frame contained in the multimedia file stored in the target position under the condition that the difference value between the current time and the exit time acquired by the acquisition unit is larger than the time threshold.
In a third aspect, the present disclosure provides an electronic device comprising: a memory for storing a computer program and a processor; the processor is configured to, when executing the computer program, cause the electronic device to implement the method for playing any multimedia file as provided in the first aspect above.
In a fourth aspect, the present disclosure provides a computer-readable storage medium comprising: the computer-readable storage medium has stored thereon a computer program which, when executed by a computing device, causes the computing device to implement the method for playing any one of the multimedia files as provided in the first aspect above.
In a fifth aspect, the present invention provides a computer program product for causing a computer to perform the method for playing a multimedia file as any one of the methods provided in the first aspect when the computer program product runs on the computer.
It should be noted that the computer instructions may be stored in whole or in part on the first computer readable storage medium. The first computer readable storage medium may be packaged with a processor of a playing apparatus of a multimedia file, or may be packaged separately from the processor of the playing apparatus of the multimedia file, which is not limited in this disclosure.
Reference may be made to the detailed description of the first aspect for the description of the second, third, fourth and fifth aspects of the disclosure; in addition, for the beneficial effects described in the second aspect, the third aspect, the fourth aspect and the fifth aspect, reference may be made to beneficial effect analysis of the first aspect, and details are not repeated here.
In the present disclosure, the names of the playing devices of the multimedia files do not limit the devices or the function modules themselves, and in actual implementation, the devices or the function modules may appear by other names. Insofar as the functions of the respective devices or functional modules are similar to those of the present disclosure, they are within the scope of the claims of the present disclosure and their equivalents.
These and other aspects of the disclosure will be more readily apparent from the following description.
Compared with the prior art, the technical scheme provided by the disclosure has the following advantages:
the method comprises the steps of carrying out data pre-reading on a multimedia file when the multimedia file which does not store audio and video index information is played, and determining a display time stamp and an actual offset position of each I frame contained in the multimedia file. Thus, the display time stamp corresponding to each I frame in the multimedia file and the actual offset position corresponding to each I frame can be obtained. Then, when a fast forward operation of the playing progress of the multimedia file is received, a playing time stamp corresponding to the fast forward operation is determined first. And then, searching for a display time stamp with the difference value smaller than or equal to the target threshold value from the known display time stamps, reading the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value of the play time stamp smaller than or equal to the target threshold value, and playing the multimedia data.
In addition, when the multimedia file is a multimedia file in a specific file format, in the playing method of the multimedia file provided by the disclosure, because the display timestamp and the actual offset position of each I frame included in the media file are acquired while the multimedia file is played, when a user performs a fast-forward operation on the playing progress of the multimedia file, the corresponding I frame and the actual offset position corresponding to the I frame can be quickly found, so that a pause phenomenon of a picture of the multimedia file played by a player due to the fact that a large amount of time is spent on finding the I frame can be avoided, and the problem that the pause phenomenon of the picture of the multimedia file played by an electronic device in the specific file format cannot occur is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart illustrating a method for playing a multimedia file according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a display device in a method for playing a multimedia file according to an embodiment of the present application;
fig. 3 is a second schematic structural diagram of a display device in the method for playing a multimedia file according to the embodiment of the present application;
fig. 4 is a flowchart illustrating a method for playing a multimedia file according to an embodiment of the present application;
fig. 5 is a second flowchart illustrating a playing method of a multimedia file according to an embodiment of the present application;
fig. 6 is a third schematic flowchart illustrating a playing method of a multimedia file according to an embodiment of the present application;
fig. 7 is a fourth flowchart illustrating a playing method of a multimedia file according to an embodiment of the present application;
fig. 8 is a fifth flowchart illustrating a playing method of a multimedia file according to an embodiment of the present application;
fig. 9 is a sixth schematic flowchart of a playing method of a multimedia file according to an embodiment of the present application;
fig. 10 is a seventh schematic flowchart illustrating a playing method of a multimedia file according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 12 is a schematic diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The I frame in the embodiments of the present disclosure refers to an intra-coded frame (I frame), which is generally the first frame of each Group of Pictures (GOP) (a video compression technique used by Moving Pictures Experts Group (MPEG)), and is appropriately compressed to serve as a reference point for random access, so that the I frame can be used as an image. An I-frame can be viewed as the product of a compression of an image.
The Timestamp (Timestamp) in the embodiment of the present disclosure is data generated by using a digital signature technology, and a signed object includes information such as original file information, signature parameters, and signature time.
The Group of Pictures in the embodiments of the present disclosure refers to Group of Pictures, referred to as GOP, where a GOP is a Group of consecutive Pictures, starting with an I-frame, and when decoding, a Group of complete GOP Pictures needs to be sent to a decoder.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control device according to one or more embodiments of the present application, as shown in fig. 1, a user may operate the display device 200 through a mobile terminal 300 and the control device 100. The control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, bluetooth protocol communication, wireless or other wired method to control the display device 200. The user may input a user command through a key on a remote controller, voice input, control panel input, etc. to control the display apparatus 200. In some embodiments, mobile terminals, tablets, computers, laptops, and other smart devices may also be used to control the display device 200.
In some embodiments, the mobile terminal 300 may install a software application with the display device 200 to implement connection communication through a network communication protocol for the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200, so that the display device 200 with the synchronous display function can also perform data communication with the display device 200 in multiple communication modes. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The display apparatus 200 may provide various contents and interactions to the display apparatus 200. The display device 200 may be a liquid crystal display, an OLED display, a projection display device. The display apparatus 200 may additionally provide an intelligent network tv function that provides a computer support function in addition to the broadcast receiving tv function.
In some embodiments, the electronic device provided in the embodiments of the present application may be the display device 200 described above. Among them, the display apparatus 200 has installed therein an application, called a player, for playing a multimedia file. When a user uses a player to play a multimedia file in a local storage, if audio/video index information (such as a multimedia file in a file format TS format) is not stored in the multimedia file, during the playing of the multimedia file, if a time point corresponding to a user fast forward operation is far away from a current time point at which the multimedia file is currently played by the player, the player needs to spend a long time to search for an I frame, which inevitably causes the player to play the multimedia file in a transient state, and the user sees a picture that is stuck, resulting in poor user experience. Therefore, according to the playing method of the multimedia file provided by the embodiment of the disclosure, while the multimedia file which does not store the audio/video index information is played, data pre-reading is performed on the multimedia file, and the display timestamp and the actual offset position of each I frame included in the multimedia file are determined. Therefore, the display time stamp corresponding to each I frame in the multimedia file and the actual offset position corresponding to each I frame can be obtained. Then, when a fast forward operation of the playing progress of the multimedia file is received, a playing time stamp corresponding to the fast forward operation is determined first. And then, searching for a display time stamp with the difference value of the display time stamp being less than or equal to the target threshold value in the known display time stamps, reading the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value of the play time stamp being less than or equal to the target threshold value, and playing the multimedia data. When the multimedia file is played, the player already acquires the display timestamp and the actual offset position of each I frame contained in the media file, so that when a user carries out fast forward operation on the playing progress of the multimedia file, the corresponding I frame and the actual offset position corresponding to the I frame can be quickly found, and the phenomenon that a picture of the multimedia file played by the player is blocked due to the fact that a large amount of time is spent on searching the I frame can be avoided.
Fig. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. The display apparatus 200 as shown in fig. 2 includes at least one of a tuner demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, and first to nth interfaces for input/output. The display 260 may be a display with a touch function, such as a touch display. The tuner demodulator 210 receives a broadcast television signal through a wired or wireless reception manner, and demodulates an audio/video signal, such as an EPG data signal, from a plurality of wireless or wired broadcast television signals. The detector 230 is used to collect signals of an external environment or interaction with the outside. The controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display apparatus 200.
In some examples, taking the display device 200 applying for one or more embodiments as the television 1 and the operating system of the television 1 as an Android system as an example, as shown in fig. 3, the television 1 may be logically divided into an Application (Applications) layer (abbreviated as "Application layer") 21, an Application Framework (Application Framework) layer (abbreviated as "Framework layer") 22, an Android runtime (Android runtime) and system library layer (abbreviated as "system runtime library layer") 23, and a kernel layer 24.
Wherein the application layer 21 comprises one or more applications. The application may be a system application or a third party application. For example, the application layer 21 includes a first application, and the first application may provide a play function of a multimedia file. The framework layer 22 provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer 21. The system runtime layer 23 provides support for the upper layer, i.e., the framework layer 22, and when the framework layer 22 is used, the android operating system runs the C/C + + library included in the system runtime layer 23 to implement the functions to be implemented by the framework layer 22. The kernel layer 24 serves as software middleware between the hardware layer and the application layer 21 for managing and controlling hardware and software resources.
In some examples, the first application is launched after the television set 1 is powered on. Then, the user may play the locally stored multimedia file through the first application, and when the processing unit 201 of the first application determines that the receiving unit 202 receives the selection operation on the multimedia file, the video processor in the controller 205 is called to decode the multimedia file, so as to obtain decoded multimedia data. After that, the processing unit 201 transmits the decoded multimedia data to the display unit 203. The display unit 203 displays the decoded multimedia data by calling the display 260 of the television 1, so that the television 1 realizes the playing of the multimedia data. Thereafter, the processing unit 201 performs data pre-reading on the multimedia file, and determines a display time stamp and an actual offset position of each I frame included in the multimedia file. Therefore, the display time stamp corresponding to each I frame in the multimedia file and the actual offset position corresponding to each I frame can be obtained. After that, the processing unit 201 determines that the receiving unit 202 receives a fast forward operation of the play progress of the multimedia file, and determines a play time stamp corresponding to the fast forward operation. Thereafter, the processing unit 201 reads the multimedia data of the multimedia file at the actual offset position corresponding to the display timestamp having the difference in the play timestamp less than or equal to the target threshold by finding a display timestamp having a difference in the known display timestamp less than or equal to the target threshold from the known display timestamp. Then, the processing unit 201 invokes a video processor in the controller 205 to decode the read multimedia data, so as to obtain decoded multimedia data. After that, the processing unit 201 transmits the decoded multimedia data to the display unit 203. The display unit 203 displays the decoded multimedia data by calling the display 260 of the television set 1. Thus, the television set 1 can continue to play the multimedia file at the play time stamp corresponding to the user fast forward operation.
In addition, after obtaining the display timestamp corresponding to each I frame in the multimedia file and the actual offset position corresponding to each I frame, the processing unit 201 stores the display timestamp and the actual offset position of each I frame included in the multimedia file to a target position (e.g., in a memory cache list in the storage unit 205) when the receiving unit 202 receives a quit operation for quitting playing the multimedia file, so as to ensure the user experience. Therefore, when the user plays the multimedia file next time, because the display timestamp corresponding to each I frame in the multimedia file and the actual offset position corresponding to each I frame are already stored in the memory cache list, when the user plays the multimedia file again through the first application, the first application does not need to play the multimedia file and simultaneously pre-read data of a plurality of multimedia files, so that the occupation of computing resources of the television 1 can be reduced.
Specifically, the electronic device provided by the embodiment of the present disclosure may be the display device 200 or the server 400, which is not limited herein.
Specifically, the storage unit 404 of the server 400 is used for storing a preset relationship table, and data such as an operating system of the server 400.
Specifically, the storage unit 204 of the display apparatus 200 is used for storing data such as locally downloaded multimedia files, and computer programs of the first application.
The multimedia file and the multimedia data related to the application can be data authorized by a user or fully authorized by all parties.
In the following embodiments, the method according to the embodiments of the present disclosure is described by taking an execution main body of the playing method for executing a multimedia file provided by the embodiments of the present disclosure as the display device 200, and taking the display device 200 as the television 1 as an example.
An embodiment of the present application provides a method for playing a multimedia file, and as shown in fig. 4, the method for playing a multimedia file may include S11 to S14.
S11, playing the multimedia file under the condition that the selection operation of the multimedia file is received. And audio and video index information is not stored in the multimedia file.
In some examples, the user saves the required multimedia file by downloading it to the memory of the tv 1, so that the tv 1 can read the multimedia file in the memory and play it the next time the user plays the multimedia file using the tv 1 (the multimedia file is played by a player in the tv 1). For some special multimedia files, audio/video index information (for example, multimedia files in a file format TS format) is not stored in the special multimedia files, so that when a user uses a player in the television 1 to play a multimedia file stored in a memory of the television 1, if a time point corresponding to a user fast forward operation is far from a current time point at which the player currently plays the multimedia file, the player needs to spend a long time to search for an I frame, which inevitably causes the player to play the multimedia file in a transient state, and a picture viewed by the user is blocked, resulting in poor user experience. In order to solve the above problem, in the playing method of the multimedia file provided in the embodiment of the present disclosure, when the multimedia file not storing the audio/video index information is played, data is pre-read for the multimedia file, and a display timestamp and an actual offset position of each I frame included in the multimedia file are determined. Thus, when receiving the fast-forward operation of the playing progress of the multimedia file, the display time stamp matched with the playing time stamp corresponding to the fast-forward operation is searched in the known display time stamps without consuming longer time to search the I frame. Because each display time stamp corresponds to an actual offset position, after the display time stamp is determined, the multimedia data of the actual offset position corresponding to the display time stamp can be read and played, and therefore the problem of picture blockage can be avoided.
And S12, pre-reading data of the multimedia file, and determining the display time stamp and the actual offset position of each I frame contained in the multimedia file.
In some examples, after the multimedia file is successfully played, assuming that the total length of the multimedia file is M, based on the size of the multimedia file, N (N may be configured based on the performance of the television 1, e.g., N equals 5) threads are created, and the actual offset positions of M (N-1)/N are read from 0, M × 1/N, M × 2/N, etc., respectively, the multimedia data in each segment (e.g., the segment data between 0 and M × 1/N, or the segment data between M × N (N-2)/N and M × N (N-1)/N) is read, the I-frame information therein is parsed, and the display Time Stamp (Presentation Time Stamp) PTS and the actual offset position (offset) of the parsed I frame are stored in the memory buffer list until the whole multimedia file is completely parsed.
Illustratively, taking M equal to 300mb and n equal to 5 as an example, the corresponding relationship between the threads and the segment data is shown in table 1.
TABLE 1
Threading Segmenting data
Thread 1 (0,60]
Thread 2 (60,120]
Thread 3 (120,180]
Thread 4 (180,240]
Thread 5 (240,300]
Thus, different threads correspond to different sections of data. Such as: thread 1 processes data between the start position 0 and the actual offset position 60MB, i.e. thread 1 processes the first 60MB of data in the multimedia file. Similarly, thread 2 processes data between the actual offset position 60MB and the actual offset position 120MB, i.e., thread 2 processes data of 60MB to 120MB in the multimedia file. Similarly, thread 3 processes data between the actual offset location 120MB and the actual offset location 180MB, i.e., thread 3 processes 120MB to 180MB of data in the multimedia file. Similarly, thread 4 processes data between actual offset location 180MB and actual offset location 240MB, i.e., thread 4 processes 180MB to 240MB of data in the multimedia file. Similarly, thread 5 processes data between the actual offset location 240MB and the actual offset location 300MB, i.e., thread 5 processes data in the multimedia file after 240 MB. Thus, the data pre-reading of the multimedia file is completed.
It can be seen that, while the player of the television 1 plays the multimedia file, the player can perform data pre-reading on the multimedia file through multiple threads, so that the display timestamp and the actual offset position of each I frame included in the multimedia file can be quickly acquired.
And S13, under the condition that the fast forward operation of the playing progress of the multimedia file is received, determining a playing time stamp corresponding to the fast forward operation.
In some examples, when the content of the multimedia file currently being played by the player of the television set 1 is not the content of interest to the user, the user may perform a fast forward operation on the playing progress of the multimedia file, and in a case that the player of the television set 1 receives the fast forward operation on the playing progress of the multimedia file, it is necessary to determine a playing time stamp corresponding to the fast forward operation, such as: the player of the television set 1 first determines a fast forward time point according to the fast forward operation. And then, converting the fast forward time point to obtain a play time stamp, such as: the television set 1 stores a conversion formula of the fast forward time point and the play time stamp in advance, and then the player of the television set 1 can determine the play time stamp according to the conversion formula and the fast forward time point. Alternatively, the television set 1 inputs the fast forward time point into the conversion model and determines the play time stamp. The training process of the conversion model is as follows:
acquiring training sample data and a marking result of the training sample data; the training sample data comprises corresponding fast forward time points when the multimedia file is fast forwarded, and the marking result comprises a playing time stamp corresponding to each fast forward time point.
Inputting the training sample data into the neural network model to obtain the prediction result of the neural network model on the training sample data.
And under the condition that the prediction result is different from the marking result, adjusting the network parameters of the neural network model, inputting the training sample data to the neural network model again until the neural network model converges, and obtaining a conversion model.
S14, under the condition that the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value exists, the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value are read, and the multimedia data are played.
In some examples, when the player of the television 1 creates multiple threads to parse multiple pieces of segment data while playing a multimedia file, due to the limited parsing speed, when a fast forward operation on the playing progress of the multimedia file is received, a display timestamp with a difference from the playing timestamp less than or equal to a target threshold needs to be found in an existing display timestamp, and if a display timestamp with a difference from the playing timestamp less than or equal to the target threshold exists, the multimedia data of the multimedia file at an actual offset position corresponding to the display timestamp with a difference from the playing timestamp less than or equal to the target threshold may be read and played. If the display time stamp which is smaller than or equal to the target threshold value in difference value with the playing time stamp does not exist, the player of the television 1 is required to determine the estimated offset position according to the configuration information and the playing time stamp of the multimedia file, then the display time stamp corresponding to the estimated offset position is determined according to the estimated offset position, the display time stamp meeting the preset condition is determined based on the display time stamp and the playing time stamp corresponding to the estimated offset position, the multimedia data of the actual offset position corresponding to the display time stamp meeting the preset condition is read, and the multimedia data are played. Therefore, even if the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value does not exist in the existing display time stamps, the corresponding multimedia data can be found quickly, the multimedia data can be played, and the user experience is guaranteed.
As can be seen from the above, in the playing method of the multimedia file provided in the embodiment of the present disclosure, when the multimedia file which does not store the audio/video index information is played, data pre-reading is performed on the multimedia file, and the display timestamp and the actual offset position of each I frame included in the multimedia file are determined. Thus, the display time stamp corresponding to each I frame in the multimedia file and the actual offset position corresponding to each I frame can be obtained. Then, when a fast forward operation of the playing progress of the multimedia file is received, a playing time stamp corresponding to the fast forward operation is determined first. And then, searching for a display time stamp with the difference value smaller than or equal to the target threshold value from the known display time stamps, reading the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value of the play time stamp smaller than or equal to the target threshold value, and playing the multimedia data. When the multimedia file is played, the player already acquires the display timestamp and the actual offset position of each I frame contained in the media file, so that when a user carries out fast forward operation on the playing progress of the multimedia file, the corresponding I frame and the actual offset position corresponding to the I frame can be quickly found, and the phenomenon that a picture of the multimedia file played by the player is blocked due to the fact that a large amount of time is spent on searching the I frame can be avoided.
In some implementable examples, in conjunction with fig. 4, as shown in fig. 5, the playing method of the multimedia file provided by the embodiment of the present disclosure further includes: S15-S18.
And S15, determining the estimated offset position according to the configuration information and the playing time stamp of the multimedia file under the condition that the display time stamp with the difference value smaller than or equal to the target threshold does not exist.
In some examples, the configuration information includes a file size, a total file playing time and a file code rate, and the estimated offset position satisfies the following estimation formula:
Figure BDA0003938283730000101
/>
wherein, P represents the estimated offset position, T represents the playing time stamp, T represents the total playing time of the file, M represents the size of the file, and B represents the file code rate.
Such as: the file size of the multimedia file is 300MB, the total file playing time is 7200s, the file code rate is 1MB/s, the playing time stamp is 3600s, and the predicted offset position P can be determined to be equal to 149.75MB according to an estimation formula. At this time, the player of the television set 1 needs to determine the display time stamp corresponding to the predicted offset position (149.75 MB). Such as: the multimedia data of the multimedia file at 149.75MB is parsed to obtain the corresponding display time stamp of the multimedia file at 149.75MB. Or inquiring the display time stamp corresponding to the estimated offset position in the pre-stored corresponding relation between the estimated offset position and the display time stamp so as to obtain the display time stamp corresponding to the estimated offset position.
And S16, determining a display time stamp corresponding to the estimated offset position according to the estimated offset position.
And S17, determining the display time stamp meeting the preset condition based on the display time stamp and the play time stamp corresponding to the estimated offset position.
In some examples, when the display timestamp corresponding to the estimated offset position is greater than the play timestamp, it is required to query, in a direction smaller than the play timestamp, the display timestamp whose difference from the play timestamp is smaller than or equal to the target threshold in the display timestamps smaller than or equal to the play timestamp according to the group of pictures as a step length, for example, 2 s. And if the display time stamp exists, determining the display time stamp as the display time stamp meeting the preset condition.
In other examples, when the display timestamp corresponding to the estimated offset position is smaller than the play timestamp, the display timestamp larger than the display timestamp corresponding to the estimated offset position and having a difference with the play timestamp smaller than or equal to the target threshold needs to be queried in a direction larger than the display timestamp corresponding to the estimated offset position according to the group of pictures as a step length, for example, 2 s. And if the display time stamp exists, determining the display time stamp as the display time stamp meeting the preset condition.
In other examples, when the display timestamp corresponding to the estimated offset position is equal to the play timestamp, the display timestamp corresponding to the estimated offset position is determined to be the display timestamp of the preset condition.
And S18, reading the multimedia data of the actual offset position corresponding to the display timestamp meeting the preset condition, and playing the multimedia data.
In some practical examples, in conjunction with fig. 5, as shown in fig. 6, the above S17 may be specifically realized by the following S170 and S171.
S170, under the condition that the display time stamp corresponding to the estimated offset position is different from the playing time stamp, sequentially searching the display time stamps which are less than or equal to the playing time stamp by taking one picture group as a step length.
And S171, according to the display time stamps which are less than or equal to the playing time stamps, determining the display time stamps which meet the preset condition to be the display time stamps which are less than or equal to the playing time stamps and have the difference value with the playing time stamps less than or equal to the target threshold.
In some practical examples, in conjunction with fig. 4, as shown in fig. 7, the above S12 may be specifically implemented by the following S120 to S122.
And S120, pre-reading data of the multimedia file, and determining a starting position and at least two actual offset positions.
S121, for the segment data between two adjacent actual offset positions, or the segment data between the actual offset positions adjacent to the start position and the start position, the following operations are performed: and creating a thread, analyzing the segmented data, and determining the display time stamp of each I frame contained in the segmented data.
And S122, determining the display time stamp and the actual offset position of each I frame contained in the multimedia file according to the display time stamp and the actual offset position of each I frame corresponding to each segment data.
In some practical examples, in conjunction with fig. 4, as shown in fig. 8, S13 described above may be specifically implemented by S130 and S131 described below.
S130, under the condition that the fast forward operation of the playing progress of the multimedia file is received, determining a fast forward time point corresponding to the fast forward operation.
S131, converting the fast forward time point and determining the play time stamp.
In some practical examples, in conjunction with fig. 4, as shown in fig. 9, the method for playing a multimedia file provided by the embodiment of the present disclosure further includes: s19 and S20.
And S19, receiving an exit operation of exiting playing the multimedia file.
In some examples, when the user does not need to watch the multimedia file, the user may perform an exit operation for exiting playing the multimedia file on the multimedia file, and the player of the television set 1 exits playing the multimedia file after receiving the exit operation. In order to ensure that a user can quickly respond to a fast forward operation of the user when playing the multimedia file next time, the method for playing the multimedia file according to the embodiment of the present disclosure stores a display timestamp and an actual offset position of each I frame included in the multimedia file obtained this time to a target position, for example: to the memory cache list of the storage of the television set 1. In this way, when the user plays the multimedia file next time, the player of the television 1 receives the selection operation on the multimedia file, plays the multimedia file, and queries whether the display timestamp and the actual offset position of the I frame included in the multimedia file exist in the memory cache list and stores the display timestamp and the actual offset position in the target position. If the multimedia file exists, data pre-reading is not needed to be carried out on the multimedia file. If not, continuing to pre-read the data of the multimedia file.
In other examples, when the user watches a multimedia file for a short time, the player of the television set 1 does not complete the prediction of the data of the multimedia file, i.e. only the display time stamp and the actual offset position of a part of the I frames in the multimedia file are currently obtained. At this time, the player of the television 1 quits playing the multimedia file after receiving the quit operation. And storing the display time stamp and the actual offset position of the partial I frame in the multimedia file to the target position. Then, when the user selects to play the multimedia file again, the player of the television 1 receives the selection operation on the multimedia file, plays the multimedia file, and continues to perform data pre-reading on the multimedia file again until the display time stamp and the actual offset position of each I frame included in the multimedia file are obtained.
Alternatively, the first and second electrodes may be,
when the user watches a multimedia file for a short time, the player of the television set 1 does not complete the data prediction of the multimedia file at this time, i.e. only the display time stamp and the actual offset position of a part of I frames in the multimedia file are currently obtained. At this time, the player of the television 1 quits playing the multimedia file after receiving the quit operation. And storing the display time stamp and the actual offset position of the partial I frame in the multimedia file and the current processing progress to the target position. Then, when the user selects to play the multimedia file again, the player of the television 1 receives the selection operation on the multimedia file, plays the multimedia file, and queries whether the display timestamp and the actual offset position of the I frame included in the multimedia file exist in the memory cache list and stores the display timestamp and the actual offset position to the target position, if so, and when the processing progress is included, the player of the television 1 continues to perform data pre-reading on the multimedia file by taking the processing progress as a starting point until the display timestamp and the actual offset position of each I frame included in the multimedia file are obtained.
And S20, storing the display time stamp and the actual offset position of each I frame contained in the multimedia file to a target position.
In some practical examples, in conjunction with fig. 9, as shown in fig. 10, the method for playing a multimedia file provided by the embodiment of the present disclosure further includes: s21 and S22.
S21, obtaining the exit time of the last exit operation of receiving the exit playing of the multimedia file.
And S22, deleting the display time stamp and the actual offset position of each I frame contained in the multimedia file stored in the target position under the condition that the difference value between the current time and the exit time is larger than the time threshold.
In some examples, in order to prevent the display timestamp corresponding to each I frame in the multimedia file stored in the memory cache list and the actual offset position corresponding to each I frame from being large, a large amount of storage resources are occupied by the display timestamp corresponding to each I frame and the actual offset position corresponding to each I frame in the multimedia file. In the method for playing a multimedia file provided by the embodiment of the present disclosure, a size relationship between a difference between a current time and an exit time and a time threshold (e.g., 72 hours) is determined, so as to determine whether to clear a display timestamp and an actual offset position of each I frame included in the multimedia file stored in a target position. If the difference value between the current time and the exit time is greater than the time threshold, it indicates that the user does not view the multimedia file for a long time, that is, the probability that the user accesses the multimedia file is low, so that the display timestamp and the actual offset position of each I frame included in the multimedia file stored in the target position can be deleted, thereby realizing the cleaning of the storage space occupied by the target position and ensuring the space utilization rate of the storage space occupied by the target position. If the difference between the current time and the exit time is greater than the time threshold, it indicates that the user may view the multimedia file, and therefore, the display timestamp and the actual offset position of each I frame included in the multimedia file need to be saved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. 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 application.
In the embodiment of the present application, the functional modules of the playing device of the multimedia file may be divided according to the above method, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
As shown in fig. 11, an embodiment of the present application provides a schematic structural diagram of a display device 200. Including a processor 101, a communicator 102, and a display 103.
A processor 101 for controlling the display 103 to play the multimedia file in case that the communicator 102 receives a selection operation for the multimedia file; the multimedia file is stored with audio/video index information; the processor 101 is further configured to perform data pre-reading on the multimedia file received by the communicator 102, and determine a display timestamp and an actual offset position of each I frame included in the multimedia file; the processor 101 is further configured to determine, when the communicator 102 receives a fast forward operation on the play progress of the multimedia file, a play timestamp corresponding to the fast forward operation received by the communicator 102; the processor 101 is further configured to, in a case where it is determined that there is a display timestamp having a difference from the play timestamp that is less than or equal to the target threshold, read the multimedia data of the multimedia file at an actual offset position corresponding to the display timestamp having a difference from the play timestamp that is less than or equal to the target threshold, and control the display 103 to play the multimedia data.
In some practical examples, the processor 101 is further configured to determine, in the absence of a display timestamp having a difference from the play timestamp less than or equal to a target threshold, an estimated offset position according to the configuration information of the multimedia file and the play timestamp; the processor 101 is further configured to determine, according to the estimated offset position, a display timestamp corresponding to the estimated offset position; the processor 101 is further configured to determine a display timestamp meeting a preset condition based on the display timestamp and the play timestamp corresponding to the estimated offset position; the processor 101 is further configured to read the multimedia data at the actual offset position corresponding to the display timestamp meeting the preset condition, and control the display 103 to play the multimedia data.
In some practical examples, the processor 101 is specifically configured to, in a case that the display timestamp corresponding to the estimated offset position is different from the play timestamp, sequentially search for display timestamps smaller than or equal to the play timestamp with one frame group as a step length; the processor 101 is specifically configured to determine, according to the display timestamp less than or equal to the play timestamp, that the display timestamp meeting the preset condition is the display timestamp whose difference from the play timestamp is less than or equal to the target threshold in the display timestamps less than or equal to the play timestamp.
In some implementable examples, the processor 101 is specifically configured to perform data pre-reading on the multimedia file, determine a start position and at least two actual offset positions; the processor 101 is specifically configured to perform the following operations on the segment data between two adjacent actual offset positions, or the segment data between the actual offset positions adjacent to the start position and the start position: creating a thread, analyzing the segmented data, and determining the display time stamp of each I frame contained in the segmented data; the processor 101 is specifically configured to determine the display timestamp and the actual offset position of each I frame included in the multimedia file according to the display timestamp and the actual offset position of each I frame corresponding to each segment data.
In some practical examples, the processor 101 is specifically configured to, in a case where the communicator 102 receives a fast forward operation on a play progress of the multimedia file, determine a fast forward time point corresponding to the fast forward operation; the processor 101 is specifically configured to switch the fast forward time point and determine the play time stamp.
In some practical examples, the communicator 102 is further configured to receive an exit operation to exit playing the multimedia file; the processor 101 is further configured to store the display timestamp and the actual offset position of each I frame included in the multimedia file to the target position.
In some practical examples, the communicator 102 is configured to obtain an exit time when an exit operation for exiting playing of the multimedia file is received last time; and the processor 101 is configured to delete the display timestamp and the actual offset position of each I frame included in the multimedia file stored in the target location in the case that it is determined that the difference between the current time and the exit time acquired by the communicator 102 is greater than the time threshold.
All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and the function thereof is not described herein again.
Of course, the display device 200 provided in the embodiment of the present application includes, but is not limited to, the above modules, for example, the display device 200 may further include the memory 104. The memory 104 may be used for storing the program code of the display device 200, and may also be used for storing data generated by the display device 200 during operation, such as data in a write request.
As an example, in connection with fig. 3, the function of the communicator 102 implemented by both the receiving unit 202 and the acquiring unit 204 in the display device 200 is the same, the function implemented by the processing unit 201 is the same as that of the processor 101, the function implemented by the display unit 103 is the same as that of the display 103, and the function implemented by the storage unit 205 is the same as that of the memory 104.
As shown in fig. 12, the embodiment of the present application further provides a chip system, which can be applied to the display device 200 in the foregoing embodiment. The system-on-chip includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 may be a processor in the display device 200 described above. The processor 1501 and the interface circuit 1502 may be interconnected by wires. The processor 1501 may receive and execute computer instructions from the memory of the display device 200 described above via the interface circuit 1502. The computer instructions, when executed by the processor 1501, may cause the display device 200 to perform the various steps performed by the display device 200 in the embodiments described above. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
The embodiment of the present application further provides a computer-readable storage medium for storing computer instructions executed by the display device 200.
The embodiment of the present application further provides a computer program product, which includes computer instructions executed by the display device 200.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for playing a multimedia file, comprising:
playing a multimedia file under the condition that a selection operation of the multimedia file is received; the multimedia file is stored with audio/video index information;
performing data pre-reading on the multimedia file, and determining a display time stamp and an actual offset position of each I frame contained in the multimedia file;
under the condition that a fast forward operation of the playing progress of the multimedia file is received, determining a playing time stamp corresponding to the fast forward operation;
and under the condition that the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value exists, reading the multimedia data of the multimedia file at the actual offset position corresponding to the display time stamp with the difference value with the playing time stamp smaller than or equal to the target threshold value, and playing the multimedia data.
2. The method for playing the multimedia file according to claim 1, further comprising:
determining an estimated offset position according to the configuration information of the multimedia file and the playing time stamp under the condition that the display time stamp with the difference value smaller than or equal to a target threshold does not exist;
determining a display timestamp corresponding to the estimated offset position according to the estimated offset position;
determining a display timestamp meeting a preset condition based on the display timestamp and the play timestamp corresponding to the estimated offset position;
and reading the multimedia data of the actual offset position corresponding to the display timestamp meeting the preset condition, and playing the multimedia data.
3. The method for playing the multimedia file according to claim 2, wherein the determining the display timestamp meeting the preset condition based on the display timestamp and the playing timestamp corresponding to the estimated offset position includes:
under the condition that the display time stamps corresponding to the estimated offset positions are different from the playing time stamps, sequentially searching the display time stamps which are less than or equal to the playing time stamps by taking one picture group as a step length;
and according to the display time stamps which are less than or equal to the playing time stamps, determining the display time stamps meeting the preset condition to be the display time stamps of which the difference value with the playing time stamps in the display time stamps which are less than or equal to the playing time stamps is less than or equal to a target threshold value.
4. The method for playing the multimedia file according to claim 1, wherein the pre-reading the multimedia file to determine the display time stamp and the actual offset position of each I frame included in the multimedia file comprises:
performing data pre-reading on the multimedia file, and determining a starting position and at least two actual offset positions;
for the segment data between two adjacent actual offset positions, or the segment data between the start position and the actual offset position adjacent to the start position, the following operations are performed: creating a thread, analyzing the segmented data, and determining a display time stamp of each I frame contained in the segmented data;
and determining the display time stamp and the actual offset position of each I frame contained in the multimedia file according to the display time stamp and the actual offset position of each I frame corresponding to each segment data.
5. The method for playing the multimedia file according to claim 1, wherein the determining the play timestamp corresponding to the fast forward operation when the fast forward operation of the play progress of the multimedia file is received comprises:
under the condition that a fast forward operation of the playing progress of the multimedia file is received, determining a fast forward time point corresponding to the fast forward operation;
and converting the fast forward time point and determining a play time stamp.
6. The method for playing back a multimedia file according to claim 1, wherein the method further comprises:
receiving an exit operation of exiting playing the multimedia file;
and storing the display time stamp and the actual offset position of each I frame contained in the multimedia file to a target position.
7. The method for playing back a multimedia file according to claim 6, wherein the method further comprises:
obtaining the exit time of the last time of receiving the exit operation of exiting playing the multimedia file;
and deleting the display time stamp and the actual offset position of each I frame contained in the multimedia file stored in the target position under the condition that the difference value between the current time and the exit time is greater than a time threshold value.
8. A device for playing a multimedia file, comprising:
the processing unit is used for controlling the display unit to play the multimedia file under the condition that the receiving unit receives the selection operation of the multimedia file; the multimedia file is stored with audio/video index information;
the processing unit is further configured to perform data pre-reading on the multimedia file received by the receiving unit, and determine a display timestamp and an actual offset position of each I frame included in the multimedia file;
the processing unit is further configured to determine a play timestamp corresponding to the fast forward operation received by the receiving unit when the receiving unit receives the fast forward operation on the play progress of the multimedia file;
the processing unit is further configured to, in a case where it is determined that there is a display timestamp whose difference from the play timestamp is less than or equal to a target threshold, read the multimedia data of the multimedia file at an actual offset position corresponding to the display timestamp whose difference from the play timestamp is less than or equal to the target threshold, and control the display unit to play the multimedia data.
9. An electronic device, comprising: a memory for storing a computer program and a processor; the processor is configured to cause the electronic device to implement the method for playing a multimedia file according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, comprising: the computer-readable storage medium has stored thereon a computer program which, when executed by a computing device, causes the computing device to implement the method of playing a multimedia file according to any one of claims 1 to 7.
CN202211411085.3A 2022-11-11 2022-11-11 Multimedia file playing method and device and electronic equipment Pending CN115866349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211411085.3A CN115866349A (en) 2022-11-11 2022-11-11 Multimedia file playing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211411085.3A CN115866349A (en) 2022-11-11 2022-11-11 Multimedia file playing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115866349A true CN115866349A (en) 2023-03-28

Family

ID=85663164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211411085.3A Pending CN115866349A (en) 2022-11-11 2022-11-11 Multimedia file playing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115866349A (en)

Similar Documents

Publication Publication Date Title
US7826712B2 (en) Method and apparatus for receiving, storing, and presenting multimedia programming without indexing prior to storage
US8837919B2 (en) Information processing apparatus, information processing method, and program
US8407737B1 (en) Systems and methods for providing a scan transport bar
US20160269803A1 (en) Smart tv media player and playback progress adjustment method thereof, and smart tv
JP2009021698A (en) Video display terminal device, and display switching method, and program
CN101404741B (en) Audio playing apparatus and method, and digital television chip
US11582531B2 (en) Intermediate key frame selection and animation
CN105516791A (en) Intelligent household streaming media seamless connection realization method and intelligent household streaming media seamless connection realization system
CN102293007A (en) Methods and systems for a current channel buffer for network based personal video recording
US20150016807A1 (en) Video processing method and video appliance implementing the method
CN111601136A (en) Video data processing method and device, computer equipment and storage medium
CN101854508A (en) The method and apparatus of the content of multimedia of reverse playback of encoded
CN105100912A (en) Streaming media processing method and streaming media processing apparatus
US8600214B2 (en) Portable terminal and method for managing videos therein
JP2009065451A (en) Content reproduction device, content reproduction method, program, and content reproduction system
CN101547327A (en) Window television
US20140341544A1 (en) Creating and managing sub-recordings
US8542984B1 (en) Advanced recording options for interactive media guidance application systems
CN115866349A (en) Multimedia file playing method and device and electronic equipment
CN115623275A (en) Subtitle display method and display equipment
CN112019858B (en) Video playing method and device, computer equipment and storage medium
US8538235B2 (en) Reproducing device, reproducing method, program and recording medium
CN108156515B (en) Video playing method, smart television and computer readable storage medium
JP6954914B2 (en) Information processing terminals, information processing methods, and programs
CN113038245B (en) Multimedia content playing device and multimedia content playing method

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