A media data recording and playing method

By combining the creation of audio and key frames when recording scenes such as meetings, the problem of data discontinuity and large space occupation in the existing technology is solved, high-quality, storage-saving media data recording and playback is achieved, and the user experience is improved. Content sharing capabilities.

CN118016110BActive Publication Date: 2024-09-13路九阳
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410409496.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2024-09-13
Estimated Expiration
2044-04-07

AI Technical Summary

Technical Problem

When the existing technology records scenes such as meetings, the picture shooting method results in discontinuous data and incomplete information, and the video shooting method takes up a lot of storage space and the picture is not clear.

Method used

Adopting a media data recording and playback method, by starting audio recording and the creation of key frames, recording continuous sound and visual data, generating media data, and playing it regularly according to the creation time of the key frames during playback, visual data type Including images, graffiti, videos, texts, etc., supports network sharing and editing.

Benefits of technology

It achieves the coherence and detail integrity of recorded content, reduces storage space usage, improves data clarity and browsing convenience, supports content sharing and notes, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118016110B
    Figure CN118016110B
Patent Text Reader

Abstract

The present application provides a method for recording and playing media data, which relates to the field of multimedia technology. The method includes: starting recording in response to a start recording instruction, starting audio recording to obtain first audio data; creating a key frame and recording its corresponding creation time according to a visual data acquisition instruction triggered by a user, obtaining visual data and recording it as the key frame data of the key frame; responding to a stop recording instruction to end recording, storing the first audio data, multiple key frames and their key frame data to generate media recording data; reading the media recording data after starting playback, parsing the first audio data, key frames and their key frame data contained therein, playing the first audio data, and starting a timer to control the key frame playback, and playing the visual data contained therein according to the creation time corresponding to the key frame. The scene process recorded by this method is continuous, the key picture is clear, and the data volume is small, which greatly improves the efficiency of recording data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of multimedia data storage, and in particular to a method for recording and playing media data. Background Art

[0002] In communication and learning scenarios such as training and meetings, people record data based on the scene, which usually includes two forms. The first is picture shooting, that is, when the user recognizes important information, take a picture to perform recording; the other is video shooting, that is, recording the entire communication and learning process. However, the media data recording method provided by the above prior art has very obvious defects. For example, the user records the meeting process by taking pictures. After completing the record of a meeting, the user usually collects a large amount of picture data. However, the picture data only corresponds to each shooting moment, the recorded process is not continuous, and the recorded data cannot cover the entire event process. In addition, the recorded data only includes image data, and there is an incomplete information problem (lack of sound in the development of the event, etc.). Therefore, the picture shooting recording method records key information clearly, but the recording process is discontinuous and the recorded content is incomplete. Regarding the video shooting recording method, a parent meeting lasted for a full hour, and the recorded video file occupied a huge storage space. To find the content of one scene, the video needs to be played repeatedly. In addition, because the video is compressed, some pictures may be unclear. It can be seen that it is urgent to invent a new media data recording and playback method to solve the above media data recording problems. Summary of the invention

[0003] In view of the above problems, the present invention proposes a media data recording and playback method, aiming to provide users with a simple and effective scene recording method, so that the recorded content has coherence, while the key content details are complete, thereby improving the user experience.

[0004] In a first aspect, the present invention provides a method for recording and playing media data, which is applied to record media data for a target scene, and the method comprises:

[0005] In response to the start recording instruction, the target scene is recorded, and the first audio recording is started to collect the sound of the target scene to obtain the first audio data D sound ;

[0006] In response to the nth (n>0) visual data acquisition instruction, create a key frame K n And record its corresponding creation time t n , obtain visual data D n , and recorded as the key frame K n Key frame data;

[0007] In response to the stop recording instruction to end the recording, the first audio data Dsound , the key frame K n and key frame data storage to generate media data;

[0008] In response to the start play instruction to start the play process, the media data is read in and the first audio data D contained therein is parsed. sound , the key frame K n and its key frame data, playing the first audio data D sound , and start the timer to control the key frame K n Play, according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data D n .

[0009] In response to the start play instruction to start the play process, the media data is read in and the first audio data D contained therein is parsed. sound , the key frame K n and its key frame data, playing the first audio data D sound , and start the timer to control the key frame K n Play, according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data D n .

[0010] Through the above implementation, the recorded media data includes continuous sound data D sound And the key frame K recorded at irregular intervals according to the needs n , each key frame K n Contains a visual data D n Among them, sound data is conducive to the integrity of the recording process, and visual data is collected according to needs, such as recording by taking pictures. The clarity of the collected images is much greater than the clarity of the pictures in the video, which is conducive to ensuring the details of the key content.

[0011] Optionally, before executing the media data recording, recording parameters are also set, and the recording parameters include but are not limited to one or more of canvas size, image format, image quality, compression parameters, video encoding format, video compression settings, and sound settings.

[0012] In the above implementation, the visual data types include but are not limited to images, graffiti, videos, texts, files, web pages, network links, etc., and the visual data collection includes taking pictures, selecting pictures, shooting videos, performing graffiti, inputting texts, adding URLs, adding files, browsing files, etc. For example, the user adds a key frame by taking a picture, and performs a graffiti marking operation on the current key frame screen; or, creates a new blank key frame and performs a graffiti marking operation on it; inputs or inserts text content in the key frame; sets a network link in the key frame or sets a network link for an element in the key frame, so that the network link can be accessed by clicking the key frame screen or the elements therein during playback; the user adds a PDF file, follows the lecturer's explanation progress, and performs page turning operations.

