WO2019192416A1 - 视频处理方法及其装置、存储介质、电子产品 - Google Patents
视频处理方法及其装置、存储介质、电子产品 Download PDFInfo
- Publication number
- WO2019192416A1 WO2019192416A1 PCT/CN2019/080739 CN2019080739W WO2019192416A1 WO 2019192416 A1 WO2019192416 A1 WO 2019192416A1 CN 2019080739 W CN2019080739 W CN 2019080739W WO 2019192416 A1 WO2019192416 A1 WO 2019192416A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- transition
- frames
- adjacent
- subtitle
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 33
- 230000007704 transition Effects 0.000 claims abstract description 219
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 14
- 230000015572 biosynthetic process Effects 0.000 claims description 12
- 238000003786 synthesis reaction Methods 0.000 claims description 12
- 230000000694 effects Effects 0.000 claims description 9
- IQVNEKKDSLOHHK-FNCQTZNRSA-N (E,E)-hydramethylnon Chemical compound N1CC(C)(C)CNC1=NN=C(/C=C/C=1C=CC(=CC=1)C(F)(F)F)\C=C\C1=CC=C(C(F)(F)F)C=C1 IQVNEKKDSLOHHK-FNCQTZNRSA-N 0.000 claims description 2
- 230000009466 transformation Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 1
- 210000003323 beak Anatomy 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000014509 gene expression 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
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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
Definitions
- the embodiments of the present invention relate to the field of multimedia processing technologies, and in particular, to a video processing method, an apparatus, a storage medium, and an electronic product.
- the smallest unit that constitutes a video is a lens.
- Multiple lenses are organically stitched together to form multiple lens sequences.
- the multiple lens sequences can also be called paragraphs, thereby expressing a single, relatively complete meaning, such as representing an action.
- a plurality of the above paragraphs are stitched together to form a complete video content.
- there are often shooting content in different scenes for example, the camera first needs to shoot the auditorium, and then switch to the shooting rostrum. It can be seen that in video content, paragraphs and paragraphs, scenes and scenes often need to be transitioned or converted to maintain the smoothness and natural transition of the video.
- one of the technical problems solved by the embodiments of the present application is to provide a video processing method and device thereof, a storage medium, and an electronic product, to overcome the above-mentioned drawbacks in the prior art.
- An embodiment of the present application provides a video processing method, including:
- the adjacent two frames of video and the transition video are combined and the transition subtitles are added according to the time stamp of the adjacent two frames of video and the transition duration of the transition processing.
- the video processing method further includes: determining whether the transition trigger switch is turned on, and if the transition trigger switch is turned on, extracting the multi-frame video in the video sequence.
- determining two adjacent frames of video that need to be processed by the transition process includes: determining, according to a frame number of the video frame or a timestamp of the video frame. Adjacent two frames of video that need to be processed for transition.
- the synthesizing the adjacent two frames of video and the transition video includes: distributing the transition video to the adjacent two In the frame video, the sum of the allocation durations of the transition video in the adjacent two frames of video is equal to the transition duration.
- adding the transition subtitle includes: adding the at least one of the no-title subtitle, the episode subtitle, and the overlaid subtitle.
- the video processing method further includes: correcting a resolution of the adjacent two frames of video or a resolution of a transition video, so that the adjacent two frames The resolution of the video is consistent with the resolution of the transition video.
- the synthesizing the adjacent two frames of video and the transition video includes: performing the adjacent two according to a transition configuration parameter. Frame video and transition video are combined.
- the transition configuration parameter includes any one or more of a zoom factor, a rotation angle, a blur pattern, and a blur degree of the video stream. Combination of species.
- the synthesizing the adjacent two frames of video and the transition video includes: according to a transition effect mode, the adjacent Two frames of video and transition video are combined.
- the transition special effects include any one of fade in, fade in, page flip, wipe, circle, and freeze. Combination of species or multiples.
- the video processing method further includes: parsing the transition subtitle to establish a subtitle information bar list; correspondingly, when adding a transition subtitle, according to the subtitle The address offset of the subtitle information strip in the information bar list is added to the transition subtitle.
- the video processing method further includes: converting the subtitle file into a subtitle bitmap, and correspondingly, when performing the addition of the transition subtitle, according to the subtitle bitmap
- the resolution and the brightness characteristics and color channel characteristics of the pixels on the synthesized video determine the added position on the video after the transition subtitle is synthesized.
- the embodiment of the present application further provides a video processing apparatus, including:
- a first program unit configured to extract a multi-frame video in a video sequence, and determine two adjacent frames of video that need to be processed for transition;
- a second program unit configured to synthesize the adjacent two frames of video and the transition video and add the transition subtitle according to the timestamp of the adjacent two frames of video and the transition duration of the transition processing .
- the first program unit is further configured to extract a multi-frame video in a video sequence when the transition trigger switch is turned on.
- the first program unit is further configured to determine, according to a frame number of a video frame or a timestamp of a video frame, a phase that needs to be converted. Two frames of video adjacent.
- the second program unit is further configured to allocate a transition video to the adjacent two frames of video, where the transition The sum of the allocation durations of the video in the adjacent two frames of video is equal to the transition duration.
- the second program unit is further configured to perform adding of at least one of a no-title subtitle, a memorandum subtitle, and an overlaid subtitle. .
- the second program unit is further configured to correct a resolution of the adjacent two frames of video or a resolution of a transition video, The resolution of the adjacent two frames of video is made consistent with the resolution of the transition video.
- the second program unit is further configured to synthesize the adjacent two frames of video and the transition video according to the transition configuration parameter.
- the second program unit is further configured to perform, by using a transition effect mode, the adjacent two frames of video and the transition video. synthesis.
- the second program unit is further configured to add a transition subtitle according to an address offset of the subtitle information strip in the subtitle information bar list. And parsing the transition subtitle to establish a subtitle information bar list.
- the second program unit is further configured to convert the subtitle file into a subtitle bitmap, and correspondingly, perform a subtitle When adding, according to the resolution of the subtitle bitmap and the brightness characteristics and color channel characteristics of the pixels on the synthesized video, the added position on the video after the transition subtitle synthesis is determined.
- the embodiment of the present application further provides a storage medium, where the machine instruction is stored on the storage medium, and the machine instruction, when executed by the processor, implements the following steps:
- the adjacent two frames of video and transition video are combined and the transition subtitles are added according to the timestamps of the adjacent two frames of video and the transition duration of the transition processing.
- the embodiment of the present application further provides an electronic product, including a storage medium and a processor, where the machine instruction is stored on the storage medium, and the machine instruction, when executed by the processor, implements the following steps:
- the adjacent two frames of video and the transition video are combined and the transition subtitles are added according to the time stamp of the adjacent two frames of video and the transition duration of the transition processing.
- the multi-frame video in the video sequence is extracted, and the adjacent two frames of video that need to be processed by the transition are determined, and then according to the time stamp of the adjacent two frames of video and the transition of the transition processing.
- FIG. 1 is a schematic flowchart of a video processing method according to Embodiment 1 of the present application.
- FIG. 2 is a schematic flowchart of a video processing method according to Embodiment 2 of the present application.
- FIG. 3 is a schematic flowchart of a video processing method according to Embodiment 3 of the present application.
- FIG. 4 is a block diagram of a video processing apparatus in Embodiment 4 of the present application.
- FIG. 1 is a schematic flowchart of a video processing method according to Embodiment 1 of the present application; as shown in FIG. 1, the method includes the following steps S101 and S102:
- the adjacent two frames that need to be converted may be determined according to the frame number of the video frame or the timestamp of the video frame. video.
- the video sequence may also be referred to as a video stream
- the frame number of the video frame may also be referred to as a stream number.
- the extracted different frame videos can be cached according to the size of the stream number.
- the adjacent two frames of video that need to be processed by the transition can be specified by the user through the man-machine interface provided by the third-party application, or can be determined by automatic recognition. Specifically, the method for automatically identifying is determined by calculating a histogram difference between two adjacent frames of video, and selecting two adjacent frames of the video whose difference value is greater than a set threshold is an object that needs to be processed. Or, also known as the transition point.
- S102 Synthesize the adjacent two frames of video and the transition video and add the transition subtitle according to the timestamp of the adjacent two frames of video and the transition duration of the transition process.
- synthesizing the adjacent two frames of video and the transition video in step S1020 includes: distributing the transition video to the adjacent two frames of video, where the transition video is The sum of the allocation durations in the adjacent two frames of video is equal to the transition duration.
- the adding of the transition subtitle in step S102 includes: adding the at least one of the no-title subtitle, the episode subtitle, and the superimposed subtitle.
- the adjacent two video frames are respectively a video frame A and a video frame B, and the video frame A may be referred to as an outgoing picture, and the video frame B may be referred to as an incoming picture.
- the set transition time is 6 s, Then determine the last 3s of video frame A and the first 3s of video frame B, and get together for 6s.
- the length of the transition time in the two frames of video before and after the transition time can be flexibly configured according to the specific situation.
- each subtitle information bar in the subtitle information bar list in the subtitle content can be converted into a subtitle bitmap, correspondingly, when the transition subtitle is added, according to the resolution of the subtitle bitmap and after synthesis
- the brightness characteristics and color channel characteristics of the pixels on the video determine the added position on the video after the transition subtitle is synthesized.
- FIG. 2 is a schematic flowchart of a video processing method according to Embodiment 2 of the present application; as shown in FIG. 2, the method includes the following steps S201, S202, S203, and S204:
- step S201 determining whether the transition trigger switch is turned on, if the transition trigger switch is turned on, step S202 is performed;
- the transition of the transition process is controlled by the configured transition trigger switch.
- the transition trigger switch may be configured in an operation page for guiding the user to perform the transition processing, such as setting a control button, and determining whether the transition trigger switch is turned on by detecting whether the control button has an operated event.
- step S201 is added in the embodiment, and the processing step of extracting the multi-frame video in step S202 is started only when it is determined through step S201 that the transition trigger switch is turned on, thereby preventing the processing step of the multi-frame video in step S202. Misplaced field processing.
- the process of extracting the multi-frame video processing in step S202 can be referred to the foregoing first embodiment.
- the difference is that the extracted multi-frame video is stored in a two-dimensional array, and the serial number of the two-dimensional array corresponds to the frame number of the video frame. .
- the video can be directly adjacent to two frames.
- the frame number or the serial number of the corresponding two-dimensional data may be used.
- the specific video frame total threshold may be determined according to the set video total frame number threshold, for example, if the total number of frames of the synthesized video is equal to the video synthesis. At the total frame number threshold, the video is synthesized at the end.
- the transition subtitle may be first parsed to establish a subtitle information bar list, and then according to the address offset of the subtitle information strip in the subtitle information bar list. The addition of transition subtitles.
- FIG. 3 is a schematic flowchart of a video processing method according to Embodiment 3 of the present application; as shown in FIG. 3, the method includes the following steps S301, S302, S303, and S304:
- the resolution of the synthesized video is preset, so that in order to ensure that the synthesized video has the same resolution at the time of synthesis, the adjacent two are added in this embodiment.
- the resolution of the frame video and the resolution of the resolution correction of the transition video Before the actual correction process, the resolution of the adjacent two frames of video and the resolution of the transition video may be first detected, and then compared with the resolution of the synthesized video, if the three are inconsistent, then Correction, if the three are consistent, no correction is needed.
- the adjacent two frames of video and the transition video when the adjacent two frames of video and the transition video are combined in step S304, the adjacent two frames of video and the transition video may be combined according to the transition configuration parameter.
- the transition configuration parameter includes a combination of any one or more of a zoom factor, a rotation angle, a blur pattern, and a blur degree of the video stream.
- the adjacent two frames of video and the transition video may be synthesized according to a transition effect mode.
- the transition effect includes a combination of any one or more of fade-in, fade-in, page-turn, wipe-out, circle-out, and freeze.
- step S304 may include the above-mentioned calibration process of step S303, that is, the correction as a part of the flow in step S304.
- FIG. 4 is a block diagram of a video processing apparatus according to Embodiment 4 of the present application; as shown in FIG. 4, it includes:
- a first program unit 401 configured to extract multiple frames of video in a video sequence, and determine adjacent two frames of video that need to be processed for transition;
- the second program unit 402 is configured to synthesize the adjacent two frames of video and the transition video and perform the subtitle according to the time stamp of the adjacent two frames of video and the transition duration of the transition processing. Add to.
- the first program unit 401 is further configured to extract a multi-frame video in the video sequence when the transition trigger switch is turned on.
- the first program unit 401 is further configured to determine, according to a frame number of the video frame or a timestamp of the video frame, two adjacent frames that need to be processed by the transition. video.
- the second program unit 402 is further configured to allocate the transition video to the adjacent two frames of video, where the transition video is The sum of the allocation durations in the adjacent two frames of video is equal to the transition duration.
- the second program unit 402 is further configured to perform addition of at least one of the no-title subtitles, the memo subtitles, and the superimposed subtitles.
- the second program unit 402 is further configured to correct a resolution of the adjacent two frames of video or a resolution of a transition video, so that the phase The resolution of the adjacent two frames of video is consistent with the resolution of the transition video.
- the second program unit 402 is further configured to synthesize the adjacent two frames of video and the transition video according to the transition configuration parameter.
- the second program unit 402 is further configured to synthesize the adjacent two frames of video and the transition video according to a transition effect mode.
- the second program unit 402 is further configured to add, according to an address offset of the subtitle information strip in the subtitle information bar list, the The transition subtitles are parsed to create a list of subtitle information bars.
- the second program unit 402 is further configured to convert the subtitle file into a subtitle bitmap, and correspondingly, when adding the transition subtitle, according to The resolution of the subtitle bitmap and the brightness characteristics and color channel characteristics of the pixels on the synthesized video determine the added position on the video after the transition subtitle is synthesized.
- first and second expressions are not limited to the number, and substantially the first program unit 401 and the second program unit 402 may be multiplexed with each other.
- first program unit 401 and the second program unit 402 are not limited to the technical functions described in the above embodiments, and other functions may be implemented.
- the first program unit 401 may be an extraction unit
- the second program unit 402 is specifically a synthesis unit.
- the synthesizing unit may specifically include a synthesizing subunit and an adding subunit for separately synthesizing the video and adding the subtitles.
- the adding subunit is further configured to perform the adding of the transition subtitle according to the address offset of the subtitle information strip in the subtitle information bar list, and parse the transition subtitle to establish a subtitle information bar list.
- the synthesizing unit may further include a correction subunit for correcting the resolution of the adjacent two frames of video or the resolution of the transition video.
- the synthesizing unit may further include an adding position determining subunit, configured to determine an added position on the video after the transition subtitle is synthesized according to the resolution of the subtitle bitmap and the brightness characteristic and the color channel characteristic of the pixel on the synthesized video. .
- each of the above program units can be implemented by means of a configured function interface and a data interface.
- the embodiment of the present application further provides a storage medium, where the machine instruction is stored on the storage medium, and the machine instruction, when executed by the processor, implements the following steps:
- the adjacent two frames of video and the transition video are combined and the transition subtitles are added according to the time stamp of the adjacent two frames of video and the transition duration of the transition processing.
- the embodiment of the present application further provides an electronic product, including a storage medium and a processor, where the machine instruction is stored on the storage medium, and the machine instruction, when executed by the processor, implements the following steps:
- the adjacent two frames of video and the transition video are combined and the transition subtitles are added according to the time stamp of the adjacent two frames of video and the transition duration of the transition processing.
- the electronic product can be any terminal having data processing capabilities, such as a portable intelligent terminal, a PC-like electronic terminal, or the like.
- the device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, ie may be located A place, or it can be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
- a machine-readable medium includes read only memory (ROM), random access memory (RAM), magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (eg, carrier waves) , an infrared signal, a digital signal, etc., etc., the computer software product comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the various embodiments or portions of the embodiments described Methods.
- ROM read only memory
- RAM random access memory
- magnetic disk storage media e.g., magnetic disks, magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (eg, carrier waves) , an infrared signal, a digital signal, etc., etc.
- the computer software product comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the various embodiments or portions of the embodiment
- embodiments of the embodiments of the present application can be provided as a method, apparatus (device), or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
- These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
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
本申请实施例提供了一种视频处理方法及其装置、存储介质、电子产品,其中,视频处理方法包括:提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加,从而提供了一种实现上述过渡或者转换时进行字幕的配置。
Description
本申请要求2018年04月03日递交的申请号为201810288314.4、发明名称为“视频处理方法及其装置、存储介质、电子产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及多媒体处理技术领域,尤其涉及一种视频处理方法及其装置、存储介质、电子产品。
构成视频的最小单位是镜头,多个镜头有机拼接在一起形成多个镜头序列,该多个镜头序列也可称之为段落,从而表达某个单一的、相对完整的意思,比如表现一个动作的过程,或者一种关系,或者一种含义,从而实现一个完整的叙事层次。多个上述段落拼接在一起从而形成一个完整的视频内容。另外,在视频内容中,经常会有不同场景下的拍摄内容,比如摄像头首先需要拍摄观众席,然后再切换到拍摄主席台。由此可见,而在视频内容中,段落和段落之间、场景和场景之前往往需要过渡或者转换,以保持视频的流畅性和自然过渡。
而在视频中往往还需要配置字幕内容,而当需要实现上述情形的过渡或者转换时,往往会导致字幕的配置难度加大。因此,亟待提供一种技术方案,以解决实现上述过渡或者转换时进行字幕的配置。
发明内容
有鉴于此,本申请实施例所解决的技术问题之一在于提供一种视频处理方法及其装置、存储介质、电子产品,用以克服现有技术中的上述缺陷。
本申请实施例提供了一种视频处理方法,其包括:
提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
可选地,在本申请的一实施例中,所述的视频处理方法还包括:确定转场触发开关是否打开,若转场触发开关打开,则提取视频序列中的多帧视频。
可选地,在本申请的一实施例中,所述的视频处理方法中,确定需要进行转场处理的相邻的两帧视频,包括:根据视频帧的帧号或者视频帧的时间戳确定需要进行转场处理的相邻的两帧视频。
可选地,在本申请的一实施例中,所述的视频处理方法中,对所述相邻的两帧视频和转场视频进行合成包括:将转场视频分摊到所述相邻的两帧视频中,所述转场视频在所述相邻的两帧视频中的分摊时长总和等于所述转场时长。
可选地,在本申请的一实施例中,所述的视频处理方法中,进行转场字幕的添加包括:进行无情节字幕、有情节字幕和叠印字幕中至少一种转场字幕的添加。
可选地,在本申请的一实施例中,所述的视频处理方法还包括:校正所述相邻的两帧视频的分辨率或者转场视频的分辨率,使得所述相邻的两帧视频的分辨率和所述转场视频的分辨率一致。
可选地,在本申请的一实施例中,所述的视频处理方法中,对所述相邻的两帧视频和转场视频进行合成包括:根据转场配置参数对所述相邻的两帧视频和转场视频进行合成。
可选地,在本申请的一实施例中,所述的视频处理方法中,所述转场配置参数包括视频流的缩放倍数、旋转角度、模糊样式、模糊程度中的任一一种或多种的组合。
可选地,在本申请的一实施例中,所述的视频处理方法中,对所述相邻的两帧视频和转场视频进行合成包括:根据转场特效方式,对所述相邻的两帧视频和转场视频进行合成。
可选地,在本申请的一实施例中,所述的视频处理方法中,所述转场特效包括淡出淡入、叠化、翻页、划像、圈出圈入、定格中的任一一种或多种的组合。
可选地,在本申请的一实施例中,所述的视频处理方法还包括:对所述转场字幕进行解析以建立字幕信息条列表;对应地,进行转场字幕的添加时,根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加。
可选地,在本申请的一实施例中,所述的视频处理方法还包括:将所述字幕文件转换为字幕位图,对应地,在进行转场字幕的添加时,根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加位置。
本申请实施例还提供一种视频处理装置,其包括:
第一程序单元,用于提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
第二程序单元,用于根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第一程序单元进一步用于在转场触发开关打开时提取视频序列中的多帧视频。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第一程序单元进一步用于根据视频帧的帧号或者视频帧的时间戳确定需要进行转场处理的相邻的两帧视频。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于将转场视频分摊到所述相邻的两帧视频中,所述转场视频在所述相邻的两帧视频中的分摊时长总和等于所述转场时长。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于进行无情节字幕、有情节字幕和叠印字幕中至少一种转场字幕的添加。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于校正所述相邻的两帧视频的分辨率或者转场视频的分辨率,使得所述相邻的两帧视频的分辨率和所述转场视频的分辨率一致。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于根据转场配置参数对所述相邻的两帧视频和转场视频进行合成。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于根据转场特效方式,对所述相邻的两帧视频和转场视频进行合成。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加,对所述转场字幕进行解析以建立字幕信息条列表。
可选地,在本申请的一实施例中,所述的视频处理装置中,所述第二程序单元进一步用于将所述字幕文件转换为字幕位图,对应地,在进行转场字幕的添加时,根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加位置。
本申请实施例还提供一种存储介质,所述存储介质上存储有机器指令,所述机器指令在被处理器执行时实现如下步骤:
提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视 频和转场视频进行合成以及进行转场字幕的添加。
本申请实施例还提供一种电子产品,其包括存储介质以及处理器,所述存储介质上存储有机器指令,所述机器指令在被处理器执行时实现如下步骤:
提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
本申请实施例中,通过提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频,再根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加,从而提供了一种实现上述过渡或者转换时进行字幕的配置。
后文将参照附图以示例性而非限制性的方式详细描述本申请实施例的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应该理解,这些附图未必是按比例绘制的。附图中:
图1为本申请实施例一中视频处理方法的流程示意图;
图2为本申请实施例二中视频处理方法的流程示意图;
图3为本申请实施例三中视频处理方法的流程示意图;
图4为本申请实施例四中视频处理装置的框图。
实施本申请实施例的任一技术方案必不一定需要同时达到以上的所有优点。
为了使本领域的人员更好地理解本申请实施例中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请实施例一部分实施例,而不是全部的实施例。基于本申请实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请实施例保护的范围。
下面结合本申请实施例附图进一步说明本申请实施例具体实现。
图1为本申请实施例一中视频处理方法的流程示意图;如图1所示,其包括如下步骤S101、以及步骤S102:
S101、提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
本实施例中,在步骤S101中在确定需要进行转场处理的相邻的两帧视频时,可以根据视频帧的帧号或者视频帧的时间戳确定需要进行转场处理的相邻的两帧视频。
本实施例中,视频序列又可以称之为视频流,视频帧的帧号也可以称之为流号。提取的不同帧视频,可以按照流号的大小进行缓存处理。
需要进行转场处理的相邻两帧视频可以由用户通过第三方应用程序提供的人机操作界面指定,也可以通过自动识别的方式进行确定。具体地,自动识别的方式比如具体通过计算相邻两帧视频的直方图差值确定,从中挑出直方图差值大于设定阈值对应的相邻两帧视频即为需要进行转场处理的对象,或者又称之为转场点。
S102、根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
本实施例中,步骤S1020中在对所述相邻的两帧视频和转场视频进行合成包括:将转场视频分摊到所述相邻的两帧视频中,所述转场视频在所述相邻的两帧视频中的分摊时长总和等于所述转场时长。
另外,本实施例中,步骤S102中进行转场字幕的添加包括:进行无情节字幕、有情节字幕和叠印字幕中至少一种转场字幕的添加。
具体地,比如相邻两个视频帧分别为视频帧A和视频帧B,视频帧A可以称之为出画面,而视频帧B可以称之为入画面,若设置的转场时长为6s,那么确定出视频帧A的最后3s和视频帧B的前3s,合起来得到6s。当然,此处仅为示例,也可以根据具体情况,灵活配置转场时长在前后两帧视频中的时间长短。另外,需要说明的是,转场处理之前视频帧A的最后3s的视频内容和视频帧B的前3s的视频内容可以预先截取或者删除掉,这样在进行转场的时候,直接把转场视频根据转场时长的分配插入到视频帧A和视频帧B之间,再进行合成,从而完成视频的合成。在视频合成时,可以将字幕内内容中字幕信息条列表中的每一条字幕信息条转换为字幕位图,对应地,在进行转场字幕的添加时,根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加位置。
图2为本申请实施例二中视频处理方法的流程示意图;如图2所示,其包括如下步 骤S201、步骤S202、步骤S203以及步骤S204:
S201、判断转场触发开关是否打开,若转场触发开关打开,则执行步骤S202;
本实施例中,通过配置的转场触发开关来控制转场处理的启动与否。转场触发开关可以为配置在引导用户进行转场处理的操作页面中,比如设置一控件按钮,通过检测该控件按钮是否有被操作的事件发生,从而确定是否转场触发开关是否打开。
S202、提取视频序列中的多帧视频;
与上述实施例不同的是,本实施例中增加了上述步骤S201,只有再通过步骤S201判断得知转场触发开关已打开时才会启动步骤S202中提取多帧视频的处理步骤,从而防止了误转场处理。
步骤S202中的提取多帧视频处理的过程可参照上述实施例一记载,不同的是,提取的多帧视频以二维数组的方式存储,二维数组的序号与视频帧的帧号一一对应。
S203、确定需要进行转场处理的相邻的两帧视频;
本实施例中,由于有二维数组的序号与视频帧的帧号一一对应,因此,参照上述实施例一中记载的手动或者自动方法确定出转场点之后,可以直接相邻两帧视频的帧号或者其对应的二维数据的序号即可。
S204、根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加;
本实施例中,在所述相邻的两帧视频和转场视频进行合成时,具体可以根据设定视频合成总帧数阈值判断是否合成结束,比如如果合成后的视频总帧数等于视频合成总帧数阈值时,在结束视频的合成处理。
本实施例中,在步骤S204中进行转场字幕的添加之前,可以首先对所述转场字幕进行解析以建立字幕信息条列表,再根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加。
图3为本申请实施例三中视频处理方法的流程示意图;如图3所示,其包括如下步骤S301、步骤S302、步骤S303、步骤S304:
S301、提取视频序列中的多帧视频;
S302、确定需要进行转场处理的相邻的两帧视频;
本实施例中,上述步骤S301、S302类似上述实施例一或者二的相关记载。
S303、校正所述相邻的两帧视频的分辨率或者转场视频的分辨率,使得所述相邻的 两帧视频的分辨率和所述转场视频的分辨率一致;
本实施例中,预先设定有合成后的视频的分辨率,因此为了保证在合成的时候,就参考合成后的视频具有相同的分辨率,因此,本实施例中增加了对相邻的两帧视频的分辨率和所述转场视频的分辨率校正的处理。在实际的校正处理之前,可以首先检测相邻的两帧视频的分辨率和所述转场视频的分辨率,然后跟合成后的视频的分辨率进行大小比对,如三者不一致,则进行校正,如三者一致则不需要进行校正。
S304、根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对分辨率一致的所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
本实施例中,在步骤S304中对所述相邻的两帧视频和转场视频进行合成时,可以根据转场配置参数对所述相邻的两帧视频和转场视频进行合成。所述转场配置参数包括视频流的缩放倍数、旋转角度、模糊样式、模糊程度中的任一一种或多种的组合。
可选地,在步骤S304中对所述相邻的两帧视频和转场视频进行合成时,具体可以根据转场特效方式,对所述相邻的两帧视频和转场视频进行合成。
具体地,所述转场特效包括淡出淡入、叠化、翻页、划像、圈出圈入、定格中的任一一种或多种的组合。
在另外一实施例中,上述步骤S304中可以包括上述步骤S303的校正过程,即校正作为步骤S304中的部分流程。
图4为本申请实施例四中视频处理装置的框图;如图4所示,其包括:
第一程序单元401,用于提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
第二程序单元402,用于根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
可选地,在本实施例或其他任一实施例中,所述第一程序单元401进一步用于在转场触发开关打开时提取视频序列中的多帧视频。
可选地,在本实施例或其他任一实施例中,所述第一程序单元401进一步用于根据视频帧的帧号或者视频帧的时间戳确定需要进行转场处理的相邻的两帧视频。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于将转场视频分摊到所述相邻的两帧视频中,所述转场视频在所述相邻的两帧视频中的分摊时长总和等于所述转场时长。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于进行无情节字幕、有情节字幕和叠印字幕中至少一种转场字幕的添加。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于校正所述相邻的两帧视频的分辨率或者转场视频的分辨率,使得所述相邻的两帧视频的分辨率和所述转场视频的分辨率一致。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于根据转场配置参数对所述相邻的两帧视频和转场视频进行合成。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于根据转场特效方式,对所述相邻的两帧视频和转场视频进行合成。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加,对所述转场字幕进行解析以建立字幕信息条列表。
可选地,在本实施例或其他任一实施例中,所述第二程序单元402进一步用于将所述字幕文件转换为字幕位图,对应地,在进行转场字幕的添加时,根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加位置。
需要说明的是,上述第一、第二的表述并非是对数量的限定,实质上上述第一程序单元401与第二程序单元402之间可以相互复用。
另外,上述第一程序单元401、第二程序单元402不局限为只实现上述实施例中记载的技术功能,也可以实现其他功能。
在一具体应用场景中,上述第一程序单元401具体可以为提取单元,上述第二程序单元402具体以为合成单元。
为了分别实现视频的合成以及转场字幕的添加,合成单元具体可以包括合成子单元以及添加子单元,用于分别进行视频的合成以及转场字幕的添加。添加子单元进一步用于根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加,对所述转场字幕进行解析以建立字幕信息条列表。
另外,合成单元还可以包括校正子单元,所述校正子单元用于校正所述相邻的两帧视频的分辨率或者转场视频的分辨率。
再者,合成单元还可以包括添加位置确定子单元,用于根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加 位置。
上述各个程序单元的实现可以依赖配置的函数接口以及数据接口来实现。
本申请实施例还提供一种存储介质,所述存储介质上存储有机器指令,所述机器指令在被处理器执行时实现如下步骤:
提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
本申请实施例还提供一种电子产品,其包括存储介质以及处理器,所述存储介质上存储有机器指令,所述机器指令在被处理器执行时实现如下步骤:
提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;
根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
电子产品可以是任一具有数据处理能力的终端,比如便携性智能终端、类似PC的电子终端等。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,所述计算机可读记录介质包括用于以计算机(例如计算机)可读的形式存储或传送信息的任何机制。例如,机器可读介质包括只读存储器(ROM)、随机存取存储器(RAM)、磁盘存储介质、光存储介质、闪速存储介质、电、光、声或其他形式的传播信号(例如,载波、红外信号、数字 信号等)等,该计算机软件产品包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请实施例的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
本领域的技术人员应明白,本申请实施例的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请实施例是参照根据本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
Claims (24)
- 一种视频处理方法,其特征在于,包括:提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
- 根据权利要求1所述的视频处理方法,其特征在于,还包括:确定转场触发开关是否打开,若转场触发开关打开,则提取视频序列中的多帧视频。
- 根据权利要求1所述的视频处理方法,其特征在于,确定需要进行转场处理的相邻的两帧视频,包括:根据视频帧的帧号或者视频帧的时间戳确定需要进行转场处理的相邻的两帧视频。
- 根据权利要求1所述的视频处理方法,其特征在于,对所述相邻的两帧视频和转场视频进行合成包括:将转场视频分摊到所述相邻的两帧视频中,所述转场视频在所述相邻的两帧视频中的分摊时长总和等于所述转场时长。
- 根据权利要求1所述的视频处理方法,其特征在于,进行转场字幕的添加包括:进行无情节字幕、有情节字幕和叠印字幕中至少一种转场字幕的添加。
- 根据权利要求1所述的视频处理方法,其特征在于,还包括:校正所述相邻的两帧视频的分辨率或者转场视频的分辨率,使得所述相邻的两帧视频的分辨率和所述转场视频的分辨率一致。
- 根据权利要求1所述的视频处理方法,其特征在于,对所述相邻的两帧视频和转场视频进行合成包括:根据转场配置参数对所述相邻的两帧视频和转场视频进行合成。
- 根据权利要求7所述的视频处理方法,其特征在于,所述转场配置参数包括视频流的缩放倍数、旋转角度、模糊样式、模糊程度中的任一一种或多种的组合。
- 根据权利要求1所述的视频处理方法,其特征在于,对所述相邻的两帧视频和转场视频进行合成包括:根据转场特效方式,对所述相邻的两帧视频和转场视频进行合成。
- 根据权利要求9所述的视频处理方法,其特征在于,所述转场特效包括淡出淡入、叠化、翻页、划像、圈出圈入、定格中的任一一种或多种的组合。
- 根据权利要求1所述的视频处理方法,其特征在于,还包括:对所述转场字幕进行解析以建立字幕信息条列表;对应地,进行转场字幕的添加时,根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加。
- 根据权利要求1所述的视频处理方法,其特征在于,还包括:将所述字幕文件转 换为字幕位图,对应地,在进行转场字幕的添加时,根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加位置。
- 一种视频处理装置,其特征在于,包括:第一程序单元,用于提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;第二程序单元,用于根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第一程序单元进一步用于在转场触发开关打开时提取视频序列中的多帧视频。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第一程序单元进一步用于根据视频帧的帧号或者视频帧的时间戳确定需要进行转场处理的相邻的两帧视频。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于将转场视频分摊到所述相邻的两帧视频中,所述转场视频在所述相邻的两帧视频中的分摊时长总和等于所述转场时长。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于进行无情节字幕、有情节字幕和叠印字幕中至少一种转场字幕的添加。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于校正所述相邻的两帧视频的分辨率或者转场视频的分辨率,使得所述相邻的两帧视频的分辨率和所述转场视频的分辨率一致。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于根据转场配置参数对所述相邻的两帧视频和转场视频进行合成。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于根据转场特效方式,对所述相邻的两帧视频和转场视频进行合成。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于根据字幕信息条列表中字幕信息条的地址偏移量进行转场字幕的添加,对所述转场字幕进行解析以建立字幕信息条列表。
- 根据权利要求13所述的视频处理装置,其特征在于,所述第二程序单元进一步用于将所述字幕文件转换为字幕位图,对应地,在进行转场字幕的添加时,根据字幕位图的分辨率以及合成后的视频上像素的亮度特征和颜色通道特征,确定转场字幕合成后的视频上的添加位置。
- 一种存储介质,所述存储介质上存储有机器指令,所述机器指令在被处理器执行时实现如下步骤:提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
- 一种电子产品,其特征在于,包括存储介质以及处理器,所述存储介质上存储有机器指令,所述机器指令在被处理器执行时实现如下步骤:提取视频序列中的多帧视频,并确定需要进行转场处理的相邻的两帧视频;根据所述相邻的两帧视频的时间戳以及转场处理的转场时长,对所述相邻的两帧视频和转场视频进行合成以及进行转场字幕的添加。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810288314.4 | 2018-04-03 | ||
CN201810288314.4A CN108495171A (zh) | 2018-04-03 | 2018-04-03 | 视频处理方法及其装置、存储介质、电子产品 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019192416A1 true WO2019192416A1 (zh) | 2019-10-10 |
Family
ID=63318184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/080739 WO2019192416A1 (zh) | 2018-04-03 | 2019-04-01 | 视频处理方法及其装置、存储介质、电子产品 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108495171A (zh) |
WO (1) | WO2019192416A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542802A (zh) * | 2021-07-09 | 2021-10-22 | 北京百度网讯科技有限公司 | 视频的转场方法和装置 |
CN113627994A (zh) * | 2021-08-27 | 2021-11-09 | 京东方科技集团股份有限公司 | 信息发布的素材处理方法、装置、电子设备及存储介质 |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495171A (zh) * | 2018-04-03 | 2018-09-04 | 优视科技有限公司 | 视频处理方法及其装置、存储介质、电子产品 |
CN112995530A (zh) * | 2019-12-02 | 2021-06-18 | 阿里巴巴集团控股有限公司 | 视频的生成方法、装置及设备 |
CN112995746B (zh) | 2019-12-18 | 2022-09-09 | 华为技术有限公司 | 视频处理方法、装置与终端设备 |
CN111083526B (zh) * | 2019-12-31 | 2021-12-10 | 广州酷狗计算机科技有限公司 | 视频转场方法、装置、计算机设备及存储介质 |
CN112312161A (zh) * | 2020-06-29 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | 用于生成视频的方法、装置、电子设备及可读存储介质 |
CN115484423A (zh) * | 2021-06-16 | 2022-12-16 | 荣耀终端有限公司 | 一种转场特效添加方法及电子设备 |
CN114173067B (zh) * | 2021-12-21 | 2024-07-12 | 科大讯飞股份有限公司 | 一种视频生成方法、装置、设备及存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917557A (zh) * | 2010-08-10 | 2010-12-15 | 浙江大学 | 一种基于视频内容的动态添加字幕方法 |
US20120198338A1 (en) * | 2011-01-28 | 2012-08-02 | Apple Inc. | Smart Transitions |
CN104144301A (zh) * | 2014-07-30 | 2014-11-12 | 厦门美图之家科技有限公司 | 一种基于混合模式转场特效的方法 |
CN105245810A (zh) * | 2015-10-08 | 2016-01-13 | 广东欧珀移动通信有限公司 | 一种视频转场的处理方法及装置 |
CN106792114A (zh) * | 2016-12-06 | 2017-05-31 | 深圳Tcl数字技术有限公司 | 字幕的切换方法及装置 |
CN107566756A (zh) * | 2017-08-03 | 2018-01-09 | 广东小天才科技有限公司 | 一种视频转场的处理方法及终端设备 |
CN108495171A (zh) * | 2018-04-03 | 2018-09-04 | 优视科技有限公司 | 视频处理方法及其装置、存储介质、电子产品 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4125140B2 (ja) * | 2003-01-21 | 2008-07-30 | キヤノン株式会社 | 情報処理装置、情報処理方法ならびにプログラム |
CN102769714B (zh) * | 2012-03-26 | 2018-12-11 | 新奥特(北京)视频技术有限公司 | 一种消除闪光引起转场误报的方法 |
US20140359448A1 (en) * | 2013-05-31 | 2014-12-04 | Microsoft Corporation | Adding captions and emphasis to video |
CN103347155B (zh) * | 2013-06-18 | 2016-08-10 | 北京汉博信息技术有限公司 | 实现两个视频流不同过渡效果切换的转场特效模块及方法 |
CN106202130A (zh) * | 2015-05-08 | 2016-12-07 | 无锡天脉聚源传媒科技有限公司 | 一种镜头分割的方法及装置 |
CN104980625A (zh) * | 2015-06-19 | 2015-10-14 | 新奥特(北京)视频技术有限公司 | 视频转场检测的方法和装置 |
CN107770626B (zh) * | 2017-11-06 | 2020-03-17 | 腾讯科技(深圳)有限公司 | 视频素材的处理方法、视频合成方法、装置及存储介质 |
-
2018
- 2018-04-03 CN CN201810288314.4A patent/CN108495171A/zh active Pending
-
2019
- 2019-04-01 WO PCT/CN2019/080739 patent/WO2019192416A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917557A (zh) * | 2010-08-10 | 2010-12-15 | 浙江大学 | 一种基于视频内容的动态添加字幕方法 |
US20120198338A1 (en) * | 2011-01-28 | 2012-08-02 | Apple Inc. | Smart Transitions |
CN104144301A (zh) * | 2014-07-30 | 2014-11-12 | 厦门美图之家科技有限公司 | 一种基于混合模式转场特效的方法 |
CN105245810A (zh) * | 2015-10-08 | 2016-01-13 | 广东欧珀移动通信有限公司 | 一种视频转场的处理方法及装置 |
CN106792114A (zh) * | 2016-12-06 | 2017-05-31 | 深圳Tcl数字技术有限公司 | 字幕的切换方法及装置 |
CN107566756A (zh) * | 2017-08-03 | 2018-01-09 | 广东小天才科技有限公司 | 一种视频转场的处理方法及终端设备 |
CN108495171A (zh) * | 2018-04-03 | 2018-09-04 | 优视科技有限公司 | 视频处理方法及其装置、存储介质、电子产品 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542802A (zh) * | 2021-07-09 | 2021-10-22 | 北京百度网讯科技有限公司 | 视频的转场方法和装置 |
CN113542802B (zh) * | 2021-07-09 | 2023-07-14 | 北京百度网讯科技有限公司 | 视频的转场方法和装置 |
CN113627994A (zh) * | 2021-08-27 | 2021-11-09 | 京东方科技集团股份有限公司 | 信息发布的素材处理方法、装置、电子设备及存储介质 |
CN113627994B (zh) * | 2021-08-27 | 2024-09-06 | 京东方科技集团股份有限公司 | 信息发布的素材处理方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108495171A (zh) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019192416A1 (zh) | 视频处理方法及其装置、存储介质、电子产品 | |
US10341630B2 (en) | Creating time lapse video in real-time | |
EP2540072B1 (en) | Video delivery and control by overwriting video data | |
US10728510B2 (en) | Dynamic chroma key for video background replacement | |
EP3151548B1 (en) | Video recording method and device | |
US20150208103A1 (en) | System and Method for Enabling User Control of Live Video Stream(s) | |
US20220188357A1 (en) | Video generating method and device | |
CN111405339B (zh) | 一种分屏显示方法、电子设备及存储介质 | |
US10021433B1 (en) | Video-production system with social-media features | |
CN103916597A (zh) | 一种模拟场景的拍摄方法 | |
US10032482B2 (en) | Moving image generating apparatus, moving image generating method and storage medium | |
CN113747240B (zh) | 视频处理方法、设备和存储介质 | |
US20230217084A1 (en) | Image capture apparatus, control method therefor, image processing apparatus, and image processing system | |
CN105491396A (zh) | 一种多媒体信息处理方法及服务器 | |
CN113938617A (zh) | 一种多路视频显示方法、设备、网络摄像机及存储介质 | |
CN110035320A (zh) | 视频的广告加载渲染方法及装置 | |
CN115002335B (zh) | 视频处理方法、装置、电子设备和计算机可读存储介质 | |
JP2017059121A (ja) | 画像管理装置、画像管理方法及びプログラム | |
JP6977847B2 (ja) | 画像管理装置、画像管理方法及びプログラム | |
CN114827477B (zh) | 延时摄影的方法、装置、电子设备及介质 | |
US12132973B1 (en) | Systems and methods for preserving consistent picture quality during live streaming of hybrid content | |
WO2016092647A1 (ja) | 動画編集装置、動画編集方法及びプログラム | |
WO2022172617A1 (ja) | 撮像装置および撮像処理方法 | |
CN109819181B (zh) | 信息处理方法、装置及设备 | |
US20120069047A1 (en) | Image display apparatus, image editing apparatus, image display program, and image editing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19781203 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19781203 Country of ref document: EP Kind code of ref document: A1 |