Multimedia playing processing method and device, storage medium and electronic device
By employing a pre-caching mechanism and parsing process in network storage devices, the entry configuration information and media data of Blu-ray discs can be quickly obtained, solving the problem of slow Blu-ray disc start-up speed and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN TCL DIGITAL TECH CO LTD
- Filing Date
- 2026-03-11
- Publication Date
- 2026-06-16
Smart Images

Figure CN122226985A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the multimedia field, and in particular to a multimedia playing processing method and device, a storage medium and an electronic device. BACKGROUND
[0002] With the prevalence of network storage devices (NAS) and the increasing demand of users for multimedia, users begin to demand higher resolution, multi-format, multi-scene and other media, and users no longer satisfy with high-definition and ultra-high-definition format media files, but turn to 2K, 4K and other Blu-ray discs, expecting better viewing experience.
[0003] However, higher-specification media resources require higher bandwidth and performance support, and most of the existing market for Blu-ray discs are still based on Blu-ray disc machines and some multifunctional media boxes. When devices compatible with network storage devices process Blu-ray disc (BDMV) media resources, since the Blu-ray disc media resources are high-rate files, slow starting is prone to occur, which seriously affects the user's viewing experience. SUMMARY
[0004] The embodiments of the present application provide a multimedia playing processing scheme, which can effectively improve the starting speed of Blu-ray discs in a network storage device (NAS) environment and improve the user's viewing experience.
[0005] The embodiments of the present application provide the following technical solutions: According to an embodiment of the present application, a multimedia playing processing method comprises: in response to a Blu-ray disc starting instruction, downloading an entry configuration file of a target entry from a Blu-ray disc media resource in a network storage device to a first pre-cache; loading and parsing the entry configuration file from the first pre-cache to obtain entry configuration information; downloading a media data file of the target entry from the Blu-ray disc media resource in the network storage device; parsing the media data file according to the entry configuration information to obtain to-be-played media content, so as to use the to-be-played media content for multimedia playing.
[0006] In some embodiments of the present application, the method further comprises: if the Blu-ray disc starting instruction is not received for the first time, querying whether historical entry configuration information corresponding to the target entry exists in a second pre-cache; if the historical entry configuration information exists, loading the historical entry configuration information from the second pre-cache; and parsing the media data file according to the historical entry configuration information to obtain to-be-played media content.
[0007] In some embodiments of the present application, the loading the history entry configuration information from the second pre-cache comprises: if the history entry configuration information exists, determining whether the history entry configuration information is invalid; and if the history entry configuration information is not invalid, loading the history entry configuration information from the second pre-cache.
[0008] In some embodiments of the present application, the method further comprises: if the history entry configuration information is invalid, performing a cache reset operation to update the history entry configuration information.
[0009] In some embodiments of the present application, the downloading the entry configuration file of the target entry from the Blu-ray disc media resource in the network storage device to the first pre-cache in response to the Blu-ray disc play instruction comprises: if the Blu-ray disc play instruction is received for the first time, downloading the entry configuration file of the target entry from the Blu-ray disc media resource in the network storage device; and caching the entry configuration file to the first pre-cache.
[0010] In some embodiments of the present application, after the loading and parsing the entry configuration file from the first pre-cache to obtain the entry configuration information, the method further comprises: storing the entry configuration information as the history entry configuration information to the second pre-cache.
[0011] In some embodiments of the present application, the downloading the entry configuration file of the target entry from the Blu-ray disc media resource in the network storage device if the Blu-ray disc play instruction is received for the first time comprises: if the Blu-ray disc play instruction is received for the first time, determining whether an effective configuration file of the target entry exists in the first pre-cache; if the effective configuration file does not exist, downloading the entry configuration file of the target entry from the Blu-ray disc media resource in the network storage device; and if the effective configuration file exists, not downloading the entry configuration file of the target entry, and taking the effective configuration file as the entry configuration file.
[0012] According to an embodiment of the present application, a multimedia playing processing apparatus comprises: a pre-cache module, configured to download an entry configuration file of a target entry from a Blu-ray disc media resource in a network storage device to a first pre-cache in response to a Blu-ray disc playing instruction; a configuration parsing module, configured to load and parse the entry configuration file from the first pre-cache to obtain entry configuration information; a data downloading module, configured to download a media data file of the target entry from the Blu-ray disc media resource in the network storage device; and a media parsing module, configured to parse the media data file according to the entry configuration information to obtain to-be-played media content, and perform multimedia playing using the to-be-played media content.
[0013] According to another embodiment of the present application, a storage medium has a computer program stored thereon, and when the computer program is executed by a processor of an electronic device, the electronic device performs the method provided in the embodiments of the present application.
[0014] According to another embodiment of the present application, an electronic device can comprise: a memory, configured to store a computer program; and a processor, configured to read the computer program stored in the memory to perform the method provided in the embodiments of the present application.
[0015] According to another embodiment of the present application, a computer program product or a computer program comprises computer instructions stored in a computer readable storage medium. A processor of an electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the electronic device perform the method provided in various optional implementation manners of the embodiments of the present application.
[0016] In the embodiments of the present application, in response to a Blu-ray disc playing instruction, an entry configuration file of a target entry is downloaded from a Blu-ray disc media resource in a network storage device to a first pre-cache; the entry configuration file is loaded and parsed from the first pre-cache to obtain entry configuration information; a media data file of the target entry is downloaded from the Blu-ray disc media resource in the network storage device; and the media data file is parsed according to the entry configuration information to obtain to-be-played media content, and multimedia playing is performed using the to-be-played media content.
[0017] In this way of the embodiment of the present application, after receiving the Blu-ray disc starting instruction, the target entry configuration file is downloaded from the Blu-ray disc media resource in the network storage device to the first pre-cache in advance through the pre-cache mechanism, the entry configuration file is loaded from the first pre-cache and parsed, and the entry configuration information is obtained quickly. Further, the media data file of the target entry is downloaded and parsed according to the aforementioned entry configuration information, and the media content to be played for starting is obtained quickly, and the multimedia is played using the media content, and the Blu-ray program can be started from the first media picture quickly. Further, through the pre-cache mechanism and the separation of the Blu-ray parsing process into the configuration parsing and the media stream parsing processes, the starting speed of the Blu-ray disc in the network storage device (NAS) environment is improved effectively, and the user's viewing experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0019] Figure 1 A flowchart of a multimedia playing processing method according to an embodiment of the present application is shown.
[0020] Figure 2 An architecture diagram of a multimedia playing processing system according to an embodiment of the present application is shown.
[0021] Figure 3 A flowchart of a multimedia playing processing method applied in a scenario according to an embodiment of the present application is shown.
[0022] Figure 4 A block diagram of a multimedia playing processing apparatus according to an embodiment of the present application is shown.
[0023] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0024] The present disclosure will be further described in detail below with reference to the drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and not to limit the present disclosure. In addition, the embodiments provided below are used to implement part of the present disclosure, and the technical solutions described in the embodiments of the present disclosure can be combined in any manner without conflict.
[0025] It should be noted that, in the embodiments of this disclosure, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a method or apparatus that includes a list of elements includes not only the elements expressly described, but also other elements not expressly listed, or elements inherent to implementing the method or apparatus. Without further limitations, an element defined by the phrase "comprising a..." does not exclude the presence of other related elements (e.g., steps in the method or units in the apparatus; for example, a unit may be a portion of circuitry, a portion of a processor, a portion of a program or software, etc.) in the method or apparatus that includes that element.
[0026] For example, the multimedia playback processing method provided in this disclosure includes a series of steps, but the multimedia playback processing method provided in this disclosure is not limited to the steps described. Similarly, the multimedia playback processing apparatus provided in this disclosure includes a series of units, but the apparatus provided in this disclosure is not limited to the units explicitly described, but may also include units that need to be set up for obtaining relevant information or processing based on information.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure.
[0028] It is understood that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0029] With the rise of Network Attached Storage (NAS) devices and the increasing demand for multimedia, users are demanding higher resolution, more diverse formats, and more versatile media. They are no longer satisfied with high-definition and ultra-high-definition media files and are turning to 2K and 4K Blu-ray discs for a better viewing experience. However, these increasingly higher-specification media resources require greater bandwidth and performance. Currently, most Blu-ray disc playback on the market is still based on Blu-ray disc players and some multi-functional media boxes. When these network-attached storage devices process Blu-ray disc (BDMV) media resources, which are typically high-bitrate files, slow playback is common, severely impacting the user's viewing experience.
[0030] To address these issues, this application provides a multimedia playback processing solution that can effectively improve the startup speed of Blu-ray discs in a network storage device (NAS) environment and enhance the user's viewing experience.
[0031] The following is a detailed description of relevant embodiments of the multimedia playback processing solution provided in this application.
[0032] Figure 1 A flowchart illustrating an embodiment of an air conditioning control method according to this application is shown. The entity executing the air conditioning control method may be an electronic device with processing capabilities, including but not limited to televisions, mobile phones, tablets, XR / VR devices, computers, smartwatches, in-vehicle devices, and other devices compatible with network storage devices.
[0033] like Figure 1 As shown, the multimedia playback processing method may include steps S110 to S140.
[0034] Step S110: In response to the Blu-ray disc playback command, download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device to the first pre-cache; Step S120: Load and parse the entry configuration file from the first pre-cache to obtain the entry configuration information; Step S130: Download the media data file of the target entry from the Blu-ray disc media resources in the network storage device; Step S140: Parse the media data file according to the entry configuration information to obtain the media content to be played, and use the media content to be played for multimedia playback.
[0035] See Figure 2 A multimedia playback processing system 200 in a network storage device (NAS) environment may include an electronic device 210 and a network storage device (NAS) 220, and the electronic device 210 and the network storage device (NAS) 220 may transmit data between each other via a local area network.
[0036] The network storage device 220 can store Blu-ray disc media resources. These resources can include multiple Blu-ray standard entries (i.e., Blu-ray programs, such as movies and TV series). Each entry's media resource can include an entry configuration file and a media data file. The entry configuration file can store entry configuration information such as playback order, chapter divisions, and video segment encoding parameters. The media data file can be a file that encapsulates and stores the original media data streams (such as video data streams, audio data streams, and subtitle data streams).
[0037] After receiving the Blu-ray disc playback command, electronic device 210 does not immediately download all Blu-ray disc media resources or all entry configuration files for multiple entries. Instead, it uses a pre-caching mechanism to quickly download the entry configuration file of the target entry from the Blu-ray disc media resources in network storage device 220 and pre-caches it, storing the entry configuration file of the target entry in the first pre-cache (cache1) 211. Then, it loads and parses (i.e., configures) the entry configuration file from the first pre-cache 211 to quickly obtain the entry configuration information.
[0038] The Blu-ray disc start command can be an instruction to begin playing a Blu-ray program. The target entry can be an entry specified in the Blu-ray disc start command or a default start entry. The entry configuration file can include a first configuration file and a second configuration file. The first configuration file (such as an MPLS file) can store dynamic entry configuration information such as playback order, chapter division, and multi-angle switching. The second configuration file (such as a CLIP file) can store static entry configuration information such as encoding parameters, timestamp mapping, and audio track configuration for video segments under the entry.
[0039] Furthermore, the media data file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device 220. The media data file is then parsed according to the aforementioned entry configuration information (i.e., media stream parsing, which may include demultiplexing, decoding, and rendering processes) to obtain the media content to be played (i.e., the decoded audio data and rendered video frames obtained after decoding and rendering). This media content is then played via a media player, allowing Blu-ray programs to begin playing from the first media frame.
[0040] Traditional Blu-ray format parsing typically involves parsing the media resource holistically. However, in this embodiment, as described above, the Blu-ray format parsing process is broken down into configuration parsing and media stream parsing processes, based on a pre-caching mechanism. This accelerates the acquisition of the media content to be played for playback.
[0041] In addition, the aforementioned playback processing steps were first applied to the target item, improving the startup speed of Blu-ray discs. After pre-caching the item configuration file of the target item, the item configuration files of the remaining items (excluding the target item) can be downloaded as needed, and the media data files of other items can be downloaded when playback is required, for multimedia playback of other items.
[0042] In this embodiment of the application, after receiving the Blu-ray disc playback command, a pre-caching mechanism is used to quickly download the target entry's configuration file from the Blu-ray disc media resources in the network storage device to the first pre-cache. The configuration file is then loaded from the first pre-cache and parsed to quickly obtain the entry configuration information. Further, the media data file of the target entry is downloaded and media stream parsing is performed based on the aforementioned entry configuration information, thereby quickly obtaining the media content to be played. Using this media content for multimedia playback allows for rapid playback of the Blu-ray program starting from the first frame. Therefore, by using the pre-caching mechanism and splitting the Blu-ray parsing process into the aforementioned configuration parsing and media stream parsing processes, the overall playback speed of Blu-ray discs in a network storage device (NAS) environment is effectively improved, enhancing the user's viewing experience.
[0043] The following description Figure 1 Further optional specific embodiments are provided for each step performed during multimedia playback processing in the example implementation.
[0044] In one embodiment of this application, steps S110 to S140 can be executed regardless of whether a Blu-ray disc playback command is received for the first time. That is, regardless of whether a Blu-ray disc playback command is received for the first time, the entry configuration file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device to the first pre-cache; the entry configuration file is loaded and parsed from the first pre-cache to obtain entry configuration information; the media data file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device; and the media data file is parsed according to the entry configuration information to obtain the media content to be played, so as to use the media content to be played for multimedia playback.
[0045] Furthermore, in another embodiment of this application, step S110, in response to the Blu-ray disc start-up command, downloading the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device to the first pre-cache may include: if the Blu-ray disc start-up command is received for the first time, downloading the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device; and caching the entry configuration file to the first pre-cache.
[0046] That is, upon receiving a Blu-ray disc playback command, the system first determines whether it is the first time such a command has been received. If it is the first time, the system downloads the target entry's configuration file from the Blu-ray disc media resources in the network storage device and caches the configuration file in the first pre-cache. Then, steps S120 to S140 can be executed to perform multimedia playback.
[0047] Furthermore, in one embodiment, if a Blu-ray disc playback command is received for the first time, downloading the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device may include: if a Blu-ray disc playback command is received for the first time, determining whether a valid configuration file of the target entry exists in the first pre-cache; if no valid configuration file exists, downloading the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device; if a valid configuration file exists, not downloading the entry configuration file of the target entry, and using the valid configuration file as the entry configuration file of the target entry.
[0048] Upon receiving the Blu-ray disc playback command for the first time, the system first checks whether a valid configuration file for the target entry exists in the first pre-cache. If a valid configuration file exists, the system does not download the target entry's configuration file and uses the valid configuration file as the target entry's configuration file. This allows the system to directly and efficiently load and parse the valid configuration file from the first pre-cache, further improving the playback speed.
[0049] The valid configuration file can be "the latest version of the target entry's configuration file downloaded by the electronic device from the network storage device before the first Blu-ray disc playback command is received". For example, if the user sets the Blu-ray disc playback command to be triggered at time B at time A, the electronic device downloads the latest version of the target entry's configuration file from the network storage device before time B and caches this latest version of the configuration file as the valid configuration file in the first pre-cache.
[0050] Furthermore, in one embodiment, after executing step S120 to load and parse the entry configuration file from the first pre-cache to obtain the entry configuration information, the method may further include: storing the entry configuration information as historical entry configuration information in the second pre-cache.
[0051] The configuration information of the first parsed entry is stored as historical entry configuration information in the second pre-cache. When a Blu-ray disc playback command is received in subsequent instances, the historical entry configuration information can be quickly retrieved directly from the second pre-cache and used to parse the media data file.
[0052] Furthermore, in one embodiment, it may also include: if the Blu-ray disc playback command is not received for the first time, querying the second pre-cache for the existence of historical entry configuration information corresponding to the target entry; if historical entry configuration information exists, loading the historical entry configuration information from the second pre-cache; and parsing the media data file according to the historical entry configuration information to obtain the media content to be played.
[0053] In other words, if the Blu-ray disc playback command is not received for the first time (e.g., the second time), the system checks the second pre-cache for historical entry configuration information corresponding to the target entry. If historical entry configuration information exists, it can be quickly loaded from the second pre-cache; and the media data file is parsed based on the historical entry configuration information to quickly obtain the media content to be played. This allows for faster playback of the Blu-ray program starting from the first frame.
[0054] The historical entry configuration information can be "entry configuration information pre-cached in the second pre-cache before the Blu-ray disc playback command was received this time". For example, when the Blu-ray disc playback command is received for the first time or in other previous times, the entry configuration file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device to the first pre-cache. After loading and parsing the entry configuration file from the first pre-cache to obtain the entry configuration information, the parsed entry configuration information is further cached in the second pre-cache as historical entry configuration information.
[0055] Furthermore, in one embodiment, if historical entry configuration information exists, loading the historical entry configuration information from the second pre-cache may include: if historical entry configuration information exists, determining whether the historical entry configuration information has expired; if the historical entry configuration information has not expired, loading the historical entry configuration information from the second pre-cache.
[0056] If historical entry configuration information exists, first determine whether the historical entry configuration information is invalid. If the historical entry configuration information is not invalid, load the historical entry configuration information from the second pre-cache, which can ensure that the media data file can be successfully and reliably parsed based on the historical entry configuration information.
[0057] Furthermore, in one embodiment, it may also include: if the historical entry configuration information becomes invalid, performing a cache reset operation to update the historical entry configuration information.
[0058] If the historical entry configuration information becomes invalid, a cache reset operation is performed to update the historical entry configuration information, so that the media data file can be successfully and reliably parsed based on the updated historical entry configuration information.
[0059] Specifically, determining whether the historical entry configuration information has expired may include: if the historical entry configuration information is cached in the second pre-cache for a period exceeding a predetermined period, and / or if the version corresponding to the historical entry configuration information is the latest version, then the historical entry configuration information is determined to be valid; otherwise, the historical entry configuration information is determined to be invalid.
[0060] Specifically, performing a cache reset operation to update historical entry configuration information may include: downloading the latest entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device and updating the old entry configuration file in the first pre-cache; loading and parsing the latest entry configuration file from the first pre-cache to obtain the latest entry configuration information; and further updating the cache in the second pre-cache with the latest entry configuration information as the updated historical entry configuration information.
[0061] To facilitate better implementation of the multimedia playback processing method provided in the embodiments of this application, the above embodiments are further described below with reference to a multimedia playback processing flow in a specific scenario. In this scenario, multimedia playback processing is performed by comprehensively applying the aforementioned embodiments of this application. (See attached document for details.) Figure 3 The multimedia playback processing flow in this scenario may include steps S310 to S3110.
[0062] Step S310, Start Playback, i.e., "Receive Blu-ray disc start playback command".
[0063] Step S320: Determine if it is the first time, i.e., "determine if the Blu-ray disc playback command has been received for the first time". If yes, proceed to step S330; otherwise, execute step S3120.
[0064] Step S330: Check if the file information exists, i.e., "If it is the first time a Blu-ray disc playback command has been received, determine if a valid configuration file for the target entry exists in the first pre-cache cache1". If yes, proceed to step S340; otherwise, proceed to step S350.
[0065] Step S340: Read the file. This means "loading the entry configuration file from the first pre-cache cache1 into the configuration parser." Specifically, "if a valid configuration file exists, the entry configuration file for the target entry is not downloaded, and the valid configuration file is used as the entry configuration file for the target entry."
[0066] Step S350: Download file. That is, "If no valid configuration file exists, download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device to the first pre-cache cache1", and then proceed to step S360.
[0067] Step S360 involves configuring the parser to parse the entry configuration file and obtain the entry configuration information.
[0068] The entry configuration file can include a first configuration file and a second configuration file. The first configuration file (such as an MPLS file) can store dynamic entry configuration information such as playback order, chapter division, and multi-angle switching. The second configuration file (such as a CLIP file) can store static entry configuration information such as encoding parameters of video segments (including encoding parameters of video stream, audio stream, and subtitle stream), timestamp mapping, and audio track configuration. The configuration parser can parse the first and second configuration files to obtain the entry configuration information.
[0069] Step S370: Store the entry configuration information as historical entry configuration information in the second pre-cache cache2.
[0070] Step S380: Parse the first play video segment (First Play Title). The entry configuration information may include the playback order, which determines the first play video segment for the target entry.
[0071] Step S390: Read the transport stream data packet, i.e., "download the media data file of the target entry from the Blu-ray disc media resources in the network storage device".
[0072] In one approach, when downloading the media data file of the target entry, the media data file of the aforementioned "first-run video segment 1" under the target entry can be downloaded first, and the media data files of the "remaining video segments" under the target entry can be downloaded later according to the actual situation such as the playback progress. In another approach, when downloading the media data file of the target entry, the media data files of "all video segments" under the target entry can be downloaded together.
[0073] Among them, media data files can be files that encapsulate and store the original media data streams (such as video data streams, audio data streams, and subtitle data streams) (such as m2ts files).
[0074] Steps S380, S3100, and S3110 parse the media data file according to the entry configuration information to obtain the media content to be played, and then use the media content to be played for multimedia playback. In step S380, the first video segment to be played under the target entry can be determined based on the playback order in the entry configuration information.
[0075] Step S3100, Demultiplexing. This involves splitting the media data file of "First Playback Video Segment 1" into independent raw data streams such as video data stream, audio data stream, and subtitle data stream. The media data files of "Remaining Video Segments" under the target entry can be further demultiplexed later according to the playback progress.
[0076] Step S3110: Decode and render to obtain the media content to be played for "first broadcast video segment 1" (that is, the decoded audio data and rendered video frames obtained after decoding and rendering).
[0077] Specifically, based on the video stream parameters (such as encoding format, resolution, etc.) of the first-run video segment 1 in the entry configuration information, the video data stream is decoded to obtain decoded video frames (e.g., restoring the H.264 / HEVC video data stream to YUV video frames); based on the audio stream parameters (such as encoding type, sampling rate, etc.) of the first-run video segment 1 in the entry configuration information, the audio data stream is decoded to obtain decoded audio data (e.g., decoding the AC3 type audio data stream to PCM format decoded audio data); and the letters in the subtitle data stream are rendered onto the decoded video frames to obtain rendered video frames.
[0078] After decoding and rendering the media content to be played (i.e., the decoded audio data and rendered video frames obtained after decoding and rendering), the player can align the decoded audio data and rendered video frames of the media content to be played and then play it, thus starting the Blu-ray program from the first frame of the media screen. The "remaining video segments" under the target item can be decoded, rendered, and played later according to the playback progress. The player can also seamlessly splice together multiple video segments of media content to be played in sequence.
[0079] Step S3120: Check the configuration information in cache2. Specifically, if this is not the first time a Blu-ray disc playback command has been received, check the second pre-cache for the existence of historical entry configuration information corresponding to the target entry. If historical entry configuration information exists, load it from the second pre-cache so that the media data file can be parsed to obtain the media content to be played later. Loading historical entry configuration information from the second pre-cache may include: if historical entry configuration information exists, determining whether the historical entry configuration information is invalid; if the historical entry configuration information is not invalid, loading it from the second pre-cache; if the historical entry configuration information is invalid, performing a cache reset operation to update the historical entry configuration information.
[0080] In this scenario, by applying the aforementioned embodiments of this application, at least the following beneficial effects are achieved: through the pre-caching mechanism and by splitting the Blu-ray parsing process into the above-mentioned configuration parsing and media stream parsing processes, the overall playback speed of Blu-ray discs in the network storage device (NAS) environment is effectively improved, thereby enhancing the user's viewing experience.
[0081] To facilitate better implementation of the multimedia playback processing method provided in the embodiments of this application, the embodiments of this application also provide a multimedia playback processing apparatus based on the above-described multimedia playback processing method. The meanings of the terms used are the same as in the above-described multimedia playback processing method, and specific implementation details can be found in the descriptions in the method embodiments. Figure 4 A block diagram of a multimedia playback processing apparatus according to an embodiment of this application is shown.
[0082] like Figure 4 As shown, the multimedia playback processing device 400 may include: a pre-caching module 410, which can be used to: download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device to the first pre-caching in response to the Blu-ray disc playback command; a configuration parsing module 420, which can be used to: load and parse the entry configuration file from the first pre-caching to obtain entry configuration information; a data download module 430, which can be used to: download the media data file of the target entry from the Blu-ray disc media resources in the network storage device; and a media parsing module 440, which can be used to: parse the media data file according to the entry configuration information to obtain the media content to be played, so as to use the media content to be played for multimedia playback.
[0083] In some embodiments of this application, the configuration parsing module 420 can be used to: if the Blu-ray disc playback command is not received for the first time, query the second pre-cache for whether there is historical entry configuration information corresponding to the target entry; if the historical entry configuration information exists, load the historical entry configuration information from the second pre-cache; the media parsing module 440 can be used to: parse the media data file according to the historical entry configuration information to obtain the media content to be played.
[0084] In some embodiments of this application, when loading the historical entry configuration information from the second pre-cache if the historical entry configuration information exists, the configuration parsing module 420 can be used to: determine whether the historical entry configuration information is invalid if the historical entry configuration information exists; and load the historical entry configuration information from the second pre-cache if the historical entry configuration information is not invalid.
[0085] In some embodiments of this application, the configuration parsing module 420 can be used to: if the historical entry configuration information is invalid, perform a cache reset operation to update the historical entry configuration information.
[0086] In some embodiments of this application, when the entry configuration file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device to the first pre-cache in response to the Blu-ray disc start-up command, the pre-cache module 410 may be used to: if the Blu-ray disc start-up command is received for the first time, download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device; and cache the entry configuration file to the first pre-cache.
[0087] In some embodiments of this application, after loading and parsing the entry configuration file from the first pre-cache to obtain entry configuration information, the apparatus further includes a configuration cache module for: storing the entry configuration information as historical entry configuration information in the second pre-cache.
[0088] In some embodiments of this application, when downloading the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device if the Blu-ray disc playback command is received for the first time, the pre-caching module 410 can be used to: determine whether a valid configuration file of the target entry exists in the first pre-caching if the Blu-ray disc playback command is received for the first time; if the valid configuration file does not exist, download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device; if the valid configuration file exists, do not download the entry configuration file of the target entry, and use the valid configuration file as the entry configuration file.
[0089] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0090] Furthermore, embodiments of this application also provide an electronic device, such as... Figure 5 As shown, Figure 5 A block diagram of an electronic device according to an embodiment of this application is shown, specifically: The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 501 is the control center of the electronic device, connecting various parts of the computer device via various interfaces and lines. It executes software programs and / or modules stored in the memory 502, and calls data stored in the memory 502, to perform various functions of the computer device and process data. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user page, and application programs, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.
[0091] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0092] The electronic device also includes a power supply 503 that supplies power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0093] The electronic device may also include an input unit 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0094] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device can load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 runs the computer programs stored in the memory 502, thereby realizing the various functions in the foregoing embodiments of this application.
[0095] For example, processor 501 can execute the following: in response to a Blu-ray disc playback command, download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device to a first pre-cache; load and parse the entry configuration file from the first pre-cache to obtain entry configuration information; download the media data file of the target entry from the Blu-ray disc media resources in the network storage device; parse the media data file according to the entry configuration information to obtain media content to be played, so as to use the media content to be played for multimedia playback.
[0096] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0097] Therefore, embodiments of this application also provide a storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the methods provided in embodiments of this application.
[0098] The storage medium can be a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0099] Since the computer program stored in the storage medium can execute the steps of any of the methods provided in the embodiments of this application, the beneficial effects that the methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0100] According to another embodiment of this application, a computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various optional implementations described in the embodiments of this application.
[0101] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0102] It should be understood that this application is not limited to the embodiments described above and shown in the accompanying drawings, but various modifications and changes can be made without departing from its scope.
Claims
1. A multimedia playback processing method, characterized in that, include: In response to the Blu-ray disc playback command, the entry configuration file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device to the first pre-cache; Load and parse the entry configuration file from the first pre-cache to obtain entry configuration information; Download the media data file of the target entry from the Blu-ray disc media resources in the network storage device; The media data file is parsed according to the entry configuration information to obtain the media content to be played, and the media content to be played is used for multimedia playback.
2. The method according to claim 1, characterized in that, The method further includes: If the Blu-ray disc playback command is not received for the first time, the system checks the second pre-cache to see if there is historical entry configuration information corresponding to the target entry. If the historical entry configuration information exists, then the historical entry configuration information is loaded from the second pre-cache; The media data file is parsed based on the historical entry configuration information to obtain the media content to be played.
3. The method according to claim 2, characterized in that, If the historical entry configuration information exists, loading the historical entry configuration information from the second pre-cache includes: If the historical entry configuration information exists, determine whether the historical entry configuration information has expired; If the historical entry configuration information is not expired, then the historical entry configuration information is loaded from the second pre-cache.
4. The method according to claim 3, characterized in that, The method further includes: If the historical entry configuration information becomes invalid, a cache reset operation is performed to update the historical entry configuration information.
5. The method according to claim 2, characterized in that, The step of responding to a Blu-ray disc playback command by downloading the target entry's configuration file from the Blu-ray disc media resources in the network storage device to the first pre-cache includes: If the Blu-ray disc playback command is received for the first time, the entry configuration file of the target entry is downloaded from the Blu-ray disc media resources in the network storage device. The entry configuration file is cached in the first pre-cache.
6. The method according to claim 5, characterized in that, After loading and parsing the entry configuration file from the first pre-cache to obtain the entry configuration information, the method further includes: The entry configuration information is stored as the historical entry configuration information in the second pre-cache.
7. The method according to claim 5, characterized in that, If the Blu-ray disc playback command is received for the first time, the entry configuration file for the target entry is downloaded from the Blu-ray disc media resources in the network storage device, including: If the Blu-ray disc playback command is received for the first time, it is determined whether a valid configuration file for the target entry exists in the first pre-cache. If the valid configuration file does not exist, the entry configuration file for the target entry is downloaded from the Blu-ray disc media resources in the network storage device. If a valid configuration file exists, the entry configuration file for the target entry will not be downloaded, and the valid configuration file will be used as the entry configuration file.
8. A multimedia playback processing device, characterized in that, include: The pre-caching module is used to: in response to a Blu-ray disc playback command, download the entry configuration file of the target entry from the Blu-ray disc media resources in the network storage device to the first pre-caching; The configuration parsing module is used to: load and parse the entry configuration file from the first pre-cache to obtain entry configuration information; The data download module is used to: download the media data file of the target entry from the Blu-ray disc media resources in the network storage device; The media parsing module is used to: parse the media data file according to the entry configuration information to obtain the media content to be played, so as to use the media content to be played for multimedia playback.
9. A storage medium, characterized in that, It stores a computer program that, when executed by the processor of the electronic device, causes the electronic device to perform the method described in any one of claims 1 to 7.
10. An electronic device, characterized in that, include: Memory, which stores computer programs; A processor reads a computer program stored in memory to perform the method described in any one of claims 1 to 7.