[0013] In a possible implementation, the visual data acquisition is performed in the recording state, and when the video recording is started in response to a video shooting instruction, it is determined that the video recording includes audio recording, the first audio recording is stopped, the current time is recorded as the video recording start time, and the video recording is started; after receiving the end video recording instruction, the video recording is stopped, the first audio recording is restarted, and the time t at which the recording is restarted is recorded. n . This implementation provides a method for inserting video during the media data recording process, wherein the video recording includes continuous images and is suitable for critical scenes where the visual content continues to change, such as recording the experimental process. When the video recording does not include audio recording, the video recording will not interfere with the first audio recording; when the video recording includes audio recording, in order to avoid repeated collection of audio data, the first audio recording is stopped when the recording is started, and the first audio recording is started after the recording is completed.

[0014] In a possible implementation, the visual data is collected by taking a picture, the projected content in the picture is identified, and the successfully identified projected content is transformed into a picture of a specified size and aspect ratio as a visual data record, wherein the projected content is content displayed by projection or projection. This implementation is conducive to obtaining high-quality visual data for the projection scene. For example, a user collects visual data for a PPT presentation scene, wherein the PPT content is presented by television, projection, etc., and the user takes a picture to obtain the visual data. Undoubtedly, the PPT screen in the picture is the valid content to be recorded, but due to the position and angle of the user's shooting, the captured screen is usually Figure 5 As shown, the shaded quadrilateral ABCD is the transmitted PPT screen content. It is not difficult to see that the use Figure 5The picture recording quality shown is poor. According to the method provided in this implementation, the quadrilateral ABCD is transformed, skewed, etc., and finally converted into a rectangular picture, or further converted into a rectangular picture adapted to the display size of the visual content to obtain high-quality visual data.

[0015] In one possible implementation, visual data is collected in the recording state. When visual content needs to be added, a blank keyframe is created or the last collected image data is obtained as a keyframe, and the collected visual data is displayed in the keyframe. Through this implementation, for example, a user takes a picture as a keyframe K1, enters text on it for remarks, and the entered text content is stored in K1 or merged into the picture of K1. Another way to add text descriptions is to create a blank keyframe K2, which contains the corresponding creation time, and enter text content on K2. This implementation supports automatic creation of keyframes when collecting visual content or manual creation of keyframes to store visual content.

[0016] In a possible implementation, visual data is collected in the recording state, and based on the specified time, a network request is generated and sent to obtain visual data within the specified time range from the network, and the visual data comes from the network sharing of other users, wherein the user shared data of the same target scene can be obtained through the network request. It also includes submitting the visual frame data to the server to share the visual frame data with other users. This implementation provides a way to obtain visual data from other users through network sharing, and a way to share visual data with other users. Optionally, in the recording state, based on the current time, visual data is obtained from the network sharing and added to the currently recorded media data. Optionally, in the playback or editing state, visual data is obtained from the network sharing and added to the current media data according to the time position of the current playback.

[0017] In a possible implementation, performing visual data collection in the recording state further includes creating a key frame index for a specified key frame and providing a name for the key frame index; during playback, displaying the key frame index naming information, quickly jumping to the specified key frame through the key frame index, and after the jump, taking the time included in the key frame as the new playback time, jumping the first audio to the new playback time and playing. This implementation provides support for quick browsing and searching of content by creating indexes and naming key frames.

[0018] In a possible implementation, after the recording process is finished, the method further includes starting media data editing in response to an editing instruction, wherein the editing includes editing key frames and visual data, including one of creating a key frame index, modifying the key frame index name, embedding key frame data from a network share, deleting key frames, editing key frame content, generating subtitles, and editing subtitles. This implementation provides for editing the generated media data after the recording is completed.

[0019] In a possible implementation, after the recording process is finished, the method further includes identifying the first audio data D sound The recognized text is used to generate the visual data of text type and the corresponding time information is recorded. The recognized text is used to generate subtitles during playback. This implementation method generates subtitles based on the text recognition of the collected audio data. Each subtitle text has a corresponding playback timestamp. Optionally, the user is supported to edit the recognized text to correct the recognition result.

[0020] In a possible implementation, after the recording process is finished, the method further includes playing the media data and generating a video based on the recording of the playing process. The implementation generates a video based on the recorded media data, wherein the first audio data is the audio content in the video, and the visual data is the image content of the video generated corresponding to the playing time axis.

[0021] In a second aspect, the present invention provides a media data recording device, which includes a sound recording module, a visual data generation module, a data storage module, and a setting module. The sound recording module is used to record the first audio data. The visual data generation module is used to receive a visual data acquisition instruction, create a key frame and record its corresponding creation time, obtain visual data and record it as key frame data of the key frame, the visual data type includes one or more of images, graffiti, videos, text, web pages, and files, and the visual data acquisition includes taking pictures, selecting pictures, shooting videos, performing graffiti, inputting text, adding URLs, adding files, and browsing files. In a possible implementation, the visual data generation module also includes a function of obtaining visual data from a network share based on specified time information. The data storage module is used to generate media data in structured storage based on the collected sound data, visual data, and corresponding time information.

[0022] In a possible implementation, the media data recording device further includes a setting module, which includes but is not limited to one or more setting functions such as sound recording setting, canvas size setting, image capture setting, network sharing setting, storage setting, etc.

[0023] In a third aspect, the present invention provides a media data playback device, the media data playback device comprising a data parsing module, a sound playback module, a visual data playback module, and a playback control module. The data parsing module is used to read and parse media data, and parse the first audio data and key frame data contained in the media data; the sound playback module is used to play the first audio data; the visual data playback module is used to play visual data, read key frame data, start a timer to control playback, and play the key frame data according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data contained therein may be played in one or more modes including displaying pictures, playing videos, displaying texts, displaying graffiti, displaying files, opening URLs, and displaying files; the playback control module is used to control the playback process, such as playing, pausing, stopping, fast forwarding, fast rewinding, jumping to a specified position to play, etc.

