WO2022156646A1 - 视频录制方法、设备、电子设备及存储介质 - Google Patents
视频录制方法、设备、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2022156646A1 WO2022156646A1 PCT/CN2022/072403 CN2022072403W WO2022156646A1 WO 2022156646 A1 WO2022156646 A1 WO 2022156646A1 CN 2022072403 W CN2022072403 W CN 2022072403W WO 2022156646 A1 WO2022156646 A1 WO 2022156646A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- speed
- variable speed
- playback
- original
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000012545 processing Methods 0.000 claims abstract description 38
- 230000008859 change Effects 0.000 claims description 61
- 238000005070 sampling Methods 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 30
- 238000012952 Resampling Methods 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 47
- 238000010586 diagram Methods 0.000 description 30
- 230000002452 interceptive effect Effects 0.000 description 17
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 6
- 238000013507 mapping Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 101000822695 Clostridium perfringens (strain 13 / Type A) Small, acid-soluble spore protein C1 Proteins 0.000 description 1
- 101000655262 Clostridium perfringens (strain 13 / Type A) Small, acid-soluble spore protein C2 Proteins 0.000 description 1
- 101000655256 Paraclostridium bifermentans Small, acid-soluble spore protein alpha Proteins 0.000 description 1
- 101000655264 Paraclostridium bifermentans Small, acid-soluble spore protein beta Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/005—Reproducing at a different information rate from the information rate of recording
-
- 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
-
- 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/47217—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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
- G11B27/031—Electronic editing of digitised analogue information signals, e.g. audio or video signals
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/10—Indexing; Addressing; Timing or synchronising; Measuring tape travel
- G11B27/34—Indicating arrangements
-
- 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- 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
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- 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
-
- 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
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
- H04N23/635—Region indicators; Field of view indicators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
- H04N5/77—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
- H04N5/772—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/782—Television signal recording using magnetic recording on tape
- H04N5/783—Adaptations for reproducing at a rate different from the recording rate
Definitions
- the embodiments of the present disclosure relate to the field of multimedia technologies, and in particular, to a video recording method, device, electronic device, and storage medium.
- the video works uploaded by users have become the main content source of the platform. Users can record and upload videos through mobile terminals such as mobile phones, and add different video special effects to form interesting video works.
- the video material in the video template will change the playback speed of the video material under the influence of the variable speed special effect.
- users use such video templates for video shooting, they cannot accurately match the time point when the special effects appear in the video template, resulting in a mismatch between the video special effects and the video content, which affects the video quality.
- Embodiments of the present disclosure provide a video recording method, device, electronic device, storage medium, computer program product, and computer program to overcome the problem that video effects do not match video content and affect video quality when a user records a video according to a video template.
- an embodiment of the present disclosure provides a video recording method, including:
- variable speed information of the variable speed video wherein the variable speed information is used to represent the change of the playback speed of the variable speed video; according to the variable speed information, perform inversion processing on the variable speed video to obtain the original speed video; display the original speed video; speed video, and synchronously shoot the video to generate the original speed target video; perform variable speed processing on the original speed target video according to the variable speed information to obtain the variable speed target video.
- an embodiment of the present disclosure provides a video recording device, including:
- an acquisition unit configured to acquire variable speed information of the variable speed video, wherein the variable speed information is used to characterize a change in the playback speed of the variable speed video;
- an inverting speed unit configured to perform inverting processing on the variable speed video according to the variable speed information to obtain the original speed video
- a generating unit for displaying the original speed video, and synchronously shooting the video to generate the original speed target video
- a variable speed unit configured to perform variable speed processing on the original speed target video according to the variable speed information to obtain a variable speed target video.
- embodiments of the present disclosure provide an electronic device, including: at least one processor and a memory;
- the memory stores computer-executable instructions
- the at least one processor executes the computer-executable instructions stored in the memory to cause the at least one processor to perform the video recording method as described above in the first aspect and various possible aspects of the first aspect.
- embodiments of the present disclosure provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the first aspect and the first Various possible aspects relate to the described video recording method.
- embodiments of the present disclosure provide a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned first aspect and various possible video recording methods related to the first aspect.
- an embodiment of the present disclosure provides a computer program, where the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, the At least one processor executes the computer program, so that the electronic device performs the above-mentioned first aspect and various possible video recording methods related to the first aspect.
- variable speed information of the variable speed video is obtained, wherein the variable speed information is used to represent the change of the playback speed of the variable speed video;
- the variable speed video is subjected to inversion processing to obtain the original speed video;
- the original speed video is displayed, and video shooting is performed synchronously to generate the original speed target video;
- the original speed target video is subjected to variable speed processing to obtain Variable speed target video; since the playback speed of the reversed original speed video is the same as the normal speed of the video recorded by the user, by showing the user the original speed video and guiding the user to record the video, the recorded video can be synchronized with the original variable speed video.
- the special effects in the template are matched with the video content shot by the user, so that the video recorded by the user can directly obtain the special effects in the original variable speed video, which solves the problem that the video special effects do not match the video content, and improves the special effects performance of the video recorded by the user.
- FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure
- Fig. 2 is the playing schematic diagram of the video template with variable speed special effects in the related art
- FIG. 3 is a schematic flowchart 1 of a video recording method provided by an embodiment of the present disclosure
- FIG. 4 is a schematic diagram of performing inversion speed processing on a variable speed video according to variable speed information
- FIG. 5 is a schematic diagram of displaying original-speed video and synchronizing video shooting according to an embodiment of the present disclosure
- FIG. 6 is a second schematic flowchart of a video recording method provided by an embodiment of the present disclosure.
- FIG. 7 is a schematic diagram of an implementation manner of a variable speed video template on a UI provided by an embodiment of the present disclosure
- Fig. 8 is a possible schematic flowchart of step S202 in the embodiment shown in Fig. 6;
- FIG. 9 is a schematic diagram of a playback time stamp of a variable speed video according to an embodiment of the present disclosure.
- FIG. 10 is a schematic diagram of a process for determining a video frame according to an embodiment of the present disclosure
- Fig. 11 is a possible schematic flowchart of step S204 in the embodiment shown in Fig. 6;
- FIG. 12 is a schematic diagram of a first interactive interface provided by a disclosed embodiment
- FIG. 13 is a schematic diagram of an operation for generating a target video at the original speed through video shooting according to an embodiment of the present disclosure
- FIG. 14 is a structural block diagram 1 of a video recording device provided by an embodiment of the present disclosure.
- FIG. 15 is a second structural block diagram of a video recording device provided by an embodiment of the present disclosure.
- 16 is a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
- FIG. 17 is a schematic diagram of an electronic device provided by another embodiment of the present disclosure.
- FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure.
- the video recording method provided by the embodiment of the present disclosure is applied to a mobile terminal device, such as a smart phone.
- a mobile terminal device such as a smart phone.
- the smart phone is used as the example to illustrate.
- the user operates the smartphone, uses the APP to record video, and adds special effects to the recorded video through the special effects function built in the APP, and finally generates a video work, which can be saved in the APP.
- the user's smartphone can also be saved in the cloud server through local playback, editing, dissemination or deletion for viewing by other visiting users.
- FIG. 2 is a schematic diagram of playing a video template with variable speed special effects in the related art. Referring to FIG.
- Embodiments of the present disclosure provide a video recording method to solve the above problems.
- FIG. 3 is a first schematic flowchart of a video recording method provided by an embodiment of the present disclosure.
- the method of this embodiment can be applied to a mobile terminal device, such as a smart phone, and the video recording method includes:
- variable speed information of the variable speed video where the variable speed information is used to represent a change in the playback speed of the variable speed video.
- a video generally refers to a multimedia file containing audio data and video data, wherein, according to different audio and video compression processing methods, the audio and video data may have various formats.
- Video Interleaved (AVI) format Movie digital video technology (MOV) format, etc.
- the audio data is, for example, Advanced Audio Coding (ACC) format, etc.
- ACC Advanced Audio Coding
- the specific data of the video is not Formats and combinations of audio and video data formats are limited.
- variable-speed video refers to the video data obtained by performing variable-speed processing on the video material, that is, the original video.
- the playback speed exhibits nonlinear changes, such as , In the 0-3 seconds of the variable-speed video, the variable-speed video is played at the normal playback speed, in the 3-5 second, the variable-speed video is played at double speed, and in the 5-7 second, the variable-speed video is played at 0.5 times the speed.
- the video has variable-speed special effects to increase the expressiveness and interest of the video.
- variable speed video includes video data and audio data
- variable speed video is played at variable speed, including the following possible variable speed playback performances: variable speed playback of video data, audio data playback at original speed; video data playback at original speed, Audio data is played at variable speed; both video data and audio data are played at variable speed.
- the speed change information of the speed change video There are many ways to achieve the speed change information of the speed change video. For example, according to the preset mapping information, from the current storage or cloud storage, determine and obtain the speed change information corresponding to the identification information of the speed change video; The video and the corresponding video template of the variable speed information, to obtain the variable speed information of the variable speed video, here, it can be set according to specific needs, and is not specifically limited.
- variable speed information is information used to represent the change of the playback speed of the variable speed video
- variable speed information is equivalent to a mapping relationship between the speed change of the original speed video and the variable speed video.
- 4 is a schematic diagram of performing inversion speed processing on a variable speed video according to the variable speed information.
- the accelerated part in the variable speed video can be added by interpolation. So as to realize the deceleration of this part; and for the decelerated part of the variable speed video, the playback frame is reduced by sampling, so as to realize the acceleration of this part; finally, the inverse speed processing of the variable speed video is realized, and the original speed video is obtained.
- the "original speed” in the original-speed video is relative to the "speed-change" in the variable-speed video. Therefore, the original-speed video is not necessarily data that is completely consistent with the variable-speed video. For example, if the video data in the variable-speed video is the video played at a variable speed of the video material, and the audio data is the audio played at the original speed of the audio data, then in the original-speed video obtained after inversion processing, the video data is the original-speed playback of the video material. video; and audio data is audio data played at variable speed.
- the specific playback speed of the video data and audio data in the original-speed video is not limited, and can be set according to specific application scenarios.
- the duration of the original-speed video after inversion processing and the variable-speed video are not exactly equal.
- FIG. 5 is a schematic diagram of displaying the original-speed video and synchronously shooting the video provided by an embodiment of the present disclosure.
- the audio and/or video displayed in the original-speed video are The playback speed of the content matches the speed when the video is recorded at a normal speed. Therefore, the user operates the terminal device that performs the video recording method provided by this embodiment, and performs video recording according to the video recording time sequence represented by the original speed video. Get a full-speed target video with the same playback duration as the full-speed video.
- the recording time nodes of the original-speed target video and the original-speed video are similar or consistent. Therefore, the original-speed target video can use the video special effects corresponding to the original-speed video, thereby obtaining a video with the same video special effects as the variable-speed video.
- the variable speed target video The time node where the video special effect needs to appear in the original speed target video is the same as the time node where the special effect appears in the variable speed video after the original speed video is changed. Therefore, the inverse transformation of the speed change information is applicable to the original speed target video.
- the speed target video is subjected to variable speed processing, and the variable speed target video with the same special effects as the variable speed video can be obtained.
- variable speed information of the variable speed video is obtained, wherein the variable speed information is used to represent the change of the playback speed of the variable speed video; according to the variable speed information, the variable speed video is subjected to inversion speed processing to obtain the original speed video; the original speed video is displayed, And synchronously shoot the video to generate the original speed target video; perform variable speed processing on the original speed target video according to the variable speed information, and obtain the variable speed target video; since the playback speed of the reversed original speed video is the same as the normal speed of the user's recorded video, through Show the original speed video to the user and guide the user to record the video, which can synchronize the video recorded by the user with the original variable speed video, and then make the special effects in the template match the video content shot by the user, so that the video recorded by the user can directly obtain the original variable speed.
- the special effects in the video solve the problem that the video special effects do not match the video content, and improve the special effects performance of the user's recorded video.
- FIG. 6 is a second schematic flowchart of a video recording method provided by an embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, this embodiment further refines the process of steps S101-S103, and the video recording method includes:
- variable speed video template includes the variable speed video and corresponding variable speed information.
- the variable speed information includes a video variable speed model, and the video variable speed model is used to represent the mapping relationship between the playing speed and the playing time of the variable speed video.
- the variable speed video template may be a preset template class file, and the variable speed video template may be user-defined settings, or preset in the APP of the mobile terminal device, optionally, the user can use the user interface of the APP. (User Interface, UI for short) Edit, add and delete the variable speed video template.
- the variable speed video template includes a variable speed video and a corresponding video variable speed model, and the variable speed model can be used to describe the mapping relationship between the playing speed and the playing time of the variable speed video.
- the video variable speed model is used to characterize the changing law of the playback speed of the variable speed video, and there are various specific implementations of the variable speed model.
- the identifier of the data frame corresponds to a playback speed coefficient; for another example, the variable speed model can be a two-dimensional array, and the array stores the variable speed video at some specific time nodes and the corresponding playback speed coefficient.
- the variable speed video At the 1st second, it corresponds to a speed change factor of 2; at the 1.5th second of the speed change video, it corresponds to a speed change factor of 2.5; at the 3rd second of the speed change video, it corresponds to a speed change factor of 0.5.
- the variable speed coefficient is used to represent the ratio of variable speed playback speed to normal playback speed.
- the specific implementation form of the video speed change model can be set as required, which is not specifically limited here.
- FIG. 7 is a schematic diagram of an implementation manner of a variable speed video template provided on the UI according to an embodiment of the present disclosure.
- the video variable speed model includes the variable speed of the variable speed video.
- the variable speed video in the variable speed video template is set relative to the video variable speed model on the time axis.
- the video variable speed model includes several variable speed anchor points, which represent the speed of the variable speed video at a specific playback time point. Playing speed, a fitting curve is formed between several variable speed anchor points, which is used to indicate the speed change of the variable speed video.
- step S202 includes the following specific steps:
- FIG. 9 is a schematic diagram of a playback time stamp of a variable speed video according to an embodiment of the present disclosure. Steps S2021-S2023 will be described in detail below with reference to FIG. 9 .
- the first time interval is determined according to the interval between the variable speed anchor points corresponding to the variable speed video.
- the corresponding first time interval is also different.
- the derivative of the fitted curve at the shift anchor point is 0.
- integration is performed in the first time interval to determine the time step corresponding to the variable speed anchor point.
- the playback speed value corresponding to the speed change anchor point interpolated on the fitting curve can be determined according to the fitting curve between the speed change anchor points, and then the product of the unit time interval and the corresponding speed value is calculated, and the speed change anchor point All corresponding products are accumulated to obtain the time step between the two shift anchor points. Further, the variable speed video is mapped according to the time step to determine the playback time stamp of the variable speed video. It can be found from Figure 9 that in sections A-B, corresponding to the accelerated playback part of the variable-speed video, the integral calculation result is large, so the playback time stamps on the variable-speed video are relatively sparse; in the second half of sections B-C, corresponding to the speed-down playback of the variable-speed video. In some cases, the integral calculation result is small, so the playback timestamps on the variable speed video are denser.
- a variable-speed video is composed of multiple video frames, and a video frame is the smallest playback unit of the variable-speed video.
- the method for determining the video frame corresponding to the playback time stamp of the variable speed video includes: decoding the variable speed video according to the playback time stamp, and specifically, according to the video position indicated by the playback time stamp, The variable speed video is positioned, and the video data at the corresponding position is decoded to obtain the video frame corresponding to the playback time stamp.
- FIG. 10 is a schematic diagram of a process for determining a video frame provided by an embodiment of the present disclosure.
- the playback timestamp is information used to represent the playback position of the video data of the original video material.
- the video decoding position is the position corresponding to the playback timestamp.
- the video decoding position, or the video frame corresponding to the playback time stamp is decoded.
- the specific implementation process is the prior art in the art, and details are not repeated here.
- step S204 includes the following specific steps:
- the recording time stamp is a time stamp generated by the terminal device according to the image sampling rate when the user uses the terminal device to record video. More specifically, for example, the recording time stamp includes a sequence of time points with a length of 1000. The interval between time points is 33 milliseconds, i.e. 0 milliseconds for the first time point, 33 milliseconds for the second time point, 66 milliseconds for the third time point, and so on.
- the recording time stamp corresponds to the time stamp when the video was shot at normal speed. Therefore, the recording time stamp represents the playback time stamp of the original speed video.
- the recording time stamp when a certain time stamp node in the recording time stamp coincides with a certain time stamp node of the playback time stamp, it is determined that the recorded video frame corresponding to the recording time stamp is the time.
- the video frame corresponding to the stamp node when a timestamp node in the recording timestamp does not coincide with any node of the playback timestamp, the recorded video frame corresponding to the recording timestamp is determined to be the video frame corresponding to the previous timestamp node, that is, Since the recording timestamps are evenly distributed on the timeline, while the playback timestamps are unevenly distributed on the timeline, when the timestamp node of the recording timestamp is the same as the timestamp node of the playback timestamp, the timestamp node corresponds to the timestamp node.
- the video frame is saved as a valid video frame, and when the time stamp node of the recording time stamp is different from the time stamp node of the playback time stamp, the previous valid video frame is repeatedly saved to achieve the purpose of video frame insertion. Finally, all the saved recorded video frames are combined according to the recording time stamp to synthesize the original speed video.
- variable speed video includes audio data
- step S204 further includes the following specific steps:
- the playback speed of the audio data corresponds to the variable speed information, that is, it is related to the playback time stamp. Therefore, according to the interval between the playback timestamps, the playback speed of the audio frame within the interval can be determined, that is, the playback speed of the unit audio data.
- re-sampling the audio data according to the playback speed to obtain an audio frame corresponding to the playback time stamp comprising: obtaining a preset first audio sampling rate; determining, according to the first audio sampling rate and the playback speed of the audio data, The second audio sampling rate; according to the second audio sampling rate, the audio data is resampled to obtain the audio frame corresponding to the playback time stamp.
- the playback speed of the unit audio data may be based on the normal speed, for example, the playback speed is double speed, triple speed, 0.5 speed, and the like.
- the first audio sampling rate is the original sampling rate of the audio data, and on the basis of the first audio sampling rate according to the playback speed of the unit audio data, resampling is performed at the second audio sampling rate, including up-sampling and down-sampling, so as to realize sound to get the audio frame corresponding to the playback timestamp.
- the following is an explanation based on an embodiment.
- the variable speed video includes unit audio data with a sampling rate of 44k sampling points and a duration of 1 second.
- the playback speed corresponding to the unit audio data is double speed, and the unit audio data needs to be accelerated twice. That is, through resampling, only 22k sampling points in the unit of audio data are retained.
- the playback can be completed in 0.5 seconds, which is equivalent to double the playback speed.
- variable speed information corresponding to the normal speed playback start timestamp of the current audio frame is the start timestamp of the fitting curve variable speed playback
- variable speed information corresponding to the normal speed playback end timestamp of the current audio frame The end timestamp of the variable speed playback of the fitting curve in the middle curve.
- variable speed video may include both audio data and video material, and then the generated video frames include both audio frames and video frames.
- the variable-speed video may only include audio data or video material, so that only audio frames or video frames are generated. It can be set according to different application scenarios, which is not specifically limited here.
- the video frames can be combined to obtain the original speed video.
- the video frame includes an audio frame and a video frame.
- the audio and video frames can be synchronized with the audio and video. deal with.
- correction is performed according to the display timestamp information corresponding to the audio frame and the video frame so that the difference between the two is smaller than a preset threshold, that is, the synchronization of the audio frame and the video frame.
- the difference between the display time stamp of the audio frame and the display time stamp of the video frame is calculated in real time.
- the difference is positive
- the display time of the audio frame is indicated.
- Stamp in front of the display timestamp of the video frame that is, the audio frame is too fast.
- the audio frame is delayed; if the difference is negative, it means that the display timestamp of the audio frame is behind the display timestamp of the video frame. , that is, the audio frame is slow.
- the video frame is delayed to synchronize the audio frame and the video frame.
- the first interactive interface is a channel for information exchange between people and the mobile terminal device.
- the user inputs information and performs operations to the mobile terminal device through the first interactive interface, and the mobile terminal device provides information to the user through the interactive interface.
- the first interactive interface may be a user interface within the APP.
- FIG. 12 is a schematic diagram of a first interactive interface provided by a disclosed embodiment, with reference to FIG. 12 .
- the first interactive interface includes a first display area and a second display area, wherein the first display area displays the video currently being recorded by the user; the second display area displays the original-speed video.
- the first interactive interface can also play audio data in the original-speed video, so as to provide a better guiding function for the user.
- FIG. 13 is a schematic diagram of an operation of generating a target video at the original speed through video shooting provided by an embodiment of the present disclosure.
- the original speed is played synchronously.
- the time display information is used to indicate the completed progress or remaining progress of the currently recorded video relative to the original-speed video.
- the recorded original-speed target video is the same as or similar to the original-speed video in the time sequence and time node of the recorded content.
- the recorded character walks to position A at t1 second, At this time, the corresponding character has a special effect; the recorded character has reached the B position at t2 seconds, and the corresponding character has the b special effect at this time.
- the recorded character in the to-be-processed video moves to position A at t1 seconds, and moves to position B at t2 seconds, which matches the video data of the original-speed video.
- variable speed information corresponds to the variable speed special effect of the variable speed video
- the generated target video data is recorded when the character is at t1 second. At this time, it reaches the position A, and the corresponding character has the special effect a; the recorded character reaches the position B at t2 seconds, and the special effect b appears on the corresponding character at this time.
- the purpose of quickly adding video special effects to the original speed target video is achieved.
- FIG. 14 is a structural block diagram 1 of a video recording device provided by an embodiment of the present disclosure.
- the video recording device 3 includes:
- the inverting speed unit 32 is used to perform inverting speed processing on the variable speed video according to the variable speed information to obtain the original speed video;
- the generating unit 33 is used to display the original speed video, and synchronously shoot the video to generate the original speed target video;
- the speed change unit 34 is configured to perform speed change processing on the original speed target video according to the speed change information to obtain the speed change target video.
- the acquisition unit 31 , the inverting speed unit 32 , the generating unit 33 , and the speed changing unit 34 are connected in sequence.
- the video recording device 3 provided in this embodiment can execute the technical solution of the method embodiment shown in FIG. 3 , and the implementation principle and technical effect thereof are similar, and are not repeated here.
- FIG. 15 is a second structural block diagram of a video recording device provided by an embodiment of the present disclosure.
- the video recording device 4 provided by this embodiment is based on the video recording device shown in FIG. 15 , further refines the generating unit 33, and performs The functions of the acquisition unit 31 and the inverter unit 32 are further defined, wherein:
- the speed inversion unit 32 is specifically configured to: determine the playback time stamp of the variable speed video according to the speed change information, wherein the playback time stamp is the time stamp for playing the variable speed video at the original speed; Play the video frame corresponding to the timestamp; generate the original-speed video according to the video frame.
- the variable speed information includes a variable speed anchor point of the variable speed video, and a playback speed corresponding to the variable speed anchor point; when determining the playback time stamp of the variable speed video according to the variable speed information, the inverting speed unit 32 is specifically used for : Determine the first time interval according to the variable speed anchor point of the variable speed video; determine the time step corresponding to the variable speed anchor point according to the integral of the playback speed corresponding to the variable speed anchor point of the variable speed video in the first time interval; , which determines the playback timestamp of the variable speed video.
- the speed inversion unit 32 when determining the video frame corresponding to the playback time stamp of the variable speed video, is specifically configured to: decode the variable speed video according to the playback time stamp, and obtain a video frame corresponding to the playback time stamp.
- the video frame; the variable speed unit 34 is specifically used to: obtain a preset recording time stamp, and the recording time stamp is used to represent the playback time stamp of the original speed video; according to the correspondence between the recording time stamp and the playback time stamp, determine the corresponding recording time stamp. Record video frames, and combine the recorded video frames into a full-speed video.
- variable speed video includes audio data
- the inverting speed unit 32 is further configured to: determine the playback speed of the audio data corresponding to the playback time stamp; resample the audio data according to the playback speed to obtain a playback time corresponding to the playback time. Stamp the corresponding audio frame.
- the variable speed unit 34 is configured to: generate the original speed video according to the video frame and the corresponding audio frame.
- the inversion unit 32 when re-sampling the audio data according to the playback speed to obtain the audio frame corresponding to the playback time stamp, is specifically used for: acquiring a preset first audio sampling rate; The first audio sampling rate and the playback speed of the audio data determine the second audio sampling rate; according to the second audio sampling rate, the audio data is resampled to obtain an audio frame corresponding to the playback time stamp.
- the shifting unit 34 is further configured to: perform audio-video synchronization on the video frame and the audio frame.
- the generating unit 33 includes:
- the display module 331 is used to display the original-speed video on the first interactive interface.
- the recording module 332 is configured to perform video shooting synchronously while displaying the original-speed video on the first interactive interface to generate the original-speed target video.
- the original-speed video includes original-speed video data and/or original-speed audio data
- the display module 331 is specifically configured to: play the original-speed video data and/or the original-speed audio on the first interactive interface data.
- the device provided in this embodiment can be used to implement the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again in this embodiment.
- FIG. 16 is a schematic diagram of an electronic device provided by an embodiment of the disclosure. As shown in FIG. 16 , the electronic device 5 provided by this embodiment includes: a memory 51 , a processor 52 and a computer program.
- the computer program is stored in the memory 51 and configured to be executed by the processor 52 to implement the video recording method provided by any one of the embodiments corresponding to FIGS. 3 to 15 of the present disclosure.
- the memory 51 and the processor 52 are connected through a bus 53 .
- FIG. 17 it shows a schematic structural diagram of an electronic device 6 suitable for implementing an embodiment of the present disclosure
- the electronic device 6 may be a terminal device or a server.
- the terminal equipment may include, but is not limited to, such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, referred to as PDA), tablet computers (Portable Android Device, referred to as PAD), portable multimedia players (Portable Media Player, PMP for short), mobile terminals such as in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, and the like.
- PDA Personal Digital Assistant
- PAD Portable Android Device
- PMP portable multimedia players
- mobile terminals such as in-vehicle terminals (such as in-vehicle navigation terminals), etc.
- fixed terminals such as digital TVs, desktop computers, and the like.
- the electronic device 6 shown in FIG. 17 is only an example, and should not impose any limitations
- the electronic device 6 may include a processing device (such as a central processing unit, a graphics processor, etc.) 61, which may be stored in a read-only memory (Read Only Memory, ROM for short) 62 according to a program or from a storage device 68 to perform various appropriate actions and processes by loading a program into a random access memory (Random Access Memory, RAM for short) 63 .
- ROM Read Only Memory
- RAM Random Access Memory
- RAM 63 random access memory
- various programs and data required for the operation of the electronic device 6 are also stored.
- the processing device 61, the ROM 62, and the RAM 63 are connected to each other through a bus 64.
- An Input/Output (I/O for short) interface 65 is also connected to the bus 64 .
- the following devices can be connected to the I/O interface 65: input devices 66 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD for short) ), an output device 67 of a speaker, a vibrator, etc.; a storage device 68 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 69.
- Communication means 69 may allow electronic device 6 to communicate wirelessly or by wire with other devices to exchange data. While Figure 17 shows the electronic device 6 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
- embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
- the computer program may be downloaded and installed from the network via the communication device 69, or from the storage device 68, or from the ROM 62.
- the processing device 61 When the computer program is executed by the processing device 61, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
- the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
- the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above.
- Computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Erasable Programmable Read-Only Memory (EPROM or flash memory for short), optical fiber, Portable Compact Disk Read-Only Memory (CD-ROM for short), optical storage device, magnetic storage device, or Any suitable combination of the above.
- a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
- the program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to: electric wire, optical cable, radio frequency (RF for short), etc., or any suitable combination of the above.
- the above-mentioned computer-readable medium may be contained in the above-mentioned mobile terminal device; or may exist alone without being assembled into the mobile terminal device.
- the above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the mobile terminal device, the mobile terminal device is caused to execute the methods shown in the above embodiments.
- Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language.
- 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.
- the remote computer can be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or, can be connected to an external A computer (eg using an internet service provider to connect via the internet).
- LAN Local Area Network
- WAN Wide Area Network
- each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
- the functions noted in the blocks 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.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner.
- the name of the unit does not constitute a limitation of the unit itself under certain circumstances, for example, the first obtaining unit may also be described as "a unit that obtains at least two Internet Protocol addresses".
- exemplary types of hardware logic components include: Field-Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASICs), proprietary standard Product (Application Specific Standard Product, ASSP), System-on-a-chip (SOC), Complex Programmable Logic Device (CPLD), etc.
- FPGA Field-Programmable Gate Arrays
- ASICs Application Specific Integrated Circuits
- ASSP Application Specific Standard Product
- SOC System-on-a-chip
- CPLD Complex Programmable Logic Device
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
- the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
- machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory erasable programmable read only memory
- CD-ROM compact disk read only memory
- magnetic storage or any suitable combination of the foregoing.
- a video recording method including:
- variable speed information of the variable speed video wherein the variable speed information is used to represent the change of the playback speed of the variable speed video; according to the variable speed information, perform inversion processing on the variable speed video to obtain the original speed video; display the original speed video; speed video, and synchronously shoot the video to generate the original speed target video; perform variable speed processing on the original speed target video according to the variable speed information to obtain the variable speed target video.
- performing inversion processing on the variable-speed video according to the variable-speed information to obtain the original-speed video includes: determining, according to the variable-speed information, a playback time stamp of the variable-speed video,
- the play time stamp is a time stamp for playing the variable speed video at the original speed; a video frame corresponding to the play time stamp of the variable speed video is determined; and the original speed video is generated according to the video frame.
- the speed change information includes a speed change anchor point of the speed change video, and a playback speed corresponding to the speed change anchor point; according to the speed change information, a playback timestamp of the speed change video is determined , including: determining a first time interval according to the speed change anchor point of the speed change video; The corresponding time step; according to the time step, determine the playback time stamp of the variable speed video.
- determining the video frame corresponding to the playback time stamp of the variable speed video includes: decoding the variable speed video according to the playback time stamp to obtain a video frame corresponding to the playback time stamp. corresponding video frame; generating the original-speed video according to the video frame, including: obtaining a preset recording timestamp, where the recording timestamp is used to represent the playback timestamp of the original-speed video; according to the recording timestamp The corresponding relationship with the playback time stamp is determined, and the recorded video frame corresponding to the recording time stamp is determined, and the recorded video frame is synthesized into the original-speed video.
- variable speed video includes audio data
- the method further includes: determining a playback speed of the audio data corresponding to the playback time stamp; performing resampling to obtain an audio frame corresponding to the playback time stamp; and generating the original-speed video according to the video frame, including: generating the original-speed video according to the video frame and the corresponding audio frame.
- re-sampling the audio data according to the playback speed to obtain an audio frame corresponding to the playback time stamp includes: acquiring a preset first audio sampling rate; The first audio sampling rate and the playback speed of the audio data determine a second audio sampling rate; according to the second audio sampling rate, the audio data is resampled to obtain a corresponding playback time stamp. audio frame.
- the method further includes: performing audio-video synchronization on the video frame and the audio frame.
- a video recording device comprising:
- an acquisition unit configured to acquire variable speed information of the variable speed video, wherein the variable speed information is used to characterize a change in the playback speed of the variable speed video;
- an inverting speed unit configured to perform inverting processing on the variable speed video according to the variable speed information to obtain the original speed video
- a generating unit for displaying the original speed video, and synchronously shooting the video to generate the original speed target video
- a variable speed unit configured to perform variable speed processing on the original speed target video according to the variable speed information to obtain a variable speed target video.
- the generating unit includes:
- the speed inversion unit is specifically configured to: determine, according to the speed change information, a playback time stamp of the speed change video, where the playback time stamp is the time at which the speed change video is played at the original speed Stamp; determine the video frame corresponding to the playback time stamp of the variable speed video; generate the original speed video according to the video frame.
- the speed change information includes a speed change anchor point of the speed change video, and a playback speed corresponding to the speed change anchor point; the speed inversion unit determines the playback of the speed change video according to the speed change information
- the time stamp is specifically used for: determining the first time interval according to the variable speed anchor point of the variable speed video; The time step corresponding to the variable speed anchor point; according to the time step, the playback timestamp of the variable speed video is determined.
- the speed inversion unit when determining the video frame corresponding to the playback time stamp of the variable speed video, is specifically configured to: decode the variable speed video according to the playback time stamp, and obtain a The video frame corresponding to the playback time stamp; the variable speed unit is specifically used to: obtain a preset recording time stamp, and the recording time stamp is used to represent the playback time stamp of the original-speed video; according to the recording time stamp and the playback time stamp The corresponding relationship between the time stamps is determined, the recorded video frame corresponding to the recording time stamp is determined, and the recorded video frame is synthesized into the original-speed video.
- variable speed video includes audio data
- the inverting speed unit is further configured to: determine the playback speed of the audio data corresponding to the playback time stamp; Resampling to obtain the audio frame corresponding to the playback time stamp.
- the variable speed unit 34 is configured to: generate the original speed video according to the video frame and the corresponding audio frame.
- the inversion unit when the inversion unit resamples the audio data according to the playback speed to obtain an audio frame corresponding to the playback time stamp, the inversion unit is specifically configured to: acquire a preset first audio sampling rate; determining a second audio sampling rate according to the first audio sampling rate and the playback speed of the audio data; re-sampling the audio data according to the second audio sampling rate to obtain the same Play the audio frame corresponding to the timestamp.
- the speed change unit is further configured to: perform audio-video synchronization on the video frame and the audio frame.
- the generating unit includes:
- the display module is used to display the original-speed video on the first interactive interface.
- the recording module is used to simultaneously display the original-speed video on the first interactive interface, and simultaneously shoot the video to generate the original-speed target video.
- the original-speed video includes original-speed video data and/or original-speed audio data
- the display module is specifically configured to: play original-speed video data and/or original-speed audio data on the first interactive interface .
- embodiments of the present disclosure provide an electronic device, including: at least one processor and a memory;
- memory stores instructions for execution by the computer
- the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the video recording method as described above in the first aspect and various possible aspects of the first aspect.
- an embodiment of the present disclosure provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium.
- a processor executes the computer-executable instructions, the first aspect and various possibilities of the first aspect are implemented.
- an embodiment of the present disclosure provides a computer program product, the computer program product includes: a computer program, where the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the computer from the readable storage medium In the program, at least one processor executes the computer program, so that the electronic device executes the above-mentioned first aspect and various possible related video recording methods of the first aspect.
- an embodiment of the present disclosure provides a computer program, where the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program
- the program enables the electronic device to execute the above first aspect and various possible video recording methods involved in the first aspect.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
Claims (12)
- 一种视频录制方法,其特征在于,包括:获取变速视频的变速信息,其中,所述变速信息用于表征所述变速视频的播放速度变化;根据所述变速信息,对所述变速视频进行逆变速处理,得到原速视频;展示所述原速视频,并同步进行视频拍摄,生成原速目标视频;根据所述变速信息对所述原速目标视频进行变速处理,得到变速目标视频。
- 根据权利要求1所述的方法,其特征在于,根据所述变速信息,对所述变速视频进行逆变速处理,得到原速视频,包括:根据所述变速信息,确定所述变速视频的播放时间戳,其中,所述播放时间戳为使所述变速视频原速播放的时间戳;确定与所述变速视频的播放时间戳对应的视频帧;根据所述视频帧,生成所述原速视频。
- 根据权利要求2所述的方法,其特征在于,所述变速信息包括变速视频的变速锚点,以及与所述变速锚点对应的播放速度;根据所述变速信息,确定所述变速视频的播放时间戳,包括:根据所述变速视频的变速锚点,确定第一时间间隔;根据所述变速视频的变速锚点对应的播放速度在所述第一时间间隔内的积分,确定与所述变速锚点对应的时间步长;根据所述时间步长,确定所述变速视频的播放时间戳。
- 根据权利要求2所述的方法,其特征在于,确定与所述变速视频的播放时间戳对应的视频帧,包括:根据所述播放时间戳,对所述变速视频进行解码,得到与所述播放时间戳对应的视频帧;根据所述视频帧,生成所述原速视频,包括:获取预设的录制时间戳,所述录制时间戳用于表征原速视频的播放时间戳;根据所述录制时间戳与所述播放时间戳的对应关系,确定所述录制时间戳对应的录制视频帧,并将所述录制视频帧合成所述原速视频。
- 根据权利要求2所述的方法,其特征在于,所述变速视频中包括音频数据,所述方法还包括:确定所述播放时间戳对应的音频数据的播放速度;根据所述播放速度对所述音频数据进行重采样,得到与所述播放时间戳对应的音频帧;根据所述视频帧,生成所述原速视频,包括:根据所述视频帧和对应的音频帧,生成所述原速视频。
- 根据权利要求5所述的方法,其特征在于,根据所述播放速度对所述音频数据进行重采样,得到与所述播放时间戳对应的音频帧,包括:获取预设的第一音频采样率;根据所述第一音频采样率和所述音频数据的播放速度,确定第二音频采样率;根据所述第二音频采样率,对所述音频数据进行重采样,得到与所述播放时间戳对应的音频帧。
- 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:对所述视频帧和所述音频帧进行音视频同步。
- 一种视频录制设备,其特征在于,包括:获取单元,用于获取变速视频的变速信息,其中,所述变速信息用于表征所述变速视频的播放速度变化;逆变速单元,用于根据所述变速信息,对所述变速视频进行逆变速处理,得到原速视频;生成单元,用于展示所述原速视频,并同步进行视频拍摄,生成原速目标视频;变速单元,用于根据所述变速信息对所述原速目标视频进行变速处理,得到变速目标视频。
- 一种电子设备,其特征在于,包括:至少一个处理器和存储器;所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至7任一项所述的视频录制方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至7任一项所述的视频录制方法。
- 一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序在被处理器执行时实现如权利要求1至7任一项所述的视频录制方法。
- 一种计算机程序,其特征在于,所述计算机程序在被处理器执行时实现如权利要求1至7任一项所述的视频录制方法。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
BR112023014737A BR112023014737A2 (pt) | 2021-01-21 | 2022-01-17 | Método e dispositivo de gravação de vídeo, dispositivo eletrônico e meio de armazenamento |
EP22742125.2A EP4270930A1 (en) | 2021-01-21 | 2022-01-17 | Video recording method and device, electronic device and storage medium |
JP2023544428A JP2024505854A (ja) | 2021-01-21 | 2022-01-17 | ビデオ録画方法、デバイス、電子機器及び記憶媒体 |
US18/356,556 US11908490B2 (en) | 2021-01-21 | 2023-07-21 | Video recording method and device, electronic device and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110080508.7 | 2021-01-21 | ||
CN202110080508.7A CN114827695B (zh) | 2021-01-21 | 2021-01-21 | 视频录制方法、设备、电子设备及存储介质 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/356,556 Continuation US11908490B2 (en) | 2021-01-21 | 2023-07-21 | Video recording method and device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022156646A1 true WO2022156646A1 (zh) | 2022-07-28 |
Family
ID=82524428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/072403 WO2022156646A1 (zh) | 2021-01-21 | 2022-01-17 | 视频录制方法、设备、电子设备及存储介质 |
Country Status (6)
Country | Link |
---|---|
US (1) | US11908490B2 (zh) |
EP (1) | EP4270930A1 (zh) |
JP (1) | JP2024505854A (zh) |
CN (1) | CN114827695B (zh) |
BR (1) | BR112023014737A2 (zh) |
WO (1) | WO2022156646A1 (zh) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004007543A (ja) * | 2002-04-04 | 2004-01-08 | Sony Corp | 撮像装置および撮像方法 |
US20050097614A1 (en) * | 2003-10-31 | 2005-05-05 | Pedlow Leo M.Jr. | Bi-directional indices for trick mode video-on-demand |
US9451328B1 (en) * | 2015-01-08 | 2016-09-20 | The Directv Group, Inc. | Methods and systems for variable speed playback with bi-directionality |
CN106657814A (zh) * | 2017-01-17 | 2017-05-10 | 维沃移动通信有限公司 | 一种视频录制方法及移动终端 |
CN108566519A (zh) * | 2018-04-28 | 2018-09-21 | 腾讯科技(深圳)有限公司 | 视频制作方法、装置、终端和存储介质 |
US20180348992A1 (en) * | 2017-06-01 | 2018-12-06 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
CN109451248A (zh) * | 2018-11-23 | 2019-03-08 | 广州酷狗计算机科技有限公司 | 视频数据的处理方法、装置、终端及存储介质 |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554361A (zh) * | 2014-10-28 | 2016-05-04 | 中兴通讯股份有限公司 | 一种动感视频拍摄的处理方法和系统 |
US9679605B2 (en) * | 2015-01-29 | 2017-06-13 | Gopro, Inc. | Variable playback speed template for video editing application |
CN109845245B (zh) * | 2016-08-19 | 2021-10-22 | 韩国斯诺有限公司 | 动态影像处理方法及计算机可读记录介质 |
CN107948735B (zh) * | 2017-12-06 | 2020-09-25 | 北京乐我无限科技有限责任公司 | 一种视频播放方法、装置及电子设备 |
CN108600615A (zh) * | 2018-04-04 | 2018-09-28 | 深圳市语图科技有限公司 | 一种慢动作录像方法及装置 |
CN108900897B (zh) | 2018-07-09 | 2021-10-15 | 腾讯科技(深圳)有限公司 | 一种多媒体数据处理方法、装置以及相关设备 |
CN108900771B (zh) * | 2018-07-19 | 2020-02-07 | 北京微播视界科技有限公司 | 一种视频处理方法、装置、终端设备及存储介质 |
CN108965705B (zh) * | 2018-07-19 | 2020-04-10 | 北京微播视界科技有限公司 | 一种视频处理方法、装置、终端设备及存储介质 |
CN108616696B (zh) * | 2018-07-19 | 2020-04-14 | 北京微播视界科技有限公司 | 一种视频拍摄方法、装置、终端设备及存储介质 |
CN110797055B (zh) | 2019-10-29 | 2021-09-03 | 北京达佳互联信息技术有限公司 | 多媒体资源合成方法、装置、电子设备及存储介质 |
-
2021
- 2021-01-21 CN CN202110080508.7A patent/CN114827695B/zh active Active
-
2022
- 2022-01-17 EP EP22742125.2A patent/EP4270930A1/en active Pending
- 2022-01-17 WO PCT/CN2022/072403 patent/WO2022156646A1/zh active Application Filing
- 2022-01-17 JP JP2023544428A patent/JP2024505854A/ja active Pending
- 2022-01-17 BR BR112023014737A patent/BR112023014737A2/pt unknown
-
2023
- 2023-07-21 US US18/356,556 patent/US11908490B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004007543A (ja) * | 2002-04-04 | 2004-01-08 | Sony Corp | 撮像装置および撮像方法 |
US20050097614A1 (en) * | 2003-10-31 | 2005-05-05 | Pedlow Leo M.Jr. | Bi-directional indices for trick mode video-on-demand |
US9451328B1 (en) * | 2015-01-08 | 2016-09-20 | The Directv Group, Inc. | Methods and systems for variable speed playback with bi-directionality |
CN106657814A (zh) * | 2017-01-17 | 2017-05-10 | 维沃移动通信有限公司 | 一种视频录制方法及移动终端 |
US20180348992A1 (en) * | 2017-06-01 | 2018-12-06 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
CN108566519A (zh) * | 2018-04-28 | 2018-09-21 | 腾讯科技(深圳)有限公司 | 视频制作方法、装置、终端和存储介质 |
CN109451248A (zh) * | 2018-11-23 | 2019-03-08 | 广州酷狗计算机科技有限公司 | 视频数据的处理方法、装置、终端及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
EP4270930A1 (en) | 2023-11-01 |
US11908490B2 (en) | 2024-02-20 |
CN114827695A (zh) | 2022-07-29 |
US20230368816A1 (en) | 2023-11-16 |
JP2024505854A (ja) | 2024-02-08 |
CN114827695B (zh) | 2023-05-30 |
BR112023014737A2 (pt) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10939069B2 (en) | Video recording method, electronic device and storage medium | |
US11490033B2 (en) | Video generating method, apparatus, electronic device and computer storage medium | |
WO2022048478A1 (zh) | 多媒体数据的处理方法、生成方法及相关设备 | |
CN107613357B (zh) | 声画同步优化方法、装置及可读存储介质 | |
US11670339B2 (en) | Video acquisition method and device, terminal and medium | |
WO2022105597A1 (zh) | 视频倍速播放方法、装置、电子设备及存储介质 | |
KR20220103110A (ko) | 비디오 생성 장치 및 방법, 전자 장치, 및 컴퓨터 판독가능 매체 | |
CN109547841B (zh) | 短视频数据的处理方法、装置及电子设备 | |
WO2022089178A1 (zh) | 视频处理方法及设备 | |
US11928152B2 (en) | Search result display method, readable medium, and terminal device | |
WO2020077914A1 (zh) | 图像处理方法、装置、硬件装置 | |
WO2022042035A1 (zh) | 视频制作方法、装置、设备及存储介质 | |
CN110418183B (zh) | 音视频同步方法、装置、电子设备及可读介质 | |
CN111225232A (zh) | 基于视频的贴纸动画引擎、实现方法、服务器和介质 | |
JP2023549841A (ja) | ビデオ処理方法、装置、電子機器及び記憶媒体 | |
US20230307004A1 (en) | Audio data processing method and apparatus, and device and storage medium | |
CN113507637A (zh) | 媒体文件处理方法、装置、设备、可读存储介质及产品 | |
WO2024046284A1 (zh) | 绘制动画生成方法、装置、设备、可读存储介质及产品 | |
WO2022214101A1 (zh) | 一种视频生成方法、装置、电子设备及存储介质 | |
US11272136B2 (en) | Method and device for processing multimedia information, electronic equipment and computer-readable storage medium | |
CN107710754B (zh) | 音视频数据同步方法和装置 | |
WO2022156646A1 (zh) | 视频录制方法、设备、电子设备及存储介质 | |
CN110149528B (zh) | 一种过程录制方法、装置、系统、电子设备、及存储介质 | |
WO2023024983A1 (zh) | 视频录制方法、设备、存储介质及程序产品 | |
WO2022218109A1 (zh) | 交互方法, 装置, 电子设备及计算机可读存储介质 |
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: 22742125 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2023544428 Country of ref document: JP |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112023014737 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 2022742125 Country of ref document: EP Effective date: 20230726 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 11202305576T Country of ref document: SG |
|
ENP | Entry into the national phase |
Ref document number: 112023014737 Country of ref document: BR Kind code of ref document: A2 Effective date: 20230721 |