Data processing method and device, storage medium and electronic equipment

By asynchronously acquiring metadata, audio data, and index data of audio and video files and caching them alternately, the problem of low smoothness in audio and video players during startup and transitions is solved, and synchronous caching and playback of audio and video data are achieved.

CN114237941BActive Publication Date: 2025-10-28SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111580266.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2025-10-28
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Existing audio and video players experience slow startup speeds and stuttering during the startup and redirection processes of high-bitrate video sources due to improper network request order, leading to network disconnections and reconnections. This results in low smoothness.

Method used

The system asynchronously acquires metadata, raw audio data, and index data of audio and video files, and alternately calls processing parameters to cache the data, determines the data processing interval, and adjusts the cache progress difference to ensure synchronization of audio and video data.

Benefits of technology

This effectively avoids the problem of low audio and video smoothness caused by improper data acquisition order, and improves playback smoothness and synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237941B_ABST
    Figure CN114237941B_ABST
Patent Text Reader

Abstract

This application discloses a data processing method, apparatus, storage medium, and electronic device. Upon receiving a data acquisition request, a first request parameter is invoked to sequentially acquire a first target data module and a second target data module, and a second request parameter is invoked to acquire a third target data module. Then, based on the third target data module, a data processing interval corresponding to the data acquisition request is acquired. Next, processing parameters for the second target data module are acquired based on the first request parameter. Finally, the processing parameters are invoked to process the first and second sub-target data located within the data processing interval. Because the first and second request parameters are invoked simultaneously to acquire the first, second, and third target data modules, all target data modules are acquired concurrently, thus avoiding low audio and video smoothness caused by improper data acquisition order.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a data processing method, apparatus, storage medium and electronic device. Background Technology

[0002] As living standards improve, people increasingly prefer to enrich their lives by playing audio and video. Since the smoothness of audio and video playback is an important factor in the user's playback experience, people have increasingly higher requirements for the smoothness of audio and video playback.

[0003] Due to the unreasonable network architecture design in current audio and video players, during the playback and navigation of high bitrate video sources, the network request, after obtaining the metadata at the beginning of the file, skips the original audio and video data in the middle of the file in order to prioritize obtaining the index data at the end of the file, and then returns to the middle of the file to obtain the original audio and video data. During this return process, there will be two network disconnections and reconnections, resulting in a significant slow playback speed and playback stuttering during the playback or navigation process, thus leading to low smoothness of audio and video playback. Summary of the Invention

[0004] This application provides a data processing method, apparatus, storage medium, and electronic device that can alleviate the current situation of low smoothness in audio and video playback.

[0005] This application provides a data processing method, characterized in that it includes:

[0006] When a data acquisition request is received, the first request parameter is invoked to sequentially acquire the first target data module and the second target data module, and the second request parameter is invoked to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data.

[0007] The data processing range corresponding to the data acquisition request is obtained according to the third target data module;

[0008] The processing parameters of the second target data module are obtained based on the first request parameters;

[0009] The processing parameters are invoked to process each first sub-target data and each second sub-target data located in the data processing interval.

[0010] The data acquisition request includes an audio / video playback request. The first target data module includes metadata of the audio / video file, the second target data module includes the original video data and original audio data of the audio / video file, and the third target data includes the index data of the audio / video file. When a data acquisition request is received, the process of calling the first request parameters to sequentially acquire the first and second target data modules, and then calling the second request parameters to acquire the third target data module, includes:

[0011] When an audio / video playback request is received, the first request parameter is called to obtain the metadata of the audio / video file, the original audio data, and the original video data of the audio / video file in sequence, and the second request parameter is called to obtain the index data of the audio / video file.

[0012] The step of obtaining the data processing interval corresponding to the data acquisition request according to the third target data module includes:

[0013] Based on the index data, determine the initial cache data and the end cache data corresponding to the data retrieval request;

[0014] The interval between the initial cached data and the final cached data is defined as the data processing interval.

[0015] Wherein, the first sub-target data includes the original video data, the second sub-target data includes the original audio data, the processing parameters include a first processing parameter and a second processing parameter, and the step of calling the processing parameters to process each of the first sub-target data and each of the second sub-target data located in the data processing interval includes:

[0016] The first processing parameter and the second processing parameter are alternately called to alternately cache each original audio data and each original video data located in the interval between the initial cache data and the end cache data.

[0017] The step of calling the processing parameters to process each first sub-target data and each second sub-target data located in the data processing interval further includes:

[0018] When one original audio data and one original video data are alternately cached, one video data and one audio data are obtained;

[0019] Query the current cache progress of the video data and the audio data;

[0020] Based on the current cache progress of the video data and the audio data, the cache progress difference between the original video data and the original audio data is obtained;

[0021] When the cache progress difference is greater than a preset value, during the caching process of subsequent video and audio data, the call interval of the first processing parameter and the second processing parameter is adjusted so that the cache progress difference between subsequent video and audio data is less than or equal to the preset value.

[0022] This application also provides a data processing apparatus, characterized in that it includes:

[0023] The calling module is used to, when a data acquisition request is received, call the first request parameter to sequentially acquire the first target data module and the second target data module, and call the second request parameter to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data.

[0024] The interval acquisition module is used to acquire the data processing interval corresponding to the data acquisition request based on the third target data module.

[0025] The parameter acquisition module is used to acquire the processing parameters of the second target data module based on the first request parameters;

[0026] The processing module is used to call the processing parameters to process each first sub-target data and each second sub-target data located in the data processing interval.

[0027] The data acquisition request includes an audio / video playback request. The first target data module includes metadata of the audio / video file, the second target data module includes the original video data and original audio data of the audio / video file, and the third target data includes the index data of the audio / video file. The calling module is specifically used for:

[0028] When an audio / video playback request is received, the first request parameter is called to obtain the metadata of the audio / video file, the original audio data, and the original video data of the audio / video file in sequence, and the second request parameter is called to obtain the index data of the audio / video file.

[0029] Specifically, the interval acquisition module is used for:

[0030] Based on the index data, determine the initial cache data and the end cache data corresponding to the data retrieval request;

[0031] The interval between the initial cached data and the final cached data is defined as the data processing interval.

[0032] This application also provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to execute any of the above-described data processing methods.

[0033] This application also provides an electronic device, including a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in any of the above data processing methods.

[0034] This application provides a data processing method, apparatus, storage medium, and electronic device. When a data acquisition request is received, a first request parameter is invoked to sequentially acquire a first target data module and a second target data module (including multiple first sub-target data and multiple second sub-target data), and a second request parameter is invoked to acquire a third target data module. Then, a data processing interval corresponding to the data acquisition request is acquired based on the third target data module. Next, processing parameters for the second target data module are acquired based on the first request parameter. Finally, the processing parameters are invoked to process each first sub-target data and each second sub-target data located within the data processing interval. Because the first and second request parameters are invoked simultaneously to acquire the first, second, and third target data modules, i.e., the first, second, and third target data modules are acquired concurrently, the issue of low audio and video smoothness due to improper data acquisition order is avoided. Attached Figure Description

[0035] The following detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings will make the technical solutions and other beneficial effects of the present application apparent.

[0036] Figure 1 This is a flowchart illustrating the data processing method provided in an embodiment of this application.

[0037] Figure 2 This is a schematic diagram of a data processing scenario provided in an embodiment of this application.

[0038] Figure 3a This is a schematic diagram of the data acquisition process in the prior art provided for the embodiments of this application.

[0039] Figure 3b This is a schematic diagram of the data acquisition process provided in an embodiment of this application.

[0040] Figure 4 This is another schematic diagram of the data processing method provided in the embodiments of this application.

[0041] Figure 5 This is a schematic diagram of the structure of the data processing apparatus provided in the embodiments of this application.

[0042] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0043] Figure 7 Another structural schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0045] This application provides a data processing method, apparatus, storage medium, and electronic device.

[0046] like Figure 1 As shown, Figure 1 This is a flowchart illustrating the data processing method provided in an embodiment of this application. The data processing method is applied to an electronic device, and the specific process can be as follows:

[0047] S101. When a data acquisition request is received, the first request parameter is called to acquire the first target data module and the second target data module in sequence, and the second request parameter is called to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data.

[0048] Among them, a data acquisition request is a message or signaling used to request data, which can be triggered manually or automatically by the network, for example... Figure 2 In the process, when the user clicks the audio / video file control 2002 on the file selection interface 2001, a data acquisition request is triggered. The first request parameter and the second request parameter include code for data access. The first target data module, the second target data module and the third target data module are the data components of the network data file. When all data is acquired, the first playback screen 2003 is displayed on the screen of the electronic device.

[0049] Optionally, the data acquisition request is an audio / video playback request. The first target data module is the metadata of the audio / video file, and the second target data module includes multiple first sub-target data and multiple second sub-target data. Specifically, the first sub-target data is the original video data, the second sub-target data is the original audio data, and the third target data is the index data of the audio / video file. Specifically, metadata is an encoding system for network resource information, used to provide relevant information about network resources; the original video data and original audio data are unprocessed (e.g., cached) network data; the index data is used to characterize the mapping relationship between the data acquisition request and the relevant information of the original audio data and original video data, including the playback position corresponding to the original audio data and original video data.

[0050] In existing technologies, such as Figure 3a As shown, when the server receives an audio / video playback request, it first executes step S31 at the beginning of the audio / video file to obtain metadata 3001, then jumps to the end of the audio / video file to execute step S32 to obtain index data 3002, and finally returns to the middle position of the audio / video file (i.e., the position between the beginning and the end of the audio / video file) to execute step S33 to obtain raw audio data and raw video data 3003. Since the network request 300 needs to jump from the end of the audio / video file to the middle position, there will be two network disconnection-reconnection situations during the data acquisition process, resulting in low audio / video playback smoothness.

[0051] In this embodiment, as Figure 3b As shown, when the server receives an audio / video playback request, it calls the first request parameter 301 to execute step S34 (obtaining metadata 3001) and step S35 (obtaining raw audio data and raw video data 3003) at the beginning and middle of the audio / video file, respectively. At the same time, it calls the second request parameter 302 to execute step S36 (obtaining index data 3002). That is, the first request parameter 301 and the second request parameter 302 obtain the metadata 3001, raw audio data, raw video data 3003, and index data 3002 asynchronously. Therefore, the order in which the metadata 3001, raw audio data, raw video data 3003, and index data 3002 are obtained follows the order of the positions in the audio / video file, avoiding the situation of low audio / video smoothness due to improper data acquisition order.

[0052] S102. Obtain the data processing range corresponding to the data acquisition request based on the third target data module.

[0053] The data processing interval is the interval containing the data that needs to be processed. Optionally, the data processing interval is the interval between the initial cached data and the final cached data. Specifically, since the index data can represent the mapping relationship between the data acquisition request and the relevant information of the original audio data and the original video data, the initial cached data and the final cached data corresponding to the data acquisition request, as well as the playback position of the initial cached data and the final cached data, can be determined by querying the index data. The interval between the initial cached data and the final cached data is then defined as the data processing interval. Optionally, the final cached data is the original audio data and the original video data located at the end of the audio and video file.

[0054] like Figure 2 As shown, in one embodiment, after the user clicks the audio / video file control 2002 on the file selection interface 2001, the first playback screen 2003 is displayed on the screen. At this time, the position of the playback progress control 2004 is the playback position of the first initial cached data. Therefore, the data processing interval is the playback interval included from the playback position of the first initial cached data to the playback position of the end cached data 2005. If the user drags the playback progress control 2004 so that the position of the dragged playback progress control 2004 is the playback position of the second initial cached data, the data processing interval is the playback interval included from the playback position of the second initial cached data (i.e., the position of the playback progress control 2004) to the playback position of the end cached data 2005.

[0055] Furthermore, when the user clicks the "Back" control 2007, the current second playback screen 2006 is automatically closed on the screen, and the user returns to the file selection interface 2001. When the user clicks the audio / video file control 2002 again, the screen displays the second playback screen 2006, and the playback progress control 2004 is located at the playback position where the second initial cached data is located. At this time, the data processing range is the playback range included from the playback position where the second initial cached data is located (i.e., the position where the playback progress control 2004 is located) to the playback position where the end cached data is located 2005.

[0056] S103. Obtain the processing parameters of the second target data module according to the first request parameters.

[0057] The processing parameters can be used to cache data. Optionally, the processing parameters can be used to cache the original video data and the original audio data. Once the original video data and the original audio data are cached, the corresponding audio and video can be played through the player.

[0058] S104. Call the processing parameters to process multiple first sub-target data and multiple second sub-target data located in the data processing interval.

[0059] The processing parameters include a first processing parameter and a second processing parameter. The first processing parameter is called to cache the original video data to obtain playable video data; the second processing parameter is called to cache the original audio data to obtain playable audio data.

[0060] Furthermore, step S104 above also includes:

[0061] The first and second processing parameters are alternately called to alternately cache multiple raw audio data and multiple raw video data in the interval between the initial cache data and the end cache data.

[0062] Existing technologies typically cache the original audio and video data synchronously. However, since the original audio data is cached faster than the original video data, the cached audio and video data cannot be synchronized (i.e., the audio and video data fall outside the high-speed buffer memory), which triggers the network to automatically disconnect and reconnect, resulting in audio and video playback stuttering.

[0063] To ensure that the cached audio and video data fall within the high-speed cache memory, in this embodiment, the first processing parameter and the second processing parameter are called alternately to alternately cache the original audio data and the original video data within the data processing interval. Optionally, since the caching speed of the original audio data is relatively fast, in order to ensure that the cached audio data and video data are synchronized as much as possible, the first processing parameter can be called first to cache the original video data, and then the second processing parameter can be called to cache the original audio data.

[0064] For example, there are a total of 20 frames of raw audio data and 20 frames of raw video data located in the interval between the initial buffer data and the end buffer data. First, the first processing parameter is called to buffer the first raw video data. Then, after a preset interval (e.g., 0.2s) after the first raw video data starts processing, the second processing parameter is called to buffer the first raw audio data. Then, 0.2s after the first raw audio data starts processing, the second processing parameter is called to buffer the second raw video data. Then, 0.2s after the second raw video data starts processing, the second processing parameter is called to buffer the second raw audio data. And so on, 0.2s after the 20th raw video data starts processing, the second processing parameter is called to buffer the 20th raw audio data.

[0065] In one embodiment, to further ensure that the cached audio data and video data remain synchronized, when a video data and a corresponding audio data are obtained (e.g., the first video data and the first audio data), the current caching progress of the video data and the audio data is queried. Based on their current caching progress, the caching progress difference between the original video data and the original audio data is obtained. When the caching progress difference is greater than a preset value, during the caching process of subsequent video data and multiple audio data, the call interval of the first processing parameter and the second processing parameter is adjusted so that the caching progress difference between subsequent video data and audio data is less than or equal to the preset value.

[0066] Specifically, the caching progress refers to the cache position corresponding to the cached video and audio data. For example, the cache position corresponding to the first video data is 0.4s, and the cache position corresponding to the first audio data is 0.1s.

[0067] For example, if the call interval between the first and second processing parameters is 0.2s, and after obtaining the first video and first audio data, the cache progress of the first video data is 0.4s and the cache progress of the first audio data is 0.1s, then the cache progress difference between the first raw video data and the first raw audio data is 0.3s. However, the preset value is 0.1s. Therefore, the cache progress difference is greater than the preset value, indicating that the previously set call interval between the first and second processing parameters is unreasonable. Thus, the call interval between the first and second processing parameters is increased to 0.4s, making the cache progress difference between the second video data and the second audio data 0.05s.

[0068] Optionally, in another embodiment, when the difference in caching progress between the original video data and the original audio data is greater than a preset value, a network disconnect-reconnection operation is performed, and subsequent original video data and original audio data continue to be cached after the network disconnect-reconnection.

[0069] like Figure 4 As shown, Figure 4 Another schematic diagram of the data processing method provided in the embodiments of this application is shown below.

[0070] S401. When a data acquisition request is received, the first request parameter is called to acquire the first target data module and the second target data module in sequence, and the second request parameter is called to acquire the third target data module.

[0071] For example, such as Figure 2As shown, when the server receives an audio / video playback request, it calls the first request parameter 301 to execute step S34: obtain metadata 3001 and step S35: obtain raw audio data and raw video data 3003 at the beginning and middle of the audio / video file in sequence. At the same time, it calls the second request parameter 302 to execute step S36: obtain index data 3002.

[0072] S402. Obtain the data processing range corresponding to the data acquisition request based on the third target data module.

[0073] For example, after the user drags the playback progress control 2004, the second initial cache data corresponding to the position of the playback progress control 2004 after dragging is obtained through the index data. At this time, the data processing interval is the playback interval included from the playback position where the second initial cache data is located (i.e., the position where the playback progress control 2004 is located) to the playback position where the end cache data is located 2005. This playback interval has a total of 20 (frames) of original audio data and 20 (frames) of original video data.

[0074] S403. Obtain the processing parameters of the second target data module based on the first request parameters.

[0075] The processing parameters can be used to cache data. Optionally, the processing parameters can be used to cache the original video data and the original audio data. Once the original video data and the original audio data are cached, the corresponding audio and video can be played through the player.

[0076] S404. Alternately call the first processing parameter and the second processing parameter to alternately cache multiple raw audio data and multiple raw video data located in the interval between the initial cache data and the end cache data.

[0077] For example, the first processing parameter is first called to cache the first original video data out of 20 original video data in the interval, and 0.2 seconds after the first original video data starts processing, the second processing parameter is called to cache the first original audio data out of 20 original audio data.

[0078] S405. After obtaining a video data and a corresponding audio data, query the current cache progress of the video data and the audio data to obtain the cache progress difference between the original video data and the original audio data.

[0079] For example, after obtaining the first video data and the first audio data, the cache progress of the first video data is 0.4s and the cache progress of the first audio data is 0.1s. Therefore, the difference in cache progress between the first original video data and the first original audio data is 0.3s.

[0080] S406. Determine whether the cache progress difference is greater than a preset value. If yes, proceed to step S407; otherwise, proceed to step S408.

[0081] For example, if the preset value is 0.1s, the buffer progress difference between the first original video data and the first original audio data is 0.3s. Therefore, the buffer progress difference is greater than the preset value, and step S407 is executed; if the buffer progress difference between the first original video data and the first original audio data is 0.1s, therefore, the buffer progress difference is equal to the preset value, and step S408 is executed.

[0082] S407. During the caching process of subsequent video data and audio data, adjust the call interval of the first processing parameter and the second processing parameter so that the caching progress difference between subsequent video data and audio data is less than or equal to a preset value.

[0083] For example, increasing the call interval between the first and second processing parameters to 0.4s makes the buffer progress difference between the second video data and the second audio data 0.05s (less than 0.1s).

[0084] S408. Cache each subsequent original video data and each original audio data according to the call interval of the initial first processing parameter and the second processing parameter.

[0085] For example, 0.2 seconds after the first raw audio data begins processing, the second processing parameter is called to cache the second raw video data, and then 0.2 seconds after the second raw video data begins processing, the second processing parameter is called to cache the second raw audio data... and so on, 0.2 seconds after the 20th raw video data begins processing, the second processing parameter is called to cache the 20th raw audio data.

[0086] As described above, the data processing method provided in this application, upon receiving a data acquisition request, sequentially acquires a first target data module and a second target data module (including multiple first sub-target data and multiple second sub-target data) by calling the first request parameter, and then acquires a third target data module by calling the second request parameter. Next, it acquires the data processing interval corresponding to the data acquisition request based on the third target data module. Then, it acquires the processing parameters of the second target data module based on the first request parameter, and finally calls the processing parameters to process each first sub-target data and each second sub-target data located within the data processing interval. Since the first and second request parameters are called simultaneously to acquire the first, second, and third target data modules, i.e., the first, second, and third target data modules are acquired concurrently, the low audio and video smoothness caused by improper data acquisition order is avoided.

[0087] Please see Figure 5 , Figure 5 This application provides a specific description of a data processing apparatus, which may include: a calling module 10, a range acquisition module 20, a processing parameter acquisition module 30, and a processing module 40, wherein:

[0088] (1) Call module 10

[0089] The calling module 10 is used to, when a data acquisition request is received, call the first request parameter to sequentially acquire the first target data module and the second target data module, and call the second request parameter to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data.

[0090] (2) Interval acquisition module 20

[0091] The interval acquisition module 20 is used to acquire the data processing interval corresponding to the data acquisition request according to the third target data module;

[0092] (3) Parameter acquisition module 30

[0093] The processing parameter acquisition module 30 is used to acquire the processing parameters of the second target data module according to the first request parameters;

[0094] (4) Processing module 40

[0095] The processing module 40 is used to call the processing parameters to process each first sub-target data and each second sub-target data located in the data processing interval.

[0096] As described above, the data processing apparatus provided in this application, upon receiving a data acquisition request, sequentially acquires a first target data module and a second target data module (including multiple first sub-target data and multiple second sub-target data) by calling the first request parameter through the calling module 10, and acquires a third target data module by calling the second request parameter. Then, the interval acquisition module 20 acquires the data processing interval corresponding to the data acquisition request based on the third target data module. Afterwards, the processing parameter acquisition module 30 acquires the processing parameters of the second target data module based on the first request parameter. Finally, the processing module 40 calls the processing parameters to process each first sub-target data and each second sub-target data located in the data processing interval. Since the first and second request parameters are called simultaneously to acquire the first, second, and third target data modules, i.e., the first, second, and third target data modules are acquired simultaneously, the situation of low audio and video smoothness due to improper data acquisition order is avoided.

[0097] Accordingly, embodiments of the present invention also provide a data processing system, including any of the data processing devices provided in the embodiments of the present invention, which can be integrated into an electronic device.

[0098] Since the data processing system can include any of the data processing devices provided in the embodiments of the present invention, it can achieve the beneficial effects that any of the data processing devices provided in the embodiments of the present invention can achieve, as detailed in the preceding embodiments, and will not be repeated here.

[0099] In addition, this application also provides an electronic device, which may be a smartphone or other similar device. Figure 6 As shown, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 and the memory 602 are electrically connected.

[0100] The processor 601 is the control center of the electronic device 600. It connects various parts of the electronic device through various interfaces and lines. By running or loading the application program stored in the memory 602 and calling the data stored in the memory 602, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.

[0101] In this embodiment, the processor 601 in the electronic device 600 loads the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 runs the applications stored in the memory 602 to realize various functions:

[0102] When a data acquisition request is received, the first request parameter is called to sequentially acquire the first target data module and the second target data module, and the second request parameter is called to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data.

[0103] The data processing range corresponding to the data acquisition request is obtained from the third target data module;

[0104] The processing parameters of the second target data module are obtained based on the first request parameters;

[0105] The processing parameters are invoked to process the first sub-target data and the second sub-target data located in the data processing range.

[0106] Figure 7 A specific structural block diagram of an electronic device provided in an embodiment of the present invention is shown. This electronic device can be used to implement the data processing method provided in the above embodiments. The electronic device 700 can be a smartphone or a tablet computer.

[0107] RF circuit 710 is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals and vice versa, thereby enabling communication with communication networks or other devices. RF circuit 710 may include various existing circuit elements used to perform these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. RF circuit 710 can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices via wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks (WLANs), or metropolitan area networks (MANs). The aforementioned wireless networks may use various communication standards, protocols, and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging, and short messages, and any other suitable communication protocols, including those that have not yet been developed.

