File processing method, terminal, server, and computer storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsTong Wang, Gu Cai Luo
Life of this patent
Estimating the term…
Abstract
A file processing method is provided. A file conversion logic based on a player plug-in, a software development kit (SDK), and a recording plug-in that are loaded and run in a designated three-dimensional (3D) operation environment is obtained. A first to-be-processed file and a second to-be-processed file obtained based on a source file are played. Audio/video decoding is performed on each of the first to-be-processed file and the second to-be-processed file based on the file conversion logic. Distortion processing is performed on a result of the audio/video decoding, and a result of the distortion processing is stored in an image file format in a video random access memory (RAM).
Claims17
A file processing method in a terminal comprising at least one processor, the method comprising:
- obtaining, by the at least one processor, a file conversion logic, the file conversion logic being based on a player plug-in, a software development kit (SDK), and a recording plug-in that are loaded and run in a designated three-dimensional (3D) operation environment;
- playing, by the at least one processor, a first to-be-processed file and a second to-be-processed file obtained based on a source file, the first to-be-processed file being a left video file of the source file displayed on a screen of the terminal, and the second to-be-processed file being a right video file of the source file displayed on the screen of the terminal;
- performing, by the at least one processor, audio/video decoding on each of the first to-be-processed file and the second to-be-processed file based on the file conversion logic, to obtain a first audio file and a first image file that correspond to the first to-be-processed file and to obtain a second audio file and a second image file that correspond to the second to-be-processed file;
- performing, by the at least one processor, distortion processing on the first image file to provide a first distorted image file corresponding to the left video file and performing distortion processing on the second image file to provide a second distorted image file corresponding to the right video file, and storing a result of the distortion processing in an image file format in a video random access memory (RAM);
- providing, by the at least one processor, the first distorted image file and the second distorted image file to a recording thread for recording in response to an instruction for a recording operation;
- encoding and combining, based on the file conversion logic, the first distorted image file and the first audio file into a first target file;
- and
- encoding and combining, based on the file conversion logic, the second distorted image file and the second audio file into a second target file, the first target file and the second target file respectively corresponding to the left video file and the right video file, and being for virtual reality (VR) playing.
A terminal, comprising:
- at least one memory operable to store program code;
- and
- at least one processor operable to read the program code and operate as instructed by the program code, the program code comprising:
- obtaining code configured to cause the at least one processor to obtain a file conversion logic, the file conversion logic being based on a player plug-in, a software development kit (SDK), and a recording plug-in that are loaded and run in a designated three-dimensional (3D) operation environment;
- playing code configured to cause the at least one processor to play a first to-be-processed file and a second to-be-processed file obtained based on a source file, the first to-be-processed file being a left video file of the source file displayed on a screen of the terminal, and the second to-be-processed file being a right video file of the source file displayed on the screen of the terminal;
- and
- first processing code configured to cause the at least one processor to:
- perform audio/video decoding on each of the first to-be-processed file and the second to-be-processed file based on the file conversion logic, to obtain a first audio file and a first image file that correspond to the first to-be-processed file and to obtain a second audio file and a second image file that correspond to the second to-be-processed file,
- perform distortion processing on the first image file to provide a first distorted image file corresponding to the left video file and perform distortion processing on the second image file to provide a second distorted image file corresponding to the right video file, and store a result of the distortion processing in an image file format in a video random access memory (RAM);
- provide the first distorted image file and the second distorted image file to a recording thread for recording in response to an instruction for a recording operation;
- encode and combine, based on the file conversion logic, the first distorted image file and the first audio file into a first target file;
- and
- encode and combine, based on the file conversion logic, the second distorted image file and the second audio file into a second target file, the first target file and the second target file respectively corresponding to the left video file and the right video file, and being for virtual reality (VR) playing.
A non-transitory computer storage medium storing instructions, which, when executed by at least one processor, cause the at least one processor to perform:
- obtaining a file conversion logic, the file conversion logic being based on a player plug-in, a software development kit (SDK), and a recording plug-in that are loaded and run in a designated three-dimensional (3D) operation environment;
- playing a first to-be-processed file and a second to-be-processed file obtained based on a source file, the first to-be-processed file being a left video file of the source file displayed on a screen of a terminal, and the second to-be-processed file being a right video file of the source file displayed on the screen of the terminal;
- performing audio/video decoding on each of the first to-be-processed file and the second to-be-processed file based on the file conversion logic, to obtain a first audio file and a first image file that correspond to the first to-be-processed file and to obtain a second audio file and a second image file that correspond to the second to-be-processed file;
- performing distortion processing on the first image file to provide a first distorted image file corresponding to the left video file and performing distortion processing on the second image file to provide a second distorted image file corresponding to the right video file, and storing a result of the distortion processing in an image file format in a video random access memory (RAM);
- providing the first distorted image file and the second distorted image file to a recording thread for recording in response to an instruction for a recording operation;
- encoding and combining, based on the file conversion logic, the first distorted image file and the first audio file into a first target file;
- and
- encoding and combining, based on the file conversion logic, the second distorted image file and the second audio file into a second target file, the first target file and the second target file respectively corresponding to the left video file and the right video file, and being for virtual reality (VR) playing.
Dependencies are inferred from the claim text.