# US 2019/0356717 A1 · Multimedia file processing

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

- Number: US 2019/0356717 A1
- Document ID: US20190356717A1
- Status: Published application
- Kind: A1
- Application number: 16/414,603
- Filed: 2019-05-16
- Published: 2019-11-21
- Earliest claimed: 2018-05-17
- Assignees: Shanghai Bilibili Technology Co., Ltd.
- Applicants: Shanghai Bilibili Technology Co., Ltd.
- Inventors: Zhiwei CHEN; Junxing TANG; Pengcheng LI; Longwen GAO; Yi WANG
- Web page: https://patentgrep.com/patent/US20190356717A1

## CPC

- H04L 65/70: Media network packetisation
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques for processing a multimedia file in real-time are described herein. The disclosed techniques include receiving a plurality of fragments of a multimedia file by a data stream conversion service, wherein the data stream conversion service receives a first fragment containing metadata of the multimedia file and then receives other fragments of the multimedia file in a predetermined order; sending a notification message to a message queue by the data stream conversion service in response to receiving the first fragment, wherein the notification message includes the metadata of the multimedia file and a corresponding Hyper Text Transfer Protocol (HTTP) interface address; obtaining the notification message from the message queue by an encoding and decoding service; and processing the other fragments of the multimedia file based at least in part on the notification message by the encoding and decoding service.

## Claims

### Claim 1

A method of processing multimedia files, comprising:
receiving, by a data stream conversion service, a plurality of fragments of at least a multimedia file, wherein the data stream conversion service first receives a first fragment containing metadata of the at least a multimedia file and subsequently receives other fragments of the at least a multimedia file in a predetermined order;
sending, by the data stream conversion service, a notification message to a message queue in response to receiving the first fragment, wherein the notification message includes the metadata of the at least a multimedia file and a corresponding Hyper Text Transfer Protocol (HTTP) interface address;
obtaining, by an encoding and decoding service, the notification message from the message queue; and
processing, by the encoding and decoding service, the other fragments of the at least a multimedia file based at least in part on the notification message.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data stream conversion service comprises a data stream main thread and at least a HTTP thread.

### Claim 3 (depends on 2)

The method of claim 2, wherein the data stream main thread receives and caches the plurality of fragments of the at least a multimedia file, and the data stream main thread sends the notification message to the message queue.

### Claim 4 (depends on 2)

The method of claim 2, wherein the at least a HTTP thread monitors the corresponding HTTP interface address and processes at least a HTTP range request sent from the encoding and decoding service.

### Claim 5 (depends on 4)

The method of claim 4, wherein the at least a HTTP thread sends a fragment to the encoding and decoding service upon receiving a HTTP range request based on determining that the requested fragment is received, or the at least a HTTP thread suspends the HTTP range request based on determining that the requested fragment is not received.

### Claim 6 (depends on 1)

The method of claim 1, wherein the encoding and decoding service comprises an encoding and decoding main process and at least a Fast Forward Motion Picture Experts Group (FFMPEG) subprocess.

### Claim 7 (depends on 6)

The method of claim 6, wherein the encoding and decoding main process obtains the notification message from the message queue, and the encoding and decoding main process starts the at least a FFMPEG subprocess in response to obtaining the corresponding HTTP interface address from the notification message.

### Claim 8 (depends on 6)

The method of claim 6, wherein the at least a FFMPEG subprocess sends at least a HTTP range request according to the corresponding HTTP interface address, and the FFMPEG subprocess first requests for the first fragment containing metadata of the at least a multimedia file and then requests for the other fragments of the at least a multimedia file.

### Claim 9 (depends on 1)

The method of claim 1, wherein a size of the at least a multimedia file is less than 2 GB, and a size of each file fragment is approximately in a range of 2 MB to 10 MB.

### Claim 10 (depends on 1)

The method of claim 1, wherein the processing, by the encoding and decoding service, the other fragments of the at least a multimedia file comprises at least one of image capturing, audio intercepting, transcoding, encoding or decoding.

### Claim 11