[0024] In one possible implementation, the media data playback device also includes an editing module, which includes one or more of the following functions: editing key frames in the media, or editing visual data in a key frame; generating subtitles based on the voice information contained in the first audio data; generating a video file according to the playback content or effect of the media data.

[0025] From the above, it can be seen that the media data recording and playback method provided in the embodiment of the present application has continuity in the sound recording of the entire process compared to the traditional photo shooting and recording method. Compared with the traditional video shooting and recording method, the generated media recording file is small, and the visual information recorded at the key nodes is clearer and easier to browse and retrieve. The media content is richer, notes can be added, and it has the advantage of content sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the structure of media data provided in an embodiment of the present application;

[0027] Figure 2 A schematic diagram of an execution flow of a method for recording media data provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of an execution flow of a method for playing media data provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of the composition of a media data recording device provided in an embodiment of the present application;

[0030] Figure 5 A schematic diagram of the composition of a media data playback device provided in an embodiment of the present application;

[0031] Figure 6 A schematic diagram of an execution flow of recording a video in a media recording method provided in an embodiment of the present application;

[0032] Figure 7 A schematic diagram of a media data structure including a video provided in an embodiment of the present application;

[0033] Figure 8 It is a schematic diagram of the picture content shot based on the projection scene;

[0034] Fig. 9 A schematic diagram of a media data recording software interface (file list, home page) provided in an embodiment of the present application;

[0035] Fig.10 A schematic diagram of a recording software interface (recording) for media data provided in an embodiment of the present application;

[0036] Fig.11 A schematic diagram of a recording software interface (recording, full screen) for media data provided in an embodiment of the present application;

[0037] Fig.12 A schematic diagram of a media data recording software interface (selecting network shared material) provided in an embodiment of the present application;

[0038] Fig.13 A schematic diagram of a media data recording software interface (after selecting a network shared material) provided in an embodiment of the present application;

[0039] Fig.14 A schematic diagram of a media data recording software interface (settings) provided in an embodiment of the present application;

[0040] Fig.15 A schematic diagram of a recording software interface (playback) for media data provided in an embodiment of the present application;

[0041] Fig.16 A schematic diagram of a recording software interface (editing) for media data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The implementation mode part of this application is only used to explain this application but is not intended to limit this application.

[0043] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0044] As we all know, taking photos and recording videos are common means for people to record and record some scenes. For example, in a lecture, both users A and B record the scene. User A takes photos and takes photos to record important content in the lecture; User B records videos and records the entire lecture. Both methods are effective means of recording scenes and processes. User A records a large number of pictures. When browsing, he recalls the corresponding speech process based on the picture content. The recorded content is scattered and lacks continuity. It is impossible to present dynamic changes and deduce the complete speech process by relying solely on pictures. The video files recorded by user B are vivid and continuous. However, high-resolution and high-frame-rate video files usually take up a lot of storage space, which may lead to insufficient storage space. In addition, for some important content in the speech, such as table data, the quality of video shooting is far less clear than static pictures.

[0045] The embodiment of the present application provides a new media data recording method to solve the above problems. The embodiment of the present application is described in detail below:

[0046] An analysis of some defects in existing scene recording technologies shows that, when recording is performed, not all visual content in the scene is useful for recording. In the video recording method, a large amount of irrelevant or unimportant image data is recorded, which consumes a lot of resources. The size of the video file depends on multiple factors, including the video resolution, frame rate, encoding and decoding method, and the complexity of the video content. The size of a one-hour video file can be between several hundred megabytes and tens of GB. In addition, the relevant parameters are fixed during video recording, and it is difficult to adjust and increase recording resources in real time to cope with sudden important content. The main defect of the camera recording method of the prior art is that the recording process is incomplete and there is a lack of continuity between the recorded materials. In response to the above defects, this application proposes a new media data recording method, please refer to Figure 1The schematic diagram of the media data structure shown in the figure shows that the media data consists of two parts, one of which is continuous audio recording data, namely the first audio data, and the other is scattered visual data corresponding to different time points, such as key frame 1, key frame 2, key frame 3, ..., key frame n, etc., each key frame contains visual data content, such as pictures, etc., and each key frame has corresponding time information. According to the above media data composition analysis storage situation, the size of the audio file depends on the quality, sampling rate and bit rate of the audio. Generally speaking, for standard sound quality audio (such as 64kbps MP3 format), the size of an audio file for one hour is about 30MB. Based on the calculation of generating one key frame per minute and storing a 1920*1080 high-definition picture in each key frame (assuming the use of JPEG compression algorithm, medium quality, and file size between hundreds of KB and several MB, here 1MB), the visual content of one hour is about 60M. It can be concluded that the media data provided by this application is about 90M per hour, which saves 5 to 10 times the storage space of video files.

[0047] This application embodiment provides a method for recording media data. Figure 2 The detailed steps are as follows:

[0048] S201, start recording;

[0049] S202, start first audio recording;

[0050] D001, first audio data D sound ;

[0051] S203, monitoring the visual data collection instruction, creating a key frame K n And record the creation time t n ;

[0052] S2031, performing visual data collection;

[0053] D002, record visual data D n K n Key frame data;

[0054] S204, monitoring the end recording instruction;

[0055] S2041, end recording;

[0056] S205: Generate media data.

[0057] In the above steps, S201 starts recording after receiving the start recording instruction triggered by the user. Optionally, the start time is recorded in S201, and the start time is used as a reference time to calculate and locate the relative time of each subsequent key frame. Optionally, a timer is started in S201, and the timer is used to provide time data for each subsequent key frame. Step S202 collects the sound data of the whole process, and D001 is the data generated by this step. After S201 starts recording, the monitoring of visual data collection is entered. After S203 monitors the visual data collection instruction triggered by the user, the S2031 collection step is executed, and D002 is the corresponding data, which includes visual data and corresponding time information. Generally, a recording can cyclically execute multiple S203 and S2031 steps. The media data recording method provided in this application is particularly suitable for complex process scenes, which contain multiple key moments. The user can manually record important moments and execute the above visual data recording steps. After S204 monitors the end recording instruction triggered by the user, S2041 ends the recording. Step S205 generates the final media data based on the data in D001 and D002. Optionally, the media data is stored in the form of an independent file, for example, the sound data and visual data are packaged into a custom data format file, and the structure and storage method of the data are defined in the file so that they can be parsed and extracted when needed. Optionally, the sound data and image data contained in the media data are stored independently, and they are associated by metadata tags. By adding tags or indexes to the files, relevant sound and image data can be easily identified and extracted.

[0058] The present application also provides a method for playing media data. Figure 3 The detailed steps are as follows:

[0059] S301, start playing;

[0060] S302, read the media data and parse the first audio data D contained therein sound , key frame K n And its key frame data

[0061] S303, play the first audio data D sound ;

[0062] S304, start the timer to control the key frame K n Play, according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data D n .

[0063] In the above steps, S301 starts playback according to a playback event triggered by the user. After starting, step S303 is first executed to play the first audio, and the timer is started at the same time. According to the time information contained in each key frame, step S304 is executed to play the corresponding key frame, that is, the visual data contained in the key is displayed.

[0064] In a possible implementation, the visual data collection in the above embodiment S2031, the visual data includes but is not limited to images, graffiti, video, text, web pages, documents, etc. For example, in step S2031, the user takes a picture as the visual data, starts graffiti, and annotates the key information in the picture scene. The graffiti data is also a kind of the visual data. Optionally, the user gives a voice description of the scene during the graffiti process, and the voice data is stored in the first audio data. Thus, when the visual data of this type of graffiti type is played in S304, a complete graffiti explanation effect can be generated in combination with the first audio data played. Optionally, the user enters text in a key, and this type of text is also a kind of the visual data. Optionally, the user can insert a network resource in a key frame as the visual data, for example, the user adds a network link to a key frame, or the user adds a network link to an element in a key frame. Accordingly, when playing in step S304, the user clicks on the picture or the relevant element in the picture to access the corresponding network link.

[0065] In a possible implementation, the visual data also includes a PPT document, a PDF document, etc. The user chooses to upload a PPT document, follows the speaker's explanation of the PPT document, turns the page to the corresponding explanation position, and executes step S2031 to create a key frame according to the current page in the PPT document, and can perform annotation operations such as graffiti on it. In this implementation, uploading a PPT document, turning pages, graffiti, etc. are all setting operations of the visual data.

[0066] In one possible implementation, the embodiment of the present application provides corresponding playback methods for different types of visual data. It should be noted that the playback of media data in the embodiment of the present application is not limited to traditional audio playback and video and image playback, but also includes various operations corresponding to the type of visual data, such as zooming in on pictures, browsing and operating web pages, etc. For another example, according to the implementation principle of the present application, the embodiment of the present application supports the establishment of browsing permissions for specified content. It can be seen that compared with the prior art, the media data types generated by the embodiment of the present application are rich, and its playback is not a single audio and video playback. It supports the playback of various media and data, and also supports interaction with users, and the user experience is significantly improved.

[0067] Corresponds to Figure 2The media data recording method provided in the embodiment, the embodiment of the present application also provides a media data recording device, such as Figure 4 As shown, the media data recording device 10 includes a sound recording module 101, a visual data generation module 102, and a data storage module 103, wherein the visual data generation module also includes a visual data acquisition module 1021 and a key frame editing module 1022, and the visual data acquisition module 1021 includes a picture shooting module 10211, a video shooting module 10212, and a visual data network acquisition module 10213. The sound recording module 101 is used to record the first audio data, which includes the whole process voice information of the target scene, and the target scene is the scene for which the user performs media data recording, such as a meeting, an exhibition, etc. The visual data generation module 102 is used to record and generate the visual data in the media record. In a specific implementation scenario, a key frame is created in the media data record to store the visual data, and the visual data is visible data that can obtain information through the visual nerve. Different types of visual data are obtained through the visual data acquisition module 1021, which contains submodules such as a picture shooting module 10211, a video shooting module 10212, and a visual data network acquisition module 10213, which are used to obtain different types of visual data, or to obtain the visual data in a specified manner. It should be noted that the visual data acquisition module 1021 includes but is not limited to the visual data acquisition methods listed above, for example, a user manually uploads and adds a PDF document as the visual data. Among them, the visual data network acquisition module 10213 obtains visual data from the network, and this type of visual data comes from the sharing of other users. In addition, the key frame editing module 1022 is used to edit or add visual data to the visual data contained in a key frame, for example, add graffiti marks to the content in the picture, add text descriptions to the photos taken, add a website or QR code, so that the website can be opened or the website contained in the QR code can be identified and browsed during playback, PDF files can be added, and pages can be turned to a specified position following the explanation. The data storage module 103 is used to record and generate media data, for example, storing the media data in the form of an independent file, or independently storing the sound data and image data contained in the media data. The present application does not limit the storage method, including various existing file and data storage methods.

[0068] In a possible implementation, the media data recording device 10 further includes a setting module 104, which is used to set media data recording, such as sound recording settings, canvas size settings, image capture settings, network sharing settings, storage settings, etc.

[0069] Corresponds to Figure 3The embodiment provides a method for playing media data. The embodiment of the present application also provides a device for playing media data. Figure 5 As shown, the media data playback device 20 includes a data parsing module 201, a sound playback module 202, a visual data playback module 203, and a playback control module 204, wherein the data parsing module 201 is used to read and parse the media data, and parse the first audio data, visual data, and corresponding time information contained therein. The sound playback module 202 is used to play the first audio data. The visual data playback module 203 is used to play the visual data contained in the key frame, including but not limited to displaying pictures, displaying videos, displaying graffiti, displaying text, displaying PPT files or PDF files, locating to a specified page of a PPT file or PDF file, and displaying a web page. The playback control module 204 includes but is not limited to one or more of the following functions:

[0070] Play / Pause: Used to start or pause the playback of media data.

[0071] Fast forward / fast rewind: Used to fast forward or rewind the playback position of media data.

[0072] Volume control: used to adjust the volume of media files.

[0073] Progress bar: Displays the playback progress of media data and allows users to jump to a specific location.

[0074] Loop Playback: Controls whether to loop the media file.

[0075] Subtitle control: Allows users to choose whether to display subtitles.

[0076] Speed ​​​​playback: Allow users to adjust the playback speed, such as speeding up or slowing down the playback speed.

[0077] Screenshot function: allows users to obtain the content of the current playback screen, such as pictures, URL links, etc.

[0078] Setting options: including video quality, audio settings, subtitle settings and other player parameter settings.

[0079] In a possible implementation, the media data playback device 20 further includes an editing module 205, which may include a keyframe editing module 2051, a subtitle generation module 2052, and a video generation module 2053, wherein the keyframe editing module 2051 is used to edit the visual content contained in the keyframe, such as adding graffiti marks, text descriptions, etc. to the picture. Optionally, the keyframe editing module 2051 includes a keyframe adding function, including creating a blank keyframe at a specified time position, or adding visual data at a specified time position and giving it to create a keyframe. Optionally, the keyframe editing module 2051 includes a keyframe deleting function, that is, deleting a specified keyframe or deleting a keyframe within a specified time range. The subtitle generation module 2052 is used to identify the voice information contained in the first audio data and generate subtitles. Because the subtitles have no corresponding relationship with the keyframes (the corresponding occurrence times of the two are different), optionally, the subtitle content is displayed in an independent display container or layer independent of the display container or layer of the display content. The video generation module 2053 is used to generate a video file according to the playback content or effect of the media data.

[0080] In a possible implementation, the visual data in the key frame also includes video data. In particular, for some recording scenarios that require continuous image acquisition, such as experimental steps, video recording is more suitable. In the implementation of the present application, for the implementation scenario where the visual data is video data, please refer to Figure 6 The execution process diagram shown in FIG. 1 shows that after starting recording at S601, the first audio recording is started at S602. This step is intended to record the voice data of the entire process. After receiving the video capture instruction at S603, if the video capture does not involve audio recording, the capture process is the same as other visual data. On the contrary, if the video capture involves audio recording, the step S604 is executed to record the time T, stop the first audio recording, and start the video recording. After receiving the video capture completion instruction at S605, the step S606 is executed to record the time T2, stop the video recording, and start the first audio recording. In this implementation, the recorded media data structure is as follows: Figure 7 As shown, it can be seen that when playing, the first audio data 1, video 1, and first audio data 2 are played serially, and pictures 1, 2, 3, and first audio 1, and pictures 4, 5, and first audio 2 are played in parallel. Or it can be understood that the first audio data 1, video 1, and first audio data 2 are combined to include the sound data of the whole process. Optionally, in the implementation scenario of collecting visual data, no special processing is performed on the collected video data, and when playing media data, it is set not to play the sound in the video data.

[0081] In a specific implementation scenario, the speaker displays the content and gives a speech through projection, etc., and the user takes a picture to record the visual data. The taken picture is as follows: Figure 8 As shown, in this application, this type of content displayed by projection, screen, etc. is defined as projected content. According to the picture, usually, the graphic ABCD is the content that the user focuses on. Due to the limitations of the user's shooting position, angle, etc., it is impossible to obtain a high-quality content picture. In a possible implementation, the embodiment of the present application identifies the projection area ABCD in the picture, and performs image transformation, such as Transform transformation, Skew transformation, etc., on the screen content of the successfully identified graphic ABCD, and finally transforms it into a picture of a specified size and ratio as a visual data record. Among them, Transform refers to the operation of transforming an image, object or coordinate system, which can change the position, size, direction or shape of an object, and is often used to achieve the effects of translation, rotation, scaling, etc. of graphics, such as: translation, rotation, scaling, shearing, etc. Skew transformation is a two-dimensional transformation, also known as Shear transformation, which can perform shearing operations on images or objects in the horizontal or vertical direction. Skew transformation includes horizontal shearing and vertical shearing. In a possible implementation, the image transformation also includes "free transformation". Through free transformation, you can translate, rotate, scale, tilt and other operations on the selected content ABCD. You can also use ABCD as a control point to perform non-proportional transformations on the layer. This transformation method is very flexible. Ultimately, the content contained in the ABCD quadrilateral is adjusted to a rectangular size of a specified proportion to obtain a high-quality content image.

[0082] In a possible implementation, multiple users perform media data recording based on the same scene, and the users share their collected visual data with other users in the same scene, or obtain the shared visual data from other users in the same scene. Preferably, the shared visual data resources are registered and managed by the server, and the visual data sharing and acquisition requests sent by the client are processed. Optionally, at the recording client, a visual data network acquisition event triggered by the user is received, and a visual data network acquisition request is generated and sent based on the current time point or the current playback time point, or the time point specified by the user. Optionally, a visual data network acquisition request is generated and sent based on the current time point or the current playback time point, or the time point specified by the user, and a scene ID, and the scene ID is used to identify the target scene in which the recording is being performed. The user obtains the visual data through resource sharing, including obtaining it during the recording process of the media data, or obtaining it when the media data is edited, or obtaining it during the playback of the media data. For example, when the user plays the media data, if the content is not clear, a data request is generated based on the time position of the playback and sent to the server to request the visual data within a certain range before and after the time position.

