# US 2025/0379901 A1 · Method, apparatus and device for encapsulating media file, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0379901 A1
- Document ID: US20250379901A1
- Status: Published application
- Kind: A1
- Application number: 19/309,559
- Filed: 2025-08-25
- Published: 2025-12-11
- Earliest claimed: 2021-10-15
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Ying HU
- Web page: https://patentgrep.com/patent/US20250379901A1

## CPC

- H04L 65/70: Media network packetisation
- H04N 21/235: Processing of additional data, e.g. scrambling of additional data or processing content descriptors
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for encapsulating a media file includes: acquiring coded bitstreams of panoramic pictures of N viewpoints, N being a positive integer greater than 1; and encapsulating the coded bitstreams in an entity group, and respectively adding, for at least one viewpoint in the N viewpoints, first information to a panoramic picture of the corresponding viewpoint, to obtain a media file of the panoramic pictures of the N viewpoints, the first information indicating switching information during switching from a panoramic picture of a current viewpoint to another panoramic picture of a next viewpoint.

## Claims

### Claim 1

A method for encapsulating a media file, applied to a computer device, the method comprising:
receiving coded bitstreams of panoramic pictures of N viewpoints, N being a positive integer greater than 1; and
encapsulating the coded bitstreams in an entity group, and respectively adding, for at least one viewpoint in the N viewpoints, first information to a panoramic picture of the corresponding viewpoint, to obtain a media file of the panoramic pictures of the N viewpoints, the first information indicating switching information during switching from a panoramic picture of a current viewpoint to another panoramic picture of a next viewpoint, wherein the first information corresponding to each of the at least one viewpoint is associated by a first data box.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the switching information comprises at least one of: switching effect information, switching viewpoint information or switching window information;
the switching effect information comprises a switching effect flag, the switching effect flag indicating whether a switching effect exists during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint;
the switching viewpoint information comprises a neighbor viewpoint flag, the neighbor viewpoint flag indicating whether the next viewpoint to be switched from the current viewpoint is a neighbor viewpoint of the current viewpoint or any one of the N viewpoints; and
the switching window information comprises a switching window type, the switching window type being a type of an initial window of the next viewpoint during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint.

### Claim 3 (depends on 2)

The method according to claim 2, wherein in response to that a value of the switching effect flag is a first value, the switching effect information further comprises switching effect period information, the first value indicating that the switching effect exits during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint; and the switching effect period information comprises a switching effect period flag, the switching effect period flag indicating whether a period of the switching effect is specified during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint.

### Claim 4 (depends on 3)

The method according to claim 3, wherein in response to that a value of the switching effect period flag is a first flag value, the switching effect period information further comprises a period of the switching effect, the first flag value indicating that the period of the switching effect is specified during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint.

### Claim 5 (depends on 2)

The method according to claim 2, wherein in response to that a value of the switching effect flag is a second value, the switching effect information further comprises a type of the switching effect, the second value indicating that the switching effect exits during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the type of the switching effect comprises at least one of a stepping type, a scaling type, a fade-out fade-in type and a fly-in type.

### Claim 7 (depends on 2)

The method according to claim 2, wherein
in response to that a value of the neighbor viewpoint flag is a third value, the next viewpoint to be switched from the current viewpoint is the neighbor viewpoint of the current viewpoint; and
in response to that a value of the neighbor viewpoint flag is a fourth value, the next viewpoint to be switched from the current viewpoint is any one viewpoint in the N viewpoints.

### Claim 8 (depends on 7)

The method according to claim 7, wherein in response to that the value of the neighbor viewpoint flag is the third value, the switching viewpoint information further comprises at least one of a number of target neighbor viewpoints which can be switched from the current viewpoint and viewpoint identifiers of the target neighbor viewpoints.

### Claim 9 (depends on 2)

The method according to claim 2, wherein
in response to that a value of the switching window type is a fifth value, the initial window of the next viewpoint is the same as a user watching window of the current viewpoint; and
in response to that a value of the switching window type is a sixth value, the initial window of the next viewpoint is determined by recommended window property information of the next viewpoint.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
adding an identifier to at least one viewpoint in the N viewpoints, the identifier of the at least one viewpoint being in the first data box.

### Claim 11 (depends on 1)

The method according to claim 1, further comprising:
adding, for the at least one viewpoint in the N viewpoints, second information to the panoramic picture of the corresponding viewpoint, the second information indicating recommended window property information for the panoramic picture of the current viewpoint.

### Claim 12 (depends on 12)

The method according to claim 12, wherein the recommended window property information of the panoramic picture of the current viewpoint comprises: at least one of a number of recommended sphere regions and information of the recommended sphere regions.

### Claim 13 (depends on 1)

A non-transitory computer readable storage medium, storing computer instructions, the computer instructions, when being executed by a processor, causing the processor to perform the method for encapsulating the media file according to claim 1.

### Claim 14 (depends on 1)

An apparatus for encapsulating a media file, comprising:
at least one processor and at least one memory, the at least one memory being configured to store a computer program, and the at least one processor being configured to call and run the computer program stored in the at least one memory and perform the method for encapsulating the media file according to claim 1.

### Claim 15

A method for de-encapsulating a media file, applied to a computer device, the method comprising:
acquiring a media file of panoramic pictures of N viewpoints, the media file comprising, for at least one viewpoint in the N viewpoints, first information of a panoramic picture of the corresponding viewpoint, and the first information indicating switching information during switching from a panoramic picture of a current viewpoint to a panoramic picture of a next viewpoint, wherein the media file further comprises second information of at least one panoramic picture of at least one of the N viewpoints, the second information indicating recommended window property information for the panoramic picture of the corresponding viewpoint; and
switching between the panoramic pictures of different viewpoints according to the first information corresponding to the at least one viewpoint.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the switching information comprises at least one of: switching effect information, switching viewpoint information or switching window information;
the switching effect information comprises a switching effect flag, the switching effect flag indicating whether a switching effect exists during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint;
the switching viewpoint information comprises a neighbor viewpoint flag, the neighbor viewpoint flag indicating whether the next viewpoint to be switched from the current viewpoint is a neighbor viewpoint of the current viewpoint or any one of the N viewpoints; and
the switching window information comprises a switching window type, the switching window type being a type of an initial window of the next viewpoint during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint.

### Claim 17 (depends on 16)

The method according to claim 16, wherein in response to a value of the switching effect flag being a second value, the switching effect information further comprises a type of the switching effect, the second value indicating that a switching effect exits during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint; and
the switching the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint according to the first information of the current viewpoint comprises:
switching the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint according to the type of the switching effect.

### Claim 18 (depends on 17)

The method according to claim 17, wherein in response to a value of the switching effect flag being a first value, the switching effect information further comprises switching effect period information, the first value indicating that the switching effect exits during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint; and the switching effect period information comprises a switching effect period flag, the switching effect period flag indicating whether a period of the switching effect is specified during switching from the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint.

### Claim 19 (depends on 16)

The method according to claim 16, wherein the switching between the panoramic pictures of different viewpoints according to the first information corresponding to the at least one viewpoint comprises:
receiving a viewpoint switching operation inputted by a user in response to that the user consumes the panoramic picture of the current viewpoint, the viewpoint switching operation indicating to switch from the current viewpoint to the next viewpoint;
in response to that the first information comprises the neighbor viewpoint flag, determining the next viewpoint to be switched from the current viewpoint according to the value of the neighbor viewpoint flag;
de-encapsulating and then decoding a panoramic picture item of next viewpoint to obtain a panoramic picture of the next viewpoint; and
switching the panoramic picture of the current viewpoint to the panoramic picture of the next viewpoint according to the first information of the current viewpoint.

### Claim 20

An apparatus for de-capsulating a media file, comprising:
at least one processor and at least one memory, the at least one memory being configured to store a computer program, and the at least one processor being configured to call and run the computer program stored in the at least one memory and perform:
acquiring a media file of panoramic pictures of N viewpoints, the media file comprising, for at least one viewpoint in the N viewpoints, first information of a panoramic picture of the corresponding viewpoint, and the first information indicating switching information during switching from a panoramic picture of a current viewpoint to a panoramic picture of a next viewpoint, wherein the media file further comprises second information of at least one panoramic picture of at least one of the N viewpoints, the second information indicating recommended window property information for the panoramic picture of the corresponding viewpoint; and
switching between the panoramic pictures of different viewpoints according to the first information corresponding to the at least one viewpoint.
