CN111385599B - Video processing method and device - Google Patents
Video processing method and device Download PDFInfo
- Publication number
- CN111385599B CN111385599B CN201811627861.7A CN201811627861A CN111385599B CN 111385599 B CN111385599 B CN 111385599B CN 201811627861 A CN201811627861 A CN 201811627861A CN 111385599 B CN111385599 B CN 111385599B
- Authority
- CN
- China
- Prior art keywords
- video
- editing
- target video
- file
- content
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000012790 confirmation Methods 0.000 claims abstract description 25
- 230000004044 response Effects 0.000 claims description 35
- 238000013507 mapping Methods 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 15
- 230000000694 effects Effects 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000008859 change Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 244000025254 Cannabis sativa Species 0.000 description 1
- 241001494479 Pecora Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- 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/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
- H04N21/4402—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 involving reformatting operations of video signals for household redistribution, storage or real-time display
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the disclosure discloses a video processing method and device. One embodiment of the method comprises: executing a file generation step: if the editing confirmation operation on the target video is detected, carrying out video transcoding on the target video based on the editing content of the target video to generate a file to be published; and if the publishing operation is detected, uploading the file to be published. According to the embodiment of the method and the device, the transcoding can be directly performed after the user finishes the editing operation, and the transcoding is performed after the execution main body determines to release the video. In addition, the time for the user to wait for the video transcoding is saved, and the video publishing speed of the user is accelerated.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to a video processing method and device.
Background
With the development of internet technology, more and more users start to shoot videos and distribute the videos through networks. In the prior art, the video needs to be transcoded when being released, which may result in that the user cannot release the video immediately.
Disclosure of Invention
The embodiment of the disclosure provides a video processing method and device.
In a first aspect, an embodiment of the present disclosure provides a video processing method, including: if the editing confirmation operation on the target video is detected, performing video transcoding on the target video based on the editing content of the target video to generate a file to be published; and if the publishing operation is detected, uploading the file to be published.
In some embodiments, after video transcoding the target video, the method further comprises: if the rollback operation is detected, in response to the detection of the editing confirmation operation on the target video, determining whether the editing content of the target video is changed; and in response to the fact that the editing content of the target video is changed, video transcoding is carried out on the target video based on the current editing content, and a file to be published is generated.
In some embodiments, the edited content is mapped to an identifier, wherein the identifiers mapped by the same edited content are the same; and determining whether the edited content of the target video changes, including: mapping the current editing content as an identifier, and searching whether the identifier obtained by mapping the current editing content exists or not; in response to determining that there is no edit content change for the target video.
In some embodiments, before video transcoding is performed on the target video based on the edited content of the target video if the edit confirmation operation on the target video is detected, the method further includes: and recording the editing content corresponding to the editing operation in response to the detection of the editing operation.
In some embodiments, if the publishing operation is detected, uploading the file to be published includes: if the release operation is detected, determining whether video transcoding is completed; uploading a file to be published in response to the completion of the determination; and in response to the fact that the video transcoding is not completed, uploading the file to be published after the video transcoding is completed.
In some embodiments, the editing content comprises at least one of: cutting and splicing the video track, cutting, rotating, combining and adding special effects to the video picture.
In a second aspect, an embodiment of the present disclosure provides a video processing apparatus, including: a generating unit configured to perform the file generating step of: if the editing confirmation operation on the target video is detected, performing video transcoding on the target video based on the editing content of the target video to generate a file to be published; and the uploading unit is configured to upload the file to be published if the publishing operation is detected.
In some embodiments, the apparatus further comprises: a rewind unit configured to determine whether the edited content of the target video has changed in response to detection of an edit confirmation operation on the target video if a rewind operation is detected; and the re-transcoding unit is configured to perform video transcoding on the target video based on the current editing content in response to the fact that the editing content of the target video is changed, and generate a file to be published.
In some embodiments, the apparatus further comprises: a first mapping unit configured to map the editing contents into identifiers, wherein the identifiers mapped by the same editing contents are the same; and a fallback unit further configured to: mapping the current editing content as an identifier, and searching whether the identifier obtained by mapping the current editing content exists or not; in response to determining that there is no edit content change for the target video.
In some embodiments, the apparatus further comprises: and the recording unit is configured to record the editing content corresponding to the editing operation in response to the detection of the editing operation.
In some embodiments, the upload unit is further configured to: if the release operation is detected, determining whether video transcoding is completed; uploading a file to be published in response to the completion of the determination; and in response to the fact that the video transcoding is not completed, uploading the file to be published after the video transcoding is completed.
In some embodiments, the editing content comprises at least one of: cutting and splicing the video track, cutting, rotating, combining and adding special effects to the video picture.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement a method as in any embodiment of the video processing method.
In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method as in any of the embodiments of the video processing method.
The video processing scheme provided by the embodiment of the disclosure firstly executes the file generation step: and if the editing confirmation operation on the target video is detected, performing video transcoding on the target video based on the editing content of the target video, and generating a file to be published. And then, if the issuing operation is detected, uploading the file to be issued. According to the embodiment of the method and the device, the transcoding can be directly performed after the user finishes the editing operation, and the transcoding is performed after the execution main body determines to release the video. In addition, the time for the user to wait for the video transcoding is saved, and the video publishing speed of the user is accelerated.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present disclosure may be applied;
FIG. 2 is a flow diagram for one embodiment of a video processing method according to the present disclosure;
FIG. 3 is a schematic diagram of an application scenario of a video processing method according to the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of a video processing method according to the present disclosure;
FIG. 5 is a schematic block diagram of one embodiment of a video processing apparatus according to the present disclosure;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and are not limiting of the disclosure. It should be noted that, for the convenience of description, only the parts relevant to the related disclosure are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the video processing method or video processing apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 may be a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a live application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal apparatuses 101, 102, 103 are hardware, various electronic apparatuses having a communication function are possible. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the above-described electronic apparatuses. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for information streams displayed on the terminal devices 101, 102, 103. The background server may analyze and perform other processing on the received data such as the target video, and feed back a processing result (e.g., a file to be published) to the terminal device.
It should be noted that the video processing method provided in the embodiment of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the video processing apparatus is generally disposed in the terminal devices 101, 102, and 103.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a video processing method according to the present disclosure is shown. The video processing method comprises the following steps:
In this embodiment, if an edit confirmation operation on a target video is detected, an execution subject of the video processing method (for example, a terminal device shown in fig. 1) may perform video transcoding on the target video in a local background to generate a file to be published. The editing contents indicate what kind of editing the video will be done by the execution subject. Specifically, the execution main body may record at least one piece of editing content in advance, and implement, in the process of transcoding the video, editing corresponding to the piece of editing content on the target video based on each recorded piece of editing content.
The edit confirmation operation is used to indicate that the user has completed editing determined to be performed on the video. The edit confirmation operation may be various operations performed on the execution subject, such as clicking, sliding, and the like. The edit confirmation operation may be an operation for an entity button of the execution subject or displayed preset content. The video transcoding refers to converting a compressed video code stream into another video code stream to edit video, so as to meet the editing requirements of users, and facilitate uploading and utilization of a server. The file to be published refers to a file to be published by an uploading server and comprises a video obtained after video transcoding.
In some optional implementations of this embodiment, before step 201, the executing main body may:
and recording the editing content corresponding to the editing operation in response to the detection of the editing operation.
In these alternative implementations, the execution subject may determine, when the editing operation of the user is detected, the editing content corresponding to each editing operation, and record the editing content. The editing operation is an operation performed by a user, and may indicate what kind of editing the execution subject is to perform, in accordance with the editing content. The editing operation may be an operation for executing an entity button of the subject or displayed preset content. The execution body may be pre-stored with a corresponding relationship between the editing operation and the editing content. Then, the execution subject described above, after detecting the editing operation, can determine the editing content corresponding to the editing operation. The editing content corresponding to different editing operations may be different.
The implementation modes can accurately record the editing content to be performed after the user performs the editing operation, so that the subsequent execution main body can perform editing when performing video transcoding.
In some optional implementations of this embodiment, the editing content includes at least one of:
cutting and splicing the video track, cutting, rotating, combining and adding special effects to the video picture.
In these optional implementations, the execution subject may perform at least one of the modifications to the video track (videoTrack) and the modifications to the video picture (videoFrame). The execution body may clip each video track, for example, select a portion of the video track from the entire duration of the video. Different segments of video can also be connected to achieve splicing of video tracks. In addition, the local part of the picture can be selected by cutting the video picture. The rotation is to rotate a picture in the video. The video frames are combined by combining at least two frames, such as a sheep's pattern with a video frame that appears green grass. The added effects may include animated effects and/or facial effects, among others. For example, the special effect of the face may be to enlarge eyes or increase beard, etc.
The implementation modes can record various editing contents so as to obtain accurate video meeting the requirements of users when video transcoding is carried out subsequently.
In this embodiment, if the publishing operation is detected, the executing entity may upload the file to be published to the server, so that the video in the file to be published is published. The publishing operation is an operation made by a user and is used for instructing the execution subject to upload a file to be published to the server so as to publish the video in the file. The publishing operation may be a variety of operations performed on the execution principal, such as clicking, sliding, and so forth. The issuing operation may be an operation for executing an entity button of the subject or displayed preset content.
In some optional implementations of this embodiment, step 202 includes:
if the release operation is detected, determining whether video transcoding is completed; uploading a file to be published in response to the completion of the determination; and in response to the fact that the video transcoding is not completed, uploading the file to be published after the video transcoding is completed.
In these alternative implementations, the executing agent may upload the file to be published again after detecting the publishing operation and in a case that the video transcoding is completed.
The implementation modes can avoid uploading the file to be published under the condition that the video transcoding is not completed, so that the completeness and accuracy of the published video are realized.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the video processing method according to the present embodiment. In the application scenario of fig. 3, the execution agent 301 may perform the file generation steps: if the edit confirmation operation 302 for the target video is detected: and clicking the next step of the editing page, and performing video transcoding on the target video based on the editing content of the target video to generate a file to be published 303. And if the issuing operation is detected, uploading the file to be issued 303.
According to the embodiment of the disclosure, the transcoding can be directly performed after the user finishes the editing operation, and the transcoding is performed after the execution main body determines to release the video. In addition, the time for the user to wait for the video transcoding is saved, and the video publishing speed of the user is accelerated.
With further reference to fig. 4, a flow 400 of yet another embodiment of a video processing method is shown. The flow 400 of the video processing method comprises the following steps:
In this embodiment, if an edit confirmation operation on a target video is detected, an execution subject of the video processing method (for example, a terminal device shown in fig. 1) may perform video transcoding on the target video in a local background to generate a file to be published. The editing contents indicate what kind of editing the video will be done by the execution subject. Specifically, the execution main body may record at least one piece of editing content in advance, and implement, in the process of transcoding the video, editing corresponding to the piece of editing content on the target video based on each recorded piece of editing content.
In the present embodiment, if the above-described execution subject detects a rewind operation, it is possible to determine whether the edited content of the target video has changed in the case where an edit confirmation operation is detected again. That is, it is determined whether the above-described edited content before the rewind operation is consistent with the current edited content of the target video. Specifically, the rollback operation is an operation of returning to the editing interface to redo editing. For example, it may be a "return" click on the publishing interface.
In practice, whether the editing content is changed or not can be determined in various ways. For example, comparing each recorded edited content one by one to see if they are consistent, where each edited content may be recorded in various forms such as character identifiers or instructions. In the case where it is determined that the current edited content is consistent with the edited content employed in the last video transcoding, it may be determined that the edited content has not changed.
In some optional implementations of this embodiment, the method further includes: mapping the editing content into identifiers, wherein the identifiers obtained by mapping the same editing content are the same; and
the above determining whether the edited content of the target video changes includes:
mapping the current editing content as an identifier, and searching whether the identifier obtained by mapping the current editing content exists or not; in response to determining that there is no edit content change for the target video.
In these alternative implementations, the execution subject may map all editing contents recorded before to the identifier by using a preset method (for example, using the function calculation tool xfinc). If the identifier obtained by mapping the current editing content is consistent with the identifier obtained by mapping the editing content adopted in the last transcoding, the identifier obtained by mapping the current editing content can be found. If not, the data can not be found.
Note that if a certain recorded edited content is deleted by the editing operation of the user later, the record corresponding to the edited content does not exist. For example, a special effect of reducing the chin is recorded before the main body is executed, and after the special effect is deleted by the user, the record of the special effect does not exist.
In step 403, in response to determining that the editing content of the target video changes, video transcoding is performed on the target video based on the current editing content, and a file to be published is generated.
In this embodiment, if the change is determined, video transcoding is performed again based on the current editing content, and a file to be published including a result of this video transcoding is generated.
It should be noted that a certain time period may be required for generating the file to be published, and step 402 may also be executed when the file to be published is not generated yet.
And step 404, if the publishing operation is detected, uploading the file to be published.
In this embodiment, if the publishing operation is detected, the executing entity may upload the file to be published to the server, so that the video in the file to be published is published. The publishing operation is an operation made by a user and is used for instructing the execution subject to upload a file to be published to the server so as to publish the video in the file. The publishing operation may be a variety of operations performed on the execution principal, such as clicking, sliding, and so forth. The issuing operation may be an operation for executing an entity button of the subject or displayed preset content.
The above embodiments of the present disclosure may perform transcoding again when the user rolls back and the edited content changes, so as to ensure that the video obtained by transcoding meets the requirements of the user.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a video processing apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the video processing apparatus 500 of the present embodiment includes: a generation unit 501 and an upload unit 502. Wherein the generating unit 501 is configured to perform the file generating step: if the editing confirmation operation on the target video is detected, performing video transcoding on the target video based on the editing content of the target video to generate a file to be published; and the uploading unit 502 is configured to upload the file to be published if the publishing operation is detected.
In some embodiments, the generation unit 501 of the video processing apparatus 500 may perform video transcoding on the target video to generate a file to be published. The editing content indicates what editing the video is to be edited by the user. Specifically, the execution main body may record at least one piece of editing content in advance, and implement, in the background video transcoding process, editing corresponding to the piece of editing content on the target video based on each recorded piece of editing content.
In some embodiments, if the publishing operation is detected, the uploading unit 502 may upload the file to be published to the server, so that the video in the file to be published is published. The publishing operation is an operation made by a user and is used for instructing the execution subject to upload a file to be published to the server so as to publish the video in the file. The publishing operation may be a variety of operations performed on the execution principal, such as clicking, sliding, and so forth. The issuing operation may be an operation for executing an entity button of the subject or displayed preset content.
In some optional implementations of this embodiment, the apparatus further includes: a rewind unit configured to determine whether the edited content of the target video has changed in response to detection of an edit confirmation operation on the target video if a rewind operation is detected; and the re-transcoding unit is configured to perform video transcoding on the target video based on the current editing content in response to the fact that the editing content of the target video is changed, and generate a file to be published.
In some optional implementations of this embodiment, the apparatus further includes: a first mapping unit configured to map the editing contents into identifiers, wherein the identifiers mapped by the same editing contents are the same; and a fallback unit further configured to: mapping the current editing content as an identifier, and searching whether the identifier obtained by mapping the current editing content exists or not; in response to determining that there is no edit content change for the target video.
In some optional implementations of this embodiment, the apparatus further includes: and the recording unit is configured to record the editing content corresponding to the editing operation in response to the detection of the editing operation.
In some optional implementations of this embodiment, the upload unit is further configured to: if the release operation is detected, determining whether video transcoding is completed; uploading a file to be published in response to the completion of the determination; and in response to the fact that the video transcoding is not completed, uploading the file to be published after the video transcoding is completed.
In some optional implementations of this embodiment, the editing content includes at least one of: cutting and splicing the video track, cutting, rotating, combining and adding special effects to the video picture.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 600 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium of the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: if the editing confirmation operation on the target video is detected, performing video transcoding on the target video based on the editing content of the target video to generate a file to be published; and if the publishing operation is detected, uploading the file to be published.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a unit does not in some cases form a limitation on the unit itself, and for example, the uploading unit may also be described as a "unit that uploads a file to be published if a publishing operation is detected".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (12)
1. A video processing method is applied to a mobile terminal and comprises the following steps:
if the editing confirmation operation on the target video is detected, carrying out video transcoding on the target video based on the editing content of the target video, and generating a file to be published;
if the publishing operation is detected, uploading the file to be published;
after the video transcoding the target video, the method further comprises:
if the rollback operation is detected, determining whether the edited content of the target video changes in response to the detection of the editing confirmation operation on the target video;
and in response to the fact that the edited content of the target video is changed, video transcoding is carried out on the target video based on the current edited content, and a file to be published is generated.
2. The method of claim 1, wherein the method further comprises: mapping the editing content into identifiers, wherein the identifiers obtained by mapping the same editing content are the same; and
the determining whether the edited content of the target video changes includes:
mapping the current editing content as an identifier, and searching whether the identifier obtained by mapping the current editing content exists or not;
in response to determining that there is no edit content change for the target video.
3. The method according to one of claims 1-2, wherein before the video transcoding of the target video based on the edited content of the target video if the edit confirmation operation of the target video is detected, the method further comprises:
and recording the editing content corresponding to the editing operation in response to the detection of the editing operation.
4. The method according to claim 1, wherein the uploading the file to be published if the publication operation is detected comprises:
if the release operation is detected, determining whether video transcoding is completed;
in response to the completion of the determination, uploading the file to be issued;
and in response to the fact that the video transcoding is not completed, uploading the file to be published after the video transcoding is completed.
5. The method of claim 1, wherein the editorial content comprises at least one of:
cutting and splicing the video track, cutting, rotating, combining and adding special effects to the video picture.
6. A video processing device is arranged in a mobile terminal and comprises:
a generating unit configured to perform the file generating step of: if the editing confirmation operation on the target video is detected, carrying out video transcoding on the target video based on the editing content of the target video, and generating a file to be published;
the uploading unit is configured to upload the file to be issued if the issuing operation is detected;
a rewind unit configured to determine whether the edited content of the target video has changed in response to detecting the edit confirmation operation on the target video if a rewind operation is detected;
and the re-transcoding unit is configured to perform video transcoding on the target video based on the current editing content in response to the fact that the editing content of the target video is determined to be changed, and generate a file to be published.
7. The apparatus of claim 6, wherein the apparatus further comprises: a first mapping unit configured to map the editing contents into identifiers, wherein the identifiers mapped by the same editing contents are the same; and
the fallback unit is further configured to:
mapping the current editing content as an identifier, and searching whether the identifier obtained by mapping the current editing content exists or not;
in response to determining that there is no edit content change for the target video.
8. The apparatus according to one of claims 6-7, wherein the apparatus further comprises:
the recording unit is configured to respond to the detection of the editing operation and record the editing content corresponding to the editing operation.
9. The apparatus of claim 6, wherein the upload unit is further configured to:
if the release operation is detected, determining whether video transcoding is completed;
in response to the completion of the determination, uploading the file to be issued;
and in response to the fact that the video transcoding is not completed, uploading the file to be published after the video transcoding is completed.
10. The apparatus of claim 6, wherein the editorial content comprises at least one of:
cutting and splicing the video track, cutting, rotating, combining and adding special effects to the video picture.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811627861.7A CN111385599B (en) | 2018-12-28 | 2018-12-28 | Video processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811627861.7A CN111385599B (en) | 2018-12-28 | 2018-12-28 | Video processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111385599A CN111385599A (en) | 2020-07-07 |
CN111385599B true CN111385599B (en) | 2022-02-11 |
Family
ID=71219280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811627861.7A Active CN111385599B (en) | 2018-12-28 | 2018-12-28 | Video processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111385599B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738573A (en) * | 2020-12-25 | 2021-04-30 | 北京达佳互联信息技术有限公司 | Video data transmission method and device and video data distribution method and device |
CN113727145B (en) * | 2021-11-04 | 2022-03-01 | 飞狐信息技术(天津)有限公司 | Video distribution method and device, electronic equipment and storage medium |
CN119450108A (en) * | 2023-07-31 | 2025-02-14 | 北京字跳网络技术有限公司 | Video export method, device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008060655A2 (en) * | 2006-03-29 | 2008-05-22 | Motionbox, Inc. | A system, method, and apparatus for visual browsing, deep tagging, and synchronized commenting |
US7769819B2 (en) * | 2005-04-20 | 2010-08-03 | Videoegg, Inc. | Video editing with timeline representations |
WO2014172601A1 (en) * | 2013-04-18 | 2014-10-23 | Voyzee, Llc | Method and apparatus for configuring multimedia sequence using mobile platform |
CN104796767A (en) * | 2015-03-31 | 2015-07-22 | 北京奇艺世纪科技有限公司 | Method and system for editing cloud video |
CN105307010A (en) * | 2015-11-14 | 2016-02-03 | 华中科技大学 | System and method for uploading video of cloud video living broadcast platform |
CN106162225A (en) * | 2016-07-28 | 2016-11-23 | 杭州当虹科技有限公司 | A kind of high timeliness editor's live video method based on agency's stream |
CN206136144U (en) * | 2016-11-07 | 2017-04-26 | 国网湖北省电力公司检修公司 | A remote emergency management and control device for safety inspection |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101740082A (en) * | 2009-11-30 | 2010-06-16 | 孟智平 | Method and system for clipping video based on browser |
CN103533382A (en) * | 2013-09-24 | 2014-01-22 | 四川汇源吉迅数码科技有限公司 | Mobile video new media production, uploading and publishing system |
US10496945B2 (en) * | 2014-06-17 | 2019-12-03 | Fox Digital Enterprises, Inc. | Online global planning system for international theater post production and enterprise operations |
CN106202880A (en) * | 2016-06-29 | 2016-12-07 | 上海信麟信息技术有限公司 | Medical system data-sharing systems |
CN106791933B (en) * | 2017-01-20 | 2019-11-12 | 杭州当虹科技股份有限公司 | The method and system of online quick editor's video based on web terminal |
CN108810596B (en) * | 2017-04-27 | 2021-12-14 | 腾讯科技(深圳)有限公司 | Video editing method and device and terminal |
CN107734354A (en) * | 2017-10-19 | 2018-02-23 | 中视亚广(北京)文化传播有限公司 | It is a kind of that real-time clipping method and device are carried out to live stream video |
CN108419143A (en) * | 2018-05-08 | 2018-08-17 | 多盟睿达科技(中国)有限公司 | A kind of production method and system based on mobile video advertisement |
-
2018
- 2018-12-28 CN CN201811627861.7A patent/CN111385599B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7769819B2 (en) * | 2005-04-20 | 2010-08-03 | Videoegg, Inc. | Video editing with timeline representations |
WO2008060655A2 (en) * | 2006-03-29 | 2008-05-22 | Motionbox, Inc. | A system, method, and apparatus for visual browsing, deep tagging, and synchronized commenting |
WO2014172601A1 (en) * | 2013-04-18 | 2014-10-23 | Voyzee, Llc | Method and apparatus for configuring multimedia sequence using mobile platform |
CN104796767A (en) * | 2015-03-31 | 2015-07-22 | 北京奇艺世纪科技有限公司 | Method and system for editing cloud video |
CN105307010A (en) * | 2015-11-14 | 2016-02-03 | 华中科技大学 | System and method for uploading video of cloud video living broadcast platform |
CN106162225A (en) * | 2016-07-28 | 2016-11-23 | 杭州当虹科技有限公司 | A kind of high timeliness editor's live video method based on agency's stream |
CN206136144U (en) * | 2016-11-07 | 2017-04-26 | 国网湖北省电力公司检修公司 | A remote emergency management and control device for safety inspection |
Non-Patent Citations (1)
Title |
---|
《基于Hadoop的视频转码系统的设计与实现》;郭奕希;《中国优秀硕士学位论文全文数据库》;20110515;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111385599A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111436005B (en) | Method and apparatus for displaying image | |
US11928152B2 (en) | Search result display method, readable medium, and terminal device | |
CN111447489A (en) | Video processing method and device, readable medium and electronic equipment | |
US20240311069A1 (en) | Screen projecting method and apparatus, electronic device and storage medium | |
US11416538B1 (en) | System and method for sharing trimmed versions of digital media items | |
CN111385599B (en) | Video processing method and device | |
WO2024120355A1 (en) | Association information display method and apparatus, device, storage medium, and program product | |
CN111367447A (en) | Information display method and device, electronic equipment and computer readable storage medium | |
CN111435600B (en) | Method and apparatus for processing audio | |
CN110058854B (en) | Method, terminal device and computer-readable medium for generating application | |
CN115103236A (en) | Image record generation method, device, electronic device, and storage medium | |
US20160345184A1 (en) | Signal strength bookmarking for media content | |
CN112307393A (en) | Information issuing method and device and electronic equipment | |
US20240220081A1 (en) | Template selection method, electronic device and non-transitory computer-readable storage medium | |
CN112148744A (en) | Page display method and device, electronic equipment and computer readable medium | |
CN111385638B (en) | Video processing method and device | |
JP2024534743A (en) | VIDEO GENERATION METHOD, APPARATUS, STORAGE MEDIUM AND PROGRAM PRODUCT | |
CN110708238A (en) | Method and apparatus for processing information | |
CN111367592B (en) | Information processing method and device | |
CN109889737B (en) | Method and apparatus for generating video | |
WO2022042398A1 (en) | Method and apparatus for determining object addition mode, electronic device, and medium | |
CN111294657A (en) | Information processing method and device | |
CN113822031A (en) | Method and apparatus for processing code templates | |
CN113778387B (en) | Method and device for generating code | |
CN111294321B (en) | Information processing method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |