CN115550678A - Live video processing method and device and storage medium - Google Patents

Live video processing method and device and storage medium Download PDF

Info

Publication number
CN115550678A
CN115550678A CN202211176597.6A CN202211176597A CN115550678A CN 115550678 A CN115550678 A CN 115550678A CN 202211176597 A CN202211176597 A CN 202211176597A CN 115550678 A CN115550678 A CN 115550678A
Authority
CN
China
Prior art keywords
video stream
live
recording
live video
standby
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.)
Pending
Application number
CN202211176597.6A
Other languages
Chinese (zh)
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.)
Beijing 263 Enterprise Communication Co ltd
Original Assignee
Beijing 263 Enterprise Communication Co 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 Beijing 263 Enterprise Communication Co ltd filed Critical Beijing 263 Enterprise Communication Co ltd
Priority to CN202211176597.6A priority Critical patent/CN115550678A/en
Publication of CN115550678A publication Critical patent/CN115550678A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a live video processing method, a live video processing device and a storage medium, and relates to the technical field of live video. In the live broadcasting process, the following operations are executed to obtain a video file: recording a live video stream, and detecting whether the live video stream is interrupted; in response to the detection of interruption of the live video stream, switching to a standby video stream for recording, and detecting whether the live video stream is recovered; and switching to the live video stream for recording in response to the detection of the recovery of the live video stream. Through the method and the device, a video file can be generated by directly recording in the live broadcast recording process, later-stage merging operation is not needed, time consumption is saved, and watching-back experience of recorded videos is enhanced.

Description

Live video processing method and device and storage medium
Technical Field
The present application relates to the field of live video technologies, and in particular, to a live video processing method, apparatus, and storage medium.
Background
The network live broadcast absorbs and continues the advantages of the Internet, carries out online live broadcast by utilizing a video mode, can release contents such as product display, related meetings, background introduction, scheme evaluation, online survey, conversation interview, online training and the like to the Internet on site, and has the advantages of intuition, rapidness, good expression form, rich contents, strong interactivity, unlimited regions and the like. And video recording can be carried out in the live webcasting process for review and backup filing.
But often causes interruption of the streaming process from the director (e.g., the director or the director platform) to the video recorder due to network jitter, glitches, and failure of the live device. Once the stream pushing process is interrupted, the video recording end finishes recording, and a video file is generated after the recording is finished. And when the stream pushing process is recovered again, the video recording end restarts recording. Therefore, the situation that recording is finished and then recovery is carried out repeatedly occurs, and a plurality of video files can be generated at the video recording end. When a user needs a complete video file, one method is to download a plurality of video files, combine the video files through a video tool, and upload the combined video files to a server for review; the other method is that a video recording end provides an online merging function, and a plurality of video files are merged into one video file on line for review.
However, whether multiple video files are downloaded and merged by a video tool or directly merged online, there are problems that the merging operation is complicated and takes a long time.
Disclosure of Invention
The application provides a live video processing method, a live video processing device and a storage medium, which are used for solving the problems of complex post-synthesis operation and long consumed time.
In a first aspect, the present application provides a live video processing method, including: in the live broadcasting process, the following operations are executed to obtain a video file: recording a live video stream, and detecting whether the live video stream is interrupted; in response to the detection of interruption of the live video stream, switching to a standby video stream for recording, and detecting whether the live video stream is recovered; and switching to the live video stream for recording in response to the detection of the recovery of the live video stream.
Optionally, in response to detecting that the live video stream is interrupted, switching to a standby video stream for recording includes: acquiring a standby video stream, and traversing video frames in the standby video stream from the recording start moment, wherein the traversing and the recording are synchronous; in response to detecting interruption of the live video stream, determining a traversed target position in the standby video stream; and switching the standby video stream to record based on the target position.
Optionally, obtaining the standby video stream includes: determining the similarity of each video stream and a live video stream in a plurality of video streams; and determining the video stream with the similarity meeting the similarity requirement as the standby video stream.
Optionally, in response to detecting that the live video stream is interrupted, switching to the standby video stream for recording includes: in response to the detection of the interruption of the live video stream, determining the video stream related to the recorded content as a standby video stream according to the recorded content before the interruption moment; and switching to the standby video stream for recording.
Optionally, determining, according to the recorded content before the interruption time, that the video stream related to the recorded content is a standby video stream, includes: identifying the recorded content to obtain an identification result; determining a target object related to the recognition result, wherein the target object comprises at least one of a document, a questionnaire, interactive content which may exist and a multimedia object; and determining the video stream related to the target object as a standby video stream.
Optionally, the number of the standby video streams is at least one, and the method further includes: if the complete broadcast video stream is recorded and whether the broadcast video stream is recovered is not detected, executing the following operations: circularly recording and preparing a broadcast video stream; and switching to other standby video streams of the at least one standby video stream for recording.
In a second aspect, the present application provides a live video processing apparatus, configured to obtain a video file in a live process, including: the recording module is used for recording the live video stream and detecting whether the live video stream is interrupted or not; the first switching module is used for switching to a standby video stream for recording in response to the detection of interruption of the live video stream and detecting whether the live video stream is recovered or not; and the second switching module is used for switching to the live video stream for recording in response to the detection of the recovery of the live video stream.
Optionally, the first switching module may be further configured to obtain a standby broadcast video stream, and traverse video frames in the standby broadcast video stream from a recording start time, where the traversing and the recording are synchronous; in response to detecting interruption of the live video stream, determining a traversed target position in the standby video stream; and switching the standby video stream to record based on the target position.
Optionally, the first switching module may be further specifically configured to determine a similarity between each video stream and a live video stream in the multiple video streams; and determining the video stream with the similarity meeting the similarity requirement as a standby video stream.
Optionally, the first switching module may be further specifically configured to determine, in response to detecting that the live video stream is interrupted, that the video stream related to the recorded content is a standby video stream according to the recorded content before the interruption time; and switching to the standby video stream for recording.
The first switching module can be specifically used for identifying the recorded content to obtain an identification result; determining a target object related to the recognition result, wherein the target object comprises at least one of a document, a questionnaire, interactive content which may exist and a multimedia object; and determining the video stream related to the target object as a standby video stream.
Optionally, the number of the standby video streams is at least one, and the live video processing apparatus may be further configured to: if the complete broadcast video stream is recorded and whether the broadcast video stream is recovered is not detected, executing the following operations: circularly recording and preparing a broadcast video stream; and switching to other standby video streams of the at least one standby video stream for recording.
In a third aspect, the present application provides an electronic device, comprising: a memory, a processor; a memory for storing program instructions; a processor for calling program instructions to perform the live video processing method as defined in any one of the above first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions, which when executed by a processor, are configured to implement a live video processing method as in any one of the first aspects above.
In a fifth aspect, the present application provides a computer program product comprising: a computer program; when executed, the computer program implements a live video processing method as in any one of the above-described first aspects.
According to the live video processing method, the live video processing device and the storage medium, the following operations are executed in the live broadcasting process to obtain the video file: recording a live video stream, and detecting whether the live video stream is interrupted; in response to the detection of the interruption of the live video stream, switching to a standby video stream for recording, and detecting whether the live video stream is recovered; and switching to the live video stream for recording in response to the detection of the recovery of the live video stream. Through the method and the device, a video file can be generated by directly recording in the live broadcast recording process, later-stage merging operation is not needed, time consumption is saved, and watching-back experience of recorded videos is enhanced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a first flowchart of a live video processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a live video processing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a live video processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application. As shown in fig. 1, the application scenario involves a signal acquisition device 101, a server 102, and a recording device 103.
The signal acquisition device 101 acquires audio and video data of a live broadcast site to obtain a live broadcast video stream. The live broadcast site can broadly include an offline live broadcast site and an online live broadcast site, for example, a government affair public meeting, a public audiences conference, a court trial live broadcast, a officer examination training, a product release meeting, an enterprise meeting, an industry meeting, an exhibition live broadcast and the like.
The server 102 is a kind of computer, and provides computation or application services for other clients (such as a terminal like a PC, a smart phone, an ATM, etc., and even a large-scale device like a train system, etc.) in a network. For example, providing storage, computing, and processing services.
The recording device 103, such as a Digital Video Recorder (DVR), can record and store audio and Video information, including but not limited to a Video camera, a Video Recorder, a computer, and a mobile phone.
Recording device 103 records the resulting video file for playback viewing and backup archiving. Specifically, the recording device 103 may obtain a live video stream from the signal acquisition device 101 and record the live video stream, and may also record other video streams to generate corresponding video files.
The recording device 103 automatically generates a video file when the acquired video stream is over or interrupted. If the video stream is interrupted a plurality of times, a plurality of video files 103 with discontinuous time sequences are generated. The video files are downloaded to the local for later stage combination or are directly combined on line, the problems that operation is troublesome and a professional tool can be operated by certain professional knowledge exist, time is consumed in the combination process, and review cannot be provided during combination.
Secondly, the recording process is interrupted to generate a plurality of video files, the recording is stopped due to the interruption, and then the new recording is started, so that time loss exists in the period, and the total duration of the combined plurality of video files is shorter than the total duration of the actual live broadcasting process due to the loss. The merged video file lacks the time period of recording interruption, so that the problem of video time sequence disorder also exists.
In summary, the present application aims to solve at least one of the above problems, and provides a live video processing method, apparatus and storage medium, which enable a recording to generate a complete video file by switching a recording preparation live video when the live video recording is interrupted, and do not need to perform a synthesizing operation after recording.
The technical solution of the present application will be explained with reference to specific examples. It should be noted that the following several specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a first flowchart of a live video processing method according to an embodiment of the present application. As shown in fig. 2, the live video processing method includes: in the live broadcasting process, the following operations are executed to obtain a video file:
s201: and recording the live video stream, and detecting whether the live video stream is interrupted.
Video streaming refers to the transmission of video data that can be handled as a steady and continuous stream through a network. A live video stream is a video stream captured from a live scene. Illustratively, a live video stream can be obtained by pushing a collected live video source to a recording module by a director platform, and the recording module records the pushed live video stream. The recording module continuously detects whether the live video stream is interrupted while recording the live video stream. Illustratively, when the recording module detects that the video stream is not received within a specified time, it is determined whether the live video stream is interrupted.
S202: and responding to the detection of the interruption of the live video stream, switching to the standby video stream for recording, and detecting whether the live video stream is recovered.
The standby video refers to a standby video which is recorded before live broadcast and is used for replacing and playing when the live broadcast has an emergency condition so that the live broadcast cannot be normally carried out. For example, the content of the standby video may be the same as or similar to the live content of the live broadcast, such as a related lecture video or a previously recorded live broadcast video, and may also be unrelated video content such as an advertisement, a black screen, or a white screen. The duration of the standby video may be longer than the duration expected from the live site to provide sufficient standby video streaming; or a short video, which is scrolled as the method is performed to provide a sufficient standby video stream.
The standby video can be stored in the cloud in advance, or stored in other storage media which can be processed into a video stream. In the embodiment of the application, when interruption of a live video stream is detected, the recording module is switched to a standby video stream for recording.
Optionally, in response to detecting that the live video stream is interrupted, the method for switching to the standby video stream for recording may include: acquiring a standby video stream, and traversing video frames in the standby video stream from the recording start moment, wherein the traversing and the recording are synchronous; in response to detecting interruption of the live video stream, determining a traversed target position in the standby video stream; and switching the standby video stream to record based on the target position.
Where video is composed of still pictures, each still picture may be referred to as a video frame. The frames of each video frame include specific recognizable elements and corresponding time instants, which can be obtained during traversal. The target position may refer to a position in a time dimension, for example, in an embodiment where a process of the standby video is substantially the same as a live broadcast process of a live broadcast site, the target position may refer to a position of a video frame in the standby video corresponding to a live broadcast video stream interruption time, and considering that some unpredictable time delay or advance exists in the live broadcast site, the target position may have a small difference in time with content of the standby video, and thus the target position may also refer to a position of a video frame in the standby video at a time near the live broadcast video stream interruption time.
The target position may refer to a position in a content dimension, for example, in an embodiment where the content of the standby video is substantially the same as the live content of the live broadcast site, the target position may refer to a position of a video frame corresponding to the content at the time of interruption of the live video stream in the standby video.
Optionally, the method for acquiring the standby video stream may include: determining the similarity of each video stream and a live video stream in a plurality of video streams; and determining the video stream with the similarity meeting the similarity requirement as the standby video stream. In this embodiment, the standby video may be one. Or a plurality thereof. And when the interruption of the live video stream is detected, selecting one of the one or more standby videos as a standby video for switching recording. Optionally, the multiple standby videos may be divided into different categories in advance, and may be identified with identifiable codes, and when determining the similarity between the standby video stream and the live video stream, a preliminary determination may be performed according to the codes.
Optionally, a plurality of video frames of the standby video may also be acquired, and the determination may be performed according to the content of the video frames. For example, a video stream between similar video frames is selected as the standby video stream. In some further embodiments, a depth algorithm may also be used to determine the similarity of each standby video stream to the live video stream. The similarity requirement may be set to be the highest similarity of the standby video stream, or may be set to be the similarity exceeding a set threshold, which is not limited herein.
In addition, whether the live video stream is recovered or not is continuously detected during the period of switching to the standby video stream for recording.
S203: and switching to the live video stream for recording in response to the detection of the recovery of the live video stream.
And when the recovery of the live video stream is detected, switching to the live video for recording. That is, the live video stream is recorded preferentially, and the live video stream is switched to be recorded and prepared within the time when the live video stream is interrupted, so that the video stream acquired in the recording stage is ensured to be continuous in time.
In the embodiment of the application, in the live broadcasting process, the following operations are executed to obtain a video file: recording a live video stream, detecting whether the live video stream is interrupted, switching to a standby video stream for recording in response to detecting that the live video stream is interrupted, detecting whether the live video stream is recovered, and switching to the live video stream for recording in response to detecting that the live video stream is recovered. Through the method and the device, a video file can be generated by directly recording in the live broadcast recording process, later-stage merging operation is not needed, time consumption is saved, and watching-back experience of recorded videos is enhanced. Specifically, a plurality of video files generated by interruption of the recording process are recorded, recording is stopped due to the interruption, and then new recording is started, so that time loss exists in the period, the total duration of the combined plurality of video files is shorter than the total duration of the actual live broadcast process due to the loss, the duration of the video files obtained by the live broadcast video processing method is the same as the live broadcast duration of the live broadcast site, and the problems of short duration and disordered time sequence are solved.
On the basis of the foregoing embodiment, optionally, in response to detecting that the live video stream is interrupted, the method for switching to the standby video stream for recording may further include: in response to detecting that the live video stream is interrupted, determining the video stream related to the recorded content as a standby video stream according to the recorded content before the interruption moment; and switching to the standby video stream for recording. In this embodiment, when it is detected that a live video stream is interrupted, a recorded content before the interruption time is obtained, a category of the recorded content is identified and determined, and a video stream related to the content is matched in a standby video stream as a standby video stream.
Optionally, the method for determining, according to the recorded content before the interruption time, that the video stream related to the recorded content is a standby video stream may include: identifying the recorded content to obtain an identification result; determining a target object related to the recognition result, wherein the target object comprises at least one of a document, a questionnaire, interactive content which may exist and a multimedia object; and determining the video stream related to the target object as a standby video stream.
The interactive content may include on-site questions, questionnaires, barrage messages and the like, and the multimedia objects may include lectures, songs, advertisements and the like, and may also be white screens or black screens and the like. The switching recording is carried out by acquiring the video stream related to the recorded content from the standby video, so as to further improve the fluency of the recorded video file during review and improve the review experience.
In other embodiments, the number of standby video streams involved in the live video processing method provided by the present scheme is at least one, and the method further includes: if the complete broadcast video stream is recorded and whether the broadcast video stream is recovered is not detected, executing the following operations: circularly recording and preparing a broadcast video stream; and switching to other standby video streams of the at least one standby video stream for recording. Therefore, in a related review scene, various interactions in live broadcast such as chat, document operation, whiteboard operation and the like can be associated according to the video playing time sequence, and the live broadcast process is more truly restored.
Fig. 3 is a schematic flow diagram of a live video processing method according to an embodiment of the present application, which is used to additionally explain the above-mentioned method embodiment. As shown in fig. 3, in the method, an alternative video file (i.e., alternative video) may be uploaded to a server, and an alternative video source is streamed from the server to a live recording module (i.e., recording module); the anchor video source (also called live video source) is pushed to the live recording module by the director, specifically, the video of the live broadcast site can be collected and sent to the server, the anchor video source is pushed to the live recording module by the slave server, and the live recording module records and generates a video file.
The live broadcast recording module is set to preferentially acquire the push stream (namely, live broadcast video stream) of the main broadcast video source and record the video, and when the push stream of the main broadcast video source is interrupted, the live broadcast recording module immediately acquires the push stream of the standby broadcast video source from the server and records the continuous video. And when the push stream of the main broadcast video source is recovered, the live broadcast recording module is immediately switched to acquire the push stream of the main broadcast video source and continuously records. Therefore, under the seamless switching of the plug flow of the main video source and the standby video source, the recording is not interrupted, and only one video file is produced all the time. In addition, the standby video source is an independent video source, so that the recording interruption caused by the fault problem of a director end (director equipment or a director platform) is effectively avoided.
The foregoing embodiment specifically explains the live video processing method provided in the embodiment of the present application, and a live video processing apparatus, an electronic device, a storage medium, and an executable program provided in the embodiment of the present application will be explained below.
Fig. 4 is a schematic structural diagram of a live video processing apparatus according to an embodiment of the present application. As shown in fig. 4, the live video processing apparatus 400 is configured to obtain a video file during live broadcasting, and includes:
a recording module 401, configured to record a live video stream and detect whether the live video stream is interrupted;
a first switching module 402, configured to switch to a standby video stream for recording in response to detecting that a live video stream is interrupted, and detect whether the live video stream is recovered;
and a second switching module 403, configured to switch to the live video stream for recording in response to detecting that the live video stream is recovered.
Optionally, the first switching module 402 may be further configured to obtain a standby video stream, and traverse video frames in the standby video stream from a recording start time, where the traversing and the recording are synchronous; in response to detecting interruption of the live video stream, determining a traversed target position in the standby video stream; and switching the standby video stream to record based on the target position.
Optionally, the first switching module 402 may be further specifically configured to determine, in a plurality of video streams, a similarity between each video stream and a live video stream; and determining the video stream with the similarity meeting the similarity requirement as a standby video stream.
Optionally, the first switching module 402 may be further specifically configured to, in response to detecting that the live video stream is interrupted, determine, according to the recorded content before the interruption time, that the video stream related to the recorded content is a standby video stream; and switching to the standby video stream for recording.
The first switching module 402 may be further configured to perform identification processing on the recorded content to obtain an identification result; determining a target object related to the recognition result, wherein the target object comprises at least one of a document, a questionnaire, interactive content which may exist and a multimedia object; and determining the video stream related to the target object as a standby video stream.
Optionally, the number of the standby video streams is at least one, and the live video processing apparatus 400 may be further specifically configured to: if the complete broadcast video stream is recorded and whether the recovery of the broadcast video stream is not detected, the following operations are executed: circularly recording and preparing a broadcast video stream; and switching to other standby video streams of the at least one standby video stream for recording.
The apparatus provided in the embodiment of the present application may be used to execute the method in the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device 500 includes:
a processor 501, a memory 502, a communication interface 503, and a system bus 504.
The memory 502 and the communication interface 503 are connected to the processor 501 through the system bus 504 and complete communication with each other, the memory 502 is used for storing computer execution instructions, the communication interface 503 is used for communicating with other devices, and the processor 501 is used for executing computer execution instructions to execute the scheme of the live video processing method according to the above method embodiment.
In particular, processor 501 may include one or more processing units, such as: the processor 501 may be a CPU, a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory 502 may be used to store program instructions. The memory 502 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function) required by at least one function, and the like. The storage data area may store data (such as audio data) created during use of the electronic device 500, and the like. In addition, the memory 502 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk Storage device, a Flash memory device, a Universal Flash Storage (UFS), and the like. The processor 501 executes various functional applications of the electronic device 500 and data processing by executing program instructions stored in the memory 502.
The communication interface 503 may provide a solution for applications on the electronic device 500 including wireless communication of 2G/3G/4G/5G, etc. The communication interface 503 may receive electromagnetic waves from an antenna, filter, amplify, etc. the received electromagnetic waves, and transmit the processed electromagnetic waves to a modem processor for demodulation. The communication interface 503 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the communication interface 503 may be disposed in the processor 501. In some embodiments, at least some of the functional blocks of the communication interface 503 may be provided in the same device as at least some of the blocks of the processor 501.
The system bus 504 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus 504 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
It should be noted that, the number of the memories 502 and the processors 501 is not limited in the embodiments of the present application, and may be one or more, and fig. 5 illustrates one example; the memory 502 and the processor 501 may be connected by various means, such as a bus, by wire or wirelessly. In practical applications, the electronic device 500 may be a computer or a mobile terminal in various forms. Wherein the computer is, for example, a laptop computer, a desktop computer, a workbench, a server, a blade server, a mainframe computer, etc.; mobile terminals are, for example, personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices.
The electronic device of this embodiment may be configured to execute the technical solution in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the scheme of the live video processing method in the foregoing method embodiment.
The embodiment of the application also provides a computer program product, which comprises a computer program; when being executed, the computer program realizes the scheme of the live video processing method in the embodiment of the method.
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.

