CN110225363B - Method for switching different live broadcast sources and superposing different filters - Google Patents
Method for switching different live broadcast sources and superposing different filters Download PDFInfo
- Publication number
- CN110225363B CN110225363B CN201910618852.XA CN201910618852A CN110225363B CN 110225363 B CN110225363 B CN 110225363B CN 201910618852 A CN201910618852 A CN 201910618852A CN 110225363 B CN110225363 B CN 110225363B
- Authority
- CN
- China
- Prior art keywords
- live broadcast
- filter
- switching
- source
- live
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000000694 effects Effects 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 abstract description 4
- 230000007547 defect Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 239000009137 wuling Substances 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- 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/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/278—Subtitling
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Studio Circuits (AREA)
Abstract
The invention discloses a method for switching and superposing different filters on different live broadcast sources, which belongs to the technical field of video processing.A recording module and a switching module are established in a live broadcast processing server, a switching rule is preset in the recording module, the switching module calls an ffmpeg filter interface and initializes the live broadcast source filter interface according to filter parameters, when a live broadcast source is switched, a relevant filter is directly called through the live broadcast source filter interface, and filter processing is carried out on the switched live broadcast source, so that the technical problem that different live broadcast sources can be superposed with different filters without preprocessing the live broadcast source is solved.
Description
Technical Field
The invention belongs to the technical field of video processing, and particularly relates to a method for switching different live broadcast sources and superposing different filters.
Background
In network or television live broadcasting, sometimes it is necessary to switch between different live broadcasting sources according to user operation or switching requirements, for example, a certain scenic spot carousel channel needs to switch live broadcasting sources of different scenic spots in turn.
Supposing that filter effects such as different station captions, subtitles, station caption fuzziness and the like are superimposed on different scenic spots (for example, scenic spot introduction subtitles or scenic spot logos are added), the traditional scheme is that a live broadcast source needs to be preprocessed, namely, the filter effects are added on the live broadcast source firstly, and then switching is carried out in a switching system. The traditional scheme has the defects that additional transcoding equipment needs to be added to preprocess a live broadcast source, and the quality of output live broadcast stream video is reduced due to transcoding of the live broadcast source.
Disclosure of Invention
The invention aims to provide a method for switching different live broadcast sources and superposing different filters, which solves the technical problem that different live broadcast sources can be superposed with different filters without preprocessing the live broadcast sources.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for switching different live broadcast sources and superposing different filters comprises the following steps:
step 1: establishing a live broadcast source acquisition client and a live broadcast processing server, wherein the live broadcast source acquisition client and the live broadcast processing server are communicated through the Internet;
establishing an input module and a switching module in a live broadcast processing server, wherein the input module is used for adding switching rules and adding different filter configuration information to different live broadcast sources, and the switching module is used for switching different live broadcast sources;
step 2: a live broadcast source acquisition client acquires a live broadcast source from the internet and transmits the live broadcast source to a live broadcast processing server;
and step 3: presetting a switching rule and filter configuration information in an input module, wherein the filter configuration information is a configuration rule formulated aiming at station caption, subtitle and station caption fuzziness, the configuration rule of the station caption comprises an image path, a scaling ratio and a superposition position, the configuration rule of the subtitle comprises subtitle content, font type, font color, font size and a superposition position, and the configuration rule of the station caption fuzziness comprises a superposition position and a fuzzy area size;
and 4, step 4: when switching from one live source N to another live source M, the switching module adopts the following steps to switch:
step S1: the switching module acquires a switching rule from the logging module;
step S2: searching a live broadcast source M to be switched according to the current time and a switching rule, and judging whether to switch according to the current time; if the current time reaches the time for switching the live source M, opening the live source M, analyzing the media parameters, and if the current time does not reach the time for switching the live source M, continuing to wait and executing the step S2;
step S3: the switching module acquires filter configuration information of the live broadcast source M to be switched from the recording module, wherein the filter configuration information comprises station captions, subtitles and station caption fuzzy configuration; generating corresponding filter parameters according to the filter configuration information;
step S4: the switching module calls a ffmpeg filter interface and initializes a live source filter interface according to filter parameters, wherein the live source filter interface comprises a movie filter interface and an overlay filter interface for processing station captions, a drawtext filter interface for processing subtitles and a delay filter interface for processing station caption fuzziness;
step S5: clearing the filter used by the live broadcast source N and closing the live broadcast source N;
step S6: the switching module starts transcoding the live source M.
Preferably, the live source is video stream data.
Preferably, the filter parameters include a configuration rule of a station caption, a configuration rule of a subtitle, and a configuration rule of station caption blurring.
Preferably, the media parameters include resolution, video frame rate and encoding format.
The method for switching and overlapping different filters of different live broadcast sources solves the technical problem that different live broadcast sources can be overlapped with different filters without preprocessing the live broadcast sources, the whole process of the method only carries out transcoding once, the quality of output stream video is improved under the same configuration, various filter effects including station caption, subtitle and station caption fuzziness can be simultaneously applied, the method integrates the live broadcast source switching process and the filter overlapping process into one process, filter parameters are reinitialized while the live broadcast sources are switched, and the live broadcast process is simplified.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
As shown in fig. 1, a method for switching and superimposing different live broadcast sources includes the following steps:
step 1: establishing a live broadcast source acquisition client and a live broadcast processing server, wherein the live broadcast source acquisition client and the live broadcast processing server are communicated through the Internet;
establishing an input module and a switching module in a live broadcast processing server, wherein the input module is used for adding different filter information to different live broadcast sources, and the switching module is used for switching different live broadcast sources;
step 2: a live broadcast source acquisition client acquires a live broadcast source from the internet and transmits the live broadcast source to a live broadcast processing server;
and step 3: presetting a switching rule and filter configuration information in an input module, wherein the filter configuration information is a configuration rule formulated aiming at station caption, subtitle and station caption fuzziness, the configuration rule of the station caption comprises an image path, a scaling ratio and a superposition position, the configuration rule of the subtitle comprises subtitle content, font type, font color, font size and a superposition position, and the configuration rule of the station caption fuzziness comprises a superposition position and a fuzzy area size;
in this embodiment, the switching rule refers to a switching rule among a plurality of live broadcast sources, which is equivalent to a program list, for example, switching a live broadcast picture of a scenic spot 1 at 08:00, switching a live broadcast picture of a scenic spot 2 at 08:05, and switching a live broadcast picture of a scenic spot 3 at 08: 10;
the filter configuration information refers to the logo, caption, and fuzzy configuration of a single live source.
And 4, step 4: when switching from one live source N to another live source M, the switching module adopts the following steps to switch:
step S1: the switching module acquires a switching rule and filter configuration from the recording module;
step S2: searching a live broadcast source M to be switched according to the current time and a switching rule, and judging whether to switch according to the current time; if the current time reaches the time for switching the live source M, opening the live source M, analyzing the media parameters, and if the current time does not reach the time for switching the live source M, continuing to wait and executing the step S2;
step S3: the switching module acquires filter configuration information of the live broadcast source M to be switched from the recording module, wherein the filter configuration information comprises station captions, subtitles and station caption fuzzy configuration; generating corresponding filter parameters according to the filter configuration information;
step S4: the switching module calls a ffmpeg filter interface and initializes a live source filter interface according to filter parameters, wherein the live source filter interface comprises a movie filter interface and an overlay filter interface for processing station captions, a drawtext filter interface for processing subtitles and a delay filter interface for processing station caption fuzziness;
step S5: clearing the filter used by the live broadcast source N and closing the live broadcast source N;
step S6: the switching module starts transcoding the live source M.
The switching module enables the filter to take effect in the transcoding process, and calls the movie filter, the overlay filter, the drawtext filter and the delay filter through the live source filter interface to respectively process the station caption, the caption and the station caption fuzziness of the live source M, wherein the station caption calls the movie filter interface and the overlay filter interface, the caption calls the drawtext filter interface, and the station caption fuzziness calls the delay filter interface.
The steps S2 to S6 are repeatedly performed, thereby achieving switching between live sources.
For example, the filter configuration of the live broadcast source M includes a station caption configuration and a subtitle configuration, and the station caption configuration information includes: png, picture path/mnt/clip/pic, picture superposition position X100, Y100, and picture scaling size 50%; the subtitle configuration information includes: the caption content is' the general queue is located in the Tianzishan scenic region in the northwest of the scenic spot of the Wuling source region, the mountain shape is peculiar, and the general queue is lifelike. ", font type bold, font color white, font size 30.
The filter interface is a subprogram provided by ffmpeg, corresponding filter effects can be realized on live broadcast by configuring related parameters, and the roll captions can be realized on the bottom line of a live broadcast picture after configuration.
When the switching module starts transcoding, related transcoding parameters are configured to start transcoding by using a transcoding interface provided by ffmpeg. The reason for transcoding is because the encoding formats of the live source N and the live source M may be different, such as 1280x720 for resolution of N, 20fps for frame rate, mpeg for encapsulation format; the resolution of M is 1920x1080, the frame rate is 25fps, and the packing format is flv. They need to be transcoded into a uniform format such as 1280x720, 25fps, flv packed downstream for reception.
Preferably, the live source is video stream data.
Preferably, the filter parameters include a station caption arrangement rule, a subtitle arrangement rule, and a station caption blurring arrangement rule defined in the switching rule.
Preferably, the media parameters include resolution, video frame rate and encoding format, such as h264, aac, etc.
The invention relates to a method for switching different live broadcast sources and superposing different filters, which solves the technical problem that different live broadcast sources can be superposed with different filters without preprocessing the live broadcast sources.
Claims (3)
1. A method for switching different live broadcast sources and superposing different filters is characterized in that: the method comprises the following steps:
step 1: establishing a live broadcast source acquisition client and a live broadcast processing server, wherein the live broadcast source acquisition client and the live broadcast processing server are communicated through the Internet;
establishing an input module and a switching module in a live broadcast processing server, wherein the input module is used for adding switching rules and adding different filter configuration information to different live broadcast sources, and the switching module is used for switching different live broadcast sources;
step 2: a live broadcast source acquisition client acquires a live broadcast source from the internet and transmits the live broadcast source to a live broadcast processing server;
and step 3: presetting a switching rule and filter configuration information in an input module, wherein the filter configuration information is a configuration rule formulated aiming at station caption, subtitle and station caption fuzziness, the configuration rule of the station caption comprises an image path, a scaling ratio and a superposition position, the configuration rule of the subtitle comprises subtitle content, font type, font color, font size and a superposition position, and the configuration rule of the station caption fuzziness comprises a superposition position and a fuzzy area size;
and 4, step 4: when switching from one live source N to another live source M, the switching module adopts the following steps to switch:
step S1: the switching module acquires a switching rule from the logging module;
step S2: searching a live broadcast source M to be switched according to the current time and a switching rule, and judging whether to switch according to the current time; if the current time reaches the time for switching the live source M, opening the live source M, analyzing the media parameters, and if the current time does not reach the time for switching the live source M, continuing to wait and executing the step S2;
step S3: the switching module acquires filter configuration information of the live broadcast source M to be switched from the recording module, wherein the filter configuration information comprises station captions, subtitles and station caption fuzzy configuration; generating corresponding filter parameters according to the filter configuration information;
the filter parameters comprise a station caption configuration rule, a subtitle configuration rule and a station caption fuzzy configuration rule;
step S4: the switching module calls a ffmpeg filter interface and initializes a live source filter interface according to filter parameters, wherein the live source filter interface comprises a movie filter interface and an overlay filter interface for processing station captions, a drawtext filter interface for processing subtitles and a delay filter interface for processing station caption fuzziness;
step S5: clearing the filter used by the live broadcast source N and closing the live broadcast source N;
step S6: the switching module starts transcoding the live broadcast source M;
the switching module enables the filter to take effect in the transcoding process, and calls the movie filter, the overlay filter, the drawtext filter and the delay filter through the live source filter interface to respectively process the station caption, the caption and the station caption fuzziness of the live source M, wherein the station caption calls the movie filter interface and the overlay filter interface, the caption calls the drawtext filter interface, and the station caption fuzziness calls the delay filter interface.
2. The method of claim 1, wherein the method comprises the steps of: the live broadcast source is video stream data.
3. The method of claim 1, wherein the method comprises the steps of: the media parameters include resolution, video frame rate, and encoding format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910618852.XA CN110225363B (en) | 2019-07-10 | 2019-07-10 | Method for switching different live broadcast sources and superposing different filters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910618852.XA CN110225363B (en) | 2019-07-10 | 2019-07-10 | Method for switching different live broadcast sources and superposing different filters |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110225363A CN110225363A (en) | 2019-09-10 |
CN110225363B true CN110225363B (en) | 2021-08-06 |
Family
ID=67812332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910618852.XA Active CN110225363B (en) | 2019-07-10 | 2019-07-10 | Method for switching different live broadcast sources and superposing different filters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110225363B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2089679U (en) * | 1991-04-16 | 1991-11-27 | 朱甡林 | Broadcasting controller for closed circuit television |
CN1103526A (en) * | 1993-12-04 | 1995-06-07 | 行健电讯股份有限公司 | Method and system for overlapping text on live broadcast of satellite |
CN1767601A (en) * | 2005-10-21 | 2006-05-03 | 西安交通大学 | Synchronous broadcast controlling method capable of supporting multi-source stream media |
CN101188695A (en) * | 2007-11-19 | 2008-05-28 | 新奥特(北京)视频技术有限公司 | A method for separation, preparation and playing of TV station caption and video |
US9615098B1 (en) * | 2009-11-30 | 2017-04-04 | Google Inc. | Adaptive resolution transcoding for optimal visual quality |
CN107533230A (en) * | 2015-03-06 | 2018-01-02 | 索尼互动娱乐股份有限公司 | Head mounted display tracing system |
WO2018011684A1 (en) * | 2016-07-09 | 2018-01-18 | Videotap Pte. Ltd | Method and system for recommending dynamic, adaptive and non- sequentially assembled videos |
CN108289159A (en) * | 2017-05-25 | 2018-07-17 | 广州华多网络科技有限公司 | A kind of terminal live streaming special efficacy add-on system, method and terminal live broadcast system |
CN109889857A (en) * | 2019-02-02 | 2019-06-14 | 天脉聚源(北京)科技有限公司 | A kind of realization method and system of irregular video poster |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180247672A1 (en) * | 2017-02-24 | 2018-08-30 | Entry Point Vr, Inc. | Bundling Separate Video Files to Support a Controllable End-User Viewing Experience with Frame-Level Synchronization |
-
2019
- 2019-07-10 CN CN201910618852.XA patent/CN110225363B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2089679U (en) * | 1991-04-16 | 1991-11-27 | 朱甡林 | Broadcasting controller for closed circuit television |
CN1103526A (en) * | 1993-12-04 | 1995-06-07 | 行健电讯股份有限公司 | Method and system for overlapping text on live broadcast of satellite |
CN1767601A (en) * | 2005-10-21 | 2006-05-03 | 西安交通大学 | Synchronous broadcast controlling method capable of supporting multi-source stream media |
CN101188695A (en) * | 2007-11-19 | 2008-05-28 | 新奥特(北京)视频技术有限公司 | A method for separation, preparation and playing of TV station caption and video |
US9615098B1 (en) * | 2009-11-30 | 2017-04-04 | Google Inc. | Adaptive resolution transcoding for optimal visual quality |
CN107533230A (en) * | 2015-03-06 | 2018-01-02 | 索尼互动娱乐股份有限公司 | Head mounted display tracing system |
WO2018011684A1 (en) * | 2016-07-09 | 2018-01-18 | Videotap Pte. Ltd | Method and system for recommending dynamic, adaptive and non- sequentially assembled videos |
CN108289159A (en) * | 2017-05-25 | 2018-07-17 | 广州华多网络科技有限公司 | A kind of terminal live streaming special efficacy add-on system, method and terminal live broadcast system |
CN109889857A (en) * | 2019-02-02 | 2019-06-14 | 天脉聚源(北京)科技有限公司 | A kind of realization method and system of irregular video poster |
Also Published As
Publication number | Publication date |
---|---|
CN110225363A (en) | 2019-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9525895B2 (en) | Transmission device, transmission method, reception device, and reception method | |
CN107483460B (en) | Method and system for multi-platform parallel broadcasting and stream pushing | |
US8087044B2 (en) | Methods, apparatus, and systems for managing the insertion of overlay content into a video signal | |
DE10010490B4 (en) | Apparatus and method for transmitting digital image disk information | |
CN106911936B (en) | Dynamic static video stream film covering method | |
US8925030B2 (en) | Fast channel change via a mosaic channel | |
US9218644B2 (en) | Method and system for enhanced 2D video display based on 3D video input | |
US5638130A (en) | Display system with switchable aspect ratio | |
US9693095B2 (en) | Device and method for composing programmes from different sources in baseband | |
US6775842B1 (en) | Method and arrangement for transmitting and receiving encoded images | |
JPH1023407A (en) | Device and method for encoding picture device and method for decoding picture, picture transmitting method, and recording medium | |
US10924779B2 (en) | Location agnostic media control room and broadcasting facility | |
US10750228B2 (en) | System and method for operating a transmission network | |
EP3288272A1 (en) | Apparatus for transmitting broadcasting signal, apparatus for receiving broadcasting signal, method for transmitting broadcasting signal, and method for receiving broadcasting signal | |
US7327790B1 (en) | MPEG on screen display coder for DTV interfaces | |
US11843822B2 (en) | Transmission apparatus, transmission method, encoding apparatus, encoding method, reception apparatus, and reception method | |
CN110225363B (en) | Method for switching different live broadcast sources and superposing different filters | |
US8750384B2 (en) | Method and apparatus for avoiding quality deterioration of transmitted media content | |
US20100228610A1 (en) | Adding text or graphics to an advertisement using dtv closed captioning | |
CN105163169A (en) | Data package format method and system suitable for transmission | |
KR20030062355A (en) | Coding process and device for the displaying of a zoomed mpeg2 coded image | |
JP2002281463A (en) | Device and method for encoding image, device and method for decoding image and recording medium | |
KR100308298B1 (en) | Apparatus and method for displaying title data of wide digital television | |
US20070258522A1 (en) | Creation and compression of video data | |
WO2016036012A1 (en) | Method and device for transmitting/receiving broadcast signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |