CN110691260A - IPTV multi-split screen coding playing control method and device - Google Patents
IPTV multi-split screen coding playing control method and device Download PDFInfo
- Publication number
- CN110691260A CN110691260A CN201911002385.4A CN201911002385A CN110691260A CN 110691260 A CN110691260 A CN 110691260A CN 201911002385 A CN201911002385 A CN 201911002385A CN 110691260 A CN110691260 A CN 110691260A
- Authority
- CN
- China
- Prior art keywords
- video
- playing
- media
- media source
- split
- 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 38
- 238000013329 compounding Methods 0.000 claims description 5
- 238000012790 confirmation Methods 0.000 claims description 5
- 238000012163 sequencing technique Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 150000001875 compounds Chemical class 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 5
- 239000002131 composite material Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material 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/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
-
- 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/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/2365—Multiplexing of several video 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/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/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/2368—Multiplexing of audio and video 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
- H04N21/26216—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
-
- 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/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
- H04N21/42206—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
- H04N21/42212—Specific keyboard arrangements
- H04N21/42218—Specific keyboard arrangements for mapping a matrix of displayed objects on the screen to the numerical key-matrix of the remote control
-
- 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/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4383—Accessing a communication channel
- H04N21/4384—Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
-
- 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/482—End-user interface for program selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a method and a device for controlling playing of IPTV multi-split screen coding, wherein the method comprises the following steps: receiving a plurality of paths of media streams, performing screen division coding on videos in the plurality of paths of media streams, compositing all the videos subjected to screen division coding into a path of media source, and outputting the media source to a streaming media server; playing the video in the media source through a front-end EPG according to the information of the media source returned by the streaming media server; and acquiring a focus area of a video selected by a user from the playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area. The invention compounds the multi-channel media stream into one media source after the multi-channel media stream is subjected to split screen coding, and performs split screen playing on the one media source, thereby greatly reducing the bandwidth requirement.
Description
Technical Field
The invention belongs to the technical field of IPTV coding, and particularly relates to a method and a device for controlling playing of IPTV multi-split screen coding.
Background
With the development of internet technology, more and more users play streaming media through network players, such as watching videos and listening to audios.
In the prior art, most IPTV (Internet Protocol Television) users view channels one by one and then select a playing channel, which is cumbersome to operate and time consuming, so that user experience is very poor.
The IPTV set top box can provide playing, and the specific steps are as follows: firstly, 4-split screen or 9-split screen playing is carried out according to the channel, then 4-path or 9-path media stream data is requested at the same time, and finally the media stream data is synchronously played at the IPTV set top box. The bandwidth requirement is very high in the mode, and the bandwidth of a common user family is difficult to meet the bandwidth requirement, so that the phenomena of instability of audio and video playing, blocking and the like can be caused. In addition, since 4 or 9 paths of media data need to be decoded simultaneously, higher requirements are configured for decoding of the IPTV set-top box, otherwise problems such as playing card pause and screen splash may occur.
In summary, the existing multi-split-screen coding playing control method is tedious in operation, time-consuming and labor-consuming, high in requirements for broadband and decoding configuration, and unstable in playing.
Disclosure of Invention
In order to overcome the problems of complex operation, time and labor waste and unstable playing of the existing multi-split-screen coding playing control method or at least partially solve the problems, embodiments of the present invention provide a multi-split-screen coding playing control method and apparatus for an IPTV.
According to a first aspect of the embodiments of the present invention, there is provided a method for controlling playing of an IPTV multi-split screen code, including:
receiving a plurality of media streams, performing screen division coding on videos in the plurality of media streams, compositing all the videos subjected to screen division coding into a media source, and outputting the media source to a streaming media server;
according to the information of the media source returned by the streaming media server, playing a video in the media source through a front-end EPG;
acquiring a focus area of a video selected by a user from a playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
Preferably, the step of performing split-screen coding on the video in the multi-path media stream comprises:
determining the number of rows and columns of the video to be played according to the number of the paths of the media stream;
and coding the height and width of each video according to the page size of the front-end EPG, and the number of the rows and the columns.
Preferably, the step of determining the number of rows and the number of columns of the video to be played according to the number of paths of the media stream includes:
if the number of the paths is 2, setting the number of the rows to be 1 and the number of the columns to be 2;
if the number of the paths is more than 2, gradually adding 1 to the value of a preset parameter from 2, and judging whether the square of the current value of the preset parameter is more than or equal to the number of the paths before adding 1 each time;
if yes, setting the column number and the row number to be equal to the current values of the preset parameters; if not, adding 1 to the value of the preset parameter until the square of the latest value of the preset parameter is greater than or equal to the number of paths, and setting the number of columns and the number of rows to be equal to the latest value of the preset parameter.
Preferably, the step of composing all the videos after screen-division encoding into a media source and outputting the media source to a streaming server includes:
and sequencing the videos according to the sequence from left to right and from top to bottom according to the number of the rows and the columns of the videos played, compositely encoding the sequenced videos into a video, and outputting the video serving as a media source to a streaming media server.
Preferably, the step of composing all the videos after screen-division encoding into a media source and outputting the media source to a streaming media server further comprises:
and acquiring audio in the multi-path media stream, packaging the audio and a path of media source formed by compounding the video, and outputting the packaged audio and the path of media source to the streaming media server.
Preferably, the information of the media source includes the number of rows and columns of video arrangement in the media source, and a video playing address ID corresponding to each video and an audio playing address ID corresponding to the video playing address ID.
Preferably, the step of acquiring a focus area of a video selected by a user from a playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area includes:
dividing the page of the front-end EPG according to the height and width of each video after split-screen coding, and determining a focus area corresponding to each video according to the division result;
selecting the focus area according to the operation of a user on a direction key in a remote controller;
and when the fact that the user presses a confirmation key in the remote controller is obtained, playing the video corresponding to the video playing address according to the selected video playing address corresponding to the focus area.
According to a second aspect of the embodiments of the present invention, there is provided an IPTV multi-split screen coding playing control device, including:
the encoding module is used for receiving a plurality of paths of media streams, performing screen division encoding on videos in the plurality of paths of media streams, compositing all the videos subjected to screen division encoding into a path of media source, and outputting the media source to a streaming media server;
the playing module is used for playing the video in the media source through a front-end EPG according to the information of the media source returned by the streaming media server;
and the control module is used for acquiring a focus area of a video selected by a user from a playing picture and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
According to a third aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor calls the program instructions to execute the IPTV multi-split-screen coding playback control method provided in any of the various possible implementations of the first aspect.
According to a fourth aspect of the embodiments of the present invention, there is further provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the IPTV multi-split-screen coding playback control method provided in any one of the various possible implementation manners of the first aspect.
The embodiment of the invention provides a method and a device for controlling playing of IPTV multi-split screen coding, the method compounds a plurality of media streams into a media source after the multi-channel media streams are subjected to the multi-split screen coding, and the media source is subjected to the split screen playing, so that the bandwidth requirement is greatly reduced, meanwhile, only the compounded media source is required to be decoded during the decoding, and under the condition that the configuration of a set top box is the same, multi-split screen pictures can be played more clearly and efficiently, and the rapid channel selection is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic overall flow chart of a multi-split-screen encoding playing control method according to an embodiment of the present invention;
fig. 2 is a schematic view of multi-split screen codes in the multi-split screen code playing control method according to the embodiment of the present invention;
fig. 3 is a schematic diagram illustrating EPG playing in the multi-split-screen encoding playing control method according to the embodiment of the present invention;
fig. 4 is a schematic view of an overall structure of a multi-split-screen encoding and playing control apparatus according to an embodiment of the present invention;
fig. 5 is a schematic view of an overall structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
In an embodiment of the present invention, a multi-split-screen coding playing control method is provided, and fig. 1 is a schematic overall flow chart of the multi-split-screen coding playing control method provided in the embodiment of the present invention, where the method includes: s101, receiving a plurality of paths of media streams, performing screen division coding on videos in the plurality of paths of media streams, compositing all the videos subjected to screen division coding into a path of media source, and outputting the media source to a streaming media server;
specifically, N media streams are received by the transcoding server, and according to the number N of the received media streams, the N videos in the N media streams are subjected to split-screen encoding, for example, the videos are subjected to split-screen encoding according to 3 × 3, 2 × 2, or 4 × 4, and the like. And combining the N paths of videos subjected to split screen coding into one path of media source for outputting, namely combining the N paths of videos into one picture, and pushing the output media source to a streaming media server.
Meanwhile, N audio in the N media streams and one composite video may be encapsulated and transmitted, so that audio and video are mixed into one media stream, and the mixed audio and video is output to a streaming media server, as shown in fig. 2. Preferably, the audio in each media stream is compressed and encoded into the same format and output.
S102, according to the information of the media source returned by the streaming media server, playing a video in the media source through a front-end EPG;
and the streaming media server returns the information of the media source after receiving the media source which is finished by compounding so that the front-end EPG plays one path of video in the media source according to the information of the media source. The information of the media source includes the arrangement mode of the videos, namely the values of rnum and cnum, the video playing address ID corresponding to the videos, and the audio playing address ID corresponding to the video playing address ID. The present embodiment is not limited to such information. Where rnum represents the number of videos placed in each row, and cnum represents the number of videos placed in each column.
S103, acquiring a focus area of a video selected by a user from a playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
Each video in the playing picture is divided into corresponding focus areas in advance, a user selects the focus areas by operating a remote controller, and the video corresponding to the video playing address ID is played according to the video playing address ID corresponding to the focus area selected by the user. Wherein, the incidence relation between the focus area and the video playing address ID is stored in advance.
In the embodiment, multiple media streams are composited into one media source after being subjected to split screen coding, and one media source is subjected to split screen playing, so that the bandwidth requirement is greatly reduced, meanwhile, only one composite media source needs to be decoded during decoding, and under the condition that the configuration of the set top box is the same, multiple split screen pictures can be played more clearly and efficiently, so that rapid channel selection is realized.
On the basis of the foregoing embodiment, in this embodiment, the step of performing split-screen encoding on the video in the multiple media streams includes: determining the number of rows and columns of the video to be played according to the number of the paths of the media stream; and coding the height and width of each video according to the page size of the front-end EPG, and the number of the rows and the columns.
Specifically, in order to reasonably arrange the video-friendly video of the input source on the picture of the output media stream, the number of rows and columns of the composite video is determined according to the number of paths N of the media stream. For example, the page size of the front-end EPG is 1920 × 1080, a width of each video code is obtained by dividing 1920 by the number of columns, and a height of each video code is obtained by dividing 1080 by the number of rows, so that the encoder uniformly encodes all videos according to the height and width, and then combines and outputs the videos.
On the basis of the foregoing embodiment, in this embodiment, the step of determining the number of rows and the number of columns for playing the video according to the number of paths of the media stream includes: if the number of the paths is 2, setting the number of the rows to be 1 and the number of the columns to be 2; if the number of the paths is more than 2, gradually adding 1 to the value of a preset parameter from 2, and judging whether the square of the current value of the preset parameter is more than or equal to the number of the paths before adding 1 each time; if yes, setting the column number and the row number to be equal to the current values of the preset parameters; if not, adding 1 to the value of the preset parameter until the square of the latest value of the preset parameter is greater than or equal to the number of paths, and setting the number of columns and the number of rows to be equal to the latest value of the preset parameter.
Specifically, if N media streams are received, as shown in fig. 2, after the N media streams enter the transcoding server, the transcoding server sorts videos to be scaled and encoded according to the value of N. The specific method is that if N is 2, rnum is 2, and cnum is 1; if N >2, setting the variable num to 2, calculating the square of num, and if the calculated value is greater than or equal to N, setting rnum to num and cnum to num; otherwise num is added with 1, and the above determination is continued until a suitable num is found, so that the square of num is greater than or equal to N, where num is set to num, and cnum is set to num. When playing the video, playing the video according to the calculated video line number and column number.
On the basis of the foregoing embodiments, in this embodiment, all the videos subjected to screen division coding are composited into one media source, and the step of outputting the media source to the streaming server includes: and sequencing the videos according to the sequence from left to right and from top to bottom according to the number of the rows and the columns of the videos played, compositely encoding the sequenced videos into a video, and outputting the video serving as a media source to a streaming media server.
Specifically, after receiving multiple input media streams, the transcoding server scales the video in each media stream according to the number of the input media streams, and sequentially combines the scaled video into one video. And sequencing the zoomed videos in each media stream from left to right and from top to bottom in sequence according to rnum videos in each row and cNum videos in each column during compositing, and compositely encoding the sequenced videos into a video and outputting the video.
On the basis of the foregoing embodiments, in this embodiment, a step of acquiring a focus area of a video selected by a user from a playing screen, and playing a video corresponding to a video playing address according to the video playing address corresponding to the focus area includes: dividing the page of the front-end EPG according to the height and width of each video after split-screen coding, and determining a focus area corresponding to each video according to the division result; selecting the focus area according to the operation of a user on a direction key in a remote controller; and when the fact that the user presses a confirmation key in the remote controller is obtained, playing the video corresponding to the video playing address according to the selected video playing address corresponding to the focus area.
Specifically, the front-end EPG performs area division on an EPG page according to parameters carried by a play URL provided by the streaming server, that is, the height and width of each video after split-screen encoding, and divides a corresponding focus area for each video. Thereby dividing the EPG page into a plurality of focus areas of rnum columns and cnum rows. The default user selects the first focus area in the upper left corner and a focus box is displayed around the selected focus area, as shown in fig. 3. When the user moves to select the focus area through the up, down, left and right keys on the remote controller, the focus frame moves up, down, left and right. The right key is moved to the right by one focus area, the left key is moved to the left by one focus area, the up key is moved to the up by one focus area, and the down key is moved to the down by one focus area. And when the user presses the confirmation key, requesting the selected video playing address corresponding to the focus area, and starting playing the video selected by the user according to the video playing address.
In another embodiment of the present invention, an IPTV multi-split-screen coded playing control device is provided, which is used to implement the methods in the foregoing embodiments. Therefore, the description and definition in each embodiment of the IPTV multi-split-screen coding playing control method can be used for understanding each execution module in the embodiment of the present invention. Fig. 4 is a schematic diagram of an overall structure of an IPTV multi-split-screen encoding playing control device according to an embodiment of the present invention, where the device includes an encoding module 401, a playing module 402, and a control module 403, where:
the encoding module 401 is configured to receive multiple media streams, perform screen-division encoding on videos in the multiple media streams, combine all the videos after screen-division encoding into one media source, and output the media source to a streaming media server;
the encoding module 401 receives N media streams through the transcoding server, and performs screen-division encoding on N videos in the N media streams according to the number N of the received media streams. And combining the N paths of videos subjected to split screen coding into one path of media source for outputting, namely combining the N paths of videos into one picture, and pushing the output media source to a streaming media server.
Meanwhile, N audio in the N media streams and one composite video may be encapsulated and transmitted, so that audio and video are mixed into one media stream, and the mixed audio and video is output to a streaming media server, as shown in fig. 2. Preferably, the audio in each media stream is compressed and encoded into the same format and output.
The playing module 402 is configured to play a video in the media source through a front-end EPG according to the information of the media source returned by the streaming media server;
and the streaming media server returns the information of the media source after receiving the media source which is finished by compounding so that the front-end EPG plays one path of video in the media source according to the information of the media source. The information of the media source comprises the arrangement mode of the videos, the video playing address ID corresponding to the videos and the audio playing address ID corresponding to the video playing address ID. The present embodiment is not limited to such information.
The control module 403 is configured to obtain a focus area of a video selected by a user from a playing picture, and play a video corresponding to a video playing address according to the video playing address corresponding to the focus area.
Each video in the playing picture is divided into corresponding focus areas in advance, a user selects the focus areas by operating a remote controller, and the control module 403 plays the video corresponding to the video playing address ID according to the video playing address ID corresponding to the focus area selected by the user. Wherein, the incidence relation between the focus area and the video playing address ID is stored in advance.
In the embodiment, multiple media streams are composited into one media source after being subjected to split screen coding, and one media source is subjected to split screen playing, so that the bandwidth requirement is greatly reduced, meanwhile, only one composite media source needs to be decoded during decoding, and under the condition that the configuration of the set top box is the same, multiple split screen pictures can be played more clearly and efficiently, so that rapid channel selection is realized.
On the basis of the foregoing embodiment, in this embodiment, the encoding module is specifically configured to determine, according to the number of paths of the media stream, the number of lines and the number of columns in which the video is played; and coding the height and width of each video according to the page size of the front-end EPG, and the number of the rows and the columns.
On the basis of the foregoing embodiment, in this embodiment, the encoding module is further configured to: if the number of the paths is 2, setting the number of the rows to be 1 and the number of the columns to be 2; if the number of the paths is more than 2, gradually adding 1 to the value of a preset parameter from 2, and judging whether the square of the current value of the preset parameter is more than or equal to the number of the paths before adding 1 each time; if yes, setting the column number and the row number to be equal to the current values of the preset parameters; if not, adding 1 to the value of the preset parameter until the square of the latest value of the preset parameter is greater than or equal to the number of paths, and setting the number of columns and the number of rows to be equal to the latest value of the preset parameter.
On the basis of the foregoing embodiment, the encoding module in this embodiment is specifically configured to: and sequencing the videos according to the sequence from left to right and from top to bottom according to the number of the rows and the columns of the videos played, compositely encoding the sequenced videos into a video, and outputting the video serving as a media source to a streaming media server.
On the basis of the foregoing embodiment, in this embodiment, the encoding module is further configured to: and acquiring audio in the multi-path media stream, packaging the audio and a path of media source formed by compounding the video, and outputting the packaged audio and the path of media source to the streaming media server.
On the basis of the foregoing embodiment, in this embodiment, the information of the media source includes the number of rows and columns of video arrangement in the media source, and a video playing address ID corresponding to each video and an audio playing address ID corresponding to the video playing address ID.
On the basis of the foregoing embodiments, the control module in this embodiment is specifically configured to: dividing the page of the front-end EPG according to the height and width of each video after split-screen coding, and determining a focus area corresponding to each video according to the division result; selecting the focus area according to the operation of a user on a direction key in a remote controller; and when the fact that the user presses a confirmation key in the remote controller is obtained, playing the video corresponding to the video playing address according to the selected video playing address corresponding to the focus area.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call logic instructions in the memory 503 to perform the following method: receiving a plurality of paths of media streams, performing screen division coding on videos in the plurality of paths of media streams, compositing all the videos subjected to screen division coding into a path of media source, and outputting the media source to a streaming media server; playing the video in the media source through a front-end EPG according to the information of the media source returned by the streaming media server; and acquiring a focus area of a video selected by a user from the playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above method embodiments, for example, including: receiving a plurality of paths of media streams, performing screen division coding on videos in the plurality of paths of media streams, compositing all the videos subjected to screen division coding into a path of media source, and outputting the media source to a streaming media server; playing the video in the media source through a front-end EPG according to the information of the media source returned by the streaming media server; and acquiring a focus area of a video selected by a user from the playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An IPTV multi-split screen coding playing control method is characterized by comprising the following steps:
receiving a plurality of media streams, performing screen division coding on videos in the plurality of media streams, compositing all the videos subjected to screen division coding into a media source, and outputting the media source to a streaming media server;
according to the information of the media source returned by the streaming media server, playing a video in the media source through a front-end EPG;
acquiring a focus area of a video selected by a user from a playing picture, and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
2. The IPTV multi-split-screen coding playing control method according to claim 1, wherein the step of performing split-screen coding on the video in the multi-path media stream comprises:
determining the number of rows and columns of the video to be played according to the number of the paths of the media stream;
and coding the height and width of each video according to the page size of the front-end EPG, and the number of the rows and the columns.
3. The IPTV multi-split-screen coding play control method of claim 2, wherein the step of determining the number of rows and columns of the video to be played according to the number of paths of the media stream comprises:
if the number of the paths is 2, setting the number of the rows to be 1 and the number of the columns to be 2;
if the number of the paths is more than 2, gradually adding 1 to the value of a preset parameter from 2, and judging whether the square of the current value of the preset parameter is more than or equal to the number of the paths before adding 1 each time;
if yes, setting the column number and the row number to be equal to the current values of the preset parameters; if not, adding 1 to the value of the preset parameter until the square of the latest value of the preset parameter is greater than or equal to the number of paths, and setting the number of columns and the number of rows to be equal to the latest value of the preset parameter.
4. The IPTV multi-split-screen coding playing control method according to claim 2, wherein all the videos after split-screen coding are composited into a media source, and the step of outputting the media source to a streaming media server comprises:
and sequencing the videos according to the sequence from left to right and from top to bottom according to the number of the rows and the columns of the videos played, compositely encoding the sequenced videos into a video, and outputting the video serving as a media source to a streaming media server.
5. The IPTV multi-split-screen coding play control method of claim 1, wherein compositing all the videos subjected to split-screen coding into a media source, and outputting the media source to a streaming server further comprises:
and acquiring audio in the multi-path media stream, packaging the audio and a path of media source formed by compounding the video, and outputting the packaged audio and the path of media source to the streaming media server.
6. The IPTV multi-split screen coding play control method according to claim 5, wherein the information of the media source comprises a number of rows and a number of columns of videos arranged in the media source, and a video play address ID corresponding to each of the videos and an audio play address ID corresponding to the video play address ID.
7. The IPTV multi-split-screen coding playing control method according to any one of claims 1-6, wherein a focus area of a video selected by a user from a playing picture is obtained, and the step of playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area comprises:
dividing the page of the front-end EPG according to the height and width of each video after split-screen coding, and determining a focus area corresponding to each video according to the division result;
selecting the focus area according to the operation of a user on a direction key in a remote controller;
and when the fact that the user presses a confirmation key in the remote controller is obtained, playing the video corresponding to the video playing address according to the selected video playing address corresponding to the focus area.
8. An IPTV multi-split screen coding playing control device is characterized by comprising:
the encoding module is used for receiving a plurality of paths of media streams, performing screen division encoding on videos in the plurality of paths of media streams, compositing all the videos subjected to screen division encoding into a path of media source, and outputting the media source to a streaming media server;
the playing module is used for playing the video in the media source through a front-end EPG according to the information of the media source returned by the streaming media server;
and the control module is used for acquiring a focus area of a video selected by a user from a playing picture and playing the video corresponding to the video playing address according to the video playing address corresponding to the focus area.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the IPTV multi-split-screen coding playback control method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the steps of the IPTV multi-split-screen coding playback control method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911002385.4A CN110691260A (en) | 2019-10-21 | 2019-10-21 | IPTV multi-split screen coding playing control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911002385.4A CN110691260A (en) | 2019-10-21 | 2019-10-21 | IPTV multi-split screen coding playing control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110691260A true CN110691260A (en) | 2020-01-14 |
Family
ID=69113499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911002385.4A Pending CN110691260A (en) | 2019-10-21 | 2019-10-21 | IPTV multi-split screen coding playing control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110691260A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111885346A (en) * | 2020-08-28 | 2020-11-03 | 中移(杭州)信息技术有限公司 | Picture code stream synthesis method, terminal, electronic device and storage medium |
CN112738609A (en) * | 2020-12-24 | 2021-04-30 | 浙江传媒学院 | Multi-channel video stream transmission method and device and multi-channel video stream playing system |
CN112752036A (en) * | 2020-12-28 | 2021-05-04 | 北京爱奇艺科技有限公司 | Video processing method and device |
CN113068008A (en) * | 2021-03-24 | 2021-07-02 | 苏州科达科技股份有限公司 | Decoding method, encoding method, code stream transmission method, electronic equipment and system |
CN113301295A (en) * | 2021-04-08 | 2021-08-24 | 上海艾策通讯科技股份有限公司 | Multi-picture video data processing method, device, computer equipment and storage medium |
CN117411998A (en) * | 2023-09-05 | 2024-01-16 | 北京仁光科技有限公司 | Monitoring system, method, equipment and medium based on network transmission |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949846A (en) * | 2006-11-09 | 2007-04-18 | 华为技术有限公司 | Method, system apparatus and set top box for displaying mutli-channel information in identical picture |
CN104332153A (en) * | 2013-07-22 | 2015-02-04 | 浙江大华技术股份有限公司 | Video playing method and device |
CN106131666A (en) * | 2016-07-18 | 2016-11-16 | 杭州当虹科技有限公司 | A kind of set-top box video navigation system based on many tracks Video Composition technology |
CN106341622A (en) * | 2015-07-06 | 2017-01-18 | 阿里巴巴集团控股有限公司 | Multi-channel video stream coding method and device |
CN109117813A (en) * | 2018-08-24 | 2019-01-01 | 北京新界教育科技有限公司 | Method for processing video frequency and device |
CN109587431A (en) * | 2018-11-12 | 2019-04-05 | 深圳威尔视觉传媒有限公司 | A kind of multi-channel video code stream merging method, device, equipment and storage medium |
-
2019
- 2019-10-21 CN CN201911002385.4A patent/CN110691260A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949846A (en) * | 2006-11-09 | 2007-04-18 | 华为技术有限公司 | Method, system apparatus and set top box for displaying mutli-channel information in identical picture |
CN104332153A (en) * | 2013-07-22 | 2015-02-04 | 浙江大华技术股份有限公司 | Video playing method and device |
CN106341622A (en) * | 2015-07-06 | 2017-01-18 | 阿里巴巴集团控股有限公司 | Multi-channel video stream coding method and device |
CN106131666A (en) * | 2016-07-18 | 2016-11-16 | 杭州当虹科技有限公司 | A kind of set-top box video navigation system based on many tracks Video Composition technology |
CN109117813A (en) * | 2018-08-24 | 2019-01-01 | 北京新界教育科技有限公司 | Method for processing video frequency and device |
CN109587431A (en) * | 2018-11-12 | 2019-04-05 | 深圳威尔视觉传媒有限公司 | A kind of multi-channel video code stream merging method, device, equipment and storage medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111885346A (en) * | 2020-08-28 | 2020-11-03 | 中移(杭州)信息技术有限公司 | Picture code stream synthesis method, terminal, electronic device and storage medium |
CN112738609A (en) * | 2020-12-24 | 2021-04-30 | 浙江传媒学院 | Multi-channel video stream transmission method and device and multi-channel video stream playing system |
CN112752036A (en) * | 2020-12-28 | 2021-05-04 | 北京爱奇艺科技有限公司 | Video processing method and device |
CN113068008A (en) * | 2021-03-24 | 2021-07-02 | 苏州科达科技股份有限公司 | Decoding method, encoding method, code stream transmission method, electronic equipment and system |
CN113301295A (en) * | 2021-04-08 | 2021-08-24 | 上海艾策通讯科技股份有限公司 | Multi-picture video data processing method, device, computer equipment and storage medium |
CN117411998A (en) * | 2023-09-05 | 2024-01-16 | 北京仁光科技有限公司 | Monitoring system, method, equipment and medium based on network transmission |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110691260A (en) | IPTV multi-split screen coding playing control method and device | |
CN108495141B (en) | Audio and video synthesis method and system | |
CN103119957B (en) | content transmitting device, content transmitting method, content reproduction device, content reproduction method, program, and content delivery system | |
US6989868B2 (en) | Method of converting format of encoded video data and apparatus therefor | |
US10194150B2 (en) | Method and device for coding image, and method and device for decoding image | |
CN112040233B (en) | Video encoding method, video decoding method, video encoding device, video decoding device, electronic device, and storage medium | |
WO2018010662A1 (en) | Video file transcoding method and device, and storage medium | |
CN110784718B (en) | Video data encoding method, apparatus, device and storage medium | |
CN108063976B (en) | Video processing method and device | |
CN104410918A (en) | Method and device for adjusting parameters of live video | |
US20170163992A1 (en) | Video compressing and playing method and device | |
US20140282800A1 (en) | Video processing device, video reproduction device, video processing method, video reproduction method, and video processing system | |
CN112333448B (en) | Video encoding method and apparatus, video decoding method and apparatus, electronic device, and storage medium | |
US8665372B2 (en) | Method and system for key aware scaling | |
CN113301342B (en) | Video coding method, network live broadcasting method, device and terminal equipment | |
CN106888169A (en) | Video broadcasting method and device | |
CN104822070A (en) | Multi-video-stream playing method and device thereof | |
US20130215973A1 (en) | Image processing apparatus, image processing method, and image processing system | |
CN112351285A (en) | Video encoding method and apparatus, video decoding method and apparatus, electronic device, and storage medium | |
CN109769142B (en) | Video cutting method and system for urban media wall light show | |
CN111294649B (en) | Content display method and device based on screen combination, electronic equipment and storage medium | |
CN112423025A (en) | Transcoding method and transcoder supporting multiple video access modes | |
EP3197151A1 (en) | Mosaic service presentation/delivery method and apparatus | |
CN108347641B (en) | Dynamic image processing device and method matched with television transmission system | |
CN106954073B (en) | Video data input and output method, device and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200114 |
|
RJ01 | Rejection of invention patent application after publication |