CN108024159A - A kind of generation method and system of video file thumbnail - Google Patents
A kind of generation method and system of video file thumbnail Download PDFInfo
- Publication number
- CN108024159A CN108024159A CN201711288732.5A CN201711288732A CN108024159A CN 108024159 A CN108024159 A CN 108024159A CN 201711288732 A CN201711288732 A CN 201711288732A CN 108024159 A CN108024159 A CN 108024159A
- Authority
- CN
- China
- Prior art keywords
- image data
- default
- sectional drawing
- interception
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8549—Creating video summaries, e.g. movie trailer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8193—Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8455—Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
Abstract
A kind of generation method of video file thumbnail, including step:During video code conversion, video pictures are decoded, and decoded video pictures data are intercepted by preset condition, obtain the image data of interception;The image data of interception is reduced by pre-set dimension, and the image data after diminution is subjected to interim storage;All image datas of interim storage are subjected to first encoding and generate a width synthesising picture.Due to the image data obtained to sectional drawing, coding is not carried out to it and generates small picture, but directly these data are temporarily held in memory with yuv formatted datas, first encoding finally is carried out to the yuv data of these preservations, big picture is synthesized, can thus reduce coding, decoded number, it substantially reduce the number the operation to file, reduce substantial amounts of intermediate file and space storage occupancy at the same time, and then save the time, improve the work efficiency of trans-coding system.
Description
Technical field
The present invention relates to video file processing technology field, and in particular to a kind of generation method of video file thumbnail and
System.
Background technology
With the rapid development of multimedia technology and network transmission technology, people favor in passing through internet more and more
Real-time query, appreciate colourful video information.However, since the video information quality on internet is uneven, for section
Save time, whether user often finds fragment the most excellent when selecting video by dragging progress bar, to be worth as the video
The standard that must be watched.
If video player provides random selection pre-looking function, for wanting for the user that whole film has superficial impression,
There to be very big help.Based on this, current way be to video file generate thumbnail, its step include sectional drawing step,
Storing step and combining step, are specially:
Sectional drawing step, is exactly during video code conversion, according to sectional drawing interval time, sectional drawing size, export file name
Etc. go interception picture;
Sectional drawing data are carried out diminution processing by storing step, and then each own coding generates small picture, then by these small pictures
It is stored on disk;
Multiple the small pictures being stored on disk are exactly combined sequence by combining step, and according to certain ruler
The very little big picture of generation.
The shortcomings that scheme of above-mentioned thumbnail generation is exactly a large amount of codings, decoded number;There are more file operations;It is raw
Into a large amount of intermediate files, add storage and take.If many videos, if the duration of each video is again very long, then
Many pictures will be intercepted, may result in generation preview picture overlong time, the work efficiency of system is lower.
The content of the invention
The application provides a kind of generation method and system of video file thumbnail.
According in a first aspect, provide a kind of generation method of video file thumbnail in a kind of embodiment, including step:
During video code conversion, video pictures are decoded, and preset condition is pressed to decoded video pictures data
Intercepted, obtain the image data of interception;
The image data of interception is reduced by pre-set dimension, and the image data after diminution is subjected to interim storage;
All image datas of interim storage are subjected to first encoding and generate a width synthesising picture.
In a kind of embodiment, preset condition includes the title of default sectional drawing, presets sectional drawing size, preset sectional drawing interval, is pre-
If output file title and default output file pattern;
Decoded video pictures data are intercepted by preset condition, obtaining the image data of interception includes:According to pre-
If the title of sectional drawing searches decoded video pictures data, default sectional drawing size is pressed according to default sectional drawing interval and carries out image data
Intercept operation, and the image data that interception is obtained is exported by default output file title and default output file form.
In a kind of embodiment, it is yuv formatted datas to preset output file form
In a kind of embodiment, the size Shen according to synthesising picture is further included before the image data after diminution is stored
Please corresponding memory headroom the step of.
In a kind of embodiment, by all image datas of interim storage carry out first encoding generate a width synthesising picture it
Afterwards, the step of being purged the image data of memory headroom interim storage is further included.
According to second aspect, a kind of video file breviary map generalization system is provided in a kind of embodiment, including:
Decoded video pictures data are intercepted by preset condition, the image data for obtaining the image data of interception is cut
Modulus block;
The image data of interception is reduced by pre-set dimension, and the image data after diminution is subjected to interim storage
Memory module;
All image datas of interim storage are carried out to the merging module of first encoding one width synthesising picture of generation.
In a kind of embodiment, preset condition includes the title of default sectional drawing, presets sectional drawing size, preset sectional drawing interval, is pre-
If output file title and default output file pattern;
In image data interception module, decoded video pictures data are intercepted by preset condition, obtain interception
Image data includes:Decoded video pictures data are searched according to the title of default sectional drawing, according to default sectional drawing interval by default
Sectional drawing size carries out image data intercept operation, and defeated with presetting by default output file title by obtained image data is intercepted
Go out file format to be exported.
In a kind of embodiment, it is yuv formatted datas to preset output file form.
According to the reduced graph generating method of above-described embodiment, due to the image data obtained to sectional drawing, it is not compiled
Code generates small picture, but is directly temporarily held in these data in memory with yuv formatted datas, finally to these preservations
Yuv data carry out first encoding, synthesize big picture, can thus reduce coding, decoded number, substantially reduce the number to file
Operation, while reduce substantial amounts of intermediate file and space storage occupancy, and then save the time, improve trans-coding system
Work efficiency.
Brief description of the drawings
Fig. 1 generates systematic schematic diagram for video file thumbnail.
Embodiment
The present invention is described in further detail below by embodiment combination attached drawing.
This example provides a kind of generation method of video file thumbnail, includes the following steps.
S1:During video code conversion, video pictures are decoded, and decoded video pictures data are pressed with default bar
Part is intercepted, and obtains the image data of interception.
Wherein, preset condition includes the title of default sectional drawing, presets sectional drawing size, default sectional drawing interval, default output text
Part title and default output file pattern;Decoded video pictures data are intercepted by preset condition, obtain the figure of interception
Sheet data, is specially:Decoded video pictures data are searched according to the title of default sectional drawing, according to default sectional drawing interval by described
Default sectional drawing size carries out image data intercept operation, and the image data that interception is obtained is by default output file title and in advance
If output file form is exported.
Preferably, the default output file form of this example is yuv formatted datas, then the interception image data obtained is
Yuv formatted datas.
S2:The image data of interception is reduced by pre-set dimension, and the image data after diminution is deposited temporarily
Storage.
Before this step, the step of further including memory headroom corresponding according to the size application of default synthesising picture,
In this manner it is possible to the image data after diminution is stored in the memory headroom successively by interception time.
It is exactly by the image data of interception it should be noted that being reduced to the image data of interception by pre-set dimension
Reduced according to the size of final default synthesising picture, to meet the synthesis of default synthesising picture.
Since image data is stored with yuv formatted datas, it is stored in memory headroom, it is not compiled
Code generation picture, so reduces the flow of coding, while reduce the small picture file of centre.
S3:All image datas of interim storage are subjected to first encoding and generate a width synthesising picture
After one video pictures data is intercepted and stored completely, the yuv data of all interim storages in memory are taken
Go out, carry out first encoding and generate a width synthesising picture, which is thumbnail, since the compression ratio of jpeg forms is high,
Therefore, preferentially, use jpeg to carry out first encoding, final synthesising picture.
Further, after step S3, the step of being purged the image data of memory headroom interim storage is further included, with
Reduce memory headroom occupancy.
By the video file of a 60s duration exemplified by 6s intercepts an image data, pass through above-mentioned steps S1-S3's
Reduced graph generating method, it is possible to reduce 10 codings, 10 decodings, 10 file read-write operations, therefore, the thumbnail life of this example
It is directed to for the very long video of multiple durations into method, due to reducing coding of graphics, decoded number, reduces to file
Read-write operation, accordingly, it is capable to be obviously improved the efficiency of generation preview picture, with into it is empty to decrease a large amount of intermediate files and memory
Between store occupancy.
Further, this example is generated by the video file thumbnail that above-mentioned reduced graph generating method also provides corresponding thereto
System, its schematic diagram is as shown in Figure 1, including image data interception module 1, memory module 2 and merging module 3;Image data is cut
Modulus block 1, which is used to perform, is intercepted decoded video pictures data by preset condition, obtains the behaviour of the image data of interception
Make, memory module 2 is used to reduce the image data of interception by pre-set dimension, and the image data after diminution is faced
When the operation that stores, merging module 3, which is used to perform, to be carried out first encoding by all image datas of interim storage and generates a width closing
Into the operation of picture.
The specific implementation process of each module refers to the life of foregoing thumbnail in above-mentioned video file thumbnail generation system
Into method, no longer repeat herein.
Use above specific case is illustrated the present invention, is only intended to help and understands the present invention, not limiting
The system present invention.For those skilled in the art, according to the thought of the present invention, can also make some simple
Deduce, deform or replace.
Claims (8)
1. a kind of generation method of video file thumbnail, it is characterised in that including step:
During video code conversion, video pictures are decoded, and decoded video pictures data are carried out by preset condition
Interception, obtains the image data of interception;
The image data of interception is reduced by pre-set dimension, and the image data after diminution is subjected to interim storage;
All image datas of interim storage are subjected to first encoding and generate a width synthesising picture.
2. generation method as claimed in claim 1, it is characterised in that the preset condition includes the title, pre- of default sectional drawing
If sectional drawing size, default sectional drawing interval, default output file title and default output file pattern;
Described that decoded video pictures data are intercepted by preset condition, obtaining the image data of interception includes:According to institute
The title for stating default sectional drawing searches decoded video pictures data, and the default sectional drawing size is pressed according to the default sectional drawing interval
Carry out image data intercept operation, and will intercept obtained image data by the default output file title with it is described preset it is defeated
Go out file format to be exported.
3. generation method as claimed in claim 2, it is characterised in that the default output file form is yuv formatted datas.
4. generation method as claimed in claim 1, it is characterised in that before the image data by after diminution is stored
The step of further including memory headroom corresponding according to the size application of the synthesising picture.
5. generation method as claimed in claim 4, it is characterised in that all image datas by interim storage carry out one
After one width synthesising picture of secondary coding generation, the step for being purged the image data of the memory headroom interim storage is further included
Suddenly.
A kind of 6. video file breviary map generalization system, it is characterised in that including:
Decoded video pictures data are intercepted by preset condition, obtain the image data interception mould of the image data of interception
Block;
The image data of interception is reduced by pre-set dimension, and the image data after diminution is carried out to the storage of interim storage
Module;
All image datas of interim storage are carried out to the merging module of first encoding one width synthesising picture of generation.
7. generation system as claimed in claim 6, it is characterised in that preset condition includes the title of default sectional drawing, presets and cut
Figure size, default sectional drawing interval, default output file title and default output file pattern;
It is described that decoded video pictures data are intercepted by preset condition in the image data interception module, cut
The image data taken includes:Decoded video pictures data are searched according to the title of the default sectional drawing, according to described default section
Figure interval carries out image data intercept operation by the default sectional drawing size, and will intercept obtained image data by described default
Output file title is exported with the default output file form.
8. generation system as claimed in claim 7, it is characterised in that the default output file form is yuv formatted datas.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711288732.5A CN108024159A (en) | 2017-12-07 | 2017-12-07 | A kind of generation method and system of video file thumbnail |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711288732.5A CN108024159A (en) | 2017-12-07 | 2017-12-07 | A kind of generation method and system of video file thumbnail |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108024159A true CN108024159A (en) | 2018-05-11 |
Family
ID=62079036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711288732.5A Pending CN108024159A (en) | 2017-12-07 | 2017-12-07 | A kind of generation method and system of video file thumbnail |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108024159A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881984A (en) * | 2018-07-02 | 2018-11-23 | 深圳市九洲电器有限公司 | Digital television devices screenshot storage method and system |
CN110324669A (en) * | 2019-07-01 | 2019-10-11 | 广州视源电子科技股份有限公司 | Transmission method, the apparatus and system of thumbnail |
CN110536076A (en) * | 2018-05-23 | 2019-12-03 | 福建天晴数码有限公司 | A kind of method and terminal that Unity panoramic video is recorded |
CN111428568A (en) * | 2020-02-26 | 2020-07-17 | 平安科技(深圳)有限公司 | Living body video picture processing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024607A (en) * | 2011-09-20 | 2013-04-03 | 三星电子株式会社 | Method and apparatus for displaying summary video |
CN103873916A (en) * | 2012-12-13 | 2014-06-18 | 深圳市快播科技有限公司 | Video thumbnail processing method, video thumbnail processing system and video player |
CN104540000A (en) * | 2014-12-04 | 2015-04-22 | 广东欧珀移动通信有限公司 | Method for generating dynamic thumbnail and terminal |
CN105075244A (en) * | 2013-03-06 | 2015-11-18 | 汤姆逊许可公司 | Pictorial summary of a video |
JP2017059886A (en) * | 2015-09-14 | 2017-03-23 | エヌ・ティ・ティ・コミュニケーションズ株式会社 | Thumbnail provision device, display device, thumbnail video display method and program |
-
2017
- 2017-12-07 CN CN201711288732.5A patent/CN108024159A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024607A (en) * | 2011-09-20 | 2013-04-03 | 三星电子株式会社 | Method and apparatus for displaying summary video |
CN103873916A (en) * | 2012-12-13 | 2014-06-18 | 深圳市快播科技有限公司 | Video thumbnail processing method, video thumbnail processing system and video player |
CN105075244A (en) * | 2013-03-06 | 2015-11-18 | 汤姆逊许可公司 | Pictorial summary of a video |
CN104540000A (en) * | 2014-12-04 | 2015-04-22 | 广东欧珀移动通信有限公司 | Method for generating dynamic thumbnail and terminal |
JP2017059886A (en) * | 2015-09-14 | 2017-03-23 | エヌ・ティ・ティ・コミュニケーションズ株式会社 | Thumbnail provision device, display device, thumbnail video display method and program |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110536076A (en) * | 2018-05-23 | 2019-12-03 | 福建天晴数码有限公司 | A kind of method and terminal that Unity panoramic video is recorded |
CN108881984A (en) * | 2018-07-02 | 2018-11-23 | 深圳市九洲电器有限公司 | Digital television devices screenshot storage method and system |
CN108881984B (en) * | 2018-07-02 | 2020-11-03 | 深圳市九洲电器有限公司 | Method and system for storing screenshot of digital television equipment |
CN110324669A (en) * | 2019-07-01 | 2019-10-11 | 广州视源电子科技股份有限公司 | Transmission method, the apparatus and system of thumbnail |
CN111428568A (en) * | 2020-02-26 | 2020-07-17 | 平安科技(深圳)有限公司 | Living body video picture processing method and device, computer equipment and storage medium |
WO2021169501A1 (en) * | 2020-02-26 | 2021-09-02 | 平安科技(深圳)有限公司 | Living body video picture processing method and apparatus, computer device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108024159A (en) | A kind of generation method and system of video file thumbnail | |
US11632560B2 (en) | Methods and apparatuses for encoding and decoding a bytestream | |
US8036475B2 (en) | Compression for segmented images and other types of sideband information | |
US8769395B2 (en) | Layout objects as image layers | |
JP2020053977A (en) | Reproducer, reproduction method, program, and storage medium | |
Castiglione et al. | A forensic analysis of images on online social networks | |
CN1193603C (en) | Device and method for reproducing data from storage medium containing preloading character | |
US8005801B2 (en) | Aging and compressing multimedia content | |
US20080288857A1 (en) | Sharing editable ink annotated images with annotation-unaware applications | |
US11704328B2 (en) | Columnar storage and query method and system for time series data | |
US8620075B2 (en) | Image processing device and method | |
CN105491395A (en) | Server video management method and system | |
US7577301B1 (en) | Multiple page descriptions for the same page | |
CN103544221B (en) | The generation method and system of video thumbnails in a kind of android system | |
US10515092B2 (en) | Structured record compression and retrieval | |
CN103886624A (en) | JPEG image thumbnail extracting method | |
CN103067774A (en) | Method and system capable of enabling set top box to display add-on subtitles | |
CN110418162B (en) | Method for simultaneously making short videos with different breadth ratios | |
KR100439371B1 (en) | Multimedia searching method using histogram | |
US20150063435A1 (en) | Techniques for reference based transcoding | |
CN105447016A (en) | Assembly fast search and reuse method | |
CN103533353A (en) | Approximate video encoding system | |
CN102651795B (en) | Run-length reduced binary sequence compressed encoding method | |
WO2022142156A1 (en) | Video file stream extraction method and apparatus | |
Shirani | Content-based multiple description image coding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180511 |