Media file processing method, device and equipment

By introducing grayscale image tracks and tactile signal tracks into media files and generating mapping tables, the problem in the existing technology that cannot meet the tactile interaction needs of different areas of the picture is solved, and effective representation and signals of tactile areas in video data are achieved. Encapsulation improves the tactile interaction capabilities of media files.

CN118550398APending Publication Date: 2024-08-27BEIJING BOE TECH DEV CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310198350.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing media file processing methods are difficult to meet the different tactile interaction needs of different areas of the screen, and cannot effectively encapsulate and parse multiple tactile signal tracks and their corresponding mapping relationships.

Method used

By introducing the grayscale image track and the tactile signal track into the media file and generating a first mapping table to represent the mapping relationship between the grayscale value in the grayscale image track and the tactile signal track, each frame in the video data is realized Characterization of the location distribution of tactile areas and encapsulation of tactile signals into tactile areas.

Benefits of technology

It satisfies different tactile interaction requirements in different areas of the screen, allows the player to flexibly parse and output correct tactile signals, and improves the tactile interaction capabilities of media files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550398A
    Figure CN118550398A
Patent Text Reader

Abstract

The invention discloses a media file processing method, device and equipment, and the method comprises the steps: determining a gray-scale map track corresponding to video data and each tactile signal track, the gray-scale map track comprises a gray-scale map corresponding to each frame of picture in the video data, and the tactile signal tracks comprise tactile signal tracks; the grey-scale map corresponding to each frame of picture is used for representing position distribution of a tactile region of each frame of picture, and each tactile signal track comprises a tactile signal corresponding to each tactile region in the video data; generating a first mapping table according to each gray value in the gray-scale map track and each tactile signal track; and packaging the first mapping table, the grey-scale map track, each tactile signal track and the video data to obtain a target media file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of media file transmission, and specifically relates to a media file processing method, device and equipment. Background Art

[0002] Haptic technology provides a way to entertain and immerse your senses beyond audio and video media. Taking media streams such as streaming games and mobile advertising as an example, by adding haptics to the audio / video content of the media stream, the user's experience and enjoyment of the media content can be significantly enhanced.

[0003] To this end, haptics have been proposed as a first-order media type equivalent to audio and video in the ISO Base Media File Format (ISOBMFF), and haptics have been proposed as a supplement to the dynamic adaptive streaming transmission (MPEG-DASH, Motion Picture Experts Group-Dynamic Adaptive Streaming over HTTP) standard. However, this method can only meet the single haptic interaction setting requirements of a single picture, making it difficult for existing media file processing methods to meet the different haptic interaction requirements of different areas of the picture. Summary of the invention

[0004] The embodiments of the present application provide a media file processing method, apparatus and device, which can meet different tactile interaction requirements in different areas of a screen.

[0005] In a first aspect, a method for processing a media file is provided, the method comprising:

[0006] Determine a grayscale image track and each tactile signal track corresponding to the video data, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to characterize the position distribution of the tactile area of ​​each frame, and each tactile signal track includes a tactile signal corresponding to each tactile area in the video data;

[0007] Generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track;

[0008] The first mapping table, the grayscale image track, the tactile signal tracks and the video data are packaged to obtain a target media file.

[0009] In a second aspect, a media file processing method is provided, the method comprising:

[0010] Acquire and decapsulate the target media file to obtain video data, a first mapping table, a grayscale image track corresponding to the video data, and each tactile signal track, wherein the grayscale image track corresponds to each frame of the video data, and the grayscale image corresponding to each frame is used to characterize the position distribution of the tactile area of ​​each frame;

[0011] Output the video data and mount the grayscale image track;

[0012] According to the grayscale image track and the first mapping table, mounting the tactile signal track corresponding to the grayscale image currently output in the grayscale image track;

[0013] Output the tactile signal in the tactile signal track corresponding to the currently output grayscale image.

[0014] In a third aspect, a media file processing device is provided, the device comprising:

[0015] A first determination module is used to determine a grayscale image track and each tactile signal track corresponding to the video data, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame, and each tactile signal track includes a tactile signal corresponding to each tactile area in the video data;

[0016] A first generating module, configured to generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track;

[0017] The first encapsulation module is used to encapsulate the first mapping table, the grayscale image track, the various tactile signal tracks and the video data to obtain a target media file.

[0018] In a fourth aspect, a media file processing device is provided, the device comprising:

[0019] A first processing module is used to obtain and decapsulate the target media file to obtain video data, a first mapping table, a grayscale image track corresponding to the video data, and each tactile signal track, wherein the grayscale image track includes a grayscale image corresponding to each frame of the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame;

[0020] A second processing module, used for outputting the video data and mounting the grayscale image track;

[0021] A third processing module, configured to mount a tactile signal track corresponding to a currently outputted grayscale image in the grayscale image track according to the grayscale image track and the first mapping table;

[0022] The fourth processing module is used to output the tactile signal in the tactile signal track corresponding to the currently output grayscale image.

[0023] In a fifth aspect, a media file processing device is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the media file processing method described in the first aspect are implemented.

[0024] In a sixth aspect, a media file processing device is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the media file processing method described in the second aspect are implemented.

[0025] In the seventh aspect, a media file processing system is provided, comprising: a video production device and a video output device, wherein the video production device is used to execute the steps of the media file processing method as described in the first aspect above, and the video output device is used to execute the steps of the media file processing method as described in the second aspect above.

[0026] In an eighth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the media file processing method described in the first aspect are implemented, or the steps of the media file processing method described in the second aspect are implemented.

[0027] In a ninth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the media file processing method as described in the first aspect, or to implement the media file processing method as described in the second aspect.

[0028] In the tenth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the computer program / program product is executed by at least one processor to implement the steps of the media file processing method as described in the first aspect or the second aspect.

[0029] In an embodiment of the present application, by encapsulating the grayscale image track, the tactile signal track and the video data together in a target media file, the representation of the position distribution of the tactile area of ​​each frame of the video data is implemented in the target media file, and by adding the first mapping table to the target media file, the representation of the mapping relationship between each grayscale value in the grayscale image track and each tactile signal track is implemented in the target media file, thereby enabling the target media file to realize the encapsulation of tactile signals for different tactile areas and meet the different tactile interaction requirements of different areas of the picture. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0031] Figure 1 is a schematic diagram of the existing media file encapsulation principle in the embodiment of the present application;

[0032] Figure 2 is a flow chart of a media file processing method in an embodiment of the present application;

[0033] Figure 3 is a schematic diagram of the player processing flow in an embodiment of the present application;

[0034] Figure 4 is a schematic diagram of starting samples of multiple tactile signal tracks in an embodiment of the present application;

[0035] Figure 5 is a schematic diagram of a grayscale image in an embodiment of the present application;

[0036] Figure 6 is a schematic diagram of the remote surgery implementation process in the embodiment of the present application;

[0037] Figure 7 is a flowchart of another media file processing method in an embodiment of the present application;

[0038] Figure 8 is a structural block diagram of a media file processing device in an embodiment of the present application;

[0039] Fig. 9 It is a structural block diagram of another media file processing device in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0041] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or at least two. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0042] In order to better understand the media file processing method of the embodiment of the present application, some related basic concepts are briefly introduced below.

[0043] Box: Also known as a box or container or atom, the definition of Box is "An object-oriented building block defined by a unique type identifier and length (called 'atom' in some specifications, including the first definition of MP4)", which is translated as "An object-oriented building block defined by a unique type identifier and length (called 'atom' in some specifications, including the first definition of MP4)". Container Box: The definition of Container Box is "A box whose sole purpose is to contain and group a set of related boxes", which is translated as "A box whose sole purpose is to contain a set of related boxes". Metadata Box (Movie Box): The definition of Movie Box is "A container box whose sub-boxes define the metadata for a presentation ('moov')", which is translated as "It can also be called moovbox, which is a container box, and its sub-boxes define the metadata required for media presentation ('moov')". Media Data Box: Media Data Box is defined as "A container box which can hold the actual media data for a presentation ('mdat')", which is translated as "A container box used to store the actual media data ('mdat') of a media presentation." ISO Base Media File: ISO Base Media File is defined as "The name of the file format described in this specification", which is translated as "The name of the file format described in this specification", where box is the basic unit that constitutes the ISO base media file. Presentation: Presentation is defined as "One or more motion sequences (qv), possibly combined with audio", which is translated as "One or more motion sequences, possibly containing audio."Sample: Sample is defined as "In non-hint tracks, a sample is an individual frame of video, a time-contiguous series of video frames, or a time-contiguous compressed section of audio. In hint tracks, a sample defines the formation of one or more streaming packets. No two samples within a track may share the same time-stamp", which is translated as "In non-hint tracks, samples are individual video frames, time-contiguous sequences of video frames, or time-contiguous compressed audio parts. In hint tracks, a sample defines the formation of one or more streaming data packets. Two samples in a track cannot share the same timestamp". The samples in the grayscale track / tactile signal track recorded in this application refer to: a separate grayscale image / tactile signal, or multiple grayscale images / tactile signals that are continuous in time. Sample Description: Sample Description is defined as "A structure which defines and describes the format of some number of samples in a track", which is translated as "A structure that defines and describes the format of a set of samples in a track". Sample Table: Sample Table is defined as "A packed directory for the timing and physical layout of the samples in a track". Chunk: Chunk is defined as "A contiguous set of samples for one track".Track: Track is defined as "A collection of related samples (qv) in an ISO base media file. For media data, a track corresponds to a sequence of images or sampled audio. For hint tracks, a track corresponds to a streaming channel", which is translated as "A collection of related samples in an ISO base media file. For media data, a track is a sequence of images or audio samples. For hint tracks, a track corresponds to a streaming channel". In other words, a track refers to a series of samples with time attributes encapsulated in the ISO basic media file format. Hint Track: Hint Track is defined as "A special track which does not contain media data. Instead it contains instructions for packaging one or more tracks into a streaming channel", which is translated as "A special track that does not contain media data. It contains instructions for packaging one or more tracks into a streaming channel". Hint: Hinter is defined as "A tool that is run on a file containing only media, to add one or more hint tracks to the file and facilitate streaming".

[0044] like Figure 1 The figure shows the existing media file encapsulation principle. After the video production device compresses the video data, audio data and tactile data into code streams respectively, it will encapsulate the three into a packaged media file according to the ISO basic media file format, so as to transmit the packaged media file to the video playback device (i.e., player). After the player decapsulates and decompresses the packaged media file in sequence, it can trigger the corresponding actuator to output the corresponding data, such as triggering the display screen, speaker and vibration motor to output the video data, audio data and tactile data respectively.

[0045] Although haptics have been proposed as a first-order media type equal to audio and video in the ISO basic media file format, and haptics have been proposed as a supplement to the MPEG-DASH standard, the encapsulated media files generated according to the existing ISO basic media file format can only support the player to implement a single haptic interaction for a single screen, and cannot meet the different haptic interaction requirements for different areas of the screen.

[0046] Exemplarily, the following three scenarios are used to illustrate the application of encapsulated media files in different tactile interaction scenarios in different areas of the screen.

[0047] Scene 1: Game scene

[0048] Take shooting games as an example. When a character in the screen "fires" in a certain tactile area, triggering the tactile interaction method corresponding to the tactile area (such as triggering the vibration motor on the right side of the phone to vibrate) will greatly enhance the sense of immersion in the game. The triggering process can be seen as: after the mobile phone receives the instruction to "trigger the tactile actuator corresponding to the tactile area", the mobile phone will find the tactile actuator and use the tactile actuator to "output" a vibration signal corresponding to the tactile area. Since the game is accompanied by the transmission of media files such as downloading and updating, it is necessary to characterize the vibration signal by tactile area in the packaged media file according to certain standards, so that the video production equipment (i.e., game production equipment) and the player can transmit and parse the packaged media file.

[0049] Scene 2: Movie scene

[0050] Take a company that specializes in producing vibrating seats as an example. Its main customers are theaters that provide immersive movie viewing. It can be seen that in the field of movies (especially 4D movies), providing tactile feedback can bring a new experience to theater viewers, and also bring unique product strength to the theater. Ideally, this type of movie requires high-quality video signal sources, high-quality audio signal sources, and high-quality tactile signal sources to be encapsulated in an encrypted carrier. In order to meet the needs of synchronizing various signals (such as different tactile interaction needs in different areas of the screen), new packaging technologies are needed.

[0051] In addition, in the field of games, especially in role-playing games (RPG), plot videos are often inserted when scenes are switched, so that players can better immerse themselves in the game plot and experience the character's actions, emotional changes, etc. If the game characters in the interspersed videos stand up, open the door to enter, the surrounding scenes explode, the characters run, etc., there are accompanied by different tactile vibration feedback, which will make the plot experience more realistic. Therefore, if this kind of tactile feedback is added to the movie output of mobile devices, it will be a very good application scenario, but this also requires the encapsulation of tactile signals (especially the encapsulation of different tactile signals corresponding to different tactile areas). It can be understood that the tactile signal itself is similar to the audio signal. The encapsulation of the tactile signal referred to above can be considered as: after the video file encapsulates the audio signal once, it encapsulates the tactile signal again, thereby generating an encapsulated media file.

[0052] Scenario 3: Remote surgery scenario

[0053] In the 5G era, there are often reports of remote surgery cases. The main demand is for the transmission of ultra-high-definition video in the surgical field. The 5G network can provide high-bandwidth, high-quality network services anytime and anywhere to meet the realization of remote surgery. However, a big difference between remote surgery and on-site surgery is tactile feedback. The ear is our main organ of sound sensory organs, the eye is our main organ of visual sensory organs, and the skin tissue is a tactile sensory organ that can receive a variety of signals including hot and cold, smooth and astringent, soft and hard, painful and itchy. Without these tactile feedback, the doctor performing the remote surgery will not receive feedback from the patient on the hardness and softness of the surgical lesion tissue, tactile feedback on the obstruction of the operating equipment, and tactile feedback on the opening and closing of the surgical instruments. The lack of any sensory signal will affect the operation. This requires the addition of tactile feedback to the remote surgery signal during the transmission process, which also requires the encapsulation of different tactile signals corresponding to different tactile areas.

[0054] In view of the problems existing in the related art, this application designs a method for packaging media files containing tactile signals, which mainly solves the following problems: the packaging of multiple tactile signal tracks; the problem of when to suspend the tactile signal track; and the mapping of the tactile area and the tactile signal track. This achieves the effect that different tactile signals corresponding to different areas in the media file can be packaged and the player can flexibly parse them.

[0055] First, see Figure 2 FIG. 1 is a flowchart of a method for processing a media file provided by an embodiment of the present application. The method may include the following steps:

[0056] Step S101: Determine the grayscale image track and each tactile signal track corresponding to the video data.

[0057] Among them, the grayscale image track contains the grayscale images corresponding to each frame in the video data, and the grayscale images corresponding to each frame are used to characterize the position distribution of the tactile areas of each frame. A tactile signal track corresponds to at least one grayscale value in the grayscale image, and each tactile signal track contains the tactile signal corresponding to each tactile area in the video data.

[0058] In a specific implementation, the video production device divides a plurality of tactile areas from each frame of the video data, and establishes corresponding tactile signal tracks for each of the plurality of tactile areas. After completing the establishment of the tactile signal track, the video production device can assign different grayscale values ​​to different tactile signal tracks, such as assigning one or more grayscale values ​​to a tactile signal track, and the one or more grayscale values ​​assigned to the tactile signal track are used to describe the position distribution of the tactile area corresponding to the tactile signal track in the video data. Specifically, for any frame, at least one grayscale map is generated to characterize the position distribution of each tactile area in the frame according to the mapping relationship between the tactile signal track and the tactile area in the frame, and the grayscale values ​​assigned to each tactile signal track. After generating the grayscale map corresponding to each frame in the video data, the video production device can encapsulate the grayscale map corresponding to each frame into a grayscale map track according to the ISO basic media file format.

[0059] Step S102: Generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track.

[0060] In a specific implementation, the video production device counts the grayscale values ​​contained in each grayscale image in the grayscale image track, determines the tactile signal track corresponding to each grayscale value, and generates a first mapping table for representing the mapping relationship between each grayscale value and each tactile signal track.

[0061] Step S103: encapsulate the first mapping table, the grayscale image track, the various tactile signal tracks and the video data to obtain a target media file.

[0062] Among them, the grayscale image track can be considered as a video with very few colors. Each frame (i.e., each grayscale image) in the video is very flat, and there will be color jumps only at the edge between the grayscale image areas corresponding to the two tactile signal tracks. However, in order to minimize the files required to be transmitted between the video production device and the player, the grayscale image track can be encoded, that is, the grayscale image track, each tactile signal track and the video data are encoded and compressed before being packaged, which can reduce the size of the target media file that needs to be transmitted.

[0063] It is understandable that, considering that after the video output device obtains the grayscale image track by decapsulating the target media file, although it can know the position distribution of the tactile area of ​​each frame in the video data according to each grayscale image in the grayscale image track, due to the different tactile signal tracks corresponding to different tactile areas, the video output device cannot correctly mount the tactile signal track to achieve different tactile interactions in different areas of the screen without knowing the mapping relationship between the tactile area and the tactile signal track. Therefore, the present application adds the first mapping table to the target media file, so that after the video output device parses the grayscale image in the grayscale image track, it can determine the tactile signal track corresponding to each grayscale value in the grayscale image according to the first mapping table, so that the correct tactile signal track can be mounted for different tactile areas.

[0064] It can be seen from the above steps that by encapsulating the grayscale image track, the tactile signal track and the video data together in the target media file, the representation of the position distribution of the tactile area of ​​each frame in the video data is realized in the target media file, and by adding the first mapping table to the target media file, the representation of the mapping relationship between each grayscale value in the grayscale image track and each tactile signal track is realized in the target media file, so that the target media file can realize the encapsulation of tactile signals for different tactile areas, thereby meeting the different tactile interaction requirements of different areas of the picture.

[0065] Implementation Method 1

[0066] This embodiment describes an example of the first mapping table.

[0067] Considering that after the player parses the grayscale image from the grayscale image track, it is necessary to mount the tactile signal track corresponding to the parsed grayscale image, in order to solve the mapping problem between the grayscale image parsed by the player and the tactile signal track, the present application proposes a first mapping table and adds it to the target media file to inform the player of the tactile signal track corresponding to the parsed grayscale image.

[0068] In this embodiment, if Figure 3As shown, the player obtains and decapsulates the target media file, obtains the video data, the first mapping table, the grayscale image track corresponding to the video data, and each tactile signal track, outputs the video data and mounts the grayscale image track, mounts the tactile signal track corresponding to the grayscale image currently output in the grayscale image track according to the grayscale image track and the first mapping table, and outputs the tactile signal in the tactile signal track corresponding to the grayscale image currently output. Specifically, the player will extract the grayscale image (or grayscale image sample, i.e., grayscale sample) from the mounted grayscale image track, and parse the grayscale value of the grayscale image according to the first mapping table to find the corresponding tactile signal track for mounting. Among them, the grayscale image sample will be specifically described in Implementation Method 3 and will not be repeated here.

[0069] As a possible implementation, the player responds to the detection of a tactile interaction operation for the currently output screen in the video data, such as: when the touch component detects a tactile interaction operation such as a touch operation, it will send a request to the player, and the player will then find the sample corresponding to the currently output screen (i.e., the tactile signal sample) from the tactile signal track corresponding to the tactile area where the tactile interaction operation is currently mounted, and trigger the tactile actuator to output the tactile signal in the sample corresponding to the currently output screen. Among them, the video production device is a device with encoding function, and the player is a device with decoding function. The video production device, player, touch component and tactile actuator can be deployed on the same hardware device or separately, and this application does not limit this.

[0070] In one embodiment, the target media file includes a box of a grayscale image track; the video production device adds the first mapping table to the box of the grayscale image track to achieve encapsulation of the first mapping table.

[0071] As a possible implementation, the video production device generates a first target box according to the first mapping table; and adds the first target box to the box of the grayscale image track.

[0072] In this embodiment, the present application proposes a new Box type, i.e., a Box (Gray_Value_To_Track Box, gvtt for short), for adding the first mapping table to the target media file, which is used to store the mapping relationship between grayscale values ​​and tracks. gvtt can connect the grayscale values ​​in the grayscale image track with other signal tracks (such as tactile signal tracks, audio tracks, etc.). Gvtt (i.e., the first target box) storing the first mapping table is added to the box of the grayscale image track, so that when the player parses the grayscale image track (i.e., the box that parses the grayscale image track), it can directly obtain the first mapping table associated with the grayscale image track, and then realize the correct mounting of the tactile signal track according to the first mapping table.

[0073] As a possible implementation, a first mapping table is generated according to the grayscale values ​​corresponding to the respective haptic signal tracks and the track index of the respective haptic signal tracks.

[0074] In specific implementation, the basic structure of gvtt can be defined as: a table consisting of grayscale values ​​and the track indexes of other signal tracks corresponding to them. For example, the syntax definition of gvtt is as follows:

[0075] aligned(8)class GrayValueToTrackBox

[0076] extends FullBox('gvtt',version,flags){

[0077] unsigned int(32) gray_scale; / / grayscale value in the grayscale track

[0078] unsigned int(32)track_ID; / / Track index of other signal tracks

[0079] }

[0080] After parsing the grayscale value from the box of the grayscale image track, the player can determine the track index corresponding to the grayscale value according to the first mapping table stored in the first target box, and then find the corresponding tactile signal track for mounting according to the track index.

[0081] Implementation Method 2

[0082] This embodiment describes an example of the second mapping table.

[0083] When outputting a video, the player needs to mount the tactile signal track for output. When there are multiple tactile areas in the video data, there is a problem of switching between multiple tactile signal tracks. The player needs to find and mount the correct tactile signal track in time when switching tracks, so that it can extract samples from the mounted tactile signal track in time for tactile signal output.

[0084] To avoid delay in tactile signal output, the player needs to find and mount the correct tactile signal track in time when the track is switched. Considering that if multiple tactile signal tracks are pre-mounted (such as mounting all tactile signal tracks), although the tactile signal track can be mounted in time, it will take up a lot of cache space. If the tactile signal track is found and mounted only when the track is switched, a delay effect will occur. Therefore, in order to solve the problem of when the tactile signal track is mounted, the present application proposes a second mapping table and adds it to the target media file to inform the player of the order of the required mounting times of each tactile signal track.

[0085] In this embodiment, the video production device generates a second mapping table according to the execution order of each tactile signal track, and adds the second mapping table to the target media file, wherein the second mapping table is used to describe the mapping relationship between the tactile signal track and the execution order, and the execution order is determined by the order of the required suspension moments of the tracks.

[0086] The player decapsulates the target media file to obtain a second mapping table, determines the next tactile signal track to be mounted according to the currently mounted tactile signal track and the second mapping table, and pre-caches the tactile signal track before the track is switched, so that when the track is switched subsequently, the tactile signal track corresponding to the currently output grayscale image in the grayscale image track can be quickly found from the cache and the mounting is completed.

[0087] For example, at time T1, the C1 track in the tactile signal track is mounted, the player continuously extracts samples from the C1 track, and determines that the next tactile signal track to be mounted is the C2 track according to the second mapping table, and pre-caches the C2 track at time T2 (i.e. before the track is switched), and at time T3 of the track switch (such as the moment when the player receives the C2 track suspension request), the player immediately parses the samples in the cached C2 track to complete the mounting. It can be understood that the player can know which tactile signal tracks may be called at the current moment according to the second mapping table, so as to pre-find and cache the tactile signal tracks that may be called, which is equivalent to pre-mounting the tactile signal track that is about to be mounted.

[0088] In one embodiment, the video production device generates a second mapping table corresponding to each tactile signal track according to the sample index of the key frame of each tactile signal track (the sample index can be a sample serial number or the address of the sample in the box, etc.) and the execution order. After the player parses the key frame in the currently mounted tactile signal track, it can determine the sample index of the key frame of the next tactile signal track to be mounted according to the second mapping table, so that the player can accurately know the Chunk that may be called according to the sample index (the tactile signal track consists of at least one Chunk), and then determine the Sample position corresponding to the current moment on the Chunk that may be called, so as to achieve mounting.

[0089] As a possible implementation, Figure 4 As shown, the key frame of the tactile signal track is determined as the starting sample of the tactile signal track, and a second mapping table is generated according to the sample index and execution order of the starting sample of each tactile signal track. Exemplarily, the syntax definition of the second mapping table is as follows:

[0090]

[0091] In one embodiment, when the target media file contains boxes for each tactile signal track, the second mapping table corresponding to each tactile signal track can be added to the respective box, and the second mapping table corresponding to the tactile signal track refers to: a second mapping table that at least describes the execution order of the tactile signal track and the next tactile signal track required to be mounted.

[0092] This application proposes a new Box type, namely, a Box (Haptic Time ToSample Box, htts for short), for adding the first mapping table to the box of the corresponding tactile signal track. The video production device can generate the htts (i.e., the second target box) corresponding to each tactile signal track according to the second mapping table corresponding to each tactile signal track, and add each of the second target boxes to the box of the corresponding tactile signal track.

[0093] Implementation Method 3

[0094] This embodiment describes an example of a grayscale image in a grayscale image track.

[0095] The grayscale image track can encapsulate the grayscale image corresponding to each frame in the video data in the form of grayscale image samples (i.e., grayscale samples). At this time, a grayscale image track is composed of multiple grayscale image samples, and the grayscale image sample contains at least one grayscale image. At this time, the player can extract the grayscale image sample corresponding to at least one frame (such as a video) in the video data from the mounted grayscale image track.