[0108] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing by running the software programs and modules stored in the memory 720. The memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 720 may further include memory remotely located relative to the processor 780, and these remote memories can be connected to the electronic device 700 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0109] The input unit 730 can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touchpad, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch-sensitive surface 731), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 731 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may also include other input devices 732. Specifically, other input devices 732 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0110] The display unit 740 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device 700. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. The display unit 740 may include a display panel 741, which may optionally be configured as an LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or similar display. Furthermore, a touch-sensitive surface 731 may cover the display panel 741. When the touch-sensitive surface 731 detects a touch operation on or near it, it transmits the information to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides corresponding visual output on the display panel 741 according to the type of touch event. Although in Figure 7 In this embodiment, the touch-sensitive surface 731 and the display panel 741 are implemented as two separate components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to realize the input and output functions.

[0111] The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 741 according to the ambient light level, and the proximity sensor can turn off the display panel 741 and / or backlight when the electronic device 700 is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometers, taps), etc. Other sensors that the electronic device 700 may also be equipped with, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0112] Audio circuitry 760, speaker 761, and microphone 762 provide an audio interface between the user and electronic device 700. Audio circuitry 760 converts received audio data into electrical signals and transmits them to speaker 761, where speaker 761 converts them into sound signals for output. Conversely, microphone 762 converts collected sound signals into electrical signals, which are then received by audio circuitry 760, converted back into audio data, and processed by processor 780. The audio data is then transmitted via RF circuitry 710 to, for example, another terminal, or output to memory 720 for further processing. Audio circuitry 760 may also include an earphone jack to facilitate communication between peripheral headphones and electronic device 700.

[0113] Electronic device 700, through transmission module 770 (e.g., Wi-Fi module), enables users to send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 7 The transmission module 770 is shown, but it is understood that it is not a necessary component of the electronic device 700 and can be omitted as needed without changing the nature of the invention.

[0114] The processor 780 is the control center of the electronic device 700. It connects to various parts of the phone via various interfaces and lines, and performs various functions and processes data of the electronic device 700 by running or executing software programs and / or modules stored in the memory 720, and by calling data stored in the memory 720, thereby providing overall monitoring of the phone. Optionally, the processor 780 may include one or more processing cores; in some embodiments, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 780.

[0115] The electronic device 700 also includes a power supply 790 (such as a battery) that supplies power to various components. In some embodiments, the power supply may be logically connected to the processor 780 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The power supply 790 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.

[0116] Although not shown, the electronic device 700 may also include a camera (such as a front-facing camera and a rear-facing camera), a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, and the electronic device also includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. One or more programs contain instructions for performing the following operations:

[0117] When a data acquisition request is received, the first request parameter is called to sequentially acquire the first target data module and the second target data module, and the second request parameter is called to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data.

[0118] The data processing range corresponding to the data acquisition request is obtained from the third target data module;

[0119] The processing parameters of the second target data module are obtained based on the first request parameters;

[0120] The processing parameters are invoked to process the first sub-target data and the second sub-target data located in the data processing range.

[0121] In practice, the above modules can be implemented as independent entities or combined in any way to be implemented as the same or several entities. For the specific implementation of the above modules, please refer to the previous method implementation examples, which will not be repeated here.

[0122] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. Therefore, embodiments of the present invention provide a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps in any of the data processing methods provided in the embodiments of the present invention.

[0123] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0124] Since the instructions stored in the storage medium can execute the steps of any data processing method provided in the embodiments of the present invention, the beneficial effects that any data processing method provided in the embodiments of the present invention can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0125] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0126] In summary, although the present application has disclosed the preferred embodiments as described above, the above preferred embodiments are not intended to limit the present application. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be determined by the scope defined in the claims.

Claims

1. A data processing method, characterized in that, include: When a data acquisition request is received, the system calls the first request parameter to sequentially acquire the first target data module and the second target data module, and then calls the second request parameter to acquire the third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data. The first request parameter and the second request parameter include code for data access. The first target data module includes metadata of the audio and video file, the second target data module includes the original video data and original audio data of the audio and video file, and the third target data includes the index data of the audio and video file. The data processing range corresponding to the data acquisition request is obtained according to the third target data module; The processing parameters of the second target data module are obtained based on the first request parameters; The processing parameters are used to cache the original video data and the original audio data; The processing parameters are invoked to process each first sub-target data and each second sub-target data located in the data processing interval.

2. The data processing method according to claim 1, characterized in that, The data acquisition request includes an audio / video playback request. When a data acquisition request is received, the process of sequentially acquiring a first target data module and a second target data module by calling a first request parameter, and then acquiring a third target data module by calling a second request parameter, includes: When an audio / video playback request is received, the first request parameter is called to obtain the metadata of the audio / video file, the original audio data, and the original video data of the audio / video file in sequence, and the second request parameter is called to obtain the index data of the audio / video file.

3. The data processing method according to claim 2, characterized in that, The step of obtaining the data processing interval corresponding to the data acquisition request according to the third target data module includes: Based on the index data, determine the initial cache data and the end cache data corresponding to the data retrieval request; The interval between the initial cached data and the final cached data is defined as the data processing interval.

4. The data processing method according to claim 3, characterized in that, The first sub-target data is the original video data, and the second sub-target data is the original audio data. The processing parameters include a first processing parameter and a second processing parameter. The step of calling the processing parameters to process each of the first sub-target data and each of the second sub-target data located within the data processing interval includes: The first processing parameter and the second processing parameter are alternately called to alternately cache each original audio data and each original video data located in the interval between the initial cache data and the end cache data.

5. The data processing method according to claim 4, characterized in that, After the step of calling the processing parameters to process each first sub-target data and each second sub-target data located in the data processing interval, the method further includes: When one original audio data and one original video data are alternately cached, one video data and one audio data are obtained; Query the current cache progress of the video data and the audio data; Based on the current cache progress of the video data and the audio data, the cache progress difference between the original video data and the original audio data is obtained; When the cache progress difference is greater than a preset value, during the caching process of subsequent video and audio data, the call interval of the first processing parameter and the second processing parameter is adjusted so that the cache progress difference between subsequent video and audio data is less than or equal to the preset value.

6. A data processing apparatus, characterized in that, include: The calling module is used to, upon receiving a data acquisition request, invoke a first request parameter to sequentially acquire a first target data module and a second target data module, and invoke a second request parameter to acquire a third target data module. The second target data module includes multiple first sub-target data and multiple second sub-target data. The first request parameter and the second request parameter include code for data access. The first target data module includes metadata of the audio / video file. The first sub-target data includes the original video data of the audio / video file. The second sub-target data includes the original audio data of the audio / video file. The third target data includes the index data of the audio / video file. The interval acquisition module is used to acquire the data processing interval corresponding to the data acquisition request based on the third target data module. The processing parameter acquisition module is used to acquire the processing parameters of the second target data module according to the first request parameters; the processing parameters are used to cache the original video data and the original audio data. The processing module is used to call the processing parameters to process each first sub-target data and each second sub-target data located in the data processing interval.

7. The data processing apparatus according to claim 6, characterized in that, The data acquisition request includes an audio / video playback request, and the calling module is specifically used for: When an audio / video playback request is received, the first request parameter is called to obtain the metadata of the audio / video file, the original audio data, and the original video data of the audio / video file in sequence, and the second request parameter is called to obtain the index data of the audio / video file.

8. The data processing apparatus according to claim 6, characterized in that, The interval acquisition module is specifically used for: Based on the index data, determine the initial cache data and the end cache data corresponding to the data retrieval request; The interval between the initial cached data and the final cached data is defined as the data processing interval.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the data processing method according to any one of claims 1 to 5.

10. An electronic device, characterized in that, The method includes a processor and a memory, the processor being electrically connected to the memory, the memory being used to store instructions and data, and the processor being used to execute the steps of the data processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • System and method for playing and processing multimedia file

    CN102547435A

  • Network video playing method and device

    CN105898551A