Claims (10)

1. A live video processing method is characterized by comprising the following steps:
in the live broadcasting process, the following operations are executed to obtain a video file:
recording a live video stream, and detecting whether the live video stream is interrupted;
in response to the detection of interruption of the live video stream, switching to a standby video stream for recording, and detecting whether the live video stream is recovered;
and switching to the live video stream for recording in response to the detection of the recovery of the live video stream.
2. The live video processing method of claim 1, wherein switching to a standby video stream for recording in response to detecting interruption of the live video stream comprises:
acquiring the standby broadcast video stream, and traversing video frames in the standby broadcast video stream from the recording starting moment, wherein the traversing and the recording are synchronous;
in response to detecting interruption of a live video stream, determining a traversed target position in the standby video stream;
and switching the standby video stream to record based on the target position.
3. The live video processing method of claim 2, wherein the obtaining the standby video stream comprises:
determining similarity of each video stream to the live video stream in a plurality of video streams;
and determining the video stream with the similarity meeting the similarity requirement as the standby video stream.
4. The live video processing method of claim 1, wherein the switching to the standby video stream for recording in response to detecting interruption of the live video stream comprises:
in response to detecting that the live video stream is interrupted, determining the video stream related to the recorded content as the standby video stream according to the recorded content before the interruption moment;
and switching to the standby video stream for recording.
5. The live video processing method according to claim 4, wherein the determining, according to the recorded content before the interruption time, that the video stream related to the recorded content is the standby video stream includes:
identifying the recorded content to obtain an identification result;
determining a target object related to the recognition result, wherein the target object comprises at least one of a document, a questionnaire, interactive content which may exist and a multimedia object;
and determining the video stream related to the target object as the standby video stream.
6. The live video processing method according to any one of claims 1 to 5, wherein the number of the standby video streams is at least one, and further comprising:
if the complete broadcast video stream is recorded and whether the recovery of the broadcast video stream is not detected, the following operations are executed:
circularly recording and preparing a broadcast video stream;
and switching to other standby video streams of the at least one standby video stream for recording.
7. A live video processing apparatus, configured to obtain a video file during a live process, comprising:
the recording module is used for recording the live video stream and detecting whether the live video stream is interrupted or not;
the first switching module is used for switching to a standby video stream for recording in response to the detection of interruption of the live video stream and detecting whether the live video stream is recovered or not;
and the second switching module is used for switching to the live video stream for recording in response to the detection of the recovery of the live video stream.
8. An electronic device, comprising: a memory, a processor;
the memory to store program instructions;
the processor to invoke the program instructions to perform the live video processing method of any of claims 1 to 6.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the live video processing method of any one of claims 1 to 6.
10. A computer program product, comprising: a computer program; the computer program, when executed, implements a live video processing method as claimed in any of claims 1 to 6.
CN202211176597.6A 2022-09-26 2022-09-26 Live video processing method and device and storage medium Pending CN115550678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211176597.6A CN115550678A (en) 2022-09-26 2022-09-26 Live video processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211176597.6A CN115550678A (en) 2022-09-26 2022-09-26 Live video processing method and device and storage medium

Publications (1)

Publication Number Publication Date
CN115550678A true CN115550678A (en) 2022-12-30

Family

ID=84729960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211176597.6A Pending CN115550678A (en) 2022-09-26 2022-09-26 Live video processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN115550678A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117793449A (en) * 2024-02-23 2024-03-29 北京都是科技有限公司 Video live broadcast and video processing method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117793449A (en) * 2024-02-23 2024-03-29 北京都是科技有限公司 Video live broadcast and video processing method, device and storage medium
CN117793449B (en) * 2024-02-23 2024-04-30 北京都是科技有限公司 Video live broadcast and video processing method, device and storage medium

Similar Documents

Publication Publication Date Title
US10698952B2 (en) Using digital fingerprints to associate data with a work
US10299004B2 (en) Method and system for sourcing and editing live video
US9961398B2 (en) Method and device for switching video streams
US10628477B2 (en) Search-based navigation of media content
US9306989B1 (en) Linking social media and broadcast media
US10735792B2 (en) Using OCR to detect currently playing television programs
US8803991B2 (en) Snapshot capture in video stream
CN107682714B (en) Method and device for acquiring online video screenshot
CN106998485B (en) Video live broadcasting method and device
CN104869467A (en) Information output method and system for media playing, and apparatuses
CA2889706C (en) Video and audio tagging for active speaker detection
KR101991188B1 (en) Promotion information processing method, device, and apparatus, and non-volatile computer storage medium
WO2022042389A1 (en) Search result display method and apparatus, readable medium, and electronic device
RU2630261C2 (en) Transmission apparatus, data processing technique, programme, receiving apparatus and app interaction system
CN112291502B (en) Information interaction method, device and system and electronic equipment
CN110636321A (en) Data processing method, device, system, mobile terminal and storage medium
CN111818383B (en) Video data generation method, system, device, electronic equipment and storage medium
CN110996157A (en) Video playing method and device, electronic equipment and machine-readable storage medium
CN115550678A (en) Live video processing method and device and storage medium
WO2015035934A1 (en) Methods and systems for facilitating video preview sessions
CN114257572B (en) Data processing method, device, computer readable medium and electronic equipment
CN111107296B (en) Audio data acquisition method and device, electronic equipment and readable storage medium
CN110662082A (en) Data processing method, device, system, mobile terminal and storage medium
CN111246313A (en) Video association method and device, server, terminal equipment and storage medium
CN110691256B (en) Video associated information processing method and device, server and storage medium

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