[0096] Case 1: A grayscale image represents the position distribution of all or part of the tactile area corresponding to a single frame in the video data.

[0097] like Figure 5 As shown, for a single frame containing three tactile areas, the grayscale image corresponding to the frame may correspond to grayscale areas corresponding to three different grayscale values. The position distribution of the three grayscale areas in the grayscale image is the same as the position distribution of the corresponding three tactile areas in the frame.

[0098] Taking a movie scene as an example, the application scenario of the above situation 1 is explained.

[0099] For a 4D movie designed with tactile interaction, when encapsulating the media file of the 4D movie, first generate one or more grayscale images corresponding to each frame according to the tactile areas contained in each frame of the video data of the 4D movie. For example, for a frame containing three tactile areas, a grayscale image can be generated to characterize the position distribution of the three tactile areas in the frame; or two grayscale images can be generated, one grayscale image is used to characterize the position distribution of one tactile area in the frame, and the other grayscale image is used to characterize the position distribution of the remaining two tactile areas in the frame. The one or two generated grayscale images are encapsulated as grayscale image samples corresponding to the frame, and based on the grayscale image samples corresponding to each frame in the video data, a grayscale image track corresponding to the video data is generated.

[0100] When generating a grayscale image corresponding to any frame, it is necessary to assign at least one grayscale value to each tactile area in the frame, and then generate the corresponding grayscale image based on the grayscale value assigned to the tactile area. For example, if the grayscale values ​​assigned to a tactile area are 0 and 1, the position distribution of the tactile area in the frame can be determined first, and then the grayscale value of each pixel at the same position distribution in the grayscale image can be set to 0 or 1, thereby achieving the representation of the position distribution of the tactile area in the frame of the video through the position distribution of the grayscale area composed of grayscale values ​​0 and 1 in the grayscale image. After the grayscale values ​​are assigned to the tactile areas, the mapping relationship between the grayscale value assigned to each tactile area and the tactile signal track corresponding to the tactile area can be recorded through the first mapping table.

[0101] The first mapping table, grayscale image track and video data are encapsulated into a target media file and transmitted to a player in a cinema. The player then decapsulates the target media file, outputs the video data and mounts the grayscale image track. At this time, the player can present the output video data through the projection device in the cinema. The mounted grayscale image track will output the grayscale image in chronological order. At this time, the player finds and mounts the corresponding tactile signal track through the first mapping table according to the grayscale image corresponding to the current output screen of the projection device (i.e., the grayscale image currently output in the grayscale image track). The mounted tactile signal track will output the tactile signal in chronological order. The player then uses the tactile actuator (such as a vibrating seat) in the cinema to present the output tactile signal.

[0102] It is understandable that as the video image changes during the output cycle (ie, the number and position distribution of the tactile regions presented change), the number and position distribution of the grayscale regions presented by the grayscale image track should also change accordingly.

[0103] Case 2: A grayscale image represents the position distribution of a tactile area corresponding to a single frame in the video data.

[0104] The video player determines each tactile signal source corresponding to the video data, and one tactile signal source corresponds to one tactile signal track; determines the tactile area corresponding to each tactile signal source according to the corresponding area of ​​the tactile signal of each tactile signal source in each frame of the video data, wherein the tactile area may be the entire screen area; generates a grayscale image track corresponding to each tactile signal source according to the grayscale value and tactile area corresponding to each tactile signal source, and a single grayscale image track represents the position distribution of the tactile area corresponding to a single tactile signal source in the video data.

[0105] Taking the remote surgery scenario as an example, the application scenario of the above situation 2 is explained. For the remote surgery scenario, the requirements can be divided into the following points:

[0106] Requirement 1: Multiple tactile signal tracks;

[0107] Requirement 2: Unlike prefabricated scenarios where videos containing tactile information are compressed and then output, remote surgery mainly involves the presentation of tactile signals in real-time scenarios. This means that each tactile signal track can no longer be prefabricated with a grayscale image that can represent the position distribution of multiple tactile areas in the way of situation 1 to achieve track matching.

[0108] Requirement three: It involves not only vibration tactile information, but also ergonomic force feedback information, etc.

[0109] In response to the above requirements, Figure 6As shown, the present application uses a scalpel and surgical scissors as two tactile signal sources, and establishes two grayscale image tracks and two tactile signal tracks. One tactile signal source corresponds to one grayscale image track and one tactile signal track, and one grayscale image track can contain only one grayscale value. Taking a scalpel as an example, the grayscale image presented in the grayscale image track corresponding to the scalpel is used to characterize the position of the scalpel in the currently output video screen (i.e., the tactile area corresponding to the scalpel), and the tactile signal presented by the tactile signal track corresponding to the scalpel is the tactile signal of the tactile area corresponding to it. The tactile signal is generated based on the artificial ergonomic force feedback information of the position of the scalpel in the currently output video screen. As the position of the scalpel in the video screen changes, the tactile signal track of the scalpel will describe in real time the artificial ergonomic force feedback information such as the softness and hardness feedback of the surgical lesion tissue at the position of the scalpel, the tactile feedback of the scalpel being obstructed, etc.

[0110] Before the operation, the player can test whether the connection between the scalpel and surgical scissors and the grayscale track and the tactile signal track is correct, and make corrections in time to avoid incorrect connections such as the grayscale track corresponding to the surgical scissors being connected to the scalpel. Since the target encapsulation file transmitted between the encapsulation side (i.e., the video production side where the patient is located) and the decapsulation side (i.e., the video playback side where the doctor is located) uses two grayscale tracks with very flat grayscale images and single colors to represent the tactile signal source (i.e., the tactile area), the bandwidth required to transmit the target encapsulation file is relatively small, which can better meet the low latency requirements of remote surgery scenarios.

[0111] Implementation Method 4

[0112] This embodiment describes an example of assigning haptic actuators.

[0113] Considering that after the player loads the target media file, it first needs to know how many tactile tracks are contained in the file in total, so as to reasonably allocate relevant resources in advance (such as allocating tactile actuators in the player). Therefore, this application designs to add the number of tactile areas in the video data or the number of grayscale values ​​in the grayscale track to the target media file.

[0114] Case 1: The video production device counts the number of tactile areas in the video data, and adds the number of tactile areas to the target media file.

[0115] In this embodiment, after the player encapsulates the target media file, it can determine the number of tactile signal tracks according to the number of tactile areas obtained, so that it can pre-allocate tactile actuators to each tactile signal track according to the number of tactile signal tracks to achieve timely and reasonable allocation of tactile actuators, so that the player can subsequently promptly trigger the tactile actuator corresponding to the tactile signal track to output the corresponding tactile signal.

[0116] Case 2: When a haptic signal track corresponds to a grayscale value in the grayscale image, the video production device counts the number of grayscale values ​​in the grayscale image track and adds the number of grayscale values ​​to the target media file.

[0117] In this embodiment, after the player decapsulates the target media file, it can determine the number of tactile signal tracks according to the number of grayscale values ​​obtained, so that it can allocate a tactile actuator to each tactile signal track according to the number of tactile signal tracks, and select the tactile actuator corresponding to the tactile signal track to output the tactile signal. This can avoid the situation where the player allocates all tactile signal tracks in the target media file to the same tactile actuator due to not knowing the number of tactile signal tracks, resulting in poor presentation of the tactile signal.

[0118] As a possible implementation, when the target media file includes a box of a grayscale image track, the number of grayscale values ​​in the grayscale image track can be added to the box of the grayscale image track, such as being added to a media header or a track header of the box of the grayscale image track.

[0119] It can be understood that according to the classification method of track-chunk-Sample, in order to encapsulate the grayscale value track description information (such as the number of grayscale values ​​in the grayscale image track) in the grayscale image track, content can be added to the track header (tkhdh, track header) in the box of the grayscale image track or the media header (mdhd, media header) in the box of the grayscale image track.

[0120] The media header is used to store overall information about the media. The information contained in the existing media header is as follows:

[0121]

[0122]

[0123] Table 1 The track header is used to store the description information of the current track. The information contained in the existing track header is as follows Table 2:

[0124]

[0125]

[0126]

[0127] Table 2

[0128] Second, as Figure 7 As shown, the embodiment of the present application provides another method for processing media files, which method includes at least the following steps:

[0129] Step S201: Acquire and decapsulate the target media file to obtain video data, a first mapping table, a grayscale image track corresponding to the video data, and various tactile signal tracks;

[0130] The grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame, and a tactile signal track corresponds to at least one grayscale value in the grayscale image;

[0131] Step S202: output the video data and mount the grayscale image track;

[0132] Step S203: mounting a tactile signal track corresponding to the currently output grayscale image in the grayscale image track according to the grayscale image track and the first mapping table;

[0133] Step S204: outputting the tactile signal in the tactile signal track corresponding to the currently outputted grayscale image.

[0134] It can be seen from the above steps that by encapsulating the grayscale image track, the tactile signal track and the video data together in the target media file, the representation of the position distribution of the tactile area of ​​each frame in the video data is realized in the target media file, and by adding the first mapping table to the target media file, the representation of the mapping relationship between each grayscale value in the grayscale image track and each tactile signal track is realized in the target media file, so that the target media file can realize the encapsulation of tactile signals for different tactile areas, thereby meeting the different tactile interaction requirements of different areas of the picture.

[0135] As a possible implementation manner, when a haptic signal track corresponds to a grayscale value in the grayscale image, the information obtained by decapsulating the target media file further includes: the number of grayscale values ​​in the grayscale image track; and the method further includes:

[0136] Determining the number of the tactile signal tracks according to the number of the grayscale values;

[0137] According to the number of the tactile signal tracks, respectively allocating a tactile actuator to each of the tactile signal tracks;

[0138] Outputting a tactile signal in a sample corresponding to the currently outputted picture includes:

[0139] The tactile actuator corresponding to the tactile signal track where the sample is located is triggered to output the tactile signal in the sample.

[0140] As a possible implementation manner, the information obtained by decapsulating the target media file further includes: a second mapping table, wherein the second mapping table is used to describe a mapping relationship between a tactile signal track and an execution order; and the method further includes:

[0141] Determining a tactile signal track to be mounted next according to the currently mounted tactile signal track and the second mapping table, and caching the tactile signal track;

[0142] Mounting the tactile signal track corresponding to each grayscale image in the grayscale image track according to the grayscale image track and the first mapping table includes:

[0143] According to the grayscale image track and the first mapping table, a tactile signal track corresponding to the grayscale image currently output in the grayscale image track is mounted from the cache.

[0144] The media file processing method provided in the embodiment of the present application can be executed by a media file processing device. In the embodiment of the present application, the media file processing device provided in the embodiment of the present application is described by taking the media file processing method executed by the media file processing device as an example.

[0145] In a third aspect, the present application provides a media file processing device, such as Figure 8 As shown, the media file processing device 100 includes:

[0146] A first determination module 101 is used to determine a grayscale image track and each tactile signal track corresponding to the video data, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame, and each tactile signal track includes a tactile signal corresponding to each tactile area in the video data;

[0147] A first generating module 102, configured to generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track;

[0148] The first encapsulation module 103 is used to encapsulate the first mapping table, the grayscale image track, the various tactile signal tracks and the video data to obtain a target media file.

[0149] Optionally, the first generating module 102 includes:

[0150] The first generating submodule is used to generate a first mapping table according to the grayscale values ​​corresponding to the respective tactile signal tracks and the track indexes of the respective tactile signal tracks.

[0151] Optionally, the target media file includes a box of a grayscale image track; the first encapsulation module 103 includes:

[0152] The second encapsulation module is used to add the first mapping table to the box of the grayscale image track.

[0153] Optionally, the second packaging module includes:

[0154] A first encapsulation submodule, configured to generate a first target box according to the first mapping table;

[0155] The second encapsulation submodule is used to add the first target box to the box of the grayscale image track.

[0156] Optionally, the device further comprises:

[0157] A first statistical module, used for counting the number of tactile areas in the video data;

[0158] The first packaging module 103 includes:

[0159] The third encapsulation module is used to encapsulate the number of tactile areas, the first mapping table, the grayscale image track, the various tactile signal tracks and the video data to obtain a target media file.

[0160] Optionally, in a case where a tactile signal track corresponds to a grayscale value in the grayscale map, the device further comprises:

[0161] A second statistical module, used for counting the number of grayscale values ​​in the grayscale image track;

[0162] The first packaging module 103 includes:

[0163] The fourth encapsulation module is used to encapsulate the number of grayscale values, the first mapping table, the grayscale image track, the respective tactile signal tracks and the video data to obtain a target media file.

[0164] Optionally, the target media file includes a box of a grayscale image track; and the fourth encapsulation module includes:

