CN111629255B - Audio and video recording method and device, computer equipment and storage medium - Google Patents
Audio and video recording method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111629255B CN111629255B CN202010429557.2A CN202010429557A CN111629255B CN 111629255 B CN111629255 B CN 111629255B CN 202010429557 A CN202010429557 A CN 202010429557A CN 111629255 B CN111629255 B CN 111629255B
- Authority
- CN
- China
- Prior art keywords
- audio
- video
- multimedia data
- recording
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000008569 process Effects 0.000 claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 9
- 238000003780 insertion Methods 0.000 claims description 2
- 230000037431 insertion Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/915—Television signal processing therefor for field- or frame-skip recording or reproducing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Television Signal Processing For Recording (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
The application provides an audio and video recording method and device, computer equipment and a storage medium. Wherein the method comprises the following steps: acquiring a path of multimedia data and the initial time of inserting the multimedia data into the recorded audio and video; in the current audio and video recording process, if the recording time reaches the initial time, the audio and video data written into the recording channel is replaced by the written multimedia data. When the user records the audio and video, the originally prepared multimedia data can be inserted into the recorded audio and video in real time, and after the recording is finished, the exported audio and video playing file comprises the inserted multimedia data. The user can flexibly insert the required multimedia data in the audio and video recording process, and the user does not need to wait until the audio and video recording is finished, and then insert the required multimedia data in the exported audio and video playing file by utilizing audio and video later-stage editing software, so that the operation is convenient, the processing time can be reduced, and the audio and video recording efficiency can be improved.
Description
Technical Field
The present application relates to the field of video processing technologies, and in particular, to an audio and video recording method and apparatus, a computer device, and a storage medium.
Background
Currently, an internet course (web course for short) is a new learning mode, and is a series of learning courses which are provided for learners and take the internet as a platform, and the contents of the series of learning courses comprise video, pictures, character interaction and the like. Typically, many teacher users insert videos, pictures, etc. at the beginning or end of a recorded video of a lesson to facilitate the creation of an outline of the lesson or to make the lesson video more vivid.
However, the existing recording and playing machine and the recording function of the recording software can only acquire the audio and video data transmitted from the bottom layer encoder, and the audio and video data are packaged and recorded into a video playing file, the data of the bottom layer encoder are mostly acquired from a camera and a sound pick-up, the source is fixed, multimedia data required by a user cannot be inserted randomly, the user can only complete recording and generate the video playing file, the required multimedia data are inserted through post software processing, the user needs time consumption for processing, and the efficiency is low.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides an audio and video recording method, an audio and video recording device, computer equipment and a storage medium.
According to a first aspect of the embodiments of the present application, there is provided an audio and video recording method, including:
acquiring a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
in the current audio and video recording process, if the recording time reaches the initial time, replacing the audio and video data written into the recording channel with the multimedia data.
According to a second aspect of the embodiments of the present application, there is provided an audio and video recording apparatus, the apparatus including:
the acquisition module is configured to acquire a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
and the writing module is configured to replace the audio and video data written into the original recording channel with the multimedia data if the recording time reaches the starting time in the current audio and video recording process.
According to a third aspect of embodiments of the present application, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
acquiring a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
in the current audio and video recording process, if the recording time reaches the initial time, replacing the audio and video data written into the recording channel with the multimedia data.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
in the current audio and video recording process, if the recording time reaches the initial time, replacing the audio and video data written into the recording channel with the multimedia data.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the technical scheme, the recording equipment can acquire the path of the multimedia data and the starting time of inserting the multimedia data into the recorded audio and video, and in the process of recording the audio and video at present, when the audio and video recording time reaches the acquired starting time, the audio and video data written into the recording channel at present is replaced by the written multimedia data. Therefore, when the user records the audio and video, the originally prepared multimedia data (such as audio, video, pictures, slides and the like) can be inserted into the recorded audio and video in real time, and after the recording is finished, the exported audio and video playing file comprises the inserted multimedia data. Therefore, a user can flexibly insert required multimedia data in the audio and video recording process, and the user does not need to wait until the audio and video recording is finished, and then insert the required multimedia data in the exported audio and video playing file by utilizing audio and video later-stage editing software, so that the method is convenient to operate, can greatly reduce the processing time, and effectively improves the audio and video recording efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of an audio and video recording method according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart illustrating another audio and video recording method according to an exemplary embodiment of the present application.
Fig. 3 is a block diagram of an audio/video recording apparatus according to an exemplary embodiment of the present disclosure
Fig. 4 is a block diagram illustrating a computer device according to an exemplary embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The following describes an audio and video recording method, an audio and video recording apparatus, a computer device, and a storage medium in detail with reference to the accompanying drawings. The features of the following examples and embodiments may be combined with each other without conflict.
The application provides an audio and video recording method, which can be applied to equipment with a recording function, such as a computer, a smart phone, a tablet computer, a recorder and the like, and the equipment can be provided with hardware, such as but not limited to an audio input module, a camera module, an image input module and the like, so that the recording function can be realized. It should be understood that the audio-video recording may be only recording audio, only recording video, or simultaneously recording audio and video, and the application is not limited specifically. Fig. 1 is a flowchart illustrating an audio and video recording method according to an exemplary embodiment of the present application. As shown in fig. 1, the audio and video recording method includes the following steps 101 to 102:
In this step, the path of the multimedia data may be a path in which the multimedia data is stored. Taking the example of recording audio and video by a computer, the multimedia data may be stored locally in the computer, and the storage path may be an address or a directory where the multimedia data is stored locally in the computer, for example, in a certain folder stored in a local disk, where the folder may be a folder designated by a user or a default folder set by a recording tool. The multimedia data may also be stored in an external device connected to the computer, such as a usb (universal Serial bus) flash disk, a mobile hard disk, and other external storage devices, and the storage path of the multimedia data may be the address where the multimedia data is stored in the external device. The multimedia data can also be stored in a server or a cloud data center, and the storage path of the multimedia data can be the address of the server or the cloud data center where the multimedia data is stored.
In one possible embodiment, the multimedia data may be audio, video, pictures, slides, etc., the audio may be inserted when only the audio is recorded or the audio and the video are recorded simultaneously, and the video, the pictures, the slides may be inserted when only the video is recorded or the video and the audio are recorded simultaneously. When recording audio and video, only one type of multimedia data can be inserted, and more than one type of multimedia data can be inserted. It should be understood that a segment of multimedia data may be inserted, or more than one segment of multimedia data may be inserted, and the specific type and amount of the multimedia data may be determined according to the audio/video editing requirement of the user, which is not specifically limited in the present application.
The start time of inserting the multimedia data into the recorded audio/video may refer to a start time stamp of the multimedia data in the recorded audio/video, the time stamp may include time, minutes and seconds, for example, 45 minutes and 30 seconds is 00:45:30, and the time stamp may further include microseconds. The starting time for inserting the multimedia data into the recorded audio and video can be set by the user according to the requirement of the user.
And step 102, in the current audio and video recording process, if the recording time reaches the starting time, replacing the audio and video data written into the recording channel with the multimedia data.
In this step, it can be understood that, in the process of recording audio and video, the recording device writes the acquired audio data and video data into the recording channel for recording, the audio data and video data are acquired in real time, the audio data and video data can be acquired through a microphone, a camera and the like, and the video data of screens of a computer, a mobile phone, a tablet computer and the like can also be acquired. The recording device can time the recorded audio and video and calculate the time length of the currently recorded audio and video, and because the recording device acquires the starting time of inserting the multimedia data into the recorded audio and video, when the timed recording time reaches the acquired starting time, the currently written audio and video data is replaced by the multimedia data acquired according to the storage path, so that the multimedia data is inserted into the currently recorded audio and video.
In the audio and video recording method of the above embodiment, the recording device may acquire a path of the multimedia data and a start time of inserting the multimedia data into the recorded audio and video, and replace the audio and video data currently written into the recording channel with the written multimedia data when the recording time of recording the audio and video reaches the acquired start time in the process of currently recording the audio and video. Therefore, when the user records the audio and video, the originally prepared multimedia data (such as audio, video, pictures, slides and the like) can be inserted into the recorded audio and video in real time, and after the recording is finished, the exported audio and video playing file comprises the inserted multimedia data. Therefore, a user can flexibly insert required multimedia data in the audio and video recording process, and the user does not need to wait until the audio and video recording is finished, and then insert the required multimedia data in the exported audio and video playing file by utilizing audio and video later-stage editing software, so that the method is convenient to operate, can greatly reduce the processing time, and effectively improves the audio and video recording efficiency.
In order to facilitate management of related information of the multimedia data, in an exemplary embodiment of the present application, a path of the multimedia data and a start time of inserting the multimedia data into a recorded audio/video are stored in an index file. The related information of the multimedia data which needs to be inserted for recording the audio and video is stored and identified by establishing the index file, so that the recording equipment can quickly acquire the related information of the multimedia data, and the requirement of inserting the multimedia data into the recorded audio and video can be quickly responded.
In an exemplary embodiment of the present application, the index file may further include: and the duration of writing the multimedia data into the recording channel is used for describing the time length from the starting time to the ending time of inserting the multimedia data into the recorded audio and video. That is to say, the user may set the duration length of writing the multimedia data into the recorded audio/video, for example, the user may set the start time of inserting the multimedia data into the recorded audio/video to be 10 minutes and 30 seconds, and the duration to be 5 minutes, that is, the multimedia data starts to be written into the recording channel from 10 minutes and 30 seconds of recording the audio/video, and may last for 5 minutes, and when the recording time of recording the audio/video reaches 15 minutes and 30 seconds, the multimedia data may be stopped from being continuously written into the recording channel.
As an example, the multimedia data that the user needs to insert is a segment of audio or video, and only a part of the audio or video may be inserted according to the requirement, that is, the duration that the recorded audio and video data needs to be written may be identified by setting the duration, so that it may be avoided that all the multimedia data is written into the recorded audio and video data.
As another example, the multimedia data that the user needs to insert is a picture, and the duration can be set to ensure that the picture is continuously written into the recorded audio/video. It can be understood that the picture is written into the recorded audio and video, and each video frame is the same picture.
In another exemplary embodiment of the present application, the index file may further include a start time stamp and an end time stamp of the multimedia data that needs to be written to the recording channel. For example, the inserted multimedia data is a segment of audio or video, the user may choose to intercept a segment of the audio or video to write into the recording channel, where the segment may start and end at any time stamp of the audio or video, and start and end time stamps of the audio or video to be written, and when writing into the recording channel, the recording device may read the audio or video to be written according to the obtained start and end time stamps.
The storage of the related information of the multimedia data in the index file can be represented in various forms that can be accurately read by a computer. Taking an example of inserting a picture, the related information of the multimedia data stored in the index file can be represented as follows:
record_frame_subtitle 2020/03/27 14:00:00
png start time for writing class _ begin.png picture into recorded video
00:00:00,00:03:00
/data/pic/teacher/class_begin.png
// Label shows class _ begin. png picture at the beginning of recording video, duration is 3 minutes
00:40:00,00:40:30
/data/pic/teacher/class_end.png
Identification shows class _ end.png picture at 40 minutes of recording video, duration is 30 seconds
In order to improve the flexibility of audio and video recording, in an exemplary embodiment of the present application, the information of the path, the start time, the duration, and the like of the multimedia data may be read from the index file before starting audio and video recording or during the audio and video recording.
That is to say, before recording the audio and video, the user may add and create an index file to the relevant information such as the path, the start time, the duration and the like of the multimedia data to be inserted, so that the recording device obtains the resource of the multimedia data in advance, and when the recording time of recording the audio and video reaches the obtained start time, the data writing of the recording channel may be switched, and the multimedia data is inserted into the recorded audio and video.
In addition, the user can add relevant information such as a path, starting time, duration and the like of multimedia data to be inserted and establish an index file in the process of recording the audio and video so as to meet the requirement of the user on improvisation and improve the user experience.
It should be understood that, a user establishes an index file in the process of recording an audio/video to meet the requirement that multimedia data is inserted into the currently recorded audio/video, and the requirement may be that the multimedia data is inserted at a certain time after the recording time of the currently recorded audio/video, or that the multimedia data is inserted immediately at the recording time of the currently recorded audio/video.
In an exemplary embodiment of the present application, a user may set a starting time for inserting multimedia data in an index file, where the starting time may be any time after a recording time of a currently recorded audio/video, and it is understood that the starting time is greater than the current recording time and less than a time when the user plans to finish recording.
For example, when a teacher records a web class, when the current recording time is 20 th minute, it is conceivable that a small video of 5 minutes may be inserted and played after 5 minutes of the current recording time so that the time period serves as a time for providing a break between classes of students. Then, the teacher can fill in and establish an index file with information of a path, a start time, a duration and the like of the small video to be inserted in the process of recording the audio and video, the recording device reads the index file to obtain the small video to be inserted, inserts the small video into the currently recorded web lesson video at the 25 th minute according to the index file, and resumes writing in the currently acquired video data of the teacher's lecture at the 30 th minute after continuously playing for 5 minutes.
In another exemplary embodiment of the present application, the user may not set the start time for inserting the multimedia data, and thus, it may be considered that the user needs to insert the multimedia data at the current recording time, and then, when the recording device does not read the start time, the start time for inserting the multimedia data into the recorded audio and video is represented as follows: the time of the path to read the multimedia data from the index file. After the index file is read, the resource of the multimedia data is found immediately according to the path of the read multimedia data, and the read multimedia data is written into the recording channel instead.
In a possible implementation manner, when the index file read by the recording device does not include the start time, a prompt message is output, and the prompt message is used for prompting whether to immediately insert the multimedia data into the recorded audio/video. Therefore, the user can select whether the multimedia data needs to be inserted immediately or not through the prompt message, the requirement of the user is determined again, and if the determined instruction 'yes' of the user is received, the audio and video data written into the recording channel are replaced with the multimedia data immediately; if a negative instruction of 'no' is received from the user, a window or an interface for setting the start time is output to enable the user to refine the setting of the start time in the index file.
In order to facilitate a user to initiate a requirement for inserting multimedia data in a recording process, in an exemplary embodiment of the present application, a recording device may be provided with a service for automatically generating an index file, the user may initiate the requirement for inserting multimedia data by uploading the multimedia data to a designated address or directory, and the recording device may receive the designated address or directory multimedia data and input a path of the multimedia data to the index file based on a user instruction.
For example, the user instruction may be an instruction of "refreshing the index file", and when receiving the instruction, the recording device may automatically generate a new index file, where the file includes a path into which multimedia data for recording audio and video needs to be inserted. The recording device can read the index file and write the multimedia data into the recording channel in real time when reading the path information.
Fig. 2 is a flowchart illustrating a process of writing multimedia data into a recording channel according to an exemplary embodiment of the present application. As shown in fig. 2, the process of writing multimedia data into the recording channel specifically includes steps 202a to 202 b:
It can be understood that the multimedia data to be inserted into the recorded audio and video can be packaged in a specified multimedia packaging format and stored in a file form. In this step, the multimedia data can be transcoded into audio and video frame data with the same encoding parameters as the recorded audio and video based on the encoding parameters configured for the currently recorded audio and video, so that the multimedia data can be inserted into the currently recorded audio and video. The encoding parameters may be obtained from a configuration file of the recording device, and the encoding parameters may include, but are not limited to, at least one of the following parameters: audio coding format, video coding format, bitrate, frame rate, resolution, and the like. As an example, the recording and playing machine may input the encoding parameters and the multimedia data file by means of the encoding and decoding performance of its own bottom layer encoder, and start the bottom layer transcoder to transcode the multimedia data file into the same encoding format as the video source for recording the audio and video in real time, and write the multimedia data into the recording channel in units of frames.
When the multimedia data comprises video, pictures and slides, the multimedia data can be transcoded into video frame data. In one possible implementation, the video Frame data may be I Frame data (Intra-Frame, also known as key Frame). For example, a user needs to insert a picture or a slide in a recorded video and audio, and the picture or slide can be transcoded into an I-frame data insertion. In another possible implementation, the video data may be I Frame data and P Frame data (Predictive-Frame). For example, a user needs to insert multiple pictures, multiple slides or a piece of video in recorded audio and video, and the multiple pictures or the slides or the piece of video can be transcoded into I frame data and P frame data according to a set ratio. As an example, multimedia data is transcoded into video Frame data with a Frame rate of 25fps (Frame Per Second), and the video Frame data within one Second includes 1I Frame data and 24P Frame data, where since the 24P Frame data need to use the I Frame number as a coding reference, the first Frame of the video Frame data is the I Frame data, otherwise, when an audio/video export play is recorded, the P Frame data lacking the I Frame data as a reference Frame is decoded, and a "screen splash" phenomenon may occur.
When the multimedia data includes audio, the audio data may be transcoded into audio frame data. In one possible embodiment, the Audio frame data may be data in an AAC (Advanced Audio Coding) encoding format. Step 202b, suspending writing the audio and video data into a recording channel, and writing the audio and video frame data into the recording channel.
In this step, the real-time collected audio/video data which is being written into the recording channel can be temporarily suspended and replaced by the transcoded audio/video frame data to be written into the recording channel. It is to be understood that the multimedia data can be inserted into a position corresponding to any time stamp in the recorded audio/video. For example, inserting videos, pictures and the like into the beginning of recording audios and videos can be used as a leader of recording audios and videos; for another example, inserting videos, pictures and the like into the end of recording the audio and video can be used as a trailer for recording the audio and video; for another example, the video, the picture, etc. are inserted between the beginning and the end of the recorded audio and video, and can be used as a midfield segment of the recorded audio and video.
When multimedia data is inserted into the beginning or between the beginning and the end of recording audio and video, after the writing of the multimedia data is completed, the audio and video data needs to be continuously written into the recording channel. It can be understood that when the multimedia data is written into the recording channel, the recording device can continue to collect the real-time audio and video data, but the writing of the audio and video data into the recording channel is suspended; and the acquisition of real-time audio and video data can also be suspended, and after the writing of the multimedia data is finished, the audio and video data can be continuously written into the recording channel, namely, the audio and video data acquired in real time are restored to be written into the recording channel again. Any combination of features of any of the above embodiments may be made as long as there are no conflicts or inconsistencies between the combinations of features, but are limited to the space and are not described one by one.
The present application further provides an audio and video recording device, and fig. 3 is a block diagram of a structure of an audio and video recording device according to an exemplary embodiment of the present application. As shown in fig. 3, the apparatus 30 includes: an obtaining module 310 and a writing module 320, wherein:
the acquisition module 310 is configured to acquire a path of multimedia data and a start time of inserting the multimedia data into a recorded audio/video;
the writing module 320 is configured to, in the current audio/video recording process, replace the audio/video data written into the original recording channel with the multimedia data if the recording time reaches the start time.
In an exemplary embodiment of the present application, the writing module includes:
the transcoding submodule is configured to transcode the multimedia data into audio and video frame data based on the encoding parameters of the recorded audio and video;
the pause submodule is configured to pause the writing of the audio and video data into a recording channel;
and the writing submodule is configured to write the audio and video frame data into the recording channel.
In an exemplary embodiment of the present application, the writing module is further configured to continue writing the audio/video data into the recording channel after completing writing the multimedia data.
In an exemplary embodiment of the present application, the path of the multimedia data and the start time of inserting the multimedia data into the recorded audio/video are stored in an index file.
In an exemplary embodiment of the present application, the index file further includes: and the duration of writing the multimedia data into the recording channel is used for describing the time length from the starting time to the ending time of inserting the multimedia data into the recorded audio and video.
In an exemplary embodiment of the present application, the path and the start time of the multimedia data are read from the index file before or during the audio/video recording.
In an exemplary embodiment of the present application, the starting time of inserting the multimedia data into the recorded audio/video is: the time of the path to read the multimedia data from the index file.
In an exemplary embodiment of the present application, the apparatus further includes:
a receiving module configured to receive the multimedia data before reading the index file;
and the entry module is configured to enter the path of the multimedia data into an index file based on a user instruction.
The implementation process of the functions and actions of each module in the above device is detailed in the implementation process of the corresponding steps in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 4 is a block diagram illustrating a structure of a computer device according to an exemplary embodiment of the present application. The computer device 40 includes:
a processor;
a memory for storing a computer program executable by the processor;
wherein execution of the computer program by the processor effects the steps of:
acquiring a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
in the current audio and video recording process, if the recording time reaches the starting time, replacing the audio and video data written into the recording channel with the multimedia data.
In one embodiment, as shown in FIG. 4, the memory may be a non-volatile memory. The computer equipment comprises a processor, a memory and a network interface, wherein the processor reads corresponding computer program instructions in the memory into the memory for operation; the network interface can be used for uploading the recorded audio and video to the internet so as to enable other users to obtain the recorded audio and video. When the multimedia data is stored in the server or the cloud data center, the network interface can also access the corresponding server or the cloud data center according to the storage path of the multimedia data so as to acquire the multimedia data.
The computer device may also include other hardware according to its actual functions, which will not be described in detail.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
in the current audio and video recording process, if the recording time reaches the initial time, replacing the audio and video data written into the recording channel with the multimedia data.
It is understood that the computer-readable storage medium, when running on a computer or other device, may also cause the computer to perform the audio and video recording method described in any of the above embodiments.
Embodiments of the present application may take the form of a computer program product embodied on one or more readable media having program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like. Computer-usable readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer readable media include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), erasable programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (8)
1. An audio and video recording method, characterized in that the method comprises:
acquiring a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video;
in the current audio and video recording process, if the recording time reaches the initial time, replacing the audio and video data written into the recording channel with the multimedia data;
the path of the multimedia data and the starting time of inserting and recording the multimedia data into the audio and video are stored in an index file;
the step of replacing the audio and video data written into the original recording channel with the multimedia data comprises the following steps:
transcoding the multimedia data into audio and video frame data based on the encoding parameters of the recorded audio and video;
suspending writing the audio and video data into a recording channel and writing the audio and video frame data into the recording channel;
after completing the writing of the multimedia data, further comprising:
and continuously writing the audio and video data into the recording channel.
2. The audio-video recording method according to claim 1, wherein the index file further comprises: and the duration for writing the multimedia data into the recording channel is used for describing the time length from the starting time to the ending time of the multimedia data inserted into the recorded audio and video.
3. The audio-video recording method according to claim 1 or 2, wherein the path and the start time of the multimedia data are read from the index file before or during the audio-video recording.
4. The audio-video recording method according to claim 1, wherein the starting time of the multimedia data insertion recording audio-video is as follows: the time of the path to read the multimedia data from the index file.
5. The audio-video recording method according to claim 4, wherein before reading the index file, the method further comprises:
receiving the multimedia data;
and recording the path of the multimedia data into an index file based on a user instruction.
6. An audio-video recording device, characterized in that the device comprises:
the acquisition module is configured to acquire a path of multimedia data and the starting time of inserting the multimedia data into the recorded audio and video; the path of the multimedia data and the starting time of inserting and recording the multimedia data into the audio and video are stored in an index file;
the writing module is configured to replace the audio and video data written into the original recording channel with the multimedia data if the recording time reaches the starting time in the current audio and video recording process;
the write module includes:
the transcoding submodule is configured to transcode the multimedia data into audio and video frame data based on the encoding parameters of the recorded audio and video;
the pause submodule is configured to pause the writing of the audio and video data into a recording channel;
the writing submodule is configured to write the audio and video frame data into the recording channel;
the writing module is further configured to continue writing the audio and video data into the recording channel after completing writing the multimedia data.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the audio-video recording method as claimed in any one of claims 1 to 5 are implemented by the processor when executing said program.
8. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the audio-video recording method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010429557.2A CN111629255B (en) | 2020-05-20 | 2020-05-20 | Audio and video recording method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010429557.2A CN111629255B (en) | 2020-05-20 | 2020-05-20 | Audio and video recording method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111629255A CN111629255A (en) | 2020-09-04 |
CN111629255B true CN111629255B (en) | 2022-07-01 |
Family
ID=72272524
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010429557.2A Active CN111629255B (en) | 2020-05-20 | 2020-05-20 | Audio and video recording method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111629255B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2321462A1 (en) * | 2000-09-29 | 2002-03-29 | Imagictv Inc. | Digital interactive delivery system for tv/multimedia/internet with on-demand applications |
US8516525B1 (en) * | 2000-06-09 | 2013-08-20 | Dean F. Jerding | Integrated searching system for interactive media guide |
WO2016184229A1 (en) * | 2015-05-15 | 2016-11-24 | 乐视云计算有限公司 | Method and system for recording live video |
CN106802896A (en) * | 2015-11-26 | 2017-06-06 | 沈阳东软睿道教育服务有限公司 | The making of micro- class, playing method and device and learning platform based on mobile terminal |
CN110290413A (en) * | 2019-07-02 | 2019-09-27 | 广州清汇信息科技有限公司 | A kind of multi-medium data method for recording, playback method and record share system |
CN110324643A (en) * | 2019-04-24 | 2019-10-11 | 网宿科技股份有限公司 | A kind of video recording method and system |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080294691A1 (en) * | 2007-05-22 | 2008-11-27 | Sunplus Technology Co., Ltd. | Methods for generating and playing multimedia file and recording medium storing multimedia file |
US9521437B2 (en) * | 2009-06-17 | 2016-12-13 | Google Technology Holdings LLC | Insertion of recorded secondary digital video content during playback of primary digital video content |
US20150206446A1 (en) * | 2014-01-22 | 2015-07-23 | Microsoft Technology Licensing, Llc. | Authoring, sharing, and consumption of online courses |
US20160063881A1 (en) * | 2014-08-26 | 2016-03-03 | Zoomi, Inc. | Systems and methods to assist an instructor of a course |
CN104581197A (en) * | 2014-12-31 | 2015-04-29 | 苏州阔地网络科技有限公司 | Video title and end adding method and device |
CN108055245A (en) * | 2017-11-28 | 2018-05-18 | 北京潘达互娱科技有限公司 | Internet video live broadcasting method, device, electronic equipment and computer storage media |
CN108449640B (en) * | 2018-03-26 | 2021-05-07 | 广州虎牙信息科技有限公司 | Live video output control method and device, storage medium and terminal |
CN108540816B (en) * | 2018-03-28 | 2020-03-17 | 腾讯科技(深圳)有限公司 | Live video acquisition method and device and storage medium |
CN108966026B (en) * | 2018-08-03 | 2021-03-30 | 广州酷狗计算机科技有限公司 | Method and device for making video file |
-
2020
- 2020-05-20 CN CN202010429557.2A patent/CN111629255B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8516525B1 (en) * | 2000-06-09 | 2013-08-20 | Dean F. Jerding | Integrated searching system for interactive media guide |
CA2321462A1 (en) * | 2000-09-29 | 2002-03-29 | Imagictv Inc. | Digital interactive delivery system for tv/multimedia/internet with on-demand applications |
WO2016184229A1 (en) * | 2015-05-15 | 2016-11-24 | 乐视云计算有限公司 | Method and system for recording live video |
CN106802896A (en) * | 2015-11-26 | 2017-06-06 | 沈阳东软睿道教育服务有限公司 | The making of micro- class, playing method and device and learning platform based on mobile terminal |
CN110324643A (en) * | 2019-04-24 | 2019-10-11 | 网宿科技股份有限公司 | A kind of video recording method and system |
CN110290413A (en) * | 2019-07-02 | 2019-09-27 | 广州清汇信息科技有限公司 | A kind of multi-medium data method for recording, playback method and record share system |
Non-Patent Citations (1)
Title |
---|
李天河等.基于流媒体技术的微课教学系统研发.《信息技术与信息化》.2015,(第01期), * |
Also Published As
Publication number | Publication date |
---|---|
CN111629255A (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210258357A1 (en) | Method and device for recording and transmitting courseware, interactive white board and storage medium | |
CN104410807B (en) | A kind of multi-channel video synchronized playback method and device | |
CN106576151B (en) | Video processing apparatus and method | |
CN101355674B (en) | Recording apparatus, reproducing apparatus, recording/reproducing apparatus, image pickup apparatus, recording method | |
TW200921649A (en) | Reproducing method of storage medium storing search information | |
KR20050051776A (en) | Method for reproducing repeat area in multi media device | |
CN105324988A (en) | Playback device, playback method, and recording medium | |
CN113841417B (en) | Film generation method, terminal device, shooting device and film generation system | |
CN101344883A (en) | Method for recording demonstration draft | |
CN105745921A (en) | Conference recording method and system for video network conference | |
CN114157877B (en) | Playback data generation method and device, playback method and device | |
CN114615539A (en) | Multi-display screen recording playback method, computer and readable medium | |
CN111629255B (en) | Audio and video recording method and device, computer equipment and storage medium | |
CN110299036A (en) | Interaction reading method, device, system and storage medium | |
CN113497963B (en) | Video processing method, device and equipment | |
CN113554904B (en) | Intelligent processing method and system for multi-mode collaborative education | |
CN106303686A (en) | Video generation method, video-generating device and terminal unit | |
CN106792219B (en) | It is a kind of that the method and device reviewed is broadcast live | |
CN106162376A (en) | A kind of multimedia is compiled as the method and device of video playback file automatically | |
CN100525420C (en) | Recording method and recording device | |
CN105684428A (en) | Conference distribution method and system for video web conference | |
CN104853245A (en) | Movie preview method and device thereof | |
CN111813994B (en) | Data processing and file playback method and device based on interactive whiteboard | |
CN118301270A (en) | Classroom recording and broadcasting method, device and system, electronic equipment and storage medium | |
KR20050066249A (en) | Method for setting record quality in digital recording device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220812 Address after: Room 702, Building 1, No. 6, Yunpu 4th Road, Huangpu District, Guangzhou City, Guangdong Province, 510530 Patentee after: Guangzhou kaidelian Intelligent Technology Co.,Ltd. Address before: 510530 No. 6, Yun Po four road, Whampoa District, Guangzhou, Guangdong. Patentee before: Guangzhou Shiyuan Electronic Technology Company Limited Patentee before: Guangzhou Shirui Electronic Technology Company Limited. |