# US 10,313,625 B2 · Method, apparatus, and storage medium for video file processing

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

- Number: US 10,313,625 B2
- Document ID: US10313625B2
- Status: Granted
- Kind: B2
- Application number: 15/941,444
- Filed: 2018-03-30
- Published: 2018-10-04
- Granted: 2019-06-04
- Earliest claimed: 2017-03-30
- Assignees: Lenovo (Beijing) Limited
- Applicants: Lenovo (Beijing) Co., Ltd.
- Inventors: Wenhai Kong; Wei Liu; Jingxian Liu
- Web page: https://patentgrep.com/patent/US10313625B2

## CPC

- H04N 5/76: Television signal recording
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Method, apparatus, and computer-readable storage medium for video file processing are provided. A video file is obtained, which includes a first save mode. The video file is detected to obtain a detection result. According to the corresponding detection result, at least one second save mode different from the first save mode is generated to save the video file.

## Claims

### Claim 1

A video file processing method, comprising:
obtaining a video file, the video file including a first save mode;
detecting the video file to obtain a detection result; and
generating, according to the detection result, at least one second save mode different from the first save mode to save the video file.

### Claim 2 (depends on 1)

The method according to claim 1, wherein, after obtaining the video file, the method further comprises:
saving original data of the video file;
obtaining an instruction of switching a save mode, the instruction of switching the save mode instructing to re-save the video file saved in the second save mode to be in a third save mode, and the third save mode being different from the second save mode; and
re-saving, according to the instruction of switching the save mode, the video file in the third save mode.

### Claim 3 (depends on 1)

The method according to claim 1, wherein generating, according to the detection result, the at least one second save mode different from the first save mode to save the video file, further comprises:
determining, according to the detection result, whether a variation pattern of N consecutive image frames of the video file in a first area matches a preset variation pattern, N being an integer greater than or equal to 2; and
if a match is determined, saving the video file as a corresponding photo in a photo save mode.

### Claim 4 (depends on 1)

The method according to claim 1, wherein generating, according to the detection result, the at least one second save mode different from the first save mode to save the video file, further comprises:
determining, according to the detection result, whether a shooting background of M consecutive image frames of the video file is unchanged, M being an integer greater than or equal to 2; and
if an unchanged shooting background is determined, saving the video file in an animated graphic save mode.

### Claim 5 (depends on 1)

The method according to claim 1, wherein generating, according to the detection result, the at least one second save mode different from the first save mode to save the video file, further comprises:
determining, according to the detection result, whether a difference in a shooting background of K consecutive image frames of the video file exceeds a first range, K being an integer greater than or equal to 2; and
if an exceeding is determined, saving original data of the video file.

### Claim 6 (depends on 1)

The method according to claim 1, wherein generating, according to the detection result, the at least one second save mode different from the first save mode to save the video file, further comprises:
determining, according to the detection result, whether a difference in a shooting scene of L consecutive image frames of the video file exceeds a second range, L being an integer greater than or equal to 2; and
if the difference does not exceed the second range, compressing the video file; and
saving the compressed video file in a compressed video save mode; or
saving the compressed video file as a corresponding animated graphic in an animated graphic save mode.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
detecting whether a function of manually saving the video file is activated before recording the video file; and
if the function is not activated, obtaining the video fie and detecting the video file to generate the second save mode for saving the video file.

### Claim 8 (depends on 2)

The method according to claim 2, wherein saving the original data of the video file includes saving the original data of the video file in a cloud server or locally.

### Claim 9 (depends on 3)

The method according to claim 3, wherein the first area includes at least one of a shooting foreground, a shooting background, or a shooting subject.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the detection result includes at least one of a detection result of each image frame, a comparison result between image frames, or a detection result of all images as a whole.

### Claim 11

A video file processing apparatus, comprising:
a processor; and
a memory, coupled to the processor and storing computer program instructions that, when executed by the processor, cause the processor to:
obtain a video file, the video file including a first save mode;
detect the video file to obtain a detection result; and
generate, according to the detection result, at least one second save mode different from the first save mode to save the video file.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein, after obtaining the video file, the processor further:
saves original data of the video file;
obtains an instruction of switching a save mode, the instruction of switching the save mode instructing to re-save the video file saved in the second save mode to be in a third save mode, and the third save mode being different from the second save mode; and
re-saves, according to the instruction of switching the save mode, the video file in the third save mode.

### Claim 13 (depends on 11)

The apparatus according to claim 11, wherein the processor further:
determines, according to the detection result, whether a variation pattern of N consecutive image frames of the video file in a first area matches a preset variation pattern, N being an integer greater than or equal to 2; and
if a match is determined, saves the video file as a corresponding photo in a photo save mode.

### Claim 14 (depends on 11)

The apparatus according to claim 11, wherein the processor further:
determines, according to the detection result, whether a shooting background of M consecutive image frames of the video file is unchanged, M being an integer greater than or equal to than 2; and
if an unchanged shooting background is determined, saves the video file in an animated graphic save mode.

### Claim 15 (depends on 11)

The apparatus according to claim 11, wherein the processor further:
determines, according to the detection result, whether a difference in a shooting background of K consecutive image frames of the video file exceeds a first preset range, K being an integer greater than or equal to 2; and
if an exceeding is determined, saves original data of the video file.

### Claim 16 (depends on 11)

The apparatus according to claim 11, wherein the processor further:
determines, according to the detection result, whether a difference in a shooting scene of L consecutive image frames of the video file exceeds a second range, L being an integer greater than or equal to 2; and
if the difference does not exceed the second range, compresses the video file; and
saves the compressed video file in a compressed video save mode; or
saves the compressed video file as a corresponding animated graphic in an animated graphic save mode.

### Claim 17 (depends on 11)

The apparatus according to claim 11, wherein the processor further:
detects whether a function of manually saving the video file is activated before recording the video file; and
if the function is not activated, obtains the video file and detects the video file to generate the second save mode for saving the video file.

### Claim 18

A computer-readable storage medium that is not a transitory signal, the computer-readable storage medium storing computer-executable instructions for execution by a hardware processor to:
obtain a video file, the video file including a first save mode;
detect the video file to obtain a detection result; and
generate, according to the detection result, at least one second save mode different from the first save mode to save the video file.

### Claim 19 (depends on 18)

The computer-readable storage medium according to claim 18, wherein the hardware processor further:
saves original data of the video file;
obtains an instruction of switching a save mode, the instruction of switching the save mode instructing to re-save the video file saved in the second save mode to be in a third save mode, and the third save mode being different from the second save mode; and
re-saves, according to the instruction of switching the save mode, the video file in the third save mode.

### Claim 20 (depends on 18)

The computer-readable storage medium according to claim 18, wherein the hardware processor further:
determines, according to the detection result, whether a variation pattern of N consecutive image frames of the video file in a first area matches a preset variation pattern, N being an integer greater than or equal to 2; and
if a match is determined, saves the video file as a corresponding photo in a photo save mode.
