CN116193200A - Switching method, system and device for inter-cut video - Google Patents
Switching method, system and device for inter-cut video Download PDFInfo
- Publication number
- CN116193200A CN116193200A CN202310125644.2A CN202310125644A CN116193200A CN 116193200 A CN116193200 A CN 116193200A CN 202310125644 A CN202310125644 A CN 202310125644A CN 116193200 A CN116193200 A CN 116193200A
- Authority
- CN
- China
- Prior art keywords
- video
- code stream
- audio
- module
- switching
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000005538 encapsulation Methods 0.000 claims abstract description 17
- 238000004806 packaging method and process Methods 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims description 30
- 230000003993 interaction Effects 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 17
- 230000000007 visual effect Effects 0.000 claims description 5
- 239000004544 spot-on Substances 0.000 claims 1
- 230000007547 defect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000000644 propagated effect Effects 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
-
- 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/439—Processing of audio elementary streams
- H04N21/4394—Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Studio Circuits (AREA)
Abstract
In order to overcome the defects in the prior art, the invention provides a switching method, a switching system and a switching device for an inter-cut video, which comprise the following steps: respectively encoding at least 1 piece of audio and video of the video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each piece of video to be inserted, and packaging the audio to be inserted and the video to be inserted for the first time to obtain a video code stream to be inserted; unpacking at least 1 inserted program source to obtain an audio original code stream and a video original code stream of each program source; the video code stream to be inserted is encapsulated with the audio original code stream and the video original code stream for the second time to obtain a final encapsulation file; and selecting any program source in the video code stream to be inserted or the inserted program source from the final packaging file according to the playing requirement, thereby realizing video switching. The method saves the picture switching time and improves the user experience.
Description
Technical Field
The present invention relates to the field of video insertion, and in particular, to a method, a system, and an apparatus for switching an inserted video.
Background
With the development of society, for home safety, cameras with cat eyes are mostly used; when a person visits the outside of the door, the camera can put the picture shot by the camera on the television of the user; if the user is watching television at the moment, inserting the picture shot by the camera onto the television, so that the user can conveniently check the image outside the door to confirm, such as opening a door or alarming or opening a default message voice or performing voice intercom;
the method effectively improves the household safety of the user, but after the user confirms, the user needs to switch back to the current playing program when switching the picture; the existing method comprises the following steps: opening a camera APP, and switching to playing IPTV program pictures through the camera APP; the operation is complicated, the time of the user is occupied, and the use experience of the user is not good;
therefore, a fast switching method for the inter-cut video needs to be developed.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a switching method, a switching system and a switching device for a video-on-air, which are used for solving at least one of the technical problems.
Specifically, the technical scheme is as follows:
a switching method for a cut-in video comprises the following steps:
respectively encoding at least 1 piece of audio and video of the video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each piece of video to be inserted, and packaging the audio to be inserted and the video to be inserted for the first time to obtain a video code stream to be inserted;
unpacking at least 1 inserted program source to obtain an audio original code stream and a video original code stream of each program source;
the video code stream to be inserted is encapsulated with the audio original code stream and the video original code stream for the second time to obtain a final encapsulation file;
and selecting any program source in the video code stream to be inserted or the inserted program source from the final packaging file according to the playing requirement, thereby realizing video switching.
The step of encoding the audio and video of the video to be inserted to obtain the audio to be inserted and the video to be inserted includes:
collecting the video to be inserted;
decomposing the video to be inserted to obtain audio data of the video to be inserted and video data of the video to be inserted;
and respectively encoding the audio data of the video to be inserted and the video data of the video to be inserted by an encoder to obtain the audio to be inserted and the video to be inserted.
The "the second encapsulating the video code stream to be inserted with the audio original code stream and the video original code stream" includes:
taking the audio original code stream and the video original code stream as an integral code stream;
performing ts encapsulation on the whole code stream and the whole code stream to obtain a path of ts code stream;
and taking the ts code stream as the final packaging file.
A switching system for a break-in video, comprising:
the first video acquisition module is used for acquiring at least 1 video to be inserted;
the code stream module to be inserted is used for carrying out data interaction with the first video acquisition module and generating a code stream to be inserted;
the program source module is used for storing at least 1 program source code stream which is inserted;
and the processing module is used for simultaneously carrying out data interaction with the code stream module to be inserted and the program source module and realizing the switching between the video code stream to be inserted and the program source module.
The code stream module to be inserted comprises:
the coding unit is used for carrying out data interaction with the first video acquisition module and decoding the video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each video to be inserted;
and the first encapsulation unit is used for carrying out data interaction with the encoding unit and encapsulating the audio to be inserted and the video to be inserted to obtain a video code stream to be inserted.
The program source module comprises:
the decapsulation unit is used for performing data interaction with the inserted program sources and decapsulating the inserted program sources to obtain an audio original code stream and a video original code stream corresponding to each inserted program source;
and the second packaging unit is used for simultaneously carrying out data interaction with the decapsulation unit and the to-be-inserted video code stream module and packaging the audio original code stream, the video original code stream and the to-be-inserted video code stream.
A switching device for a break-in video, comprising:
the switching system for the inserted video is described above;
the first display module is used for carrying out data interaction with the processing module in the switching system aiming at the inter-cut video and playing the program in the program source module;
and the processing module exchanges data with a code stream module to be inserted in the switching system aiming at the inserted video, and is used for inserting the code stream to be inserted in the code stream module to be inserted on the first display module.
The above switching device for inserting video further includes:
the second video acquisition module is arranged on the first display module and is used for acquiring intercom videos;
the second display module is arranged on the first video acquisition module in the switching system for the inserted video;
and the processing module performs data interaction with the second video acquisition module, and sends the first intercom video to the second display module to form a visual intercom.
An electronic device, comprising:
a storage medium storing a computer program;
and the processing unit is used for carrying out data exchange with the storage medium and executing the computer program by the processing unit when the switching of the inter-cut video is carried out, so as to carry out the steps of the switching method for the inter-cut video.
A computer-readable storage medium, wherein:
the computer readable storage medium has a computer program stored therein;
the computer program, when run, performs the steps of the switching method for break-in video as described above.
The invention has at least the following beneficial effects:
the method comprises the steps of respectively encoding audio and video of a video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each video to be inserted, and packaging the audio to be inserted and the video to be inserted for the first time to obtain a video code stream to be inserted; unpacking at least 1 inserted program source to obtain an audio original code stream and a video original code stream of each program source; after ran, the video code stream to be inserted, the audio original code stream and the video original code stream are encapsulated for the second time to obtain a final encapsulation file; finally, selecting any program source in the video code stream to be inserted or the inserted program source in the final packaging file according to the playing requirement, thereby realizing video switching; according to the method, the video to be inserted can be switched between the video to be inserted and the program source without restarting the camera APP for providing the video to be inserted, so that the picture switching time is saved, and the user experience is improved;
the system provided by the invention collects at least 1 video to be inserted through a first video collection module; performing data interaction with the first video acquisition module by utilizing the code stream module to be inserted to generate a code stream to be inserted; storing at least 1 program source code stream to be inserted through a program source module; finally, the processing module is utilized to carry out data interaction with the code stream module to be inserted and the program source module at the same time, so as to realize the switching between the video code stream to be inserted and the program source module; when the system switches the video to be inserted, the processing module is only required to interact data with the code stream module to be inserted and/or the program source module, the code stream of the video to be inserted or the program source module is directly called, the corresponding APP is not required to be opened, the switching time is saved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a flow chart of video encoding to be inserted in the method of the present invention;
FIG. 3 is a flow chart of a second encapsulation in the method of the present invention;
FIG. 4 is a general schematic of the method of the present invention;
FIG. 5 is a schematic diagram of video processing according to the method of the present invention;
FIG. 6 is a schematic diagram of a first package in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of a second package in accordance with an embodiment of the present invention;
FIG. 8 is a system block diagram of a system according to the present invention;
FIG. 9 is a system block diagram of a switching device according to the present invention;
wherein, in fig. 4:
the surore vp9 is:
the surore h264 is:
suoure AV1 is:
the Actor is:
in fig. 5:
ts is:
in fig. 8-9:
100. the first video acquisition module; 200. a code stream module to be inserted; 300. a program source module; 400. a processing module; 500. a first display module; 600. the second video acquisition module; 700. a second display module; 201. a coding unit; 202. a first package module; 301. a decapsulation unit; 302. and a second encapsulation unit.
Detailed Description
Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
In order to solve the problem that in the prior art, when the picture is switched, the camera APP needs to be opened, and the switching time is too long due to the fact that the camera APP is switched to play IPTV program pictures, the invention provides the following embodiments:
specific example I:
the present invention provides an embodiment:
as shown in fig. 1, a switching method for a break-in video includes: respectively encoding the audio and video of 1 video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each video to be inserted, and carrying out first encapsulation on the audio to be inserted and the video to be inserted to obtain a video code stream to be inserted; unpacking the 1 inserted program sources to obtain an audio original code stream and a video original code stream of each program source; the video code stream to be inserted is encapsulated with the audio original code stream and the video original code stream for the second time to obtain a final encapsulation file; and selecting any program source in the video code stream to be inserted or the inserted program source from the final packaging file according to the playing requirement, thereby realizing video switching.
As shown in fig. 2, the "encoding the audio and video of the video to be inserted to obtain the audio to be inserted and the video to be inserted" includes: collecting the video to be inserted; decomposing the video to be inserted to obtain audio data of the video to be inserted and video data of the video to be inserted; and respectively encoding the audio data of the video to be inserted and the video data of the video to be inserted by an encoder to obtain the audio to be inserted and the video to be inserted.
As shown in fig. 3, the "encapsulating the video bitstream to be inserted with the audio original bitstream and the video original bitstream for the second time" includes: taking the audio original code stream and the video original code stream as an integral code stream; performing ts encapsulation on the whole code stream and the whole code stream to obtain a path of ts code stream; and taking the ts code stream as the final packaging file.
In use, taking a television and a video doorbell watched at ordinary times as examples, a specific embodiment I will be further described:
as shown in fig. 4, a television program being played by a television, such as 3 channels, is used as a program source to be inserted, and is unpackaged to obtain an audio original code stream and a video original code stream of each program source, such as channel 1 (H265/MP 3), channel 2 (MPEG 2/MP 2), and channel 3 (H264/AAC); referring to fig. 5, the code stream of the camera (H264/AAC) and the code stream of the program source are then ts packaged to obtain a ts code stream; when the entrance guard detects that a person exists, the TV automatically switches to a camera program source; specifically, as shown in fig. 5-6, audio and video of the video to be inserted, which are collected by the camera, are respectively encoded, wherein the video collected by the camera is in PCM (pulse code modulation) in time division, in YUV (YUV) in audio format, and are respectively encoded into AAC (advanced video coding) and H264 formats; the encoding process is performed by an encoder comprising: AVCodec and AVFrame. The AVFrame is used to store the pre-encoded data, YUV, RGB for video, PCM for audio; AVPacket is data after storing the code, such as aac, etc.; the audio to be inserted and the video to be inserted are encapsulated for the first time, and a video code stream to be inserted is obtained; as shown in fig. 7, the above three channels are encapsulated for the second time, that is, the whole code stream and the whole code stream are encapsulated for ts, so as to obtain a ts code stream; when the ts code stream is used as the final package file, when the door access operation is finished, such as door opening or other operations, the ts code stream is automatically switched back to the current playing program source without switching the camera APP and the IPTV program APP.
By the method, when the camera picture is switched, the camera APP is not required to be opened, the channel is directly switched in the playing program, and the camera picture is directly switched, so that the operation and switching time of a user are reduced, and the user experience is improved; through statistics, the method can reduce the switching time from about 3s to 500ms; moreover, as the corresponding APP is not required to be opened, CPU switching resources can be saved, and bandwidth occupation can be saved; the multi-path camera pictures can be encoded and packaged, so that multiple places can be monitored, and rapid centralized monitoring can be realized.
Specific example II:
the invention also provides an embodiment:
as shown in fig. 8, a switching system for a video-on-air includes: the system comprises a first video acquisition module 100, a code stream to be inserted module 200, a program source module 300 and a processing module 400; the first video acquisition module 100 is configured to acquire at least 1 video to be inserted; the code stream to be inserted module 200 performs data interaction with the first video acquisition module 100, and is configured to generate a code stream to be inserted; a program source module 300, configured to store at least 1 program source code stream that is inserted; the processing module 400 performs data interaction with the to-be-inserted video code stream module 200 and the program source module 300 at the same time, and is used for realizing the switching between the to-be-inserted video code stream and the program source module 400; the processing module 400 may be a CPU chip or other intelligent processing unit;
the code stream to be inserted module 200 includes: a coding unit 201, a first encapsulation unit 202; the encoding unit 201 performs data interaction with the first video acquisition module 100, and is configured to decode the video to be inserted to obtain a video to be inserted and a video to be inserted corresponding to each video to be inserted; the first encapsulation unit 202 performs data interaction with the encoding unit 201, and is configured to encapsulate the audio to be inserted and the video to be inserted, so as to obtain a video code stream to be inserted.
The program source module 300 includes: a decapsulation unit 301 and a second encapsulation unit 302; the decapsulation unit 301 performs data interaction with the program sources to be inserted, and is configured to decapsulate the program sources to be inserted to obtain an audio original code stream and a video original code stream corresponding to each program source to be inserted; the second encapsulation unit 302 performs data interaction with the decapsulation unit 301 and the to-be-inserted video bitstream module 200 at the same time, and is configured to encapsulate the audio original bitstream, the video original bitstream, and the to-be-inserted video bitstream.
The encoding unit 201 as described above may be: AVCodec and AVFrame; the AVFrame is used to store the pre-encoded data, YUV, RGB for video, PCM for audio; AVPacket is compressed data that stores encoded data, such as aac.
Specific example III:
the invention also provides the following examples:
as shown in fig. 9, a switching device for a video-on-air includes: the switching system for the spot video, the first display module 500, the second video acquisition module 600, and the second display module 700 described in embodiment II; the first display module 500 performs data interaction with the processing module 400 in the switching system for the inter-cut video, and is configured to play a program in the program source module 300; the processing module 400 exchanges data with the code stream to be inserted module 200 in the switching system for inserting video, and is configured to insert the code stream to be inserted in the code stream to be inserted module 200 on the first display module 500.
Preferably, the first display module 500 may be a display screen of a television or a mobile phone or other devices; the processing module 400 may be a CPU chip or other intelligent processing unit in a television or a mobile phone or other devices;
in order to realize the visual dialogue, a second video acquisition module 600 is disposed on the first display module 500, and is used for acquiring intercom videos; the second display module 700 is arranged on the first video acquisition module 100 in the switching system for the inserted video; the processing module 400 performs data interaction with the second video acquisition module 600, and sends the first intercom video to the second display module 700 to form a visual intercom; preferably, the second video acquisition module 600 may be a camera set on a television; the second display module 700 may be a display unit, such as a display screen, disposed on the entrance guard; the video collected by the camera arranged on the television can be sent to the display unit arranged on the access control by the processing module 400 by using the method described in the specific embodiment I, so as to realize visual intercom;
the invention also provides an embodiment:
an electronic device, comprising: a storage medium, a processing unit; wherein the storage medium is used for storing a computer program; the processing unit performs data exchange with the storage medium, and is configured to execute the computer program by the processing unit when performing switching of the inter-cut video, so as to perform the steps of the switching method for the inter-cut video as described in embodiment I.
The processing unit described above can perform various appropriate actions and processes according to programs stored in a storage medium. The electronic device further includes peripherals including an input portion such as a keyboard, a mouse, etc., and may also include an output portion such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; in particular, a process as described in any of fig. 1 may be implemented as a computer software program according to an embodiment of the present disclosure.
The present invention provides an embodiment comprising a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method as shown in any of the flowcharts of fig. 1. The computer program may be downloaded and installed from a network. The functions defined in the system of the invention are performed when the computer program is executed by a CPU.
A computer-readable storage medium, wherein: the computer readable storage medium has a computer program stored therein; the computer program, when running, performs the steps of the switching method for the break-in video as described in specific example I.
In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario.
The foregoing disclosure is merely illustrative of some embodiments of the invention, and the invention is not limited thereto, as modifications may be made by those skilled in the art without departing from the scope of the invention. The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario.
Claims (10)
1. The switching method for the inter-cut video is characterized by comprising the following steps of:
respectively encoding at least 1 piece of audio and video of the video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each piece of video to be inserted, and packaging the audio to be inserted and the video to be inserted for the first time to obtain a video code stream to be inserted;
unpacking at least 1 inserted program source to obtain an audio original code stream and a video original code stream of each program source;
the video code stream to be inserted is encapsulated with the audio original code stream and the video original code stream for the second time to obtain a final encapsulation file;
and selecting any program source in the video code stream to be inserted or the inserted program source from the final packaging file according to the playing requirement, thereby realizing video switching.
2. The method for switching an inter-cut video according to claim 1, wherein the step of encoding the audio and video of the video to be inter-cut to obtain the audio to be inter-cut and the video to be inter-cut, respectively, includes:
collecting the video to be inserted;
decomposing the video to be inserted to obtain audio data of the video to be inserted and video data of the video to be inserted;
and respectively encoding the audio data of the video to be inserted and the video data of the video to be inserted by an encoder to obtain the audio to be inserted and the video to be inserted.
3. The method for switching an inter-cut video according to claim 1, wherein the "encapsulating the video code stream to be inter-cut with the audio original code stream and the video original code stream for the second time" includes:
taking the audio original code stream and the video original code stream as an integral code stream;
performing ts encapsulation on the whole code stream and the whole code stream to obtain a path of ts code stream;
and taking the ts code stream as the final packaging file.
4. A switching system for a break-in video, comprising:
the first video acquisition module is used for acquiring at least 1 video to be inserted;
the code stream module to be inserted is used for carrying out data interaction with the first video acquisition module and generating a code stream to be inserted;
the program source module is used for storing at least 1 program source code stream which is inserted;
and the processing module is used for simultaneously carrying out data interaction with the code stream module to be inserted and the program source module and realizing the switching between the video code stream to be inserted and the program source module.
5. The switching system for video-on-demand according to claim 4, wherein the code stream module to be on-demand comprises:
the coding unit is used for carrying out data interaction with the first video acquisition module and decoding the video to be inserted to obtain audio to be inserted and video to be inserted corresponding to each video to be inserted;
and the first encapsulation unit is used for carrying out data interaction with the encoding unit and encapsulating the audio to be inserted and the video to be inserted to obtain a video code stream to be inserted.
6. The video-on-air switching system of claim 4, wherein the program source module comprises:
the decapsulation unit is used for performing data interaction with the inserted program sources and decapsulating the inserted program sources to obtain an audio original code stream and a video original code stream corresponding to each inserted program source;
and the second packaging unit is used for simultaneously carrying out data interaction with the decapsulation unit and the to-be-inserted video code stream module and packaging the audio original code stream, the video original code stream and the to-be-inserted video code stream.
7. A switching device for a break-in video, comprising:
a switching system for video-on-break according to any of claims 4-6;
the first display module is used for carrying out data interaction with the processing module in the switching system aiming at the inter-cut video and playing the program in the program source module;
and the processing module exchanges data with a code stream module to be inserted in the switching system aiming at the inserted video, and is used for inserting the code stream to be inserted in the code stream module to be inserted on the first display module.
8. The switching device for spot-on video according to claim 7, further comprising:
the second video acquisition module is arranged on the first display module and is used for acquiring intercom videos;
the second display module is arranged on the first video acquisition module in the switching system for the inserted video;
and the processing module performs data interaction with the second video acquisition module, and sends the first intercom video to the second display module to form a visual intercom.
9. An electronic device, comprising:
a storage medium storing a computer program;
a processing unit, which exchanges data with the storage medium, and is configured to execute the computer program by the processing unit when switching the inter-cut video, and perform the steps of the switching method for inter-cut video according to any one of claims 1 to 3.
10. A computer-readable storage medium, characterized by:
the computer readable storage medium has a computer program stored therein;
the computer program, when run, performs the steps of the switching method for a break-in video according to any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310125644.2A CN116193200A (en) | 2023-02-03 | 2023-02-03 | Switching method, system and device for inter-cut video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310125644.2A CN116193200A (en) | 2023-02-03 | 2023-02-03 | Switching method, system and device for inter-cut video |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116193200A true CN116193200A (en) | 2023-05-30 |
Family
ID=86447292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310125644.2A Pending CN116193200A (en) | 2023-02-03 | 2023-02-03 | Switching method, system and device for inter-cut video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116193200A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101959059A (en) * | 2010-09-27 | 2011-01-26 | 深圳市同洲电子股份有限公司 | Video monitoring method, device and system |
CN102685598A (en) * | 2012-05-18 | 2012-09-19 | 南京物联传感技术有限公司 | Video switching management device and switching method |
CN103686072A (en) * | 2013-11-15 | 2014-03-26 | 北京视联动力国际信息技术有限公司 | Video internet video monitoring method and system, protocol conversion server, and video internet server |
CN103747369A (en) * | 2013-11-27 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Intelligent household control method and apparatus, and intelligent household system |
-
2023
- 2023-02-03 CN CN202310125644.2A patent/CN116193200A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101959059A (en) * | 2010-09-27 | 2011-01-26 | 深圳市同洲电子股份有限公司 | Video monitoring method, device and system |
CN102685598A (en) * | 2012-05-18 | 2012-09-19 | 南京物联传感技术有限公司 | Video switching management device and switching method |
CN103686072A (en) * | 2013-11-15 | 2014-03-26 | 北京视联动力国际信息技术有限公司 | Video internet video monitoring method and system, protocol conversion server, and video internet server |
CN103747369A (en) * | 2013-11-27 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Intelligent household control method and apparatus, and intelligent household system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106227492B (en) | Combination and mobile intelligent terminal interconnected method and device | |
CN101682762B (en) | Method for realizing random access in compressed code stream using multi-reference images and decoder | |
CN112752115B (en) | Live broadcast data transmission method, device, equipment and medium | |
CN109391800B (en) | Smart community video monitoring method and system based on broadcast television TVOS smart set top box | |
CN106331853B (en) | Multimedia de-encapsulation method and device | |
WO2021168649A1 (en) | Multifunctional receiving device and conference system | |
CN108966006A (en) | Playback method, browser equipment and the readable storage medium storing program for executing of video | |
CN112533014A (en) | Target article information processing and displaying method, device and equipment in live video | |
CN113938470A (en) | Method and device for playing RTSP data source by browser and streaming media server | |
US20240080487A1 (en) | Method, apparatus for processing media data, computer device and storage medium | |
CN101588470B (en) | Time shifting suspension method, time shifting suspension system and time shifting suspension equipment of IP-QAM video-on-demand system | |
KR20130066432A (en) | Method and apparatus for providing iptv service based on cloud | |
CN114554277A (en) | Multimedia processing method, device, server and computer readable storage medium | |
CN112333528A (en) | Stadium information publishing method and device | |
CN116193200A (en) | Switching method, system and device for inter-cut video | |
US20230025664A1 (en) | Data processing method and apparatus for immersive media, and computer-readable storage medium | |
CN106412714B (en) | A kind of method and system for realizing videophone | |
CN112055253B (en) | Method and device for adding and multiplexing independent subtitle stream | |
CN114173157B (en) | Video stream transmission method and device, electronic equipment and storage medium | |
CN102123320A (en) | Information sending and receiving method and system based on bidirectional digital television network | |
JPH1118063A (en) | Digital broadcasting receiver | |
CN113207040A (en) | Data processing method, device and system for video remote quick playback | |
CN109120881B (en) | Multi-party conference control method, system and terminal | |
CN101431622B (en) | Digital television processing equipment and processing method | |
CN105812922A (en) | Multimedia file data processing method, system, player and client |
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 |