[0083] In one possible implementation, based on a file collection or folder submitted by a user, the sound files contained therein are read, the sound files are processed into the first audio data, and the recording start time is calculated based on the file creation time and the sound duration in the sound file, and a media data record is created based on the recording start time and the first audio data; the picture files contained in the file collection or folder are read, a key frame is added to the media data according to the creation time of the picture file, and the picture is added as the key frame data of the key frame.

[0084] The following is an example description and explanation of a specific application scenario of a method:

[0085] refer to Fig. 9 , which is a UI interface diagram of the media data recording device of an embodiment of the present application, wherein the three records in the media record list are the recorded and generated media data, and the “New” button is a trigger button for starting recording. Clicking the button starts the recording of the media data.

[0086] For the media data recording page, please refer to Fig.10As shown in the UI interface diagram, usually, after entering the page, sound recording is started first, that is, the first audio data collection is started. The continuous collection of sound data and the collection of visual data according to demand are the main features of data collection for media data recording in this application. Therefore, the sound recording starts after the recording of the media data recording device starts, and during the recording process, there is usually no control function for the sound recording, and the sound recording is stopped only when the media data collection ends. As shown in the figure, the time information in the upper left corner represents the length of time the sound (or media data) has been recorded, and "Recording..." means that it is in the recording state. As shown in the figure, the rectangular area in the upper left part is the key frame visual data display area, the right side is the key frame content editing function area, and the lower side is the key frame creation function area.

[0087] Among them, the visual data collected by taking photos, shooting videos, etc. is displayed in the key frame visual data display area. Optionally, after pressing the "take photo" or "take video" button in the key frame creation function area, the image captured by the camera is displayed in this area, and the relevant shooting and recording control buttons are displayed; optionally, after creating a key frame, the time information corresponding to the created key frame is displayed in this area, such as "1:19:15" as shown in the figure, which means that the creation time of the current key frame is 1 hour, 19 minutes and 15 seconds, and the current recording time is 1 hour, 22 minutes and 23 seconds; optionally, in a specific implementation scenario, the embodiment of the present application also includes a display control function for the key frame visual data display area. For example, after clicking Fig.10 After clicking the full screen icon button at the lower right corner of the key frame visual data display area, the key frame visual data state is switched to full screen display, such as Fig.11 As shown, similarly, click the switch icon in the lower right corner of the figure to exit the full screen display state. Optionally, the embodiment of the present application also provides a navigation function for key frames, such as Fig. 9 As shown, the lower side of the key frame visual data display area includes key frame navigation buttons, which can jump to the previous and next key frames.

[0088] Optionally, after pressing the "Take a Photo" button in the key frame creation function area, the dynamic image captured by the camera is displayed in the key frame visual data display area, and a shooting button is displayed for the user to select, a shooting event triggered by the user is received, the current image data is obtained as the visual data, and the shooting time is collected, a key frame is created based on the above two, and then the visual data and the corresponding shooting time information are displayed in the key frame visual data display area.

[0089] Optionally, after pressing the "Take Video" button in the key frame creation function area, the dynamic image captured by the camera is displayed in the key frame visual data display area, and a shooting button is displayed for the user to select, a shooting event triggered by the user is received, video shooting is started, the shooting time is collected, and a stop shooting button is displayed. After receiving the stop shooting event triggered by the user, the video shooting is completed, and a key frame is created based on the above video data and shooting time, and then a frame of the video data and the corresponding shooting time information are displayed in the key frame visual data display area.

[0090] Optionally, in a possible implementation, the above "take photo" and "take video" functions are merged into a "shooting" function. After starting "shooting", the dynamic image captured by the camera is displayed in the key frame visual data display area, and a shooting button is displayed for the user to execute shooting. When the user clicks the button, it is recognized as the "take photo" function. When the user long presses the button, it is recognized as the "shoot video" function.

[0091] Optionally, after pressing the "New Blank Frame" button in the keyframe creation function area, a blank keyframe is created based on the current time, and then the keyframe editing state is switched to set the visual data content corresponding to the keyframe.

[0092] Generally, the embodiments of the present application provide the following editing functions for key frames:

[0093] Naming a keyframe means adding a name to the keyframe, including but not limited to manual naming and default naming. The name can be used as the index of the keyframe to quickly locate and search for the keyframe when playing. Fig.10 As shown, the TAB labels below the key frame visual data display area are schematics of the named key frames, "Section 1", "Section 2", "Section 3", "Summary", etc. Click the corresponding label to quickly jump to the corresponding key frame.

[0094] Add image or video. Use this function to select a local picture or video file to add visual data content to the keyframe.

[0095] Add text description. This function adds text description to the current key frame, including receiving text content input by the user, modifying the image data of the current key frame, adding the text content, generating a new image, or independently storing the text data and recording the correspondence between the text data and the key frame.

[0096] Graffiti, this function adds graffiti data on the key frame. The graffiti function includes one or more of a brush tool, an eraser tool, a shape tool, a text tool, a graffiti tool, filters and special effects, layer management (allowing users to manage different elements in layers), a color picker, undo and redo, etc. Optionally, a new layer is created on the picture contained in the current key frame to perform graffiti, and the data generated by the graffiti is merged with the picture to form a picture storage. Optionally, the graffiti data is stored independently, and the correspondence between the graffiti data and the key frame is recorded. Optionally, the graffiti action and the corresponding occurrence time of each graffiti action are recorded. When the corresponding key frame is played, the graffiti action is played step by step according to the recorded occurrence time information to form a graffiti animation effect.

[0097] The network obtains visual data. This function supports users to obtain visual data through network resource sharing of other users. According to the application scenario of the embodiment of the present application, there may be multiple users performing data collection on the same scene. User A and User B shoot the scene from different angles at different times to obtain visual data. Therefore, sharing the visual data with each other is a good choice. Fig.10 As shown, the user clicks the "Network Acquisition" button in the key frame creation function area, generates a visual data acquisition request based on the specified time point, and sends it to the resource sharing server. Optionally, the visual data acquisition request is generated based on the specified time point and scene identifier, wherein the scene identifier is used to identify the target scene for performing acquisition. For example, a scene identifier is established for a speech, a meeting, etc. Optionally, the host pre-sets a meeting identifier for the media data collector to pre-add the identifier. Optionally, the collector identifies the current scene by setting a password and shares the password for participants to share. Optionally, location information is used as a scene identifier, or as a reference dimension for a scene identifier. The resource sharing server processes the visual data acquisition request, uses the time data contained in the visual data acquisition request as a reference time, and returns several data records closest to the reference time, such as Fig.12 As shown in the figure, according to the reference time "2024-2-20 13:43:22", three data are returned for the user to select. For example, if the user selects the first data record, the visual data is obtained according to the selected data record, and a key frame is created accordingly. The running effect is as follows: Fig.13 As shown, the user can then edit the keyframe. It should be noted that the visual data is not necessarily visible data such as pictures, videos, and files. For example, a user creates a keyframe based on the browsing process of a PPT document being explained, and the shared visual data is the browsing position of the PPT document, that is, the page number.

[0098] In a possible implementation, the present application embodiment provides setting items for users to set media data collection, such as Fig.10 , 13 Click the "Settings" button to open the Fig.14 The setting screen shown includes, for example, setting items classified into categories such as sound collection, canvas, image capture, and network sharing.

[0099] like Fig.13 As shown, after the user clicks the "End" button, the media data collection is completed and the media data is stored, for example, according to the following data structure:

[0100] {

[0101] "sound": "1. mp3";

[0102] "KeyFrames": [{

[0103] "KeyFrameName": "k1";

[0104] "duration": 3443;

[0105] "VisualData": {

[0106] "DataType": "image";

[0107] "File": "pic1.jpg"

[0108] }

[0109] },

[0110] {

[0111] "KeyFrameName": "k2";

[0112] "duration": 23459;

[0113] "VisualData": {

[0114] "DataType": "video";

[0115] "File": "v1.mp4"

[0116] }

[0117] } ]

[0119] }

[0120] According to the above data, the stored media data sound file is 1.mp3, which also includes two key frames, wherein the first key frame k1 is created 3443 milliseconds after the start of recording, and the visual data content contained therein is a picture, namely pic1.jpg, and the other key frame k2 is created 23459 milliseconds after the start of recording, and the visual data content contained therein is a video, namely v1.mp4. The data structure of the above media data file is only for illustration, and the present application should not be limited by the above examples.

[0121] In a possible implementation, when the user encounters unclear visual data during playback of the media data, a data acquisition request can be generated based on the current playback time point to acquire visual data from the resource sharing server. This implementation is a method of acquiring shared data during playback, which fully utilizes the data acquisition advantages of the Internet.

[0122] After the media data file is stored, the user returns to the page. Fig. 9 As shown, the user selects one of the data records and executes the playback. Fig.15 As shown, after entering the playback mode, the first audio data is played, and the timer is started to start timing. According to the time information contained in each key frame, the corresponding key frame is played at the corresponding time position, that is, the visual data contained therein is displayed. Optionally, the user can jump to the specified key frame for playback through key frame navigation, fast forward, fast rewind, etc. After executing the jump, according to the time information contained in the jump target key frame, the first audio data is played at the time position. In a possible implementation, the user selects a data record and performs editing such as Fig.16 As shown, it includes functions such as adding, deleting, and editing the visual data content in key frames.

[0123] Optionally, the voice information included in the first audio data is recognized to generate subtitle data. Each subtitle data contains corresponding time information. Optionally, the user is supported to browse and modify the subtitle data to correct recognition errors. Optionally, in the playback container, an independent layer or container is created to display the subtitle data, and each subtitle data is played according to its corresponding time information.

[0124] Optional, such as Fig. 9 As shown, the user selects a media data record, and a video file is calculated or recorded based on the playback process of the media data.

[0125] In summary, the media data recording and playback method provided in the embodiment of the present application continuously records sound data, and records visual data irregularly according to user events to generate media data. The media data playback method provided in the embodiment of the present application plays continuous sound data, and plays the visual data contained in the key frame according to the time information corresponding to the key frame. The beneficial effects produced by the embodiment of the present application can be summarized as follows: compared with the camera recording method in the prior art, the recorded media data has continuity, and compared with the traditional video recording method, the amount of recorded data is small, the data content is diverse, and the data quality recorded for key moments is high. Therefore, the present application has the advantages of saving storage, high data quality, and flexible data form, which is more conducive to reading and browsing, and the user experience is good. At the same time, it also supports resource sharing of local content, and the advantages are significant.

[0126] The above are only specific implementations of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any changes or replacements that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the embodiments of the present application should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be based on the protection scope of the claims.

Claims

