Patent ID: 11917163
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 8:
9. A non-transitory computer readable storage medium having a computer readable instruction stored thereon, wherein the computer readable instruction is executable by at least one processor to perform:
obtaining video data to be recorded;
dividing, based on the video data and by using a preset neural network model, each frame of the video data into a plurality of subregions, the plurality of subregions including subregions included in a region of interest and subregions included in a background region;
determining a first encoding bit rate of the region of interest and a second encoding bit rate of the background region, such that a sum of encoding distortion degrees of the plurality of subregions of a frame based on the first encoding bit rate and the second encoding bit rate is minimum under a condition that an encoding bit rate of each subregion is less than or equal to a target output bit rate of an encoder, wherein the target output bit rate is increased or decreased, in real time, based on a buffer status of a video buffer and an input/output (I/O) speed of a storage device;
encoding the region of interest of the video data based on the first encoding bit rate, and the background region based on the second encoding bit rate;
storing the encoded video data into the storage device through the video buffer,
wherein the first encoding bit rate for the region of interest is determined to be greater than the second encoding bit rate of the background region,
wherein the encoding comprises controlling an output bit rate of the encoder in real time based on an increase or a decrease of the target output bit rate, and
wherein the target output bit rate is controlled such that:
the target output bit rate is decreased based on a current data volume in the video buffer being greater than a preset upper threshold and the I/O speed of the storage device being lower than a current output bit rate of the encoder, wherein the preset upper threshold is a preset percentage of a maximum storage capacity of the video buffet;
the target output bit rate is increased based on the current data volume in the video buffer being less than a preset lower threshold; and
the target output bit rate is maintained based on the current data volume in the video buffer being greater than the preset lower threshold and less than the preset upper threshold, or based on the current data volume in the video buffer being greater than the preset upper threshold and the I/O speed of the storage device being equal to or greater than the current output bit rate of the encoder.