Media processing method and device, equipment and medium
By adopting a hierarchical storage system in complex media content generated by users, the media content is stored in multiple storage spaces in segments, which solves the problems of interface latency and network bandwidth increase caused by the upper limit of the capacity of a single storage space, and improves the efficiency and stability of media playback.
Patent Information
- Application Number
- CN202311235150.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-03-25
AI Technical Summary
When storing complex media content generated by users, a single storage space is prone to reach the upper capacity limit, resulting in problems such as interface latency, increased network bandwidth and long-term resolution.
A hierarchical storage system is used to store media content in segments in multiple storage spaces. In response to the display trigger operation of the target media, the first segment data is obtained from the first storage space and displayed; for the display of the target media segment, the second segment data is retrieved and displayed in the second storage space and the third storage space based on the media identification and location information.
Through the use of a hierarchical storage system, the interface delay, network bandwidth increase and parsing time-consuming problems caused by acquiring full data is avoided, and the efficiency and stability of media playback are improved.
Smart Images

Figure CN119691202A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of media technology, and in particular to a media processing method, device, equipment and medium. Background Art
[0002] With the development of media technology, the media content generated by users is becoming more and more complex. For example, the media content may include multiple videos and multiple images, and the amount of data is also increasing.
[0003] In the related art, the storage of complex media content is solved by storing the media content in additional storage space when the existing storage capacity is insufficient. However, this method may cause interface delays, increase network bandwidth, and time-consuming parsing when displaying the media content. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a media processing method, device, equipment and medium.
[0005] The present disclosure provides a media processing method, the method comprising:
[0006] In response to a display triggering operation on a target media, obtaining first segmented data of the target media from a first storage space and displaying the first segmented data;
[0007] In response to a display trigger operation for a target media segment in the target media, second segmented data is searched in a second storage space and a third storage space based on the media identifier of the target media and the location information of the target media segment in the target media, and the second segmented data is displayed, wherein the second segmented data is the segmented data after the first segmented data in the target media.
[0008] The present disclosure also provides a media processing device, the device comprising:
[0009] A first display module, configured to, in response to a display triggering operation on a target media, obtain first segmented data of the target media from a first storage space and display the first segmented data;
[0010] A second display module is used to respond to a display trigger operation on a target media segment in the target media, search in a second storage space and a third storage space based on the media identifier of the target media and the location information of the target media segment in the target media to obtain second segmented data, and display the second segmented data, wherein the second segmented data is the segmented data after the first segmented data in the target media.
[0011] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the media processing method provided by the embodiment of the present disclosure.
[0012] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the media processing method provided by the embodiment of the present disclosure.
[0013] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art: the media processing solution provided by the embodiments of the present disclosure, in response to a display trigger operation on the target media, obtains the first segmented data of the target media from the first storage space and displays the first segmented data; in response to a display trigger operation on the target media segment in the target media, searches the second storage space and the third storage space for the second segmented data based on the media identifier of the target media and the location information of the target media segment in the target media, and displays the second segmented data, wherein the second segmented data is the segmented data after the first segmented data in the target media. By adopting the above technical solution, when the target media is triggered for display, the first segmented data can be obtained from the first storage space for display. When the user triggers the target media segment thereafter, the second segmented data can be searched and obtained in the second storage space and the third storage space based on the location information of the target media segment in the target media and displayed. By storing partial data of the media in different storage spaces, the storage problem when the single storage of the media reaches its capacity limit is solved. In addition, the split storage of the media makes it possible to obtain the required segmented data on demand when the media is displayed, avoiding the interface delay, increased network bandwidth and time-consuming parsing caused by obtaining the full amount of data, thereby improving the efficiency and stability of media playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0015] Figure 1 A flow chart of a media processing method provided by an embodiment of the present disclosure;
[0016] Figure 2 A flowchart of another media processing method provided by an embodiment of the present disclosure;
[0017] Figure 3 A schematic diagram of media processing provided by an embodiment of the present disclosure;
[0018] Figure 4 A schematic diagram of another media processing provided by an embodiment of the present disclosure;
[0019] Figure 5 A structural schematic diagram of a media processing device provided by an embodiment of the present disclosure;
[0020] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0022] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0023] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0024] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0025] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0026] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0027] The existing storage of media has an upper limit. When the content included in the media is complex, the field content that needs to be stored exceeds the upper limit. The related technology solves this problem by storing the media content in an additional storage space. However, this method has the following problems: when displaying media content, it will cause an increase in interface delays and put great pressure on the database; due to the large amount of media data, requesting media will put pressure on the network bandwidth, while increasing the server's return time and the client's parsing time, which will increase the user's waiting time.
[0028] In order to solve the above problems, the embodiments of the present disclosure provide an image clarity recognition method, which is introduced below in conjunction with specific embodiments.
[0029] Figure 1 The following is a flow chart of a media processing method provided by an embodiment of the present disclosure. The method can be executed by a media processing device, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method includes:
[0030] Step 101 : In response to a display triggering operation on a target media, first segment data of the target media is acquired from a first storage space and the first segment data is displayed.
[0031] Among them, the target media can be a media obtained by combining or merging complex contents such as videos, images, texts, stickers, and labels. The content of the target media is complex and the data volume is large. In the disclosed embodiment, the target media may include multiple media segments, each of which may be a video or an image, and each media segment may include stickers, labels, and text, etc. Stickers may include multiple types, for example, they may include information stickers and non-information stickers. Information stickers can be used for decoration, and non-information stickers can be used for voting, location, etc., which are only examples. The display trigger operation of the target media may include gesture control operations (such as clicking, long pressing, double-clicking, etc.) and voice control operations on the target media, and the disclosed embodiment does not limit this.
[0032] The first storage space can be an existing storage space of the target media, as a primary storage in a hierarchical storage system, for example, the first storage space can be a storage field, which can be an item_info field, and the storage space is limited. The first segmented data can be the part of the data in the target media with the highest probability of user display, and the first segmented data includes a first preset number of media pieces in the target media, and the first preset number of media segments are the first n media segments in the target media in the order of playback time, where n>0. The first preset number n can be set according to actual conditions, for example, it can be set according to the number of media segments displayed by users according to statistics, for example, if the statistical result is that 90% of users will only watch the first ten media segments, then the first preset number can be set to 10, that is, the first segmented data is the first ten media segments of the target media.
[0033] After receiving the user's display trigger operation on the target media, the media processing device can obtain the first segmented data of the target media from the first storage space and display the first segmented data. Since the first segmented data is the data that most users access frequently, by storing, obtaining and displaying in the first storage space, the display needs of most users can be met.
[0034] Step 102, in response to a display trigger operation on a target media segment in a target media, searching in a second storage space and a third storage space to obtain second segmented data based on a media identifier of the target media and location information of the target media segment in the target media, and displaying the second segmented data, wherein the second segmented data is segmented data after the first segmented data in the target media.
[0035] The target media segment may be a media segment whose playback time point is after the first segment data in the target media, and the number of the target media segments may be one or more. The media identifier may be identification information that uniquely represents the target media, called item_id, and may be represented by letters or numbers. The position information of the target media segment in the target media may be the specific sorting position of the target media segment after sorting the multiple media segments included in the target media according to the playback time point, that is, the media segment number.
[0036] The second storage space and the third storage space can be two newly added storage spaces, specifically two external storage spaces, the second storage space serves as the secondary storage in the hierarchical storage system, and the third storage space serves as the tertiary storage in the hierarchical storage system. The second storage space is used to store the media identifier of the target media and the segment identifier of each media segment included in the target media. The second storage space can store data in the form of a linked list, and the linked list can link the order of different data through a pointer, that is, a data in the link can additionally store a pointer to the next data. The third storage space is used to store the specific data of multiple media segments included in the target media, and is stored in a key-value pair manner.
[0037] The second segmented data may be segmented data after the first segmented data in the target media. The second segmented data may include a second preset number of media segments starting from the target media segment. The second preset number may be set according to actual conditions. The second preset number may be the same as or different from the first preset number mentioned above. For example, the second preset number may be set to 10.
[0038] In some embodiments of the present disclosure, searching in the second storage space and the third storage space to obtain second segmented data based on the media identifier of the target media and the location information of the target media segments in the target media may include: obtaining in the second storage space a plurality of segment identifiers corresponding to a plurality of media segments included in the target media according to the media identifier of the target media; obtaining identification information of the second segmented data from the plurality of segment identifiers according to the location information of the target media segments in the target media, wherein the identification information of the second segmented data includes a set of segment identifiers of a second preset number of media segments; and obtaining the second segmented data by searching in the third storage space according to the media identifier of the target media and the identification information of the second segmented data.
[0039] The segment identifier may be an identifier used to uniquely characterize a media segment, which may be called a member. The disclosed embodiment may add a corresponding segment identifier to each media segment and store the media identifier of the target media and each segment identifier in a second storage space for subsequent use.
[0040] When acquiring the second segmented data, the media processing device can first search in the second storage space according to the media identifier of the target media, obtain the corresponding segment identifier of each media segment, and obtain multiple segment identifiers; then, it can extract from the multiple segment identifiers according to the position information of the target media segment in the target media, and extract the segment identifiers of the second preset number of media segments starting from the target media segment to obtain the second preset number of segment identifiers, which are combined into the identification information of the second segmented data; then, according to the media identifier of the target media and the identification information of the second segmented data, search in the third storage space to obtain the second segmented data, that is, the second preset number of media segments starting from the target media segment.
[0041] Optionally, the second segmented data is obtained by searching in the third storage space according to the media identifier of the target media and the identification information of the second segmented data, including: combining the media identifier of the target media with each segment identifier in the identification information of the second segmented data to obtain keywords, thereby obtaining a second preset number of keywords; based on the second preset number of keywords, obtaining a corresponding second preset number of media segments in the third storage space, and determining the second preset number of media segments as the second segmented data.
[0042] When the media processing device searches in the third storage space, it can combine the media identifier of the target media with each segment identifier in the identification information of the second segmented data to obtain a keyword (key), and then search and obtain the corresponding media segment in the third storage space based on the keyword, and then obtain the corresponding second preset number of media segments based on the second preset number of keywords, and then obtain the second segmented data and display the second segmented data.
[0043] The media processing scheme provided by the embodiment of the present disclosure, in response to the display trigger operation of the target media, obtains the first segmented data of the target media from the first storage space and displays the first segmented data; in response to the display trigger operation of the target media segment in the target media, searches and obtains the second segmented data in the second storage space and the third storage space based on the media identifier of the target media and the location information of the target media segment in the target media, and displays the second segmented data, wherein the second segmented data is the segmented data after the first segmented data in the target media. With the above technical scheme, when the target media is triggered to be displayed, the first segmented data can be obtained from the first storage space for display, and when the user triggers the target media segment after that, the second segmented data can be searched and obtained in the second storage space and the third storage space based on the location information of the target media segment in the target media and displayed. By storing partial data of the media in different storage spaces respectively, the storage problem when the single storage of the media reaches the upper limit of the capacity is solved, and the split storage of the media enables the required segmented data to be obtained on demand when the media is displayed, avoiding the interface delay, network bandwidth increase and time-consuming parsing caused by obtaining the full amount of data, and improving the efficiency and stability of media playback.
[0044] For example, Figure 2 This is a flow chart of another media processing method provided by an embodiment of the present disclosure. In a feasible implementation manner, the media processing method of the present disclosure may further include:
[0045] Step 201: In response to a storage operation on a target medium, determine the number of media segments included in the target medium.
[0046] The target media of the embodiment of the present disclosure may be a combination of multiple media segments, each of which may be a video or an image, and each of which supports editing, for example, stickers, labels, and text may be added.
[0047] After the user obtains the target media through editing, a storage operation for the target media may be triggered. After receiving the storage operation for the target media, the media processing device may first determine the number of media segments included in the target media.
[0048] Step 202: Store the target media in a hierarchical storage system based on the number of segments, wherein the hierarchical storage system includes a first storage space, a second storage space, and a third storage space.
[0049] Among them, the hierarchical storage system can be a storage system including multiple levels of storage. The embodiment of the present disclosure takes the hierarchical storage system including three levels of storage as an example, which are the first storage space, the second storage space and the third storage space. The first storage space can be the existing storage space of the target media, as the first-level storage in the hierarchical storage system, the second storage space as the second-level storage in the hierarchical storage system, and the third storage space as the third-level storage in the hierarchical storage system. The second storage space is used to store the media identifier of the target media and the segment identifier of each media segment included in the target media, and the third storage space is used to store the specific data of the multiple media segments included in the target media.
[0050] In some embodiments, storing the target media in a hierarchical storage system based on the number of fragments may include: if the number of fragments is less than or equal to a first preset number, storing the target media in a first storage space; if the number of fragments is greater than the first preset number, storing the first segmented data in the target media in the first storage space, and storing the target media in units of media fragments in a second storage space and a third storage space.
[0051] The first preset number may be set according to actual conditions, for example, according to the number of media segments displayed to users according to statistics. For example, if the statistical result shows that 90% of users only watch the first ten media segments, the first preset number may be set to 10. The first segmented data may include a first preset number of media segments with earlier playback time points in the target media.
[0052] After determining the number of media segments included in the target media, the media processing device can compare the number of segments with a first preset number. If the number of segments is less than or equal to the first preset number, all media segments of the target media can be stored in the first storage space; if the number of segments is greater than the first preset number, the first segmented data in the target media can be stored in the first storage space, and the full amount of data of the target media can be stored in the second storage space and the third storage space in units of media segments.
[0053] When the number of media segments is less than the first preset number, they can be directly stored in the existing storage, which can cover most cases and does not affect the interface delay; when the number of media segments is greater than the first preset number, the first preset number of media segments are stored in the existing storage, and the full amount of media segments are stored in the additional storage. When displaying the media, even if the number of media segments exceeds the first preset number, the percentage of the request number is small, which does not affect the display experience of most users.
[0054] Optionally, the target media is stored in the second storage space and the third storage space in units of media segments, including: setting a corresponding segment identifier for each media segment of the target media; storing the media identifier of the target media and the segment identifier of each media segment in the second storage space; combining the media identifier of the target media with the segment identifier of each media segment to obtain a keyword, and storing each media segment as a value and the corresponding keyword in a key-value pair in the third storage space.
[0055] The segment identifier may be an identifier used to uniquely identify a media segment.
[0056] When the media processing device stores the target media in the second storage space and the third storage space according to the media segments, the corresponding segment identifier can be first added to each media segment of the target media, and then the media identifier of the target media and the multiple segment identifiers of the multiple media segments can be associated and stored in the second storage space, and the media identifier of the target media and the segment identifier of each media segment are respectively combined as a keyword (key), and each media segment is serialized into a string and then stored as a value (value) in the third storage space with the corresponding keyword in a key-value pair. Each subsequent request for the target media can first access the second storage space to obtain the corresponding keyword, and then obtain the corresponding media segment in the third storage space according to the keyword.
[0057] In addition, a corresponding index, called score, may be set for each media segment of the target media in the second storage space. The index represents the position information of the media segment in the target media, so that the media segments can be sorted according to the index later.
[0058] In the related art, when the number of media segments of a media is relatively large, directly storing the media in an external storage may cause a large key problem, that is, a problem in which the value corresponding to the keyword is too large.
[0059] In the above scheme, two storage spaces are set up, one storage space stores the media identifier of the media and the segment identifiers of multiple media segments included in the media, and the other storage space stores the data of each media segment. The size of a single data amount in the database is reduced without increasing the delay, thereby avoiding the problem of the value corresponding to the keyword being too large.
[0060] Next, the media processing method of the embodiment of the present disclosure is further described by a specific example. Figure 3 A schematic diagram of media processing provided by an embodiment of the present disclosure is shown in FIG. Figure 3As shown in the figure, the storage process of the target media is shown, in which the first storage space is the existing storage, and the second storage space and the third storage space are external storage spaces, specifically including: when the user triggers the storage operation of the target media, the number of media segments included in the target media can be determined, if the number of segments is less than or equal to the first preset number, the target media is stored in the first storage space; if the number of segments is greater than the first preset number, the first segmented data in the target media is stored in the first storage space, and the target media is stored in the second storage space and the third storage space according to the media segments.
[0061] For example, Figure 4 A schematic diagram of another media processing provided by an embodiment of the present disclosure, such as Figure 4 As shown in the figure, the process of a user requesting a target media is shown. In the figure, the first storage space is the existing storage, and the second storage space and the third storage space are external storage spaces. The specific process may include: after the user performs a display trigger operation on the target media, the first preset number of first segmented data before the playback time point of the target media can be obtained from the first storage space and displayed. At this time, 90% of user requests can be met and the display needs of most users are not affected; when the user continues to perform a display trigger operation on the target media segment after the first segmented data of the target media, at this time, based on the media identifier of the target media and the location information of the target media segment in the target media, the second segmented data is searched in the second storage space and the third storage space to obtain the second segmented data, and the second segmented data is displayed. At this time, since the second storage space and the third storage space cooperate to store the full amount of data of the target media, all user display needs can be met.
[0062] This solution provides an expansion solution when the single storage of media reaches its capacity limit. By providing a hierarchical storage system, the existing single storage is used when the media data volume is small, and a data splitting storage strategy is designed when the media data volume is large. The existing single storage retains high-frequency access data, and the extended storage retains low-frequency access data. When the media is accessed with large data volume, only the desired segmented data can be obtained, and the full data is not obtained. That is, the required segmented data can be obtained on demand without affecting the online user experience, reducing network bandwidth, server interface time consumption, and client parsing time consumption, and avoiding the large key problem.
[0063] Figure 5 This is a schematic diagram of the structure of a media processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 5 As shown, the device comprises:
[0064] A first display module 501 is used for acquiring first segmented data of the target media from a first storage space and displaying the first segmented data in response to a display triggering operation on the target media;
[0065] The second display module 502 is used to respond to the display trigger operation of the target media segment in the target media, search in the second storage space and the third storage space based on the media identifier of the target media and the location information of the target media segment in the target media to obtain the second segmented data, and display the second segmented data, wherein the second segmented data is the segmented data after the first segmented data in the target media.
[0066] Optionally, the first segmented data includes a first preset number of media segments in the target media, and the first preset number of media segments are the first n media segments in the target media in chronological order of playback time, where n>0, and each of the media segments is a video or an image.
[0067] Optionally, the second display module 502 includes:
[0068] A first unit is configured to obtain, in the second storage space according to the media identifier of the target media, a plurality of segment identifiers corresponding to a plurality of media segments included in the target media;
[0069] A second unit is configured to obtain identification information of second segmented data from the multiple segment identifiers according to the position information of the target media segment in the target media, wherein the second segmented data includes a second preset number of media segments starting from the target media segment, and the identification information of the second segmented data includes a set of segment identifiers of the second preset number of media segments;
[0070] The third unit is configured to search the third storage space according to the media identifier of the target media and the identifier information of the second segmented data to obtain the second segmented data.
[0071] Optionally, the third unit is used for:
[0072] Combining the media identifier of the target media with each of the segment identifiers in the identifier information of the second segmented data to obtain keywords, thereby obtaining a second preset number of keywords;
[0073] Based on the second preset number of keywords, a corresponding second preset number of media segments are acquired in the third storage space, and the second preset number of media segments are combined and determined as the second segmented data.
[0074] Optionally, the device further includes a storage module, including:
[0075] a quantity unit, configured to determine the number of segments of the media segments included in the target media in response to a storage operation on the target media;
[0076] An execution unit is configured to store the target media in a hierarchical storage system based on the number of segments, wherein the hierarchical storage system includes the first storage space, the second storage space, and the third storage space.
[0077] Optionally, the execution unit is used to:
[0078] If the number of segments is less than or equal to a first preset number, storing the target media in the first storage space;
[0079] If the number of segments is greater than the first preset number, the first segmented data in the target media is stored in the first storage space, and the target media is stored in the second storage space and the third storage space in units of media segments.
[0080] Optionally, the execution unit is used to:
[0081] Setting a corresponding segment identifier for each media segment of the target media;
[0082] storing the media identifier of the target media and the segment identifier of each of the media segments in the second storage space;
[0083] The media identifier of the target media is respectively combined with the segment identifier of each of the media segments to obtain a keyword, and each of the media segments is used as a value and stored in the third storage space in a key-value pair manner with the corresponding keyword.
[0084] The media processing device provided in the embodiments of the present disclosure can execute the media processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0085] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which implements the media processing method provided by any embodiment of the present disclosure when executed by a processor.
[0086] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6, which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The electronic device 600 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable media players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0087] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0088] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0089] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the media processing method of the embodiment of the present disclosure are executed.
[0090] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0091] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0092] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0093] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to a display trigger operation on the target media, obtains the first segmented data of the target media from the first storage space and displays the first segmented data; in response to a display trigger operation on the target media segment in the target media, searches in the second storage space and the third storage space based on the media identifier of the target media and the location information of the target media segment in the target media to obtain the second segmented data, and displays the second segmented data, wherein the second segmented data is the segmented data after the first segmented data in the target media.
[0094] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0095] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0096] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0097] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0098] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0099] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0100] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0101] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0102] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A media processing method, characterized in that: include: In response to a display triggering operation on a target media, obtaining first segmented data of the target media from a first storage space and displaying the first segmented data; In response to a display trigger operation for a target media segment in the target media, second segmented data is searched in a second storage space and a third storage space based on the media identifier of the target media and the location information of the target media segment in the target media, and the second segmented data is displayed, wherein the second segmented data is the segmented data after the first segmented data in the target media.
2. The method according to claim 1, characterized in that The first segmented data includes a first preset number of media segments in the target media, each of which is a video or an image, and the first preset number of media segments are the first n media segments in the target media in chronological order of playback time, where n>0.
3. The method according to claim 1, characterized in that Searching in the second storage space and the third storage space to obtain second segmented data based on the media identifier of the target media and the location information of the target media segment in the target media includes: Acquire, in the second storage space according to the media identifier of the target media, a plurality of segment identifiers corresponding to a plurality of media segments included in the target media; Acquire identification information of second segment data from the multiple segment identifiers according to the position information of the target media segment in the target media, wherein the second segment data includes a second preset number of media segments starting from the target media segment, and the identification information of the second segment data includes a set of segment identifiers of the second preset number of media segments; The second segment data is obtained by searching the third storage space according to the media identification of the target media and the identification information of the second segment data.
4. The method according to claim 3, characterized in that Searching the third storage space according to the media identifier of the target media and the identifier information of the second segmented data to obtain the second segmented data includes: Combining the media identifier of the target media with each of the segment identifiers in the identifier information of the second segmented data to obtain keywords, thereby obtaining a second preset number of keywords; Based on the second preset number of keywords, a corresponding second preset number of media segments are acquired in the third storage space, and the second preset number of media segments are combined and determined as the second segmented data.
5. The method according to claim 1, characterized in that The method further comprises: In response to a storage operation on the target media, determining the number of segments of the media segments included in the target media; The target media is stored in a hierarchical storage system based on the number of segments, wherein the hierarchical storage system includes the first storage space, the second storage space, and the third storage space.
6. The method according to claim 5, characterized in that Storing the target media in a hierarchical storage system based on the number of segments includes: If the number of segments is less than or equal to a first preset number, storing the target media in the first storage space; If the number of segments is greater than the first preset number, the first segmented data in the target media is stored in the first storage space, and the target media is stored in the second storage space and the third storage space in units of media segments.
7. The method according to claim 6, characterized in that Storing the target media in the second storage space and the third storage space in units of media segments includes: Setting a corresponding segment identifier for each media segment of the target media; storing the media identifier of the target media and the segment identifier of each of the media segments in the second storage space; The media identifier of the target media is respectively combined with the segment identifier of each of the media segments to obtain a keyword, and each of the media segments is used as a value and stored in the third storage space in a key-value pair manner with the corresponding keyword.
8. A media processing device, characterized in that: include: A first display module, configured to, in response to a display triggering operation on a target media, obtain first segmented data of the target media from a first storage space and display the first segmented data; A second display module is used to respond to a display trigger operation on a target media segment in the target media, search in a second storage space and a third storage space based on a media identifier of the target media and location information of the target media segment in the target media to obtain second segmented data, and display the second segmented data, wherein the second segmented data is segmented data after the first segmented data in the target media.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the media processing method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the media processing method described in any one of claims 1 to 7.