A system of processing multimedia files, comprising:
at least a processor; and
at least a memory communicatively coupled to the at least a processor to configure the at least a processor to:
receive, by a data stream conversion service, a plurality of fragments of at least a multimedia file, wherein the data stream conversion service first receives a first fragment containing metadata of the at least a multimedia file and subsequently receives other fragments of the at least a multimedia file in a predetermined order;
send, by the data stream conversion service, a notification message to a message queue in response to receiving the first fragment, wherein the notification message includes the metadata of the at least a multimedia file and a corresponding Hyper Text Transfer Protocol (HTTP) interface address;
obtain, by an encoding and decoding service, the notification message from the message queue; and
process, by the encoding and decoding service, the other fragments of the at least a multimedia file based at least in part on the notification message.

### Claim 12 (depends on 11)

The system of claim 11, wherein the data stream conversion service comprises a data stream main thread and at least a HTTP thread.

### Claim 13 (depends on 12)

The system of claim 12, wherein the data stream main thread receives and caches the plurality of fragments of the at least a multimedia file, the data stream main thread sends the notification message to the message queue, and the at least a HTTP thread monitors the corresponding HTTP interface address and processes at least a HTTP range request sent from the encoding and decoding service.

### Claim 14 (depends on 13)

The system of claim 13, wherein the at least a HTTP thread sends a fragment to the encoding and decoding service upon receiving a HTTP range request based on determining that the requested fragment is received, or the at least a HTTP thread suspends the HTTP range request based on determining that the requested fragment is not received.

### Claim 15 (depends on 11)

The system of claim 11, wherein the encoding and decoding service comprises an encoding and decoding main process and at least a Fast Forward Motion Picture Experts Group (FFMPEG) subprocess.

### Claim 16 (depends on 15)

The system of claim 15, wherein the encoding and decoding main process obtains the notification message from the message queue and starts the at least a FFMPEG subprocess in response to obtaining the corresponding HTTP interface address from the notification message, the at least a FFMPEG subprocess sends at least a HTTP range request according to the corresponding HTTP interface address, and the FFMPEG subprocess first requests for the first fragment containing metadata of the at least a multimedia file and then requests for the other fragments of the at least a multimedia file.

### Claim 17

A non-transitory computer-readable storage medium bearing computer-readable instructions that upon execution on a computing device cause the computing device at least to:
receive, by a data stream conversion service, a plurality of fragments of at least a multimedia file, wherein the data stream conversion service first receives a first fragment containing metadata of the at least a multimedia file and subsequently receives other fragments of the at least a multimedia file in a predetermined order;
send, by the data stream conversion service, a notification message to a message queue in response to receiving the first fragment, wherein the notification message includes the metadata of the at least a multimedia file and a corresponding Hyper Text Transfer Protocol (HTTP) interface address;
obtain, by an encoding and decoding service, the notification message from the message queue; and
process, by the encoding and decoding service, the other fragments of the at least a multimedia file based at least in part on the notification message.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the data stream conversion service comprises a data stream main thread and at least a HTTP thread, the data stream main thread receives and caches the plurality of fragments of the at least a multimedia file, and the data stream main thread sends the notification message to the message queue.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the at least a HTTP thread monitors the corresponding HTTP interface address and processes at least a HTTP range request sent from the encoding and decoding service, and the at least a HTTP thread sends a fragment to the encoding and decoding service upon receiving a HTTP range request based on determining that the requested fragment is received or the at least a HTTP thread suspends the HTTP range request based on determining that the requested fragment is not received.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the encoding and decoding service comprises an encoding and decoding main process and at least a Fast Forward Motion Picture Experts Group (FFMPEG) subprocess, the encoding and decoding main process obtains the notification message from the message queue and starts the at least a FFMPEG subprocess in response to obtaining the corresponding HTTP interface address from the notification message, the at least a FFMPEG subprocess sends at least a HTTP range request according to the corresponding HTTP interface address, and the FFMPEG subprocess first requests for the first fragment containing metadata of the at least a multimedia file and then requests for the other fragments of the at least a multimedia file.