1. A method for recording and playing media data, characterized in that: include: In response to the start recording instruction, the target scene is recorded, and the first audio recording is started to collect the sound of the target scene to obtain the first audio data D sound ; In response to the nth (n>0) visual data acquisition instruction, create a key frame K n And record its corresponding creation time t n , obtain visual data D n , and recorded as the key frame K n The key frame data is as follows: n , including based on the collected visual data D n Create a key frame, or, in response to a key frame creation instruction, create a blank key frame, and record its corresponding creation time as the creation time t n , set the corresponding visual data D for the key frame n ; In response to the stop recording instruction to end the recording, the first audio data D sound , the key frame K n and key frame data storage to generate media recording data; In response to the start play instruction to start the play process, the media recording data is read in and the first audio data D contained therein is parsed. sound , the key frame K n and its key frame data, playing the first audio data D sound , and start the timer to control the key frame K n Play, according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data D n ; Among them, the visual data type includes one or more of images, graffiti, videos, texts, web pages, and files, and the visual data collection includes one or more of taking pictures, selecting pictures, shooting videos, executing graffiti, inputting text, adding URLs, adding files, and browsing files.

2. The method according to claim 1, characterized in that Record the key frame K n The corresponding creation time t n , according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data D n , and also includes one of the following two methods: When the first audio recording is started, a timer is started, and the timer is used to record the key frame K n Provide the creation time t n , wherein, during the playback process, the start timer controls the key frame K n Play, at the creation time t of the timer n Play the key frame K n ; Alternatively, when the first audio recording is started, the start time is recorded, and the start time is used as a reference time. n The corresponding creation time t n Calculate and locate the key frame K n The relative time of the key frame K n Play, at the key frame K n Play the key frame K at the relative time n .

3. The method according to claim 1, characterized in that: The visual data collection is performed by taking pictures, and further includes: Identify the projection content in the picture, perform image transformation on the successfully identified projection content, and convert it into a picture of a specified size and ratio as a visual data record, wherein the projection content is content displayed by projection or projection.

4. The method according to claim 1, characterized in that The visual data collection is performed in the recording state, and further includes: Based on the specified time, a network request is generated and sent to obtain visual data within the specified time range from the network, wherein the visual data comes from network sharing of other users, wherein user shared data of the same target scene can be obtained through the network request.

5. The method according to claim 1, characterized in that The visual data collection is performed in the recording state, and further includes: Create a key frame index for the specified key frame and provide a name for the key frame index; During playback, the key frame index naming information is displayed, and the key frame index is used to quickly jump to the specified key frame. After the jump, the time contained in the key frame is used as the new playback time, and the first audio is jumped to the new playback time and played.

6. The method according to claim 1, characterized in that After receiving a stop instruction to end the recording process, the method further includes: Responding to an editing instruction to start the media data editing, the editing includes editing the key frames and the visual data, including creating a key frame index, modifying the key frame index naming, embedding key frame data from a network share, deleting key frames, editing key frame content, generating subtitles, and editing subtitles.

7. The method according to claim 1, characterized in that After the recording process is finished, the method further includes: Identify the first audio data D sound The voice text in the video is used to generate subtitles during playback, and the recognized text is used to generate text-type visual data, and the corresponding time information is recorded.

8. The method according to claim 1, characterized in that After receiving a stop instruction to end the recording, the method further comprises: Playback is performed based on the media recorded data, and a video is generated based on the recording of the playback process, or a video is generated based on calculations of the media recorded data, wherein the video has the same playback effect as the media recorded data.

9. A media data recording device, characterized in that: The media data recording device includes a sound recording module, a visual data generating module, and a data storage module, wherein: The sound recording module is used to record sound to obtain the first audio data D sound ; The visual data generation module is used to receive a visual data acquisition instruction, create a key frame and record its corresponding creation time, obtain visual data and record it as key frame data of the key frame, wherein creating the key frame includes creating a key frame based on the acquired visual data, or creating a blank key frame in response to the key frame creation instruction, and recording its corresponding creation time as the creation time, setting the corresponding visual data for the key frame, the visual data type includes one or more of images, graffiti, videos, texts, web pages, and files, and the visual data acquisition includes one or more of taking pictures, selecting pictures, shooting videos, executing graffiti, inputting texts, adding websites, adding files, and browsing files; wherein recording the creation time corresponding to the key frame also includes one of the following two methods: when starting the first audio recording, starting a timer to provide the creation time for the key frame by the timer; or, when starting the first audio recording, recording the start time as a reference time, and calculating and locating the relative time of the key frame according to the start time and the creation time corresponding to the key frame; The data storage module is used to store the first audio data D sound , the visual data and the corresponding time information are structured and stored to generate media recording data.

10. A media data playback device, characterized in that: The media data recording device includes a data parsing module, a sound playing module, a visual data playing module, and a playing control module, wherein: The data parsing module is used to read and parse the media recording data, and parse the first audio data and key frame data contained in the media recording data; The sound playing module is used to play the first audio data; The visual data playback module is used to play the visual data, read the key frame data, start the timer to control the playback, and n The corresponding creation time t n Play the key frame K at a fixed time n The visual data contained in the video data includes one or more of displaying pictures, playing videos, displaying texts, displaying graffiti, displaying files, opening websites, and displaying files, wherein according to the key frame K n The corresponding creation time t n Play the key frame K at a fixed time n The visual data D n , and also includes one of the following two methods: corresponding to the creation time t n The recording method, after confirming that it is the creation time t provided by the timer started when the first audio recording is started n When the key frame K is set to the starting timer, the starting timer controls the key frame K during the playback process. n Play, at the creation time t of the timer n Play the key frame K n ; In determining the creation time t n When the recording mode is direct recording time, the start time recorded when the first audio recording is started is obtained, and the start time is used as a reference time. n The corresponding creation time t n Calculate and locate the key frame K n During the playback process, the start timer controls the key frame K n Play, at the key frame K n Play the key frame K at the relative time n ; The playback control module is used to control the playback process, including one or more of play, pause, stop, fast forward, fast rewind, and jump to a specified position for playback.