Video inversion method and system for smart phone

A smart phone and video technology, applied in the field of video inversion, can solve the problems of poor user experience, high time consumption, high waiting time, etc., and achieve the effect of convenient operation, low time consumption and low error rate

Pending Publication Date: 2020-12-01
SHANGHAI QINIU INFORMATION TECH
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current common practice is to decode the video according to GOP. Starting from the last GOP, the video frames decoded by each GOP are stored in a cache, and then sent to the encoder in reverse order for encoding, and finally a reversed video is obtained. However, if the storage space of the device is not enough to store a GOP video, the a

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Video inversion method and system for smart phone
  • Video inversion method and system for smart phone

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] like figure 1 As shown, the present embodiment provides a video reversal method for smart phones, which includes the following steps:

[0057] 1. Set the cache size cache size;

[0058] 2. The space size GOP size of the largest GOP of the detection video;

[0059]3. Compare cache size and GOP size, if cache size2*GOP size, proceed to step ten ;

[0060] 4. Divide the cache into two caches on average, namely cache1 and cache2;

[0061] 5. Check that cache1 can store several decoded video frames, and the number of frames is set to frame num;

[0062] 6. Open two decoding threads and one encoding thread;

[0063] 7. Starting from the last GOP, the two decoding threads alternately decode frame num video frames and store them in the corresponding cache1 and cache2, and then send the video frames in cache1 and cache2 to the encoding thread in reverse order for encoding until the end A GOP, repeat the same operation until all GOPs are completed;

[0064] 8. Start a deco...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of video inversion. Particularly, the invention relates to a video inversion method and system for a smart phone. The method comprises the following steps:firstly, detecting the residual space size of a mobile phone memory; setting a cache size according to the size of the remaining space of the memory of the mobile phone; then, detecting the space size GOP size of the maximum GOP of the video; and comparing cache size with GOP size in the next step, and finally, according to a comparison result, performing reverse decoding and encoding of different modes on the GOP through a decoding thread and an encoding thread, and sending the GOP into an encoder in a reverse order to obtain a reverse video. According to the invention, the inverted video can be better obtained, the error rate is low, the operation is very convenient, the time consumption is low, and the user experience is high.

Description

technical field [0001] The invention relates to the technical field of video inversion, in particular to a video inversion method and system for smart phones. Background technique [0002] Nowadays, with the development of short videos on smartphones, various interesting video forms are loved by everyone, and video inversion is a very typical case. [0003] The current common practice is to decode the video according to GOP. Starting from the last GOP, the video frames decoded by each GOP are stored in a cache, and then sent to the encoder in reverse order for encoding, and finally a reversed video is obtained. However, if the storage space of the device is not enough to store a GOP video, then the above operations cannot be performed. As the video resolution becomes higher and higher (such as 4k video), the probability of this situation will increase. , In addition, the time consumption of the above solution is relatively large, and the waiting time for the user to perform...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04N19/177H04N19/42H04N19/44H04M1/725
CPCH04N19/177H04N19/42H04N19/44
Inventor 霍锴
Owner SHANGHAI QINIU INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products