[go: up one dir, main page]

CN107018443B - Video recording method and device and electronic equipment - Google Patents

Video recording method and device and electronic equipment Download PDF

Info

Publication number
CN107018443B
CN107018443B CN201710084627.3A CN201710084627A CN107018443B CN 107018443 B CN107018443 B CN 107018443B CN 201710084627 A CN201710084627 A CN 201710084627A CN 107018443 B CN107018443 B CN 107018443B
Authority
CN
China
Prior art keywords
picture
video
recording
time point
conversion
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.)
Expired - Fee Related
Application number
CN201710084627.3A
Other languages
Chinese (zh)
Other versions
CN107018443A (en
Inventor
郭宏财
邵昂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuomi Private Ltd
Original Assignee
Hong Kong LiveMe Corp ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hong Kong LiveMe Corp ltd filed Critical Hong Kong LiveMe Corp ltd
Priority to CN201710084627.3A priority Critical patent/CN107018443B/en
Publication of CN107018443A publication Critical patent/CN107018443A/en
Application granted granted Critical
Publication of CN107018443B publication Critical patent/CN107018443B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/439Processing of audio elementary streams
    • H04N21/4392Processing of audio elementary streams involving audio buffer management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/44004Processing 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 video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4402Processing 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
    • H04N21/440236Processing 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 by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

本发明提出一种视频录制方法、装置和电子设备,其中,方法包括:通过在对目标视频播放过程中,分别进行多次图片转化得到多张图片,并记录该目标视频的音频流,在对多张图片作为帧图像进行合成,得到视频流之后,将视频流与音频流进行合成得到录制的视频片段,从而实现了对目标视频的录制,解决了现有技术中移动终端也无法对视频片段进行录制的技术问题,通过本发明实施例满足了用户反复观看的需求。

Figure 201710084627

The present invention proposes a video recording method, device and electronic equipment. The method includes: performing multiple picture conversions during the playback of a target video to obtain multiple pictures, and recording the audio stream of the target video. Multiple pictures are synthesized as frame images. After obtaining the video stream, the video stream and the audio stream are synthesized to obtain the recorded video clips, thereby achieving the recording of the target video and solving the problem that mobile terminals cannot record video clips in the existing technology. As for the technical problem of recording, the embodiments of the present invention satisfy the user's need for repeated viewing.

Figure 201710084627

Description

Video recording method and device and electronic equipment
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a video recording method and device and electronic equipment.
Background
With the continuous development of mobile technology, the functions of the mobile terminal are more and more abundant, a user can perform various tasks such as watching videos, browsing information and playing games on the mobile terminal, and meanwhile, with the development of internet technology, the user can also perform social contact, payment and the like on the mobile terminal.
In the prior art, when a user watches videos or plays games by using a mobile terminal, some wonderful moments are expected to be recorded. For example: when watching a video live broadcast, a user encounters a favorite video clip, even a favorite anchor, and wants to record the video clip and watch the video clip repeatedly. However, in the prior art, due to the characteristics of live video, a user can watch the video only once, and the mobile terminal in the prior art cannot record video clips, so that the requirement of the user for watching the video clips repeatedly cannot be met.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, a first object of the present invention is to provide a video recording method to record video segments.
A second object of the present invention is to provide a video recording apparatus.
A third object of the invention is to propose an electronic device.
To achieve the above object, an embodiment of a first aspect of the present invention provides a video recording method, including:
in the process of playing a target video, respectively carrying out multiple times of picture conversion to obtain multiple pictures, and recording an audio stream of the target video;
synthesizing the plurality of pictures as frame images to obtain a video stream;
and synthesizing the video stream and the audio stream to obtain a recorded video segment.
Optionally, in a possible implementation manner of the embodiment of the present invention, in the process of playing the target video, performing multiple image conversions to obtain multiple images, and recording an audio stream of the target video, includes:
in the target video playing process, when detecting that a user executes the operation of starting recording, recording a system time point of the operation of starting recording as a starting time point;
starting from the initial time point, performing picture conversion on the target video, calculating a difference value between the time point of the picture conversion and the initial time point during each picture conversion, and taking the difference value as a time stamp of the picture obtained by the picture conversion;
recording the audio stream of the target video from the starting time point, and taking the difference value between the time point of playing the audio clip in the audio stream and the starting time point as the time stamp of the corresponding audio clip;
and when detecting that the user executes the operation of finishing the recording, stopping converting the picture and recording the audio stream of the target video.
Optionally, in a possible implementation manner of the embodiment of the present invention, the performing picture conversion on the target video includes:
when the target video is subjected to picture conversion, converting a target visual control preset in a screen including the target video into a control picture;
and synthesizing the control pictures to generate the pictures obtained by converting the pictures.
Optionally, in a possible implementation manner of the embodiment of the present invention, the synthesizing the plurality of pictures as frame images to obtain a video stream includes:
regarding each picture as a frame image, wherein the time stamp of the picture is the time stamp of the frame image;
and synthesizing each frame of image according to the time stamp of each frame of image to obtain the video stream.
Optionally, in a possible implementation manner of the embodiment of the present invention, the synthesizing the video stream and the audio stream to obtain a recorded video segment includes:
and when the video stream and the audio stream are synthesized, carrying out time axis synchronization on the time stamp of each audio clip in the audio stream and the time stamp of each frame image in the video stream to obtain the recorded video clip.
Optionally, in a possible implementation manner of the embodiment of the present invention, before stopping performing picture conversion and stopping recording the audio stream of the target video when the operation of ending recording is detected, the method further includes:
when detecting that the user executes the operation of recording suspension, suspending the picture conversion and suspending the recording of the audio stream of the target video;
when the operation of resuming the recording is detected, calculating the recording pause time;
continuing to convert the picture from the moment when the user is detected to execute recording resuming, and calculating the time point of picture conversion to respectively subtract the time length of recording suspension and the result obtained by subtracting the initial time point to obtain the time stamp of the picture obtained by the picture conversion at each time of picture conversion;
and recording the audio stream of the target video from the starting time point, calculating the time point of playing the audio segment in the audio stream, and respectively subtracting the recording pause time length and the result obtained by subtracting the starting time point to obtain the time stamp corresponding to the audio segment.
Optionally, in a possible implementation manner of the embodiment of the present invention, after the performing the multiple image conversions respectively to obtain multiple images, the method further includes:
adding preset image elements in the picture; the image element comprises a watermark picture.
Optionally, in a possible implementation manner of the embodiment of the present invention, the synthesizing the plurality of pictures as frame images to obtain a video stream includes:
adding a preset target picture to the plurality of pictures obtained by picture conversion;
and synthesizing the target picture and a plurality of pictures obtained by converting the pictures as different frame images to obtain the video stream.
Optionally, in a possible implementation manner of the embodiment of the present invention, the synthesizing the plurality of pictures as frame images to obtain a video stream includes:
correspondingly superposing a preset target picture on a picture obtained by picture conversion to obtain a synthesized picture; the transparency of the target picture is reduced along with the increase of the timestamp, and the transparency of the picture obtained by converting the picture is increased along with the increase of the timestamp;
and synthesizing the synthesized picture as a frame image to obtain a video stream.
According to the video recording method, during the process of playing the target video, the plurality of pictures are respectively converted for a plurality of times to obtain the plurality of pictures, the audio stream of the target video is recorded, the plurality of pictures are synthesized as frame images to obtain the video stream, and then the video stream and the audio stream are synthesized to obtain the recorded video clip, so that the recording of the target video is realized, the technical problem that the mobile terminal cannot record the video clip in the prior art is solved, and the requirement of a user for repeated watching is met through the embodiment of the invention.
To achieve the above object, a second embodiment of the present invention provides a video recording apparatus, including:
the playing module is used for respectively carrying out multiple times of picture conversion to obtain a plurality of pictures and recording the audio stream of the target video in the process of playing the target video;
the frame image module is used for synthesizing the plurality of pictures as frame images to obtain a video stream;
and the recording module is used for synthesizing the video stream and the audio stream to obtain a recorded video segment.
Optionally, in a possible implementation manner of the embodiment of the present invention, the playing module includes:
the first detection unit is used for recording a system time point of the operation of starting recording as a starting time point when the operation of starting recording executed by a user is detected in the process of playing the target video;
the picture conversion unit is used for converting the picture of the target video from the initial time point, calculating the difference value between the time point of the picture conversion and the initial time point during each picture conversion, and taking the difference value as the time stamp of the picture obtained by the picture conversion;
a recording unit, configured to record an audio stream of the target video from the start time point, and use a difference between a time point at which an audio clip in the audio stream is played and the start time point as a timestamp of a corresponding audio clip;
and the second detection unit is used for stopping picture conversion and recording the audio stream of the target video when detecting that the user executes the operation of finishing recording.
Optionally, in a possible implementation manner of the embodiment of the present invention, the picture conversion unit is specifically configured to:
when the target video is subjected to picture conversion, converting a target visual control preset in a screen including the target video into a control picture; and synthesizing the control pictures to generate the pictures obtained by converting the pictures.
Optionally, in a possible implementation manner of the embodiment of the present invention, the frame image module is specifically configured to:
regarding each picture as a frame image, wherein the time stamp of the picture is the time stamp of the frame image; and synthesizing each frame of image according to the time stamp of each frame of image to obtain the video stream.
Optionally, in a possible implementation manner of the embodiment of the present invention, the recording module is specifically configured to:
and when the video stream and the audio stream are synthesized, carrying out time axis synchronization on the time stamp of each audio clip in the audio stream and the time stamp of each frame image in the video stream to obtain the recorded video clip.
Optionally, in a possible implementation manner of the embodiment of the present invention, the playing module further includes:
the third detection unit is used for pausing the picture conversion and pausing the recording of the audio stream of the target video when the operation of pausing the recording executed by the user is detected;
the fourth detection unit is used for calculating the recording pause time length when the user is detected to execute the operation of resuming the recording; continuing to convert the picture from the moment when the recording is detected to be resumed, and calculating the time point of picture conversion to respectively subtract the time length for suspending the recording and the result obtained by subtracting the initial time point when the picture is converted every time to obtain the time stamp of the picture obtained by the picture conversion; and recording the audio stream of the target video from the starting time point, calculating the time point of playing the audio segment in the audio stream, and respectively subtracting the recording pause time length and the result obtained by subtracting the starting time point to obtain the time stamp corresponding to the audio segment.
Optionally, in a possible implementation manner of the embodiment of the present invention, the apparatus further includes:
the editing module is used for adding preset image elements in the picture; the image element comprises a watermark picture.
Optionally, in a possible implementation manner of the embodiment of the present invention, the frame image module includes:
the adding unit is used for adding a preset target picture to the plurality of pictures obtained by picture conversion;
and the first synthesis unit is used for synthesizing the target picture and a plurality of pictures obtained by converting the pictures as different frame images to obtain a video stream.
Optionally, in a possible implementation manner of the embodiment of the present invention, the frame image module includes:
the superposition unit is used for correspondingly superposing a preset target picture on a picture obtained by picture conversion to obtain a synthesized picture; the transparency of the target picture is reduced along with the increase of the timestamp, and the transparency of the picture obtained by converting the picture is increased along with the increase of the timestamp;
and the second synthesis unit is used for synthesizing the synthesized picture as a frame image to obtain a video stream.
According to the video recording device provided by the embodiment of the invention, in the process of playing the target video, multiple pictures are respectively converted for multiple times to obtain multiple pictures, the audio stream of the target video is recorded, the multiple pictures are synthesized as frame images to obtain the video stream, and then the video stream and the audio stream are synthesized to obtain the recorded video clip, so that the recording of the target video is realized, the technical problem that the mobile terminal cannot record the video clip in the prior art is solved, and the requirement of a user for repeatedly watching is met through the embodiment of the invention.
To achieve the above object, an embodiment of a third aspect of the present invention provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the video recording method according to the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a video recording method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another video recording method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another video recording method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another video recording apparatus according to an embodiment of the present invention; and
fig. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A video recording method and apparatus according to an embodiment of the present invention will be described with reference to the accompanying drawings.
Fig. 1 is a schematic flow diagram of a video recording method according to an embodiment of the present invention, where the method provided in this embodiment may be applied to video recording in a live broadcast scene, may also be applied to video recording in a game scene, and may also be applied to video recording in a video chat scene, and an application scene of video recording is not limited in this embodiment.
As shown in fig. 1, the video recording method includes the steps of:
step 101, in the process of playing the target video, performing multiple times of picture conversion respectively to obtain multiple pictures, and recording the audio stream of the target video.
Specifically, in the target video playing process, when an operation of starting recording is detected, a system time point at which the operation of starting recording is detected is recorded as a start time point. And carrying out picture conversion on the target video from the starting time point, calculating the difference value between the picture conversion time point and the starting time point when the picture is converted every time, and taking the difference value as the time stamp of the picture obtained by the picture conversion. And simultaneously, recording the audio stream of the target video from the starting time point, and taking the difference value between the time point of playing the audio clip in the audio stream and the starting time point as the time stamp of the corresponding audio clip. And when the operation of finishing recording is detected, stopping converting the picture and recording the audio stream of the target video.
And 102, synthesizing a plurality of pictures serving as frame images to obtain a video stream.
Specifically, for each picture, the picture is taken as a frame image, wherein the timestamp of the frame image is the timestamp of the picture. And synthesizing the frame images on a time axis of the video according to the sequence of the time stamps of the frame images to obtain the video stream.
And 103, synthesizing the video stream and the audio stream to obtain a recorded video segment.
Specifically, when the video stream and the audio stream are synthesized, time axis synchronization is performed on the time stamp of each audio clip in the audio stream and the time stamp of each frame image in the video stream, so that the recorded video clip is obtained.
As a possible implementation manner, the method provided by this embodiment may be executed by a mobile terminal based on an IOS operating platform, the IOS is a mobile operating system developed by apple, and is mainly used for mobile devices such as iPhone or iPad, and the IOS operating platform provides a method that can generate a specified visual control (UIView) and a contained sub UIView into one picture.
When the user specifies the UIView, the user may specify all uiviews in the screen on which the target video is displayed, or may specify some uiviews, which is not limited in this embodiment.
In the embodiment, a plurality of pictures are obtained by respectively performing picture conversion for a plurality of times in the process of playing the target video, the audio stream of the target video is recorded, the plurality of pictures are synthesized as frame images to obtain the video stream, and then the video stream and the audio stream are synthesized to obtain the recorded video clip, so that the recording of the target video is realized, the technical problem that the mobile terminal cannot record the video clip in the prior art is solved, and the requirement of a user for repeated watching is met through the embodiment of the invention.
To clearly illustrate the previous embodiment, the present embodiment provides another video recording method, where the method provided by the present embodiment can be applied in a live application scenario to record a live video, and fig. 2 is a schematic flow diagram of another video recording method provided by the embodiment of the present invention, and as shown in fig. 2, the video recording method includes the following steps:
step 201, when detecting that the user presses the 'record screen button' for a long time, recording the system time point when the user presses the 'record screen button' for a long time, and taking the time point as the starting time point.
Specifically, in the present embodiment, long-pressing the "record screen button" is an operation of starting recording, and when it is detected that the user long-pressing the "record screen button", the video recording task is started. Video recording task the video recording task starts a timer, so as to carry out a plurality of times of picture conversion and record the audio stream of the target video at a certain preset time interval. Since the timestamp of each frame image needs to be determined according to the system time point when the video is generated, the video recording task needs to record the current time point (startTime) of the system as the starting time point when the video recording task starts to be executed.
At step 202, a file is created for saving the recorded video segments.
Specifically, the video recording task creates a file in the file system of the mobile terminal, which is used to store the finally recorded video segment. Generally, the video recording task names the file by using a fixed name, so that as a possible implementation form, if the file with the name does not exist in the file system of the mobile terminal, a file is newly created in the file system. As another implementation form, the file with the name already exists in the file system of the mobile terminal, and after the existing file is deleted, a file with the name is newly built in the file system. After the file is created, the audio stream input source and the video stream input source of the target video are turned on, ready to start recording.
And 203, converting the target video to obtain a picture obtained by converting the picture, and merging the watermark picture to the picture obtained by converting the picture.
Specifically, the video recording task converts each specified visual control in the screen into a corresponding control picture, and then synthesizes each control picture into a picture obtained by converting the picture according to the relative position between each visual control. In this embodiment, after the picture is converted to obtain the picture, the picture may be edited, and the preset watermark picture is superimposed on the picture obtained by the current picture conversion. In this embodiment, the video source graphic identifier may be specifically used as the content of the watermark picture.
And 204, calculating a difference value between the time point of the image conversion and the initial time point, and taking the difference value as a time stamp of the image obtained by the image conversion.
Specifically, the video recording task records a time point of this picture conversion, that is, a difference (Δ vt ═ currentTime-startTime) between a current time point (currentTime) and a starting time point (startTime), and takes the difference (Δ vt) as a timestamp of the picture obtained by this picture conversion.
And step 205, adding the picture obtained by converting the picture as a frame of image in the video stream into the recorded video clip.
Specifically, the video recording task binds the picture obtained by the picture conversion and the timestamp (delta vt) of the picture, further converts the picture into a specific data type of an operating system, obtains a frame of image, and adds the frame of image into the recorded video clip in a video stream mode.
Step 206, recording the audio stream of the main broadcast in the target video played by the player to obtain an audio segment, and taking the difference between the time point of playing the audio segment in the audio stream and the starting time point as the time stamp of the corresponding audio segment.
Step 207, converting the audio clips and the corresponding time stamps into audio streams, and inserting the audio clips into the positions of the corresponding frame images in a time axis synchronization manner according to the time stamps of the audio clips and the time stamps of the frame images in the audio streams.
It should be noted that, during the recording process, steps 203 to 207 need to be repeatedly executed until the recording is finished or suspended.
And step 208, stopping picture conversion and recording the audio stream of the target video when detecting that the user executes the operation of finishing recording, and finishing recording.
In this embodiment, the operation of ending the recording is specifically to release the "recording screen button".
Specifically, when the user is detected to perform an operation of releasing the "record screen button", the timer is turned off, the audio stream input source is turned off, and the video recording task is ended.
And 209, synthesizing a preset target picture serving as a frame image with a frame image formed by a plurality of pictures obtained by converting the preset target picture into the picture to obtain a recorded video clip.
Wherein, the target picture can be an advertisement picture.
Specifically, there are at least two possible implementations of synthesizing a preset target picture as a frame image with a frame image formed by a plurality of pictures obtained by converting the preset target picture into the picture.
As a possible implementation manner, a preset target picture is correspondingly superposed on a picture obtained by picture conversion to obtain a synthesized picture; and the transparency of the target picture is reduced along with the increase of the timestamp, and the transparency of the picture obtained by converting the picture is increased along with the increase of the timestamp.
As another possible implementation manner, a preset target picture is added to the multiple pictures obtained by picture conversion, and the target picture and the multiple pictures obtained by picture conversion are synthesized as different frame images.
Generally, the target picture may be synthesized as the last few frames of images, that is, the target picture is inserted after the last picture or several pictures converted from the last picture. Thereby enabling the user to view the promoted advertising information after viewing the recorded video clip.
Step 210, invoking a player to preview the recorded video segment.
Further, after previewing, a control for sharing, saving or canceling the video clip is displayed, and a user selects a required operation from the sharing, saving or canceling.
In the embodiment, a plurality of pictures are obtained by respectively performing picture conversion for a plurality of times in the process of playing the target video, the audio stream of the target video is recorded, the plurality of pictures are synthesized as frame images to obtain the video stream, and then the video stream and the audio stream are synthesized to obtain the recorded video clip, so that the recording of the target video is realized, the technical problem that the mobile terminal cannot record the video clip in the prior art is solved, and the requirement of a user for repeated watching is met through the embodiment of the invention.
In order to clearly illustrate the previous embodiment, this embodiment further provides another video recording method, and fig. 3 is a schematic flow chart of the another video recording method provided in the embodiment of the present invention, where the method provided in this embodiment can implement breakpoint recording, and on the basis of the video recording method provided in fig. 2, after step 207, as shown in fig. 3, the method further includes:
step 301, when detecting that the user performs the operation of recording suspension, suspending the picture conversion and suspending the recording of the audio stream of the target video.
Specifically, the operation of suspending recording in this embodiment may specifically be clicking a button of "suspend recording screen". When it is detected that the user clicks the "pause recording screen" button, the audio stream for performing the picture conversion and pausing the recording of the target video is paused, that is, the steps 203 to 207 are not performed any more, but the playing of the target video, that is, the playing of the live broadcast in the present embodiment, is not affected.
Step 302, when detecting that the user executes the operation of resuming the recording, calculating the time length of suspending the recording.
Specifically, the operation of resuming recording in this embodiment may specifically be clicking a "continue recording screen" button. And starting timing by the video recording task from the time when the user executes the operation of suspending recording, and taking the time length obtained by timing as the time length of suspending recording until the operation of clicking the button of 'continuing recording screen' is detected.
Step 303, continuing to perform picture conversion on the target video to obtain a picture obtained by the picture conversion, and calculating a corresponding timestamp according to the recording pause time.
Specifically, the step of performing picture conversion on the target video is continuously performed from the moment when the user is detected to perform recording resuming. The calculation method of the time stamp is different from that of the previous embodiment, and specifically, when the video recording task performs each picture conversion, the time point of the picture conversion is calculated to respectively subtract the recording pause time and the initial time point, so as to obtain the time stamp of the picture obtained by the picture conversion.
Furthermore, the watermark picture can be merged to the picture obtained by converting the picture.
And step 304, adding the picture obtained by converting the picture as a frame of image in the video stream into the recorded video clip.
Step 305, continue recording the audio stream of the target video, and obtain the audio segment and the corresponding timestamp.
Specifically, when calculating the time stamp corresponding to the audio segment, the time point of playing the audio segment in the audio stream is subtracted by the recording pause time length and the result obtained by subtracting the start time point, so as to obtain the time stamp corresponding to the audio segment.
Step 306, converting the audio clips and the corresponding time stamps into audio streams, and inserting the audio clips into the positions of the corresponding frame images in a time axis synchronization manner according to the time stamps of the audio clips and the time stamps of the frame images in the audio streams.
It should be noted that, during the recording process, steps 303 to 306 need to be repeatedly executed until the recording is finished or is suspended again. When the multiple times of pausing are performed, the length of time for pausing the recording is the total length of time for the multiple times of pausing.
In the embodiment, a plurality of pictures are obtained by respectively performing picture conversion for a plurality of times in the process of playing the target video, the audio stream of the target video is recorded, the plurality of pictures are synthesized as frame images to obtain the video stream, and then the video stream and the audio stream are synthesized to obtain the recorded video clip, so that the recording of the target video is realized, the technical problem that the mobile terminal cannot record the video clip in the prior art is solved, and the requirement of a user for repeated watching is met through the embodiment of the invention.
In order to implement the above embodiments, the present invention further provides a video recording apparatus.
Fig. 4 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention, and as shown in fig. 4, the video recording apparatus includes: a play module 41, a frame image module 42 and a recording module 43.
The playing module 41 is configured to perform multiple picture conversions to obtain multiple pictures and record an audio stream of the target video in the process of playing the target video.
And a frame image module 42, configured to synthesize the multiple pictures as frame images to obtain a video stream.
And a recording module 43, configured to synthesize the video stream and the audio stream to obtain a recorded video segment.
Based on the foregoing embodiment, as a possible implementation manner, an embodiment of the present invention provides another video recording apparatus, fig. 5 is a schematic structural diagram of another video recording apparatus provided in an embodiment of the present invention, and on the basis of fig. 4, as shown in fig. 5, a playing module 41 includes: a first detection unit 411, a picture conversion unit 412, a recording unit 413 and a second detection unit 414.
The first detecting unit 411 is configured to, in the process of playing the target video, record, as a start time point, a system time point at which the operation of starting recording is detected when it is detected that the user performs the operation of starting recording.
The picture conversion unit 412 is configured to perform picture conversion on the target video from the starting time point, calculate a difference between the time point of the picture conversion and the starting time point during each picture conversion, and use the difference as a timestamp of a picture obtained by the current picture conversion.
A recording unit 413, configured to record an audio stream of the target video from the start time point, and use a difference between a time point of playing an audio clip in the audio stream and the start time point as a time stamp of the corresponding audio clip.
And a second detecting unit 414, configured to stop performing picture conversion and stop recording the audio stream of the target video when it is detected that the user performs an operation of ending recording.
The picture conversion unit 412 is specifically configured to: when the target video is subjected to picture conversion, converting a target visual control preset in a screen including the target video into a control picture; and synthesizing the control pictures to generate the pictures obtained by converting the pictures.
The frame image module 42 is specifically configured to: regarding each picture as a frame image, wherein the time stamp of the picture is the time stamp of the frame image; and synthesizing each frame of image according to the time stamp of each frame of image to obtain the video stream.
The recording module 43 is specifically configured to: and when the video stream and the audio stream are synthesized, carrying out time axis synchronization on the time stamp of each audio clip in the audio stream and the time stamp of each frame image in the video stream to obtain the recorded video clip.
Further, the playing module 41 further includes: a third detection unit 415 and a fourth detection unit 416.
A third detecting unit 415, configured to pause performing the picture conversion and recording the audio stream of the target video when detecting that the user performs the operation of pausing the recording.
A fourth detecting unit 416, configured to calculate a recording suspension duration when detecting that the user performs an operation of resuming recording; continuing to convert the picture from the moment when the recording is detected to be resumed, and calculating the time point of picture conversion to respectively subtract the time length for suspending the recording and the result obtained by subtracting the initial time point when the picture is converted every time to obtain the time stamp of the picture obtained by the picture conversion; and recording the audio stream of the target video from the starting time point, calculating the time point of playing the audio segment in the audio stream, and respectively subtracting the recording pause time length and the result obtained by subtracting the starting time point to obtain the time stamp corresponding to the audio segment.
Further, the video recording apparatus further includes: an editing module 44.
An editing module 44, configured to add a preset image element to the picture; the image element comprises a watermark picture.
Further, as a possible implementation manner, the frame image module 42 includes: an adding unit and a first synthesizing unit.
And the adding unit is used for adding a preset target picture to the plurality of pictures obtained by picture conversion.
And the first synthesis unit is used for synthesizing the target picture and a plurality of pictures obtained by converting the pictures as different frame images to obtain a video stream.
As another possible implementation, the frame image module 42 includes: a superposition unit and a second synthesis unit.
The superposition unit is used for correspondingly superposing a preset target picture on a picture obtained by picture conversion to obtain a synthesized picture; and the transparency of the target picture is reduced along with the increase of the timestamp, and the transparency of the picture obtained by converting the picture is increased along with the increase of the timestamp.
And the second synthesis unit is used for synthesizing the synthesized picture as a frame image to obtain a video stream.
It should be noted that the foregoing explanation of the embodiment of the video recording method is also applicable to the video recording apparatus of this embodiment, and is not repeated here.
In the embodiment of the invention, a plurality of pictures are obtained by respectively carrying out picture conversion for a plurality of times in the process of playing the target video, the audio stream of the target video is recorded, the video stream is obtained by synthesizing the video stream and the audio stream after the plurality of pictures are taken as frame images, so that the recorded video clip is obtained, the recording of the target video is realized, the technical problem that the mobile terminal cannot record the video clip in the prior art is solved, and the requirement of repeatedly watching by a user is met through the embodiment of the invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
An embodiment of the present invention further provides an electronic device, which includes the apparatus according to any of the foregoing embodiments.
Fig. 6 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the processes of the embodiments shown in fig. 1 to 5 of the present invention, and as shown in fig. 6, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, so as to execute the video recording method according to any one of the foregoing embodiments.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1 to 5 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (19)

1.一种视频录制方法,其特征在于,包括以下步骤:1. a video recording method, is characterized in that, comprises the following steps: 在对目标视频播放过程中,分别进行多次图片转化得到多张图片,并记录所述目标视频的音频流;其中,所述多张图片中的每一张图片是在视频录制时,将屏幕内的指定的各个可视化控件转换成对应的控件图片,进而依据各可视化控件之间的相对位置,将各控件图片合成为一张图片转化得到的;In the process of playing the target video, multiple pictures are converted to obtain a plurality of pictures, and the audio stream of the target video is recorded; wherein, each picture in the plurality of pictures is recorded on the screen when the video is recorded. Each of the specified visual controls inside is converted into a corresponding control picture, and then according to the relative position between each visual control, each control picture is synthesized into one picture and converted; 将所述多张图片作为帧图像进行合成,得到视频流;Synthesizing the multiple pictures as frame images to obtain a video stream; 将所述视频流与所述音频流进行合成得到录制的视频片段。A recorded video clip is obtained by synthesizing the video stream and the audio stream. 2.根据权利要求1所述的视频录制方法,其特征在于,所述在对目标视频播放过程中,分别进行多次图片转化得到多张图片,并记录所述目标视频的音频流,包括:2. video recording method according to claim 1, is characterized in that, described in the target video playback process, carry out multiple picture conversion respectively to obtain multiple pictures, and record the audio stream of described target video, comprising: 在所述目标视频播放过程中,当探测到用户执行开始录制的操作时,记录探测到所述开始录制的操作的系统时间点,作为起始时间点;During the playback of the target video, when it is detected that the user performs the operation to start recording, the system time point at which the operation to start recording is detected is recorded as the start time point; 从所述起始时间点开始,对所述目标视频进行图片转化,在每一次图片转化时,计算图片转化的时间点与所述起始时间点的差值,将所述差值作为本次图片转化得到的图片的时间戳;From the starting time point, the target video is converted into pictures, and in each image conversion, the difference between the time point of image conversion and the starting time point is calculated, and the difference is used as the current time. The timestamp of the image converted from the image; 从所述起始时间点开始,记录所述目标视频的音频流,将播放所述音频流中音频片段的时间点与所述起始时间点的差值,作为对应音频片段的时间戳;Starting from the start time point, record the audio stream of the target video, and use the difference between the time point of playing the audio clip in the audio stream and the start time point as the timestamp of the corresponding audio clip; 当探测到用户执行结束录制的操作时,停止进行图片转化,以及停止记录所述目标视频的音频流。When it is detected that the user performs an operation of ending the recording, the image conversion is stopped, and the audio stream of the target video is stopped from being recorded. 3.根据权利要求2所述的视频录制方法,其特征在于,所述对所述目标视频进行图片转化,包括:3. video recording method according to claim 2, it is characterised in that the described target video is carried out picture conversion, comprising: 在对所述目标视频进行图片转化时,将显示在包括所述目标视频的屏幕内预先设定的目标可视化控件转换为控件图片;When converting the target video into a picture, converting the preset target visual control displayed on the screen including the target video into a control picture; 对各控件图片进行合成,生成图片转化得到的图片。Synthesize the pictures of each control to generate pictures converted from pictures. 4.根据权利要求2所述的视频录制方法,其特征在于,所述将所述多张图片作为帧图像进行合成,得到视频流,包括:4. The video recording method according to claim 2, wherein the multiple pictures are synthesized as frame images to obtain a video stream, comprising: 针对每一张图片,将所述图片作为帧图像,其中,所述图片的时间戳为所述帧图像的时间戳;For each picture, the picture is taken as a frame image, wherein the time stamp of the picture is the time stamp of the frame image; 依据各帧图像的时间戳,对各帧图像进行合成,得到所述视频流。According to the time stamp of each frame image, each frame image is synthesized to obtain the video stream. 5.根据权利要求4所述的视频录制方法,其特征在于,所述将所述视频流与所述音频流进行合成得到录制的视频片段,包括:5. The video recording method according to claim 4, wherein the described video stream and the audio stream are synthesized to obtain a recorded video clip, comprising: 对所述视频流与所述音频流进行合成时,将所述音频流中各音频片段的时间戳,与所述视频流中各帧图像的时间戳进行时间轴同步,得到录制的视频片段。When synthesizing the video stream and the audio stream, the time axis of each audio clip in the audio stream is time-synchronized with the time stamp of each frame image in the video stream to obtain a recorded video clip. 6.根据权利要求2所述的视频录制方法,其特征在于,所述当探测到结束录制的操作时,停止进行图片转化,以及停止记录所述目标视频的音频流之前,还包括:6. video recording method according to claim 2, is characterized in that, when described when detecting the operation of ending recording, stop carrying out picture conversion, and before the audio stream of stop recording described target video, also comprise: 当探测到用户执行暂停录制的操作时,暂停进行图片转化和暂停记录所述目标视频的音频流;When detecting that the user performs the operation of suspending the recording, suspend the picture conversion and suspend the recording of the audio stream of the target video; 当探测到恢复录制的操作时,计算暂停录制的时长;When the operation of resuming recording is detected, calculate the duration of the paused recording; 从探测到用户执行恢复录制的时刻开始,继续进行图片转化,在每一次图片转化时,计算图片转化的时间点分别减去所述暂停录制的时长,以及减去所述起始时间点所得的结果,得到本次图片转化得到的图片的时间戳;From the moment when it is detected that the user resumes recording, the picture conversion is continued, and in each picture conversion, the time point of the picture conversion is calculated by subtracting the duration of the paused recording and subtracting the starting time point. As a result, the timestamp of the image obtained by this image conversion is obtained; 从所述起始时间点开始,记录所述目标视频的音频流,计算播放所述音频流中音频片段的时间点分别减去所述暂停录制的时长,以及减去所述起始时间点所得的结果,得到对应音频片段的时间戳。Starting from the start time point, record the audio stream of the target video, and calculate the time point at which the audio clip in the audio stream is played, minus the duration of the recording pause, and subtract the start time point. As a result, the timestamp of the corresponding audio segment is obtained. 7.根据权利要求1-6任一项所述的视频录制方法,其特征在于,所述分别进行多次图片转化得到多张图片之后,还包括:7. The video recording method according to any one of claims 1-6, characterized in that, after described carrying out multiple picture conversions respectively to obtain multiple pictures, also comprising: 在所述图片中增加预设的图像元素;所述图像元素包括水印图片。A preset image element is added to the picture; the image element includes a watermark picture. 8.根据权利要求1-6任一项所述的视频录制方法,其特征在于,所述将所述多张图片作为帧图像进行合成,得到视频流,包括:8. The video recording method according to any one of claims 1-6, wherein the multiple pictures are synthesized as frame images to obtain a video stream, comprising: 将预设的目标图片增加到图片转化得到的所述多张图片中;adding a preset target picture to the plurality of pictures obtained by picture conversion; 将所述目标图片与图片转化得到的多张图片作为不同的帧图像进行合成,得到视频流。Synthesize the target picture and multiple pictures obtained by converting the pictures as different frame images to obtain a video stream. 9.根据权利要求1-6任一项所述的视频录制方法,其特征在于,所述将所述多张图片作为帧图像进行合成,得到视频流,包括:9. The video recording method according to any one of claims 1-6, wherein the multiple pictures are synthesized as frame images to obtain a video stream, comprising: 将预设的目标图片对应叠加到图片转化得到的图片上,得到合成图片;其中,所述目标图片的透明度随时间戳的增大而减小,所述图片转化得到的图片的透明度随时间戳的增大而增大;The preset target picture is correspondingly superimposed on the picture obtained by the picture conversion to obtain a composite picture; wherein, the transparency of the target picture decreases with the increase of the time stamp, and the transparency of the picture obtained by the picture conversion changes with the time stamp increase and increase; 将所述合成图片作为帧图像进行合成,得到视频流。The synthesized pictures are synthesized as frame images to obtain a video stream. 10.一种视频录制装置,其特征在于,包括:10. A video recording device, comprising: 播放模块,用于在对目标视频播放过程中,分别进行多次图片转化得到多张图片,并记录所述目标视频的音频流,其中,所述图片是在视频录制时,将屏幕内的指定的各个可视化控件转换成对应的控件图片,进而依据各可视化控件之间的相对位置,将各控件图片合成为一张图片转化得到的;The playback module is used to convert multiple pictures to obtain multiple pictures during the playback of the target video, and record the audio stream of the target video. Each visual control is converted into a corresponding control picture, and then according to the relative position between each visual control, each control picture is synthesized into one picture and converted; 帧图像模块,用于将所述多张图片作为帧图像进行合成,得到视频流;a frame image module for synthesizing the multiple pictures as frame images to obtain a video stream; 录制模块,用于将所述视频流与所述音频流进行合成得到录制的视频片段。A recording module, configured to synthesize the video stream and the audio stream to obtain a recorded video clip. 11.根据权利要求10所述的视频录制装置,其特征在于,所述播放模块,包括:11. The video recording device according to claim 10, wherein the playback module comprises: 第一探测单元,用于在所述目标视频播放过程中,当探测到用户执行开始录制的操作时,记录探测到所述开始录制的操作的系统时间点,作为起始时间点;a first detection unit, configured to record, during the playback of the target video, when it is detected that the user performs an operation to start recording, the system time point at which the operation to start recording is detected is recorded as a start time point; 图片转化单元,用于从所述起始时间点开始,对所述目标视频进行图片转化,在每一次图片转化时,计算图片转化的时间点与所述起始时间点的差值,将所述差值作为本次图片转化得到的图片的时间戳;The image conversion unit is used to perform image conversion on the target video from the starting time point, and at each image conversion, calculate the difference between the time point of the image conversion and the starting time point, and convert the The difference is used as the timestamp of the picture obtained by this picture conversion; 记录单元,用于从所述起始时间点开始,记录所述目标视频的音频流,将播放所述音频流中音频片段的时间点与所述起始时间点的差值,作为对应音频片段的时间戳;A recording unit, configured to record the audio stream of the target video from the start time point, and use the difference between the time point at which the audio segment in the audio stream is played and the start time point as the corresponding audio segment the timestamp; 第二探测单元,用于当探测到用户执行结束录制的操作时,停止进行图片转化,以及停止记录所述目标视频的音频流。The second detection unit is configured to stop performing picture conversion and stop recording the audio stream of the target video when it is detected that the user performs an operation of ending recording. 12.根据权利要求11所述的视频录制装置,其特征在于,所述图片转化单元,具体用于:12. video recording device according to claim 11, is characterized in that, described picture conversion unit is specially used for: 在对所述目标视频进行图片转化时,将显示在包括所述目标视频的屏幕内预先设定的目标可视化控件转换为控件图片;对各控件图片进行合成,生成图片转化得到的图片。When converting the target video into a picture, the preset target visual control displayed on the screen including the target video is converted into a control picture; the pictures of each control are synthesized to generate a picture obtained by the picture conversion. 13.根据权利要求11所述的视频录制装置,其特征在于,所述帧图像模块,具体用于:13. The video recording device according to claim 11, wherein the frame image module is specifically used for: 针对每一张图片,将所述图片作为帧图像,其中,所述图片的时间戳为所述帧图像的时间戳;依据各帧图像的时间戳,对各帧图像进行合成,得到所述视频流。For each picture, the picture is taken as a frame image, wherein the time stamp of the picture is the time stamp of the frame image; according to the time stamp of each frame image, each frame image is synthesized to obtain the video flow. 14.根据权利要求13所述的视频录制装置,其特征在于,所述录制模块,具体用于:14. The video recording device according to claim 13, wherein the recording module is specifically used for: 对所述视频流与所述音频流进行合成时,将所述音频流中各音频片段的时间戳,与所述视频流中各帧图像的时间戳进行时间轴同步,得到录制的视频片段。When synthesizing the video stream and the audio stream, the time axis of each audio clip in the audio stream is time-synchronized with the time stamp of each frame image in the video stream to obtain a recorded video clip. 15.根据权利要求11所述的视频录制装置,其特征在于,所述播放模块,还包括:15. The video recording device according to claim 11, wherein the playback module further comprises: 第三探测单元,用于当探测到用户执行暂停录制的操作时,暂停进行图片转化和暂停记录所述目标视频的音频流;The third detection unit is used to suspend image conversion and suspend recording the audio stream of the target video when detecting that the user performs the operation of suspending recording; 第四探测单元,用于当探测到用户执行恢复录制的操作时,计算暂停录制的时长;从探测到恢复录制的时刻开始,继续进行图片转化,在每一次图片转化时,计算图片转化的时间点分别减去所述暂停录制的时长,以及减去所述起始时间点所得的结果,得到本次图片转化得到的图片的时间戳;从所述起始时间点开始,记录所述目标视频的音频流,计算播放所述音频流中音频片段的时间点分别减去所述暂停录制的时长,以及减去所述起始时间点所得的结果,得到对应音频片段的时间戳。The fourth detection unit is used to calculate the duration of the paused recording when it is detected that the user performs the operation of resuming the recording; from the moment when the resumption of the recording is detected, continue to carry out the picture conversion, and calculate the time of the picture conversion in each picture conversion Points are respectively subtracted the duration of the recording pause, and the result obtained by subtracting the starting time point, to obtain the time stamp of the picture obtained by this picture conversion; starting from the starting time point, record the target video The audio stream of the audio stream is calculated, and the time point of playing the audio segment in the audio stream is calculated by subtracting the duration of the recording pause and the result obtained by subtracting the starting time point, to obtain the timestamp of the corresponding audio segment. 16.根据权利要求10-15任一项所述的视频录制装置,其特征在于,所述装置,还包括:16. The video recording device according to any one of claims 10-15, wherein the device further comprises: 编辑模块,用于在所述图片中增加预设的图像元素;所述图像元素包括水印图片。The editing module is used for adding a preset image element to the picture; the image element includes a watermark picture. 17.根据权利要求10-15任一项所述的视频录制装置,其特征在于,所述帧图像模块,包括:17. The video recording device according to any one of claims 10-15, wherein the frame image module comprises: 增加单元,用于将预设的目标图片增加到图片转化得到的所述多张图片中;an adding unit for adding a preset target picture to the plurality of pictures obtained by picture conversion; 第一合成单元,用于将所述目标图片与图片转化得到的多张图片作为不同的帧图像进行合成,得到视频流。The first synthesizing unit is used for synthesizing the target picture and a plurality of pictures obtained by converting the pictures as different frame images to obtain a video stream. 18.根据权利要求10-15任一项所述的视频录制装置,其特征在于,所述帧图像模块,包括:18. The video recording device according to any one of claims 10-15, wherein the frame image module comprises: 叠加单元,用于将预设的目标图片对应叠加到图片转化得到的图片上,得到合成图片;其中,所述目标图片的透明度随时间戳的增大而减小,所述图片转化得到的图片的透明度随时间戳的增大而增大;a superimposing unit, configured to superimpose the preset target picture on the picture obtained by the picture conversion correspondingly to obtain a composite picture; wherein, the transparency of the target picture decreases with the increase of the time stamp, and the picture obtained by the picture conversion The transparency increases with the timestamp; 第二合成单元,用于将所述合成图片作为帧图像进行合成,得到视频流。The second synthesizing unit is used for synthesizing the synthesized picture as a frame image to obtain a video stream. 19.一种电子设备,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行权利要求1-9任一项所述的视频录制方法。19. An electronic device, comprising: a casing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is arranged inside the space enclosed by the casing, and the processor and the memory are arranged on the circuit board The power supply circuit is used to supply power to each circuit or device of the above-mentioned electronic equipment; the memory is used to store the executable program code; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, For performing the video recording method described in any one of claims 1-9.
CN201710084627.3A 2017-02-16 2017-02-16 Video recording method and device and electronic equipment Expired - Fee Related CN107018443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710084627.3A CN107018443B (en) 2017-02-16 2017-02-16 Video recording method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710084627.3A CN107018443B (en) 2017-02-16 2017-02-16 Video recording method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107018443A CN107018443A (en) 2017-08-04
CN107018443B true CN107018443B (en) 2021-02-05

Family

ID=59440414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710084627.3A Expired - Fee Related CN107018443B (en) 2017-02-16 2017-02-16 Video recording method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107018443B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613235B (en) 2017-09-25 2019-12-27 北京达佳互联信息技术有限公司 Video recording method and device
CN107682654B (en) * 2017-09-30 2019-11-26 北京金山安全软件有限公司 Video recording method, shooting device, electronic equipment and medium
CN107820118B (en) * 2017-11-17 2020-01-10 杭州电魂网络科技股份有限公司 Game video recording and playing method and device
CN110012251B (en) * 2018-01-04 2022-05-20 腾讯科技(深圳)有限公司 Video recording method, device and readable storage medium
CN108401124B (en) * 2018-03-16 2020-08-25 广州酷狗计算机科技有限公司 Video recording method and device
CN108449640B (en) * 2018-03-26 2021-05-07 广州虎牙信息科技有限公司 Live video output control method and device, storage medium and terminal
CN108877847B (en) * 2018-05-30 2020-07-24 贝壳找房(北京)科技有限公司 House-speaking editing system and method for house virtual three-dimensional space house-speaking
CN109600563B (en) * 2018-08-01 2020-05-15 北京微播视界科技有限公司 Method and apparatus for determining timestamps
CN109600649A (en) * 2018-08-01 2019-04-09 北京微播视界科技有限公司 Method and apparatus for handling data
CN109379633B (en) 2018-11-08 2020-01-10 北京微播视界科技有限公司 Video editing method and device, computer equipment and readable storage medium
CN110324643B (en) 2019-04-24 2021-02-02 网宿科技股份有限公司 A video recording method and system
CN112397102B (en) * 2019-08-14 2022-07-08 腾讯科技(深圳)有限公司 Audio processing method and device and terminal
CN110896464B (en) * 2019-11-19 2022-03-04 北京奇艺世纪科技有限公司 Audio data generation method, device and system and controller
CN111105816A (en) * 2019-12-16 2020-05-05 安徽必果科技有限公司 Man-machine interactive software screen recording method
CN111189460B (en) * 2019-12-31 2022-08-23 广州展讯信息科技有限公司 Video synthesis conversion method and device containing high-precision map track
CN113365139B (en) * 2020-03-03 2023-05-02 腾讯科技(深圳)有限公司 Video recording method and device based on iOS system and storage medium
CN113645480A (en) * 2021-08-17 2021-11-12 杭州时趣信息技术有限公司 A kind of live video recording method, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011006335A1 (en) * 2009-07-15 2011-01-20 中兴通讯股份有限公司 Method and apparatus for generating video files in video conversation
CN102520843A (en) * 2011-11-19 2012-06-27 上海量明科技发展有限公司 Input method used for collecting image as candidate item and system
CN102903265A (en) * 2012-09-19 2013-01-30 河南智游网络技术有限公司 Method for automatically recording classroom teaching
CN103309667A (en) * 2013-06-14 2013-09-18 珠海全志科技股份有限公司 Method for positioning UI (user interface) control and picture modifying position in Android system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5899578A (en) * 1995-12-25 1999-05-04 Sony Corporation Digital signal processor, processing method, digital signal recording/playback device and digital signal playback method
JP5627860B2 (en) * 2009-04-27 2014-11-19 三菱電機株式会社 3D image distribution system, 3D image distribution method, 3D image distribution device, 3D image viewing system, 3D image viewing method, 3D image viewing device
CN102215429B (en) * 2010-04-01 2013-04-17 安凯(广州)微电子技术有限公司 Recording method for mobile TV
CN103092941B (en) * 2013-01-10 2016-06-29 北京奇虎科技有限公司 The method and apparatus presenting content on an electronic device
CN104202648A (en) * 2014-08-25 2014-12-10 四川长虹电器股份有限公司 Television program recording system
CN104811787B (en) * 2014-10-27 2019-05-07 深圳市腾讯计算机系统有限公司 Game video recording method and device
CN106375696B (en) * 2016-09-30 2019-05-24 腾讯科技(深圳)有限公司 A kind of film recording method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011006335A1 (en) * 2009-07-15 2011-01-20 中兴通讯股份有限公司 Method and apparatus for generating video files in video conversation
CN102520843A (en) * 2011-11-19 2012-06-27 上海量明科技发展有限公司 Input method used for collecting image as candidate item and system
CN102903265A (en) * 2012-09-19 2013-01-30 河南智游网络技术有限公司 Method for automatically recording classroom teaching
CN103309667A (en) * 2013-06-14 2013-09-18 珠海全志科技股份有限公司 Method for positioning UI (user interface) control and picture modifying position in Android system

Also Published As

Publication number Publication date
CN107018443A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107018443B (en) Video recording method and device and electronic equipment
CN106851385B (en) Video recording method and device and electronic equipment
US10580459B2 (en) Dynamic media interaction using time-based metadata
CN105983233B (en) Game history recording device, game history recording method and game history interaction method
GB2593005A (en) Video generation method and device, electronic device and computer storage medium
CN108965706B (en) Video shooting method, device, terminal device and storage medium
CN109068081A (en) Video generation method, device, electronic equipment and storage medium
CN103187082B (en) Information processor, information processing method
US9055272B2 (en) Moving image reproduction apparatus, information processing apparatus, and moving image reproduction method
WO2018133797A1 (en) Video synthesis method and terminal
US11727959B2 (en) Information processing device and content editing method
JP2010045765A (en) Reproducing apparatus
CN106331479B (en) Video processing method and device and electronic equipment
CN109905749B (en) Video playing method and device, storage medium and electronic device
US20170249971A1 (en) Method for generating image in which sound source is inserted and apparatus therefor
CN106303692A (en) Video loading method and device
CN112601127A (en) Video display method and device, electronic equipment and computer readable storage medium
WO2013145034A1 (en) Video display device, video display method, and program
CN110418183B (en) Audio and video synchronization method and device, electronic equipment and readable medium
JP2014130517A (en) Content providing system, content providing device, client device, control method, and program
CN110102057A (en) A kind of cut scene marching method, device, equipment and medium
JP2012169743A (en) Information processing device and information processing method
JP6011920B2 (en) Video display device, video display method, and program
CN107820111B (en) Information equipment
CN113225583B (en) Cloud game progress processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Cayman Islands, Grand Cayman

Applicant after: LIVE.ME Inc.

Address before: Cayman Islands, Grand Cayman

Applicant before: LEMI TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190620

Address after: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant after: HONG KONG LIVE.ME Corp.,Ltd.

Address before: Grand Cayman

Applicant before: LIVE.ME Inc.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210526

Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, Singapore

Patentee after: Zhuomi Private Ltd.

Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Patentee before: HONG KONG LIVE.ME Corp.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210205

CF01 Termination of patent right due to non-payment of annual fee