CN108495171A - Method for processing video frequency and its device, storage medium, electronic product - Google Patents
Method for processing video frequency and its device, storage medium, electronic product Download PDFInfo
- Publication number
- CN108495171A CN108495171A CN201810288314.4A CN201810288314A CN108495171A CN 108495171 A CN108495171 A CN 108495171A CN 201810288314 A CN201810288314 A CN 201810288314A CN 108495171 A CN108495171 A CN 108495171A
- Authority
- CN
- China
- Prior art keywords
- transition
- video
- subtitle
- adjacent
- frame
- 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
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 230000007704 transition Effects 0.000 claims abstract description 232
- 230000015572 biosynthetic process Effects 0.000 claims description 34
- 238000003786 synthesis reaction Methods 0.000 claims description 34
- 230000008569 process Effects 0.000 claims description 26
- 239000000284 extract Substances 0.000 claims description 3
- 238000004458 analytical method Methods 0.000 claims description 2
- 238000005562 fading Methods 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 6
- 238000000605 extraction Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 239000000203 mixture Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 210000003323 beak Anatomy 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
-
- 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/8547—Content authoring involving timestamps for synchronizing content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/278—Subtitling
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Studio Circuits (AREA)
Abstract
The embodiment of the present application provides a kind of method for processing video frequency and its device, storage medium, electronic product, wherein method for processing video frequency includes:The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;The transition duration handled according to the timestamp of the two adjacent frame videos and transition, synthesized and carried out the addition of transition subtitle to the adjacent two frame videos and transition video, to provide it is a kind of realize above-mentioned transition or conversion when carry out subtitle configuration.
Description
Technical field
The invention relates to multi-media processing technical field more particularly to a kind of method for processing video frequency and its device,
Storage medium, electronic product.
Background technology
The least unit for constituting video is camera lens, and a plurality of lenses are organic to be stitched together to form a plurality of lenses sequence, this is more
A shot sequence is also referred to as paragraph, some is single, the relatively complete meaning to expressing, such as one action of performance
Process either a kind of relationship or a kind of meaning, to realize a complete narration level.Multiple above-mentioned paragraph splicings exist
Together to form a complete video content.In addition, in video content, often have in the shooting under different scenes
Hold, for example then camera is switched to shooting rostrum again firstly the need of shooting auditorium.It can be seen that and in video content
In, transition or conversion are generally required between paragraph and paragraph, before scene and scene, to keep the fluency and nature of video
Transition.
And configuration caption content is often also needed in video, and when the transition or conversion for needing realization said circumstances
When, the configuration difficulty that frequently can lead to subtitle increases.It would therefore be highly desirable to a kind of technical solution be provided, to solve to realize above-mentioned transition
Or the configuration of subtitle is carried out when conversion.
Invention content
In view of this, one of the technical issues of the embodiment of the present application is solved be to provide a kind of method for processing video frequency and its
Device, storage medium, electronic product, to overcome drawbacks described above in the prior art.
The embodiment of the present application provides a kind of method for processing video frequency comprising:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frames
Video and transition video are synthesized and are carried out the addition of transition subtitle.
Optionally, in the embodiment of the application, the method for processing video frequency further includes:Determine transition trigger switch
Whether open, if transition trigger switch is opened, extracts the multi-frame video in video sequence.
Optionally, it in the embodiment of the application, in the method for processing video frequency, determines and needs to carry out transition processing
Two adjacent frame videos, including:It needs to carry out transition processing according to the frame number of video frame or the determination of the timestamp of video frame
Two adjacent frame videos.
Optionally, in the embodiment of the application, in the method for processing video frequency, to the two adjacent frame videos
Carrying out synthesis with transition video includes:Transition video is shared in the two adjacent frame videos, the transition video is in institute
The duration summation of sharing stated in two adjacent frame videos is equal to the transition duration.
Optionally, in the embodiment of the application, in the method for processing video frequency, the addition packet of transition subtitle is carried out
It includes:It carries out without plot subtitle, have the addition of at least one of plot subtitle and double exposure subtitle transition subtitle.
Optionally, in the embodiment of the application, the method for processing video frequency further includes:Correct described adjacent two
The resolution ratio of frame video or the resolution ratio of transition video so that the resolution ratio of the two adjacent frame videos and the transition regard
The resolution ratio of frequency is consistent.
Optionally, in the embodiment of the application, in the method for processing video frequency, to the two adjacent frame videos
Carrying out synthesis with transition video includes:Parameter is configured according to transition to close the adjacent two frame videos and transition video
At.
Optionally, in the embodiment of the application, in the method for processing video frequency, the transition configuration parameter includes
Any or a variety of combination of video flowing scaled in multiple, rotation angle, fuzzy pattern, fog-level.
Optionally, in the embodiment of the application, in the method for processing video frequency, to the two adjacent frame videos
Carrying out synthesis with transition video includes:According to transition special effective mode, the adjacent two frame videos and transition video are closed
At.
Optionally, in the embodiment of the application, in the method for processing video frequency, the transition special effective includes fading out
Fade in, dissolve, page turning, draw as, iris out ensphere, fix in any or a variety of combination.
Optionally, in the embodiment of the application, the method for processing video frequency further includes:To the transition subtitle into
Row parsing is to establish caption information list;Accordingly, when carrying out the addition of transition subtitle, according to word in caption information list
The address offset amount of curtain information bar carries out the addition of transition subtitle.
Optionally, in the embodiment of the application, the method for processing video frequency further includes:The subtitle file is turned
It is changed to subtitle bitmap, accordingly, when carrying out the addition of transition subtitle, according to regarding after the resolution ratio of subtitle bitmap and synthesis
The brightness of pixel and Color Channel feature on frequency determine the point of addition on the video after the synthesis of transition subtitle.
The embodiment of the present application also provides a kind of video process apparatus comprising:
First program unit for extracting the multi-frame video in video sequence, and determines the phase for needing to carry out transition processing
Two adjacent frame videos;
Second program unit, when for according to the transition of the timestamp of the two adjacent frame videos and transition processing
It is long, synthesized and carried out the addition of transition subtitle to the adjacent two frame videos and transition video.
Optionally, in the embodiment of the application, in the video process apparatus, first program unit is into one
It walks for extracting the multi-frame video in video sequence when transition trigger switch is opened.
Optionally, in the embodiment of the application, in the video process apparatus, first program unit is into one
It walks for determining the two adjacent frame videos for needing to carry out transition processing according to the frame number of video frame or the timestamp of video frame.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
Step is for sharing transition video in the two adjacent frame videos, and the transition video is in the two adjacent frame videos
Share duration summation be equal to the transition duration.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
Addition of the step for carrying out without plot subtitle, having at least one of plot subtitle and double exposure subtitle transition subtitle.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
Walk the resolution ratio of the resolution ratio or transition video for correcting the two adjacent frame videos so that the two adjacent frames regard
The resolution ratio of frequency is consistent with the resolution ratio of transition video.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
Step synthesizes the adjacent two frame videos and transition video for configuring parameter according to transition.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
Step is for according to transition special effective mode, synthesizing the adjacent two frame videos and transition video.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
The addition for carrying out transition subtitle according to the address offset amount of caption information item in caption information list is walked, to the transition
Subtitle is parsed to establish caption information list.
Optionally, in the embodiment of the application, in the video process apparatus, second program unit is into one
Step by the subtitle file for being converted to subtitle bitmap, accordingly, when carrying out the addition of transition subtitle, according to subtitle bitmap
Resolution ratio and synthesis after video on pixel brightness and Color Channel feature, determine transition subtitle synthesis after regarding
Point of addition on frequency.
The embodiment of the present application also provides a kind of storage medium, and machine instruction, the machine are stored on the storage medium
Following steps are realized in instruction when being executed by processor:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frames
Video and transition video are synthesized and are carried out the addition of transition subtitle.
The embodiment of the present application also provides a kind of electronic product comprising storage medium and processor, the storage medium
On be stored with machine instruction, the machine instruction realizes following steps when being executed by processor:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frames
Video and transition video are synthesized and are carried out the addition of transition subtitle.
In the embodiment of the present application, need to carry out transition processing by extracting the multi-frame video in video sequence, and determining
Two adjacent frame videos, the transition duration of timestamp and transition processing further according to the two adjacent frame videos, to described
Two adjacent frame videos and transition video are synthesized and are carried out the addition of transition subtitle, above-mentioned to provide a kind of realization
The configuration of subtitle is carried out when transition or conversion.
Description of the drawings
Some of detailed description the embodiment of the present application by way of example rather than limitation with reference to the accompanying drawings hereinafter are specific
Embodiment.Identical reference numeral denotes same or similar component or part in attached drawing.Those skilled in the art should manage
Solution, the drawings are not necessarily drawn to scale.In attached drawing:
Fig. 1 is the flow diagram of method for processing video frequency in the embodiment of the present application one;
Fig. 2 is the flow diagram of method for processing video frequency in the embodiment of the present application two;
Fig. 3 is the flow diagram of method for processing video frequency in the embodiment of the present application three;
Fig. 4 is the block diagram of video process apparatus in the embodiment of the present application four.
Specific implementation mode
Implementing any technical solution of the embodiment of the present application must be not necessarily required to reach simultaneously above all advantages.
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, below in conjunction with the application
Attached drawing in embodiment, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described reality
It is the embodiment of the present application a part of the embodiment to apply example only, instead of all the embodiments.Based on the implementation in the embodiment of the present application
Example, the every other embodiment that those of ordinary skill in the art are obtained should all belong to the range of the embodiment of the present application protection.
Further illustrate that the embodiment of the present application implements with reference to the embodiment of the present application attached drawing.
Fig. 1 is the flow diagram of method for processing video frequency in the embodiment of the present application one;As shown in Figure 1 comprising following step
Rapid S101 and step S102:
Multi-frame video in S101, extraction video sequence, and determine the two adjacent frame videos for needing to carry out transition processing;
It, can be in step S101 when determining the two adjacent frame video for needing to carry out transition processing in the present embodiment
The two adjacent frame videos for needing to carry out transition processing are determined according to the frame number of video frame or the timestamp of video frame.
In the present embodiment, video sequence can be referred to as video flowing again, and the frame number of video frame can also be referred to as stream number.It carries
The different frame video taken can carry out caching process according to the size of stream number.
Need the adjacent two frames video for carrying out transition processing that can be provided by third party application by user man-machine
Operation interface is specified, can also be determined by way of automatic identification.Specifically, the mode of automatic identification is such as specifically led to
The histogram difference determination for calculating adjacent two frames video is crossed, therefrom chooses histogram difference and is more than given threshold corresponding adjacent two
Frame video is the object for needing to carry out transition processing, or also referred to as point, transition.
S102, the transition duration handled according to the timestamp of the two adjacent frame videos and transition, to described adjacent
Two frame videos and transition video synthesized and carried out the addition of transition subtitle.
In the present embodiment, in step S1020 to the adjacent two frame videos and transition video carry out synthesis include:It will
Transition video is shared in the two adjacent frame videos, the transition video in the two adjacent frame videos when sharing
Long summation is equal to the transition duration.
In addition, in the present embodiment, the addition that transition subtitle is carried out in step S102 includes:It carries out without plot subtitle, in love
Save the addition of at least one of subtitle and double exposure subtitle transition subtitle.
Specifically, for example two adjacent video frames are respectively video frame A and video frame B, and video frame A can be referred to as picture
Face, and video frame B can be referred to as into picture, if a length of 6s when the transition of setting, it is determined that the last 3s of video frame A and
The preceding 3s of video frame B, obtains 6s altogether.Certainly, merely illustrative herein, can also as the case may be, flexible configuration transition
Time length of the duration in front and back two frames video.In addition, it is necessary to explanation, the last 3s of video frame A before transition processing
Video content and the video content of preceding 3s of video frame B can intercept or delete in advance, in this way carry out transition when
It waits, directly transition video is inserted into according to the distribution of transition duration between video frame A and video frame B, then is synthesized, to
Complete the synthesis of video.In Video Composition, each subtitle in caption information list in content in subtitle can be believed
Breath item is converted to subtitle bitmap, accordingly, when carrying out the addition of transition subtitle, according to the resolution ratio of subtitle bitmap and synthesis
The brightness of pixel and Color Channel feature on video afterwards determine the point of addition on the video after the synthesis of transition subtitle.
Fig. 2 is the flow diagram of method for processing video frequency in the embodiment of the present application two;As shown in Figure 2 comprising following step
Rapid S201, step S202, step S203 and step S204:
S201, judge whether transition trigger switch is opened, if transition trigger switch is opened, then follow the steps S202;
In the present embodiment, by the transition trigger switch configured come control transition processing startup whether.Transition triggering is opened
It can be to configure in the operation pages that guiding user carries out transition processing, for example a control button is arranged to close, should by detection
Whether control button has the event operated, determines whether transition trigger switch is opened.
Multi-frame video in S202, extraction video sequence;
It is unlike the embodiments above, above-mentioned steps S201 is increased in the present embodiment, only passes through step S201 again
Judge to learn the processing step just understood when transition trigger switch has been opened and extract multi-frame video in starting step S202, to prevent
Misroute field processing.
The process of extraction multi-frame video processing in step S202 can refer to the record of above-described embodiment one, unlike, it carries
The multi-frame video taken is stored in a manner of two-dimensional array, and the serial number of two-dimensional array and the frame number of video frame correspond.
S203, the two adjacent frame videos for needing to carry out transition processing are determined;
In the present embodiment, due to there is the frame number of the serial number of two-dimensional array and video frame one-to-one correspondence, with reference to above-mentioned reality
Apply described in example one after manually or automatically method determines point, transition, can with the frame number of two frame video of direct neighbor or
The serial number of its corresponding 2-D data.
S204, the transition duration handled according to the timestamp of the two adjacent frame videos and transition, to described adjacent
Two frame videos and transition video synthesized and carried out the addition of transition subtitle;
It, specifically can be according to setting when the adjacent two frame videos and transition video are synthesized in the present embodiment
Whether Video Composition totalframes threshold decision, which synthesizes, is terminated, for example if the video totalframes after synthesis is equal to the total frame of Video Composition
When number threshold value, in the synthesis processing for terminating video.
It, can be first to the transition subtitle before the addition that transition subtitle is carried out in step S204 in the present embodiment
It is parsed to establish caption information list, is carried out further according to the address offset amount of caption information item in caption information list
The addition of transition subtitle.
Fig. 3 is the flow diagram of method for processing video frequency in the embodiment of the present application three;As shown in Figure 3 comprising following step
Rapid S301, step S302, step S303, step S304:
Multi-frame video in S301, extraction video sequence;
S302, the two adjacent frame videos for needing to carry out transition processing are determined;
In the present embodiment, related record of above-mentioned steps S301, S302 similar to above-described embodiment one or two.
The resolution ratio of S303, the resolution ratio of the correction two adjacent frame videos or transition video so that described adjacent
Two frame videos resolution ratio it is consistent with the resolution ratio of transition video;
In the present embodiment, it is preset with the resolution ratio of the video after synthesis, therefore in order to ensure when synthesis, just
With reference to the video resolution ratio having the same after synthesis, the resolution to two adjacent frame videos therefore, in the present embodiment is increased
The processing of rate and the correction of the resolution ratio of the transition video.Before actual correction process, adjacent two can be detected first
Then the resolution ratio of the resolution ratio of frame video and the transition video carries out size comparison with the resolution ratio of the video after synthesis,
If three is inconsistent, be then corrected, as three unanimously if need not be corrected.
S304, the transition duration handled according to the timestamp of the two adjacent frame videos and transition, to resolution ratio one
The adjacent two frame videos and transition video caused are synthesized and are carried out the addition of transition subtitle.
It, can be with when being synthesized in step s 304 to the adjacent two frame videos and transition video in the present embodiment
Parameter is configured according to transition to synthesize the adjacent two frame videos and transition video.The transition configuration parameter includes regarding
Any or a variety of combination of frequency stream scaled in multiple, rotation angle, fuzzy pattern, fog-level.
It optionally, specifically can be with when being synthesized in step s 304 to the adjacent two frame videos and transition video
According to transition special effective mode, the adjacent two frame videos and transition video are synthesized.
Specifically, the transition special effective include fade over, dissolve, page turning, draw as, iris out ensphere, fix in any
One or more combinations.
It may include the correction course of above-mentioned steps S303 in an other embodiment, in above-mentioned steps S304, that is, correct
As the part flow in step S304.
Fig. 4 is the block diagram of video process apparatus in the embodiment of the present application four;As shown in Figure 4 comprising:
First program unit 401 needs to carry out transition processing for extracting the multi-frame video in video sequence, and determining
Two adjacent frame videos;
Second program unit 402, the transition for being handled according to the timestamp of the two adjacent frame videos and transition
Duration is synthesized and is carried out the addition of transition subtitle to the adjacent two frame videos and transition video.
Optionally, in the present embodiment or other any embodiments, first program unit 401 is further used for turning
Multi-frame video when field trigger switch is opened in extraction video sequence.
Optionally, in the present embodiment or other any embodiments, first program unit 401 is further used for basis
The frame number of video frame or the timestamp of video frame determine the two adjacent frame videos for needing to carry out transition processing.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for turn
Field video is shared in the two adjacent frame videos, and the transition video shares duration in the two adjacent frame videos
Summation is equal to the transition duration.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for carrying out
No plot subtitle, the addition for having at least one of plot subtitle and double exposure subtitle transition subtitle.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for correcting
The resolution ratio of the two adjacent frame videos or the resolution ratio of transition video so that the resolution ratio of the two adjacent frame videos
It is consistent with the resolution ratio of transition video.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for basis
Transition configuration parameter synthesizes the adjacent two frame videos and transition video.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for basis
Transition special effective mode synthesizes the adjacent two frame videos and transition video.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for basis
The address offset amount of caption information item carries out the addition of transition subtitle in caption information list, is solved to the transition subtitle
Analysis is to establish caption information list.
Optionally, in the present embodiment or other any embodiments, second program unit 402 is further used for institute
State subtitle file and be converted to subtitle bitmap, accordingly, carry out transition subtitle addition when, according to the resolution ratio of subtitle bitmap with
And synthesis after video on pixel brightness and Color Channel feature, determine transition subtitle synthesis after video on addition
Position.
It should be noted that above-mentioned first, second statement is not the restriction to quantity, substantial above-mentioned first program
It can be mutually multiplexed between unit 401 and the second program unit 402.
Remember in above-described embodiment in addition, above-mentioned first program unit 401, the second program unit 402 are not limited to only realize
The technical functionality of load can also realize other functions.
In a concrete application scene, above-mentioned first program unit 401 is specifically as follows extraction unit, above-mentioned second program
Unit 402 is specifically with for synthesis unit.
In order to realize that the synthesis of video and the addition of transition subtitle, synthesis unit can specifically include synthon list respectively
Member and addition subelement, the addition of synthesis and transition subtitle for carrying out video respectively.Addition subelement is further used
In the addition for carrying out transition subtitle according to the address offset amount of caption information item in caption information list, to the transition subtitle
It is parsed to establish caption information list.
In addition, synthesis unit can also include correction subelement, the correction subelement is used to correct described adjacent two
The resolution ratio of frame video or the resolution ratio of transition video.
Furthermore synthesis unit can also include point of addition determination subelement, for according to the resolution ratio of subtitle bitmap with
And synthesis after video on pixel brightness and Color Channel feature, determine transition subtitle synthesis after video on addition
Position.
The realization of above-mentioned each program unit can rely on function interface and the data-interface of configuration to realize.
The embodiment of the present application also provides a kind of storage medium, and machine instruction, the machine are stored on the storage medium
Following steps are realized in instruction when being executed by processor:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frames
Video and transition video are synthesized and are carried out the addition of transition subtitle.
The embodiment of the present application also provides a kind of electronic product comprising storage medium and processor, the storage medium
On be stored with machine instruction, the machine instruction realizes following steps when being executed by processor:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frames
Video and transition video are synthesized and are carried out the addition of transition subtitle.
Electronic product can be any terminal with data-handling capacity, such as portability intelligent terminal, similar PC
Electric terminal etc..
The apparatus embodiments described above are merely exemplary, wherein the module illustrated as separating component can
It is physically separated with being or may not be, the component shown as module may or may not be physics mould
Block, you can be located at a place, or may be distributed on multiple network modules.It can be selected according to the actual needs
In some or all of module achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should
Computer software product can store in a computer-readable storage medium, the computer readable recording medium storing program for performing include for
Any mechanism of the readable form storage of computer (such as computer) or transmission information.For example, machine readable media includes only
Read memory (ROM), random access memory (RAM), magnetic disk storage medium, optical storage media, flash medium, electricity, light,
The transmitting signal (for example, carrier wave, infrared signal, digital signal etc.) etc. of sound or other forms, which includes
Some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes respectively
Method described in certain parts of a embodiment or embodiment.
Finally it should be noted that:Above example is only to illustrate the technical solution of the embodiment of the present application, rather than limits it
System;Although the application is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its
Still can be with technical scheme described in the above embodiments is modified, or which part technical characteristic is equal
It replaces;And these modifications or replacements, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution
Spirit and scope.
It will be understood by those skilled in the art that the embodiments of the present application may be provided as method, apparatus (equipment) or
Computer program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine soft
The form of the embodiment of part and hardware aspect.Moreover, it wherein includes to calculate that the embodiment of the present application, which can be used in one or more,
The computer-usable storage medium of machine usable program code (includes but not limited to magnetic disk storage, CD-ROM, optical memory
Deng) on the form of computer program product implemented.
The embodiment of the present application is with reference to the method, apparatus (equipment) and computer program product according to the embodiment of the present application
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of flow and/or box in one flow and/or box and flowchart and/or the block diagram.These computers can be provided
Processor of the program instruction to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine so that the instruction executed by computer or the processor of other programmable data processing devices generates use
In the dress for realizing the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
It sets.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Claims (24)
1. a kind of method for processing video frequency, which is characterized in that including:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frame videos
The addition of transition subtitle is synthesized and carried out with transition video.
2. method for processing video frequency according to claim 1, which is characterized in that further include:Whether determine transition trigger switch
It opens, if transition trigger switch is opened, extracts the multi-frame video in video sequence.
3. method for processing video frequency according to claim 1, which is characterized in that determine and need to carry out the adjacent of transition processing
Two frame videos, including:It is determined according to the frame number of video frame or the timestamp of video frame and needs to carry out the adjacent of transition processing
Two frame videos.
4. method for processing video frequency according to claim 1, which is characterized in that regarded to the adjacent two frame videos and transition
Frequency carries out synthesis:Transition video is shared in the two adjacent frame videos, the transition video is described adjacent
Duration summation of sharing in two frame videos is equal to the transition duration.
5. method for processing video frequency according to claim 1, which is characterized in that carry out transition subtitle addition include:It carries out
No plot subtitle, the addition for having at least one of plot subtitle and double exposure subtitle transition subtitle.
6. method for processing video frequency according to claim 1, which is characterized in that further include:The two adjacent frames are corrected to regard
The resolution ratio of frequency or the resolution ratio of transition video so that the resolution ratio of the two adjacent frame videos and the transition video
Resolution ratio is consistent.
7. method for processing video frequency according to claim 1, which is characterized in that regarded to the adjacent two frame videos and transition
Frequency carries out synthesis:Parameter is configured according to transition to synthesize the adjacent two frame videos and transition video.
8. method for processing video frequency according to claim 8, which is characterized in that the transition configuration parameter includes video flowing
Scale any or a variety of combination in multiple, rotation angle, fuzzy pattern, fog-level.
9. method for processing video frequency according to claim 1, which is characterized in that regarded to the adjacent two frame videos and transition
Frequency carries out synthesis:According to transition special effective mode, the adjacent two frame videos and transition video are synthesized.
10. method for processing video frequency according to claim 9, which is characterized in that the transition special effective includes fading over, folding
Change, page turning, draw as, iris out ensphere, fix in any or a variety of combination.
11. method for processing video frequency according to claim 1, which is characterized in that further include:The transition subtitle is solved
Analysis is to establish caption information list;Accordingly, when carrying out the addition of transition subtitle, believed according to subtitle in caption information list
The address offset amount for ceasing item carries out the addition of transition subtitle.
12. method for processing video frequency according to claim 1, which is characterized in that further include:The subtitle file is converted to
Subtitle bitmap, accordingly, when carrying out the addition of transition subtitle, according on the video after the resolution ratio of subtitle bitmap and synthesis
The brightness and Color Channel feature of pixel determine the point of addition on the video after the synthesis of transition subtitle.
13. a kind of video process apparatus, which is characterized in that including:
First program unit needs to carry out the adjacent of transition processing for extracting the multi-frame video in video sequence, and determining
Two frame videos;
Second program unit, the transition duration for being handled according to the timestamp of the two adjacent frame videos and transition are right
The adjacent two frame videos and transition video are synthesized and are carried out the addition of transition subtitle.
14. video process apparatus according to claim 13, which is characterized in that first program unit is further used for
The multi-frame video in video sequence is extracted when transition trigger switch is opened.
15. video process apparatus according to claim 13, which is characterized in that first program unit is further used for
The two adjacent frame videos for needing to carry out transition processing are determined according to the frame number of video frame or the timestamp of video frame.
16. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
Transition video is shared in the two adjacent frame videos, the transition video sharing in the two adjacent frame videos
Duration summation is equal to the transition duration.
17. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
It carries out without plot subtitle, have the addition of at least one of plot subtitle and double exposure subtitle transition subtitle.
18. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
Correct the resolution ratio of the two adjacent frame videos or the resolution ratio of transition video so that point of the two adjacent frame videos
Resolution is consistent with the resolution ratio of transition video.
19. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
Parameter is configured according to transition to synthesize the adjacent two frame videos and transition video.
20. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
According to transition special effective mode, the adjacent two frame videos and transition video are synthesized.
21. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
According in caption information list caption information item address offset amount carry out transition subtitle addition, to the transition subtitle into
Row parsing is to establish caption information list.
22. video process apparatus according to claim 13, which is characterized in that second program unit is further used for
The subtitle file is converted into subtitle bitmap, accordingly, when carrying out the addition of transition subtitle, according to the resolution of subtitle bitmap
The brightness and Color Channel feature of pixel on video after rate and synthesis, determine on the video after the synthesis of transition subtitle
Point of addition.
23. a kind of storage medium, it is stored with machine instruction on the storage medium, the machine instruction is when being executed by processor
Realize following steps:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frame videos
The addition of transition subtitle is synthesized and carried out with transition video.
24. a kind of electronic product, which is characterized in that including storage medium and processor, stored on the storage medium organic
Device instructs, and the machine instruction realizes following steps when being executed by processor:
The multi-frame video in video sequence is extracted, and determines the two adjacent frame videos for needing to carry out transition processing;
According to the transition duration that the timestamp of the two adjacent frame videos and transition are handled, to the two adjacent frame videos
The addition of transition subtitle is synthesized and carried out with transition video.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810288314.4A CN108495171A (en) | 2018-04-03 | 2018-04-03 | Method for processing video frequency and its device, storage medium, electronic product |
PCT/CN2019/080739 WO2019192416A1 (en) | 2018-04-03 | 2019-04-01 | Video processing method and device therefor, and storage medium and electronic product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810288314.4A CN108495171A (en) | 2018-04-03 | 2018-04-03 | Method for processing video frequency and its device, storage medium, electronic product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108495171A true CN108495171A (en) | 2018-09-04 |
Family
ID=63318184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810288314.4A Pending CN108495171A (en) | 2018-04-03 | 2018-04-03 | Method for processing video frequency and its device, storage medium, electronic product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108495171A (en) |
WO (1) | WO2019192416A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019192416A1 (en) * | 2018-04-03 | 2019-10-10 | 阿里巴巴集团控股有限公司 | Video processing method and device therefor, and storage medium and electronic product |
CN111083526A (en) * | 2019-12-31 | 2020-04-28 | 广州酷狗计算机科技有限公司 | Video transition method and device, computer equipment and storage medium |
CN112312161A (en) * | 2020-06-29 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Method and device for generating video, electronic equipment and readable storage medium |
CN112995530A (en) * | 2019-12-02 | 2021-06-18 | 阿里巴巴集团控股有限公司 | Video generation method, device and equipment |
CN113542802A (en) * | 2021-07-09 | 2021-10-22 | 北京百度网讯科技有限公司 | Video transition method and device |
CN115484423A (en) * | 2021-06-16 | 2022-12-16 | 荣耀终端有限公司 | Transition special effect adding method and electronic equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040146275A1 (en) * | 2003-01-21 | 2004-07-29 | Canon Kabushiki Kaisha | Information processing method, information processor, and control program |
CN101917557A (en) * | 2010-08-10 | 2010-12-15 | 浙江大学 | Method for dynamically adding subtitles based on video content |
CN102769714A (en) * | 2012-03-26 | 2012-11-07 | 新奥特(北京)视频技术有限公司 | Method for eliminating false transition report caused by flashing |
CN103347155A (en) * | 2013-06-18 | 2013-10-09 | 北京汉博信息技术有限公司 | Transition special effect module and method for achieving switching of different transition effects of two video streams |
CN104144301A (en) * | 2014-07-30 | 2014-11-12 | 厦门美图之家科技有限公司 | Method for transition special effects on basis of mixed modes |
US20140359448A1 (en) * | 2013-05-31 | 2014-12-04 | Microsoft Corporation | Adding captions and emphasis to video |
CN104980625A (en) * | 2015-06-19 | 2015-10-14 | 新奥特(北京)视频技术有限公司 | Method and apparatus of video transition detection |
CN106202130A (en) * | 2015-05-08 | 2016-12-07 | 无锡天脉聚源传媒科技有限公司 | A kind of method and device of shot segmentation |
CN106792114A (en) * | 2016-12-06 | 2017-05-31 | 深圳Tcl数字技术有限公司 | The changing method and device of captions |
CN107566756A (en) * | 2017-08-03 | 2018-01-09 | 广东小天才科技有限公司 | A kind of processing method and terminal device of video transition |
CN107770626A (en) * | 2017-11-06 | 2018-03-06 | 腾讯科技(深圳)有限公司 | Processing method, image synthesizing method, device and the storage medium of video material |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9196305B2 (en) * | 2011-01-28 | 2015-11-24 | Apple Inc. | Smart transitions |
CN105245810B (en) * | 2015-10-08 | 2018-03-16 | 广东欧珀移动通信有限公司 | A kind of processing method and processing device of video transition |
CN108495171A (en) * | 2018-04-03 | 2018-09-04 | 优视科技有限公司 | Method for processing video frequency and its device, storage medium, electronic product |
-
2018
- 2018-04-03 CN CN201810288314.4A patent/CN108495171A/en active Pending
-
2019
- 2019-04-01 WO PCT/CN2019/080739 patent/WO2019192416A1/en active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040146275A1 (en) * | 2003-01-21 | 2004-07-29 | Canon Kabushiki Kaisha | Information processing method, information processor, and control program |
CN101917557A (en) * | 2010-08-10 | 2010-12-15 | 浙江大学 | Method for dynamically adding subtitles based on video content |
CN102769714A (en) * | 2012-03-26 | 2012-11-07 | 新奥特(北京)视频技术有限公司 | Method for eliminating false transition report caused by flashing |
US20140359448A1 (en) * | 2013-05-31 | 2014-12-04 | Microsoft Corporation | Adding captions and emphasis to video |
CN103347155A (en) * | 2013-06-18 | 2013-10-09 | 北京汉博信息技术有限公司 | Transition special effect module and method for achieving switching of different transition effects of two video streams |
CN104144301A (en) * | 2014-07-30 | 2014-11-12 | 厦门美图之家科技有限公司 | Method for transition special effects on basis of mixed modes |
CN106202130A (en) * | 2015-05-08 | 2016-12-07 | 无锡天脉聚源传媒科技有限公司 | A kind of method and device of shot segmentation |
CN104980625A (en) * | 2015-06-19 | 2015-10-14 | 新奥特(北京)视频技术有限公司 | Method and apparatus of video transition detection |
CN106792114A (en) * | 2016-12-06 | 2017-05-31 | 深圳Tcl数字技术有限公司 | The changing method and device of captions |
CN107566756A (en) * | 2017-08-03 | 2018-01-09 | 广东小天才科技有限公司 | A kind of processing method and terminal device of video transition |
CN107770626A (en) * | 2017-11-06 | 2018-03-06 | 腾讯科技(深圳)有限公司 | Processing method, image synthesizing method, device and the storage medium of video material |
Non-Patent Citations (1)
Title |
---|
魏志强 等: "基于VC 与MATLAB 混合编程的视频镜头转场检测系统", 《软件导刊》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019192416A1 (en) * | 2018-04-03 | 2019-10-10 | 阿里巴巴集团控股有限公司 | Video processing method and device therefor, and storage medium and electronic product |
CN112995530A (en) * | 2019-12-02 | 2021-06-18 | 阿里巴巴集团控股有限公司 | Video generation method, device and equipment |
CN111083526A (en) * | 2019-12-31 | 2020-04-28 | 广州酷狗计算机科技有限公司 | Video transition method and device, computer equipment and storage medium |
CN111083526B (en) * | 2019-12-31 | 2021-12-10 | 广州酷狗计算机科技有限公司 | Video transition method and device, computer equipment and storage medium |
CN112312161A (en) * | 2020-06-29 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Method and device for generating video, electronic equipment and readable storage medium |
CN115484423A (en) * | 2021-06-16 | 2022-12-16 | 荣耀终端有限公司 | Transition special effect adding method and electronic equipment |
CN113542802A (en) * | 2021-07-09 | 2021-10-22 | 北京百度网讯科技有限公司 | Video transition method and device |
CN113542802B (en) * | 2021-07-09 | 2023-07-14 | 北京百度网讯科技有限公司 | Video transition method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2019192416A1 (en) | 2019-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495171A (en) | Method for processing video frequency and its device, storage medium, electronic product | |
US11809998B2 (en) | Maintaining fixed sizes for target objects in frames | |
CN111698390A (en) | Virtual camera control method and device, and virtual studio implementation method and system | |
KR20170035608A (en) | Videotelephony System, Image Display Apparatus, Driving Method of Image Display Apparatus, Method for Generation Realistic Image and Computer Readable Recording Medium | |
US20210105442A1 (en) | Image capture based on action recognition | |
CN105376496A (en) | Photographing method and device | |
CN105657272A (en) | Terminal equipment and photographing method thereof | |
CN101310519A (en) | Imaging device, display control method, and program | |
CN105323527A (en) | Systems and methods for exposure metering for timelapse video | |
CN111405339A (en) | Split screen display method, electronic equipment and storage medium | |
EP3543900A1 (en) | Image processing method and electronic device | |
US9813639B2 (en) | Image processing device and control method for the same for applying a predetermined effect to a moving image | |
CN108259767B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN114422692A (en) | Video recording method and device and electronic equipment | |
CN114390197A (en) | Shooting method and device, electronic equipment and readable storage medium | |
CN112367465B (en) | Image output method and device and electronic equipment | |
CN112235510A (en) | Shooting method, shooting device, electronic equipment and medium | |
WO2023125669A1 (en) | Image processing circuit, image processing method, electronic device, and readable storage medium | |
CN116567169A (en) | Method, device, storage medium and equipment for synchronously recording multi-machine-bit video | |
CN105467741A (en) | Panoramic shooting method and terminal | |
CN109698941A (en) | Multiple-camera trajectory control system and method | |
CN108495044A (en) | A kind of image pickup method of multi-cam, camera terminal and readable storage medium storing program for executing | |
CN105306961B (en) | A kind of method and device for taking out frame | |
CN106961551A (en) | A kind of VR panoramic videos later stage stabilization technology | |
CN113489920A (en) | Video synthesis method and device and electronic equipment |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200527 Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 100083 floor twelve, A block, you Sheng mansion, 28 Cheng Fu Road, Haidian District, Beijing. Applicant before: UC MOBILE Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180904 |