[0165] The third encapsulation submodule is used to add the number of grayscale values ​​to the box of the grayscale image track.

[0166] Optionally, the third encapsulation submodule includes:

[0167] The fourth encapsulation submodule is used to add the number of grayscale values ​​to the media header or track header of the box of the grayscale image track.

[0168] Optionally, the device further comprises:

[0169] A second generating module, configured to generate a second mapping table according to the execution order of the tactile signal tracks;

[0170] The first packaging module 103 includes:

[0171] A fifth encapsulation module is used to encapsulate the second mapping table, the first mapping table, the grayscale image track, the various tactile signal tracks and the video data to obtain a target media file.

[0172] Optionally, the second generating module includes:

[0173] The second generating submodule is configured to generate second mapping tables corresponding to the respective haptic signal tracks according to sample indexes and execution orders of key frames of the respective haptic signal tracks.

[0174] Optionally, the key frame of the haptic signal track is a starting sample of the haptic signal track.

[0175] Optionally, the target media file includes boxes of the haptic signal tracks; and the fifth packaging module includes:

[0176] The fifth packaging submodule is used to add the second mapping tables corresponding to the respective tactile signal tracks into respective boxes.

[0177] Optionally, the fifth encapsulation submodule includes:

[0178] a sixth encapsulation submodule, configured to generate second target boxes corresponding to the respective tactile signal tracks according to the second mapping tables corresponding to the respective tactile signal tracks;

[0179] The seventh packaging submodule is used to add each of the second target boxes to the box of the corresponding tactile signal track.

[0180] Optionally, the first determining module 101 includes:

[0181] A first determining submodule, used to determine each tactile signal source corresponding to the video data, where one tactile signal source corresponds to one tactile signal track;

[0182] A second determination submodule, configured to determine the tactile regions corresponding to the respective tactile signal sources according to the corresponding regions of the tactile signals of the respective tactile signal sources in each frame of the video data;

[0183] The third determining submodule is used to generate grayscale image tracks corresponding to each tactile signal source according to the grayscale values ​​and tactile areas corresponding to each tactile signal source.

[0184] The media file processing device provided in the embodiment of the present application can implement the various processes implemented by the media file processing method embodiment described in the first aspect and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0185] In a fourth aspect, the present application provides another media file processing device, such as Fig. 9 As shown, the media file processing device 200 includes:

[0186] The first processing module 201 is used to obtain and decapsulate the target media file to obtain video data, a first mapping table, a grayscale image track corresponding to the video data, and each tactile signal track, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame;

[0187] The second processing module 202 is used to output the video data and mount the grayscale image track;

[0188] A third processing module 203 is used to mount a tactile signal track corresponding to the currently output grayscale image in the grayscale image track according to the grayscale image track and the first mapping table;

[0189] The fourth processing module 204 is configured to output the tactile signal in the tactile signal track corresponding to the currently outputted grayscale image.

[0190] Optionally, in a case where a tactile signal track corresponds to a grayscale value in the grayscale image, the information obtained by decapsulating the target media file further includes: the number of grayscale values ​​in the grayscale image track; and the device further includes:

[0191] a fifth processing module, configured to determine the number of the tactile signal tracks according to the number of the grayscale values;

[0192] a sixth processing module, configured to allocate tactile actuators to the respective tactile signal tracks according to the number of the tactile signal tracks;

[0193] The fourth processing module 204 includes:

[0194] The first processing submodule is used to trigger the tactile actuator corresponding to the tactile signal track where the sample is located to output the tactile signal in the sample.

[0195] Optionally, the information obtained by decapsulating the target media file further includes: a second mapping table, wherein the second mapping table is used to describe a mapping relationship between a tactile signal track and an execution order; and the device further includes:

[0196] a seventh processing module, configured to determine a tactile signal track to be mounted next according to the currently mounted tactile signal track and the second mapping table, and cache the tactile signal track;

[0197] The third processing module 203 includes:

[0198] The second processing submodule is used to mount the tactile signal track corresponding to the currently output grayscale image in the grayscale image track from the cache according to the grayscale image track and the first mapping table.

[0199] Optionally, the fourth processing module 204 includes:

[0200] The third processing submodule is used to respond to the detection of the tactile interaction operation for the currently output picture in the video data, and output the tactile signal corresponding to the currently output picture from the tactile signal track corresponding to the tactile area where the tactile interaction operation is currently mounted.

[0201] The media file processing device provided in the embodiment of the present application can implement the various processes implemented by the media file processing method embodiment described in the second aspect and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0202] An embodiment of the present application also provides a media file processing device, including a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, each process of the above-mentioned media file processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0203] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned media file processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0204] The processor is the processor in the terminal device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0205] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned media file processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0206] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0207] The embodiment of the present application further provides a computer program / program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned media file processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0208] An embodiment of the present application also provides a media file processing system, including: a video production device and a video output device, wherein the video production device is used to execute the steps of the media file processing method as described in the first aspect above, and the video output device is used to execute the steps of the media file processing method as described in the second aspect above.

[0209] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0210] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0211] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A media file processing method, characterized in that: The method comprises: Determine a grayscale image track and each tactile signal track corresponding to the video data, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to characterize the position distribution of the tactile area of ​​each frame, and each tactile signal track includes a tactile signal corresponding to each tactile area in the video data; Generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track; The first mapping table, the grayscale image track, the tactile signal tracks and the video data are packaged to obtain a target media file.

2. The method according to claim 1, characterized in that: Generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track, including: A first mapping table is generated according to the grayscale values ​​corresponding to the respective haptic signal tracks and the track indexes of the respective haptic signal tracks.

3. The method according to claim 1, characterized in that The target media file includes a box of a grayscale image track; The first mapping table is encapsulated into the target media file through the following steps: Add the first mapping table to the box of the grayscale image track.

4. The method according to claim 3, characterized in that Adding the first mapping table to the box of the grayscale image track includes: Generate a first target box according to the first mapping table; Add the first target box to the box of the grayscale image track.

5. The method according to claim 1, characterized in that The method further comprises: Counting the number of tactile areas in the video data; Encapsulating the first mapping table, the grayscale image track, the tactile signal tracks and the video data to obtain a target media file includes: The number of tactile areas, the first mapping table, the grayscale image track, the respective tactile signal tracks, and the video data are packaged to obtain a target media file.

6. The method according to claim 1, characterized in that In a case where a tactile signal track corresponds to a grayscale value in the grayscale map, the method further comprises: Counting the number of grayscale values ​​in the grayscale image track; Encapsulating the first mapping table, the grayscale image track, the tactile signal tracks and the video data to obtain a target media file includes: The number of grayscale values, the first mapping table, the grayscale image track, the respective tactile signal tracks, and the video data are packaged to obtain a target media file.

7. The method according to claim 6, characterized in that The target media file includes a box of a grayscale image track; The number of grayscale values ​​is encapsulated into the target media file by the following steps: Add the number of grayscale values ​​to the box of the grayscale map track.

8. The method according to claim 7, characterized in that Add the number of grayscale values ​​to the box of the grayscale map track, including: The number of grayscale values ​​is added to the media header or track header of the box of the grayscale image track.

9. The method according to claim 1, characterized in that: The method further comprises: generating a second mapping table according to a mapping relationship between the tactile signal track and the execution order; Encapsulating the first mapping table, the grayscale image track, the tactile signal tracks and the video data to obtain a target media file includes: The second mapping table, the first mapping table, the grayscale image track, the tactile signal tracks and the video data are packaged to obtain a target media file.

10. The method according to claim 9, characterized in that According to the mapping relationship between the tactile signal track and the execution order, a second mapping table is generated, including: According to the mapping relationship between the sample index and the execution order of the key frame of each haptic signal track, a second mapping table corresponding to each haptic signal track is generated.

11. The method according to claim 10, characterized in that The key frame of the haptic signal track is a starting sample of the haptic signal track.

12. The method according to claim 10, characterized in that The target media file includes boxes of the respective haptic signal tracks; The second mapping table is encapsulated into the target media file through the following steps: The second mapping tables corresponding to the respective haptic signal tracks are added to their respective boxes.

13. The method according to claim 12, characterized in that Adding the second mapping tables corresponding to the respective tactile signal tracks to respective boxes includes: Generate second target boxes corresponding to the respective tactile signal tracks according to the second mapping tables corresponding to the respective tactile signal tracks; Each of the second target boxes is added to the box of the corresponding haptic signal track.

14. The method according to any one of claims 1 to 13, characterized in that: Determining a grayscale image track corresponding to the video data includes: Determine each tactile signal source corresponding to the video data, wherein one tactile signal source corresponds to one tactile signal track; Determining the tactile regions corresponding to the respective tactile signal sources according to the corresponding regions of the tactile signals of the respective tactile signal sources in the respective frames of the video data; According to the grayscale values ​​and tactile areas corresponding to the tactile signal sources, grayscale image tracks corresponding to the tactile signal sources are generated.

15. A media file processing method, characterized in that: The method comprises: Acquire and decapsulate the target media file to obtain video data, a first mapping table, a grayscale image track corresponding to the video data, and each tactile signal track, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to characterize the position distribution of the tactile area of ​​each frame; Output the video data and mount the grayscale image track; According to the grayscale image track and the first mapping table, mounting the tactile signal track corresponding to the grayscale image currently output in the grayscale image track; Output the tactile signal in the tactile signal track corresponding to the currently output grayscale image.

16. The method according to claim 15, characterized in that The information obtained by decapsulating the target media file further includes: the number of tactile areas in the video data; the method further includes: Determining the number of the tactile signal tracks according to the number of the tactile areas; According to the number of the tactile signal tracks, respectively allocating a tactile actuator to each of the tactile signal tracks; Outputting the tactile signal in the tactile signal track corresponding to the currently outputted grayscale image includes: The haptic actuator corresponding to the haptic signal track is triggered to output the haptic signal.

17. The method according to claim 15, characterized in that In the case where a tactile signal track corresponds to a grayscale value in the grayscale image, the information obtained by decapsulating the target media file further includes: the number of grayscale values ​​in the grayscale image track; and the method further includes: Determining the number of the tactile signal tracks according to the number of the grayscale values; According to the number of the tactile signal tracks, respectively allocating a tactile actuator to each of the tactile signal tracks; Outputting the tactile signal in the tactile signal track corresponding to the currently outputted grayscale image includes: The haptic actuator corresponding to the haptic signal track is triggered to output the haptic signal.

18. The method according to claim 15, characterized in that The information obtained by decapsulating the target media file further includes: a second mapping table, wherein the second mapping table is used to describe the mapping relationship between the tactile signal track and the execution order; the method further includes: Determining a tactile signal track to be mounted next according to the currently mounted tactile signal track and the second mapping table, and caching the tactile signal track; Mounting a tactile signal track corresponding to each grayscale image in the grayscale image track according to the grayscale image track and the first mapping table includes: According to the grayscale image track and the first mapping table, a tactile signal track corresponding to the grayscale image currently output in the grayscale image track is mounted from the cache.

19. The method according to any one of claims 15 to 18, characterized in that: Outputting the tactile signal in the tactile signal track corresponding to the currently outputted grayscale image includes: In response to detecting a tactile interaction operation for a currently output picture in the video data, a tactile signal corresponding to the currently output picture is output from a tactile signal track corresponding to a tactile area where the tactile interaction operation is currently mounted.

20. A media file processing device, characterized in that: The device comprises: A first determination module is used to determine a grayscale image track and each tactile signal track corresponding to the video data, wherein the grayscale image track includes a grayscale image corresponding to each frame in the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame, and each tactile signal track includes a tactile signal corresponding to each tactile area in the video data; A first generating module, configured to generate a first mapping table according to each grayscale value in the grayscale image track and each tactile signal track; The first encapsulation module is used to encapsulate the first mapping table, the grayscale image track, the various tactile signal tracks and the video data to obtain a target media file.

21. A media file processing device, characterized in that: The device comprises: A first processing module is used to obtain and decapsulate the target media file to obtain video data, a first mapping table, a grayscale image track corresponding to the video data, and each tactile signal track, wherein the grayscale image track includes a grayscale image corresponding to each frame of the video data, and the grayscale image corresponding to each frame is used to represent the position distribution of the tactile area of ​​each frame; A second processing module, used for outputting the video data and mounting the grayscale image track; A third processing module, configured to mount a tactile signal track corresponding to a currently outputted grayscale image in the grayscale image track according to the grayscale image track and the first mapping table; The fourth processing module is used to output the tactile signal in the tactile signal track corresponding to the currently output grayscale image.

22. A media file processing device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the media file processing method according to any one of claims 1 to 14 are implemented.

23. A media file processing device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the media file processing method according to any one of claims 15 to 19 are implemented.

Citation Information

Cited By

  • Media file processing method, apparatus and device

    EP4671927A1