WO2017076325A1 - Code stream playing method and apparatus - Google Patents
Code stream playing method and apparatus Download PDFInfo
- Publication number
- WO2017076325A1 WO2017076325A1 PCT/CN2016/104583 CN2016104583W WO2017076325A1 WO 2017076325 A1 WO2017076325 A1 WO 2017076325A1 CN 2016104583 W CN2016104583 W CN 2016104583W WO 2017076325 A1 WO2017076325 A1 WO 2017076325A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- code stream
- channel
- error
- error code
- packet loss
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000001914 filtration Methods 0.000 claims abstract description 45
- 230000002159 abnormal effect Effects 0.000 claims description 20
- 238000001514 detection method Methods 0.000 claims description 18
- 230000005856 abnormality Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000012546 transfer Methods 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/4405—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 video stream decryption
-
- 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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/454—Content or additional data filtering, e.g. blocking advertisements
Definitions
- Embodiments of the present disclosure relate to the field of Internet Protocol Television (IPTV) technology, for example, to a method and apparatus for code stream broadcast.
- IPTV Internet Protocol Television
- IPTV IPTV has become an important tool for people to obtain information.
- the secure streaming of IPTV streams has always been the most basic requirement of broadband operators and content providers.
- IPTV can only broadcast content that has been reviewed by content providers.
- the streaming media server is the stream that will be received from the channel server.
- Direct decoding but the content provided by the content provider may cause output stream error due to malicious interference or transmission failure during network transmission, which may cause decoding abnormality and challenge the safe broadcast of IPTV content.
- the embodiments of the present disclosure provide a method and an apparatus for playing a code stream, which can reduce the problem that the received channel code stream is directly decoded in the related art, and the decoding abnormality may occur.
- an embodiment of the present disclosure provides a method for playing a code stream, the method comprising: receiving a channel code stream uploaded by a channel server and detecting data obtained by detecting, by a channel server, a channel code stream; The channel code stream is detected, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output; and the code stream to be decoded is decoded to obtain audio and video data for playing.
- the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream include: receiving the channel code stream uploaded by the channel server and the channel obtained by the channel server detecting the channel code stream. Packet loss rate of the code stream;
- the channel code stream is detected according to the detection data, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output, including: detecting the channel code stream according to the packet loss rate, and filtering out the channel code stream. The error code stream and output the code stream to be decoded.
- the channel code stream is detected according to the packet loss rate, including: comparing the packet loss rate with the preset packet loss rate, and marking the channel code stream as the normal stream when the packet loss rate is not greater than the preset packet loss rate.
- the packet loss rate When the packet loss rate When the preset packet loss rate is greater than the preset packet loss rate, the channel code stream is marked as an error code stream.
- detecting the channel code stream according to the detection data, filtering out the error code stream in the channel code stream, and outputting the code stream to be decoded includes: marking the error code stream in the channel code stream; and multicasting according to the error code stream The number of addresses and ports, marking the type of error stream; and filtering the error stream based on the type of error stream, and outputting the stream to be decoded.
- the type of the error code stream is marked according to the multicast address of the error code stream and the number of ports, including: when the error code stream includes multiple identical multicast addresses and ports, the type of the marked error stream is The abnormal code stream; and when the multicast address and port of the error code stream are the same as the multicast address and port of the channel code stream received within the preset time, the type of the marked error code stream is a repetition code stream.
- filtering the error code stream according to the type of the error code stream, and outputting the code stream to be decoded including: filtering out the error code stream when the type of the error code stream is a repeated code stream; and when the error code stream When the type is an abnormal code stream, the first code stream in the error code stream is reserved, the channel code stream except the first code stream is filtered out, and the first code stream is output as the code stream to be decoded.
- the embodiment of the present disclosure further provides a device for streaming a code stream, the device comprising: a receiving module, configured to receive a channel code stream uploaded by a channel server and detect the channel code stream by a channel server. Data; the filtering module is configured to detect the channel code stream according to the detected data, filter out the error code stream in the channel code stream, and output the code stream to be decoded; and the decoding module, set to decode the code stream to be decoded, and obtain Audio and video data for playback.
- a receiving module configured to receive a channel code stream uploaded by a channel server and detect the channel code stream by a channel server. Data
- the filtering module is configured to detect the channel code stream according to the detected data, filter out the error code stream in the channel code stream, and output the code stream to be decoded
- the decoding module set to decode the code stream to be decoded, and obtain Audio and video data for playback.
- the receiving module is configured to: receive a channel code stream uploaded by the channel server, and a packet loss rate of the channel code stream obtained by the channel server detecting the channel code stream;
- the filtering module is configured to: detect the channel code stream according to the packet loss rate, filter out the error code stream in the channel code stream, and output the code stream to be decoded.
- the filtering module is configured to: compare the packet loss rate with the preset packet loss rate, and mark the channel code stream as a normal code stream when the packet loss rate is not greater than the preset packet loss rate, and when the packet loss rate is greater than the preset When the packet loss rate is used, the tag channel code stream is the error code stream.
- the filtering module includes: a first marking unit configured to mark an error code stream in the channel code stream; and a second marking unit configured to mark an error according to the multicast address of the error stream and the number of ports a type of the code stream; and a filtering unit configured to filter the error code stream according to the type of the error code stream and output the code stream to be decoded.
- the second marking unit is configured to: when the error code stream contains multiple identical multicast addresses and ports, the type of the marked error stream is an abnormal code stream; and when the error code stream is multicast address and port and When the multicast address and port of the channel code stream received within the preset time are the same, the type of the error code stream is a duplicate code stream.
- the filtering unit is configured to: when the type of the error code stream is a repeated code stream, filter out the error code stream; and when the type of the error code stream is an abnormal code stream, retain the first code stream in the error code stream. And filtering out the channel code stream except the first code stream, and outputting the first code stream as the code stream to be decoded.
- an embodiment of the present disclosure further provides a non-transitory computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the method described above.
- an embodiment of the present disclosure further provides an electronic device, including:
- At least one processor At least one processor
- the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
- the disclosure receives the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream, detects the channel code stream according to the detected data, filters out the error code stream in the channel code stream, and outputs the error code stream.
- the code stream is decoded, and the code stream to be decoded is decoded to obtain audio and video data for playing, which reduces the problem of directly decoding the received channel code stream in the related art, and may cause decoding abnormality.
- FIG. 1 is a flowchart of a method of code stream playout according to a first embodiment of the present disclosure
- FIG. 2 is a flowchart of a method for code stream playout according to a second embodiment of the present disclosure
- FIG. 3 is a flowchart of a method for code stream playout according to a third embodiment of the present disclosure
- FIG. 4 is a structural diagram of an apparatus for streaming a code stream according to a fourth embodiment of the present disclosure.
- FIG. 5 is a structural diagram of an apparatus for streaming a code stream according to a fifth embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present disclosure.
- FIG. 1 is a flow chart showing a method of code stream playout in the first embodiment of the present disclosure.
- step 110 the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream are received.
- the detection data obtained by detecting the channel code stream by the channel server uploaded by the channel server received in step 110 may be the packet loss rate of the channel code stream, or may be used to determine whether the channel code stream is transmitted normally.
- step 120 the channel code stream is detected according to the detected data, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output.
- the channel code stream is detected according to the detection data, and the error code stream is filtered out, which may include: marking the error code stream in the channel code stream; marking the number according to the multicast address and the number of ports of the error code stream. The type of error stream; and filtering the error stream based on the type of error stream.
- the method of dividing the channel code stream into the normal code stream and the error code stream may be based on the packet loss rate of the channel code stream.
- the dividing the channel code stream into the normal code stream and the error code stream according to the packet loss rate of the channel code stream may include: comparing the packet loss rate of the channel code stream with the preset packet loss rate, and when the packet loss rate is not greater than the preset lost rate.
- the packet channel code stream is a normal code stream when the packet rate is greater, and the tag channel code stream is an error code stream when the packet loss rate is greater than the preset packet loss rate.
- the present embodiment lists two types, but the type of the error code stream is not limited to the two types.
- the first type of error code stream is that the channel code stream is copied into the same two copies during the transmission process due to some special reasons, such as service network abnormality or improper switch configuration. The stream cannot be decoded normally and is an abnormal code stream.
- the second error code stream is that the multicast address and port number of the code stream are the same as the multicast address and port number of an original channel code stream in a certain period of time, because The error code stream interferes with the original channel code stream, and the error code stream is a repeated code stream.
- the original code stream 1 multicast address is 239.255.1.1
- the port number is 1234.
- the code stream 2 multicast address also uses 239.255.1.1, and the port number is also 1234. Then code stream 2 will interfere with code stream 1, and code stream 2 is the repeated code stream.
- the method for marking the type of the error stream can be judged based on the multicast address and the number of ports in the error stream.
- the type of the error code stream that is marked according to the multicast address and the number of ports in the error code stream may include: when the error code stream includes multiple identical multicast addresses and ports, the type of the marked error code stream is an abnormal code stream; And when the multicast address and port of the error stream are the same as the multicast address and port of the channel code stream received within the preset time, the type of the marked error stream is a repeated code stream.
- the filtering of the error code stream may include: filtering out the error code stream when the type of the error code stream is a repeated code stream; and retaining the first code stream in the error code stream when the type of the error code stream is an abnormal code stream, The channel code stream except the first code stream is filtered out.
- the first code stream may be any one of the abnormal code streams having a normal multicast address and a port.
- step 130 the code stream to be decoded is decoded to obtain audio and video data for playback.
- the code stream to be decoded in step 130 is a channel code stream that is detected and filtered, and may be a channel stream that is normal in itself, or a channel code stream that is obtained by filtering the error stream.
- the code stream to be decoded is decoded, and the audio and video data for playing is obtained, which reduces the problem that the received channel code stream is directly decoded in the related art, and the decoding abnormality may occur.
- FIG. 2 is a flow chart showing a method for secure streaming of a code stream in a second embodiment of the present disclosure.
- step 210 the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream are received.
- the detection data obtained by detecting the channel code stream by the channel server uploaded by the channel server accepted in step 210 may be the packet loss rate of the channel code stream, or may be used to determine whether the channel code stream is transmitted normally.
- step 220 the error code stream in the channel code stream is marked.
- the method of marking the error code stream in the channel code stream in step 220 may be based on the packet loss rate of the channel code stream.
- the method for marking the error code stream in the channel code stream may include comparing the packet loss rate of the channel code stream with a preset packet loss rate, and marking the channel code stream as a normal code when the packet loss rate is not greater than the preset packet loss rate. Flow, when the packet loss rate is greater than the preset packet loss rate, the tag channel code stream is the error code stream.
- step 230 the type of the error stream is marked based on the multicast address of the error stream and the number of ports.
- the first type of error code stream is that the code stream is copied into the same two copies during the transmission process due to some special reasons, such as service network abnormality or improper switch configuration. Can not be decoded normally, is an abnormal code stream.
- the second error code stream is that the multicast address and port number of the code stream are the same as the multicast address and port number of an original channel code stream in a certain period of time, so the error code stream may interfere with the original channel code stream.
- the error code stream is a repeated code stream.
- the original stream 1 multicast address is 239.255.1.1
- the port number is 1234.
- the stream 2 multicast address also uses 239.255.1.1, and the port number is also 1234. Then code stream 2 will interfere with code stream 1, and code stream 2 is the repeated code stream.
- the method for marking the type of the error stream can be judged based on the multicast address and the number of ports in the error stream.
- the type of the error code stream that is marked according to the multicast address and the number of ports in the error code stream may include: when the error code stream includes multiple identical multicast addresses and ports, the type of the marked error code stream is an abnormal code stream; And when the multicast address and port of the error stream are the same as the multicast address and port of the channel stream received in the preset time, the type of the marked error stream is a repetition stream.
- step 240 the error code stream is filtered according to the type of the error code stream, and the code stream to be decoded is output.
- filtering the error code stream according to the type of the error code stream may include: filtering out the error code stream when the type of the error code stream is a repeated code stream; and when the type of the error code stream is an abnormal code stream, The first code stream in the error code stream is reserved, the channel code stream except the first code stream is filtered out, and the first code stream is output as the code stream to be decoded.
- the first code stream may be any one of the abnormal code streams having a normal multicast address and a port.
- step 250 the code stream to be decoded is decoded to obtain audio and video data for playback.
- the code stream to be decoded in step 250 is a channel code stream that has been detected and filtered, and may be normal itself.
- the channel code stream can also be used to filter the error stream to obtain the stream.
- the channel code stream uploaded by the channel server and the channel server detect the channel code stream, and the error code stream in the channel code stream is marked; according to the multicast address and the number of ports of the error code stream, Marking the type of the error code stream; filtering the error code stream according to the type of the error code stream, and outputting the code stream to be decoded; decoding the code stream to be decoded to obtain audio and video data for playing, reducing related technologies Decoding the received channel code stream directly may cause a problem of decoding abnormality.
- FIG. 3 is a flow chart showing a method for secure streaming of a code stream in a third embodiment of the present disclosure.
- step 310 the channel code stream uploaded by the channel server and the packet loss rate of the channel code stream obtained by the channel server for detecting the channel code stream are received.
- step 320 it is determined whether the packet loss rate is greater than the preset packet loss rate.
- step 340 is performed, and when the packet loss rate is not greater than the preset packet loss rate, step 330 is performed.
- the marked channel code stream is a normal code stream.
- the tag channel code stream is the error code stream.
- step 350 the type of error stream is flagged based on the multicast address of the error stream and the number of ports.
- the first type of error code stream is caused by some special reasons, such as service network abnormality or improper switch configuration, resulting in the channel code stream being copied into the same two copies during the transmission process.
- the stream cannot be decoded normally and is an abnormal code stream.
- the second error code stream is that the multicast address and port number of the code stream are the same as the multicast address and port number of an original channel code stream in a certain period of time, so the error code stream may interfere with the original channel code stream.
- the error code stream is a repeated code stream.
- the original stream 1 multicast address is 239.255.1.1
- the port number is 1234.
- the stream 2 multicast address also uses 239.255.1.1, and the port number is also 1234. Then code stream 2 will interfere with code stream 1, and code stream 2 is the repeated code stream.
- the method for marking the type of the error stream can be judged based on the multicast address and the number of ports in the error stream.
- the method for judging the type of the error stream according to the multicast address and the number of ports in the error stream may include marking the error when the error stream contains multiple identical multicast addresses and ports.
- the type of the error stream is an abnormal code stream; and when the multicast address and port of the error stream are the same as the multicast address and port of the channel stream received in the preset time, the type of the marked error stream is a repetition code. flow.
- step 360 the error code stream is filtered according to the type of error code stream.
- filtering the error code stream according to the type of the error code stream may include: filtering out the error code stream when the type of the error code stream is a repeated code stream; and when the type of the error code stream is an abnormal code stream, The first code stream in the error code stream is reserved, the channel code stream except the first code stream is filtered out, and the first code stream is output as the code stream to be decoded.
- the first code stream may be any one of the abnormal code streams having a normal multicast address and a port.
- step 370 the code stream to be decoded is output.
- the code stream to be decoded outputted in step 370 is a channel code stream that is detected and filtered.
- the channel code stream is output as a code stream to be decoded; and when the channel code stream is an error code stream, The channel code stream is filtered, and the filtered code stream is used as the code stream to be decoded.
- step 380 the code stream to be decoded is decoded to obtain audio and video data for playback.
- the packet loss rate of the channel code stream obtained by detecting the channel code stream uploaded by the channel server and the channel code stream is detected by the channel server; comparing the packet loss rate with the preset packet loss rate, when the packet loss rate is not When the packet loss rate is greater than the preset packet loss rate, the tag channel code stream is a normal code stream. When the packet loss rate is greater than the preset packet loss rate, the tag channel code stream is an error code stream; according to the multicast address of the error code stream and the number of ports, the tag is marked.
- the type of the error code stream is generated; according to the type of the error code stream, the error code stream is filtered, and the code stream to be decoded is output; the decoded code stream is decoded to obtain the audio and video data for playing, which reduces the direct correlation in the related art.
- Decoding the received channel code stream may cause a problem of decoding abnormality.
- FIG. 4 is a structural diagram of an apparatus for streaming a code stream in a fourth embodiment of the present disclosure.
- the apparatus for streaming a code stream includes a receiving module 401, a filtering module 402, and a decoding module 403.
- the receiving module 401 is configured to receive the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream.
- the filtering module 402 is configured to detect the channel code stream according to the detected data, filter out the error code stream in the channel code stream, and output the code stream to be decoded.
- the decoding module 403 is configured to decode the code stream to be decoded to obtain audio and video data for playback.
- the filtering module 402 can include a first marking unit 4021, a second marking unit 4022, and a filtering unit 4023, see FIG.
- the first marking unit 4021 is arranged to mark the error code stream in the channel code stream.
- the second marking unit 4022 is arranged to flag the type of the error stream based on the multicast address of the error stream and the number of ports.
- the filtering unit 4023 is arranged to filter the error code stream according to the type of the error code stream and output the code stream to be decoded.
- the foregoing apparatus can implement the process implemented by the apparatus in the embodiment of FIG. 1 to FIG. 3, and details are not described herein again to avoid repetition.
- the channel code stream uploaded by the channel server and the channel server detect the channel code stream are detected; the channel code stream is detected according to the detected data, and the error code stream in the channel code stream is filtered out and output.
- the code stream to be decoded is decoded; the audio and video data to be played is decoded to obtain the audio and video data for playing, which reduces the problem that the received channel code stream is directly decoded in the related art, and the decoding abnormality may occur.
- a fifth embodiment of the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
- the sixth embodiment of the present disclosure further provides a hardware structure diagram of an electronic device.
- the electron includes:
- At least one processor 60 which is exemplified by a processor 60 in FIG. 6; and a memory 61, may further include a communication interface 62 and a bus 63.
- the processor 60, the communication interface 62, and the memory 61 can complete communication with each other through the bus 63.
- Communication interface 62 can be used for information transfer.
- the processor 60 can call the logic instructions in the memory 61 to perform the method of code stream playout.
- logic instructions in the memory 61 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
- the memory 61 is used as a computer readable storage medium for storing software programs and computers. Executing a program, such as a program instruction or module corresponding to a method in an embodiment of the present disclosure.
- the processor 60 performs a function application and data processing by executing a software program, an instruction, or a module stored in the memory 61, that is, a method of implementing code stream playout.
- the memory 61 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 61 may include a high speed random access memory, and may also include a nonvolatile memory.
- the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) Performing all or part of the steps of the method of the embodiments of the present disclosure.
- the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division. Actual implementation may be divided according to requirements.
- multiple units or components may be combined or may be integrated into A system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, multiple units may be integrated together, or may be distributed to multiple networks. On the unit.
- the functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
- the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium, and includes one or more instructions for causing a computer device (which may be an individual) A computer, server, or network device, etc., performs all or part of the steps of the methods described in various embodiments of the present disclosure.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store a program code.
- the method and apparatus for code stream broadcast provided by the present disclosure reduce the problem that the received channel code stream is directly decoded in the related art, and decoding abnormality may occur.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present disclosure provides a code stream playing method and apparatus. The code stream playing method comprises: receiving channel code streams uploaded by a channel server and detected data obtained by detecting, by the channel server, the channel code streams; detecting the channel code streams according to the detected data, filtering out error code streams in the channel code streams, and outputting a code stream to be decoded; and decoding the code stream to be decoded, so as to obtain audio/video data for playing.
Description
本公开实施例涉及交互式网络电视(Internet Protocol Television,IPTV)技术领域,例如,涉及一种码流播出的方法及装置。Embodiments of the present disclosure relate to the field of Internet Protocol Television (IPTV) technology, for example, to a method and apparatus for code stream broadcast.
随着网络电视技术的不断发展,IPTV成为了人们获取信息的重要工具。而IPTV的码流安全播出一直是宽带运营商和内容提供商的最基本要求,IPTV只能播出经过内容提供商审核的内容,相关技术中流媒体服务器是将从频道服务器接收到的码流直接解码,但是内容提供商提供的内容在网络传输时可能会由于恶意干扰或传输故障等原因造成输出码流错误,进而造成解码异常,对IPTV内容的安全播出提出挑战。With the continuous development of IPTV technology, IPTV has become an important tool for people to obtain information. The secure streaming of IPTV streams has always been the most basic requirement of broadband operators and content providers. IPTV can only broadcast content that has been reviewed by content providers. In the related technology, the streaming media server is the stream that will be received from the channel server. Direct decoding, but the content provided by the content provider may cause output stream error due to malicious interference or transmission failure during network transmission, which may cause decoding abnormality and challenge the safe broadcast of IPTV content.
发明内容Summary of the invention
本公开实施例提供一种码流播出的方法及装置,能够减少相关技术中直接对接收到的频道码流进行解码,可能出现解码异常的问题。The embodiments of the present disclosure provide a method and an apparatus for playing a code stream, which can reduce the problem that the received channel code stream is directly decoded in the related art, and the decoding abnormality may occur.
第一方面,本公开实施例提供了一种码流播出的方法,该方法包括:接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据;根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流;以及对待解码码流进行解码,得到用于播放的音视频数据。In a first aspect, an embodiment of the present disclosure provides a method for playing a code stream, the method comprising: receiving a channel code stream uploaded by a channel server and detecting data obtained by detecting, by a channel server, a channel code stream; The channel code stream is detected, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output; and the code stream to be decoded is decoded to obtain audio and video data for playing.
可选地,接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据,包括:接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的频道码流的丢包率;Optionally, the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream include: receiving the channel code stream uploaded by the channel server and the channel obtained by the channel server detecting the channel code stream. Packet loss rate of the code stream;
其中,根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流,包括:根据丢包率对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流。The channel code stream is detected according to the detection data, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output, including: detecting the channel code stream according to the packet loss rate, and filtering out the channel code stream. The error code stream and output the code stream to be decoded.
可选地,根据丢包率对频道码流进行检测,包括:将丢包率与预设丢包率进行对比,当丢包率不大于预设丢包率时标记频道码流为正常码流,当丢包率
大于预设丢包率时标记所述频道码流为错误码流。Optionally, the channel code stream is detected according to the packet loss rate, including: comparing the packet loss rate with the preset packet loss rate, and marking the channel code stream as the normal stream when the packet loss rate is not greater than the preset packet loss rate. When the packet loss rate
When the preset packet loss rate is greater than the preset packet loss rate, the channel code stream is marked as an error code stream.
可选地,根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流包括:标记频道码流中的错误码流;根据错误码流的组播地址和端口的数量,标记出错误码流的类型;以及根据错误码流的类型,对错误码流进行过滤,并输出待解码码流。Optionally, detecting the channel code stream according to the detection data, filtering out the error code stream in the channel code stream, and outputting the code stream to be decoded includes: marking the error code stream in the channel code stream; and multicasting according to the error code stream The number of addresses and ports, marking the type of error stream; and filtering the error stream based on the type of error stream, and outputting the stream to be decoded.
可选地,根据错误码流的组播地址和端口的数量,标记出错误码流的类型,包括:当错误码流含有多个相同的组播地址和端口时,标记错误码流的类型为异常码流;以及当错误码流的组播地址和端口与预设时间内接收的频道码流的组播地址和端口相同时,标记错误码流的类型为重复码流。Optionally, the type of the error code stream is marked according to the multicast address of the error code stream and the number of ports, including: when the error code stream includes multiple identical multicast addresses and ports, the type of the marked error stream is The abnormal code stream; and when the multicast address and port of the error code stream are the same as the multicast address and port of the channel code stream received within the preset time, the type of the marked error code stream is a repetition code stream.
可选地,根据错误码流的类型,对错误码流进行过滤,并输出待解码码流,包括:当错误码流的类型为重复码流时,过滤掉错误码流;以及当错误码流的类型为异常码流时,保留错误码流中的第一码流,过滤掉除第一码流外的频道码流,并将第一码流作为待解码码流输出。Optionally, filtering the error code stream according to the type of the error code stream, and outputting the code stream to be decoded, including: filtering out the error code stream when the type of the error code stream is a repeated code stream; and when the error code stream When the type is an abnormal code stream, the first code stream in the error code stream is reserved, the channel code stream except the first code stream is filtered out, and the first code stream is output as the code stream to be decoded.
第二方面,本公开实施例还提供了一种码流播出的装置,该装置包括:接收模块,设置为接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据;过滤模块,设置为根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流;以及解码模块,设置为对待解码码流进行解码,得到用于播放的音视频数据。In a second aspect, the embodiment of the present disclosure further provides a device for streaming a code stream, the device comprising: a receiving module, configured to receive a channel code stream uploaded by a channel server and detect the channel code stream by a channel server. Data; the filtering module is configured to detect the channel code stream according to the detected data, filter out the error code stream in the channel code stream, and output the code stream to be decoded; and the decoding module, set to decode the code stream to be decoded, and obtain Audio and video data for playback.
可选地,所述接收模块设置为:接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的频道码流的丢包率;Optionally, the receiving module is configured to: receive a channel code stream uploaded by the channel server, and a packet loss rate of the channel code stream obtained by the channel server detecting the channel code stream;
其中,过滤模块设置为:根据丢包率对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流。The filtering module is configured to: detect the channel code stream according to the packet loss rate, filter out the error code stream in the channel code stream, and output the code stream to be decoded.
可选地,过滤模块设置为:将丢包率与预设丢包率进行对比,当丢包率不大于预设丢包率时标记频道码流为正常码流,当丢包率大于预设丢包率时标记频道码流为错误码流。Optionally, the filtering module is configured to: compare the packet loss rate with the preset packet loss rate, and mark the channel code stream as a normal code stream when the packet loss rate is not greater than the preset packet loss rate, and when the packet loss rate is greater than the preset When the packet loss rate is used, the tag channel code stream is the error code stream.
可选地,所述过滤模块包括:第一标记单元,设置为标记频道码流中的错误码流;第二标记单元,设置为根据错误码流的组播地址和端口的数量,标记出错误码流的类型;以及过滤单元,设置为根据错误码流的类型,对错误码流进行过滤,并输出待解码码流。
Optionally, the filtering module includes: a first marking unit configured to mark an error code stream in the channel code stream; and a second marking unit configured to mark an error according to the multicast address of the error stream and the number of ports a type of the code stream; and a filtering unit configured to filter the error code stream according to the type of the error code stream and output the code stream to be decoded.
可选地,第二标记单元设置为:当错误码流含有多个相同的组播地址和端口时,标记错误码流的类型为异常码流;以及当错误码流的组播地址和端口与预设时间内接收的频道码流的组播地址和端口相同时,标记错误码流的类型为重复码流。Optionally, the second marking unit is configured to: when the error code stream contains multiple identical multicast addresses and ports, the type of the marked error stream is an abnormal code stream; and when the error code stream is multicast address and port and When the multicast address and port of the channel code stream received within the preset time are the same, the type of the error code stream is a duplicate code stream.
可选地,过滤单元设置为:当错误码流的类型为重复码流时,过滤掉错误码流;以及当错误码流的类型为异常码流时,保留错误码流中的第一码流,过滤掉除第一码流外的频道码流,并将第一码流作为待解码码流输出。Optionally, the filtering unit is configured to: when the type of the error code stream is a repeated code stream, filter out the error code stream; and when the type of the error code stream is an abnormal code stream, retain the first code stream in the error code stream. And filtering out the channel code stream except the first code stream, and outputting the first code stream as the code stream to be decoded.
第三方面,本公开实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的方法。In a third aspect, an embodiment of the present disclosure further provides a non-transitory computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the method described above.
第四方面,本公开实施例还提供了一种电子设备,包括:In a fourth aspect, an embodiment of the present disclosure further provides an electronic device, including:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
本公开通过接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据,根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流,对待解码码流进行解码,得到用于播放的音视频数据,减少了相关技术中直接对接收到的频道码流进行解码,可能出现解码异常的问题。The disclosure receives the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream, detects the channel code stream according to the detected data, filters out the error code stream in the channel code stream, and outputs the error code stream. The code stream is decoded, and the code stream to be decoded is decoded to obtain audio and video data for playing, which reduces the problem of directly decoding the received channel code stream in the related art, and may cause decoding abnormality.
为了更清楚地说明本公开实施例的技术方案,下面将对实施例或相关技术描述中使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些而非全部实施例。In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings used in the embodiments or the related art description will be briefly described below. It is obvious that the drawings in the following description are only some but not all of the present disclosure. Example.
图1为本公开的第一实施例的码流播出的方法的流程图;1 is a flowchart of a method of code stream playout according to a first embodiment of the present disclosure;
图2为本公开的第二实施例的码流播出的方法的流程图;2 is a flowchart of a method for code stream playout according to a second embodiment of the present disclosure;
图3为本公开的第三实施例的码流播出的方法的流程图;3 is a flowchart of a method for code stream playout according to a third embodiment of the present disclosure;
图4为本公开的第四实施例的码流播出的装置的结构图;
4 is a structural diagram of an apparatus for streaming a code stream according to a fourth embodiment of the present disclosure;
图5为本公开的第五实施例的码流播出的装置的结构图;以及FIG. 5 is a structural diagram of an apparatus for streaming a code stream according to a fifth embodiment of the present disclosure;
图6为本公开的第七实施例的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present disclosure.
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。在不冲突的情况下,本公开的实施例以及实施例中的特征可以相互任意组合。The technical solutions in the embodiments of the present disclosure are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present disclosure. It is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The embodiments of the present disclosure and the features in the embodiments may be arbitrarily combined with each other without conflict.
第一实施例First embodiment
请参阅图1,图1示出了本公开的第一实施例中的码流播出的方法的流程图。Please refer to FIG. 1. FIG. 1 is a flow chart showing a method of code stream playout in the first embodiment of the present disclosure.
在步骤110中,接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据。In step 110, the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream are received.
步骤110中接收的频道服务器上传的频道服务器对频道码流进行检测所得到的检测数据可以是频道码流的丢包率,也可以是用来判断频道码流是否传输正常的数据。The detection data obtained by detecting the channel code stream by the channel server uploaded by the channel server received in step 110 may be the packet loss rate of the channel code stream, or may be used to determine whether the channel code stream is transmitted normally.
在步骤120中,根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流。In step 120, the channel code stream is detected according to the detected data, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output.
步骤120中,根据检测数据对频道码流进行检测,过滤掉其中的错误码流,可以包括:标记频道码流中的错误码流;根据错误码流的组播地址和端口的数量,标记出错误码流的类型;以及根据错误码流的类型,对错误码流进行过滤。In step 120, the channel code stream is detected according to the detection data, and the error code stream is filtered out, which may include: marking the error code stream in the channel code stream; marking the number according to the multicast address and the number of ports of the error code stream. The type of error stream; and filtering the error stream based on the type of error stream.
其中,将频道码流分为正常码流和错误码流的方法可以根据频道码流的丢包率。根据频道码流的丢包率将频道码流分为正常码流和错误码流可以包括,将频道码流的丢包率与预设丢包率进行对比,当丢包率不大于预设丢包率时标记频道码流为正常码流,当丢包率大于预设丢包率时标记频道码流为错误码流。The method of dividing the channel code stream into the normal code stream and the error code stream may be based on the packet loss rate of the channel code stream. The dividing the channel code stream into the normal code stream and the error code stream according to the packet loss rate of the channel code stream may include: comparing the packet loss rate of the channel code stream with the preset packet loss rate, and when the packet loss rate is not greater than the preset lost rate The packet channel code stream is a normal code stream when the packet rate is greater, and the tag channel code stream is an error code stream when the packet loss rate is greater than the preset packet loss rate.
对于错误码流的类型,本实施例列举两种,但是错误码流的类型不限于这两种。第一种错误码流是频道码流在传输过程中由于一些特殊原因,如业务组网异常或交换机配置不当等,导致频道码流在传输过程中被复制成为相同的两份,此时频道码流不能被正常解码,为异常码流。第二种错误码流是码流的组播地址和端口号与一定时间内的一原有频道码流的组播地址和端口号相同,因
此该错误码流会对原有频道码流产生干扰,此时该错误码流为重复码流。例如,原有码流1组播地址为239.255.1.1,端口号为1234;同时,码流2组播地址也使用239.255.1.1,端口号同样为1234。那么码流2就会对码流1产生干扰,码流2就是重复码流。For the type of the error code stream, the present embodiment lists two types, but the type of the error code stream is not limited to the two types. The first type of error code stream is that the channel code stream is copied into the same two copies during the transmission process due to some special reasons, such as service network abnormality or improper switch configuration. The stream cannot be decoded normally and is an abnormal code stream. The second error code stream is that the multicast address and port number of the code stream are the same as the multicast address and port number of an original channel code stream in a certain period of time, because
The error code stream interferes with the original channel code stream, and the error code stream is a repeated code stream. For example, the original code stream 1 multicast address is 239.255.1.1, and the port number is 1234. Meanwhile, the code stream 2 multicast address also uses 239.255.1.1, and the port number is also 1234. Then code stream 2 will interfere with code stream 1, and code stream 2 is the repeated code stream.
对于标记出错误码流的类型的方法可以根据错误码流中的组播地址和端口数量进行判断。根据错误码流中的组播地址和端口数量判断标记出错误码流的类型可以包括,当错误码流含有多个相同的组播地址和端口时,标记错误码流的类型为异常码流;以及当错误码流的组播地址和端口与预设时间内接收的频道码流的组播地址和端口相同时,标记错误码流的类型为重复码流。The method for marking the type of the error stream can be judged based on the multicast address and the number of ports in the error stream. The type of the error code stream that is marked according to the multicast address and the number of ports in the error code stream may include: when the error code stream includes multiple identical multicast addresses and ports, the type of the marked error code stream is an abnormal code stream; And when the multicast address and port of the error stream are the same as the multicast address and port of the channel code stream received within the preset time, the type of the marked error stream is a repeated code stream.
错误码流的过滤可以包括,当错误码流的类型为重复码流时,过滤掉错误码流;以及当错误码流的类型为异常码流时,保留错误码流中的第一码流,过滤掉除第一码流外的频道码流。其中,第一码流可以是异常码流中的任意一具有正常的组播地址及端口的码流。The filtering of the error code stream may include: filtering out the error code stream when the type of the error code stream is a repeated code stream; and retaining the first code stream in the error code stream when the type of the error code stream is an abnormal code stream, The channel code stream except the first code stream is filtered out. The first code stream may be any one of the abnormal code streams having a normal multicast address and a port.
在步骤130中,对待解码码流进行解码,得到用于播放的音视频数据。In step 130, the code stream to be decoded is decoded to obtain audio and video data for playback.
步骤130中的待解码码流是经过检测和过滤的频道码流,可以是本身正常的频道码流,也可以对错误码流过滤后所得到的频道码流。The code stream to be decoded in step 130 is a channel code stream that is detected and filtered, and may be a channel stream that is normal in itself, or a channel code stream that is obtained by filtering the error stream.
本实施例通过接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据,根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流,对待解码码流进行解码,得到用于播放的音视频数据,减少了相关技术中直接对接收到的频道码流进行解码,可能出现解码异常的问题。In this embodiment, by receiving the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream, detecting the channel code stream according to the detection data, filtering out the error code stream in the channel code stream, and outputting The code stream to be decoded, the code stream to be decoded is decoded, and the audio and video data for playing is obtained, which reduces the problem that the received channel code stream is directly decoded in the related art, and the decoding abnormality may occur.
第二实施例Second embodiment
请参阅图2,图2示出了本公开的第二实施例中码流安全播出的方法的流程图。Please refer to FIG. 2. FIG. 2 is a flow chart showing a method for secure streaming of a code stream in a second embodiment of the present disclosure.
在步骤210中,接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据。In step 210, the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream are received.
步骤210中接受的频道服务器上传的频道服务器对频道码流进行检测所得到的检测数据可以是频道码流的丢包率,也可以是用来判断频道码流是否传输正常的数据。
The detection data obtained by detecting the channel code stream by the channel server uploaded by the channel server accepted in step 210 may be the packet loss rate of the channel code stream, or may be used to determine whether the channel code stream is transmitted normally.
在步骤220中,标记频道码流中的错误码流。In step 220, the error code stream in the channel code stream is marked.
步骤220中标记频道码流中的错误码流的方法可以是根据频道码流的丢包率。标记频道码流中的错误码流的方法可以包括,将频道码流的丢包率与预设丢包率进行对比,当丢包率不大于预设丢包率时标记频道码流为正常码流,当丢包率大于预设丢包率时标记频道码流为错误码流。The method of marking the error code stream in the channel code stream in step 220 may be based on the packet loss rate of the channel code stream. The method for marking the error code stream in the channel code stream may include comparing the packet loss rate of the channel code stream with a preset packet loss rate, and marking the channel code stream as a normal code when the packet loss rate is not greater than the preset packet loss rate. Flow, when the packet loss rate is greater than the preset packet loss rate, the tag channel code stream is the error code stream.
在步骤230中,根据错误码流的组播地址和端口的数量,标记出错误码流的类型。In step 230, the type of the error stream is marked based on the multicast address of the error stream and the number of ports.
对于步骤230中提到的错误码流的类型,本实施例列举两种。第一种错误码流是码流在传输过程中由于一些特殊原因,如业务组网异常或交换机配置不当等,导致频道码流在传输过程中被复制成为相同的两份,此时频道码流不能被正常解码,为异常码流。第二种错误码流是码流的组播地址和端口号与一定时间内的一原有频道码流的组播地址和端口号相同,因此该错误码流会对原有频道码流产生干扰,此时该错误码流为重复码流。例如,原有码流1组播地址为239.255.1.1,端口号为1234。同时,码流2组播地址也使用239.255.1.1,端口号同样为1234。那么码流2就会对码流1产生干扰,码流2就是重复码流。For the type of error code stream mentioned in step 230, this embodiment lists two types. The first type of error code stream is that the code stream is copied into the same two copies during the transmission process due to some special reasons, such as service network abnormality or improper switch configuration. Can not be decoded normally, is an abnormal code stream. The second error code stream is that the multicast address and port number of the code stream are the same as the multicast address and port number of an original channel code stream in a certain period of time, so the error code stream may interfere with the original channel code stream. At this time, the error code stream is a repeated code stream. For example, the original stream 1 multicast address is 239.255.1.1, and the port number is 1234. At the same time, the stream 2 multicast address also uses 239.255.1.1, and the port number is also 1234. Then code stream 2 will interfere with code stream 1, and code stream 2 is the repeated code stream.
对于标记出错误码流的类型的方法可以根据错误码流中的组播地址和端口数量进行判断。根据错误码流中的组播地址和端口数量判断标记出错误码流的类型可以包括,当错误码流含有多个相同的组播地址和端口时,标记错误码流的类型为异常码流;以及当错误码流的组播地址和端口与预设时间内接收的一频道码流的组播地址和端口相同时,标记错误码流的类型为重复码流。The method for marking the type of the error stream can be judged based on the multicast address and the number of ports in the error stream. The type of the error code stream that is marked according to the multicast address and the number of ports in the error code stream may include: when the error code stream includes multiple identical multicast addresses and ports, the type of the marked error code stream is an abnormal code stream; And when the multicast address and port of the error stream are the same as the multicast address and port of the channel stream received in the preset time, the type of the marked error stream is a repetition stream.
在步骤240中,根据错误码流的类型,对错误码流进行过滤,并输出待解码码流。In step 240, the error code stream is filtered according to the type of the error code stream, and the code stream to be decoded is output.
步骤240中,根据错误码流的类型对错误码流进行过滤可以包括,当错误码流的类型为重复码流时,过滤掉错误码流;以及当错误码流的类型为异常码流时,保留错误码流中的第一码流,过滤掉除第一码流外的频道码流,并将第一码流作为待解码码流输出。其中,第一码流可以是异常码流中的任意一具有正常的组播地址及端口的码流。In step 240, filtering the error code stream according to the type of the error code stream may include: filtering out the error code stream when the type of the error code stream is a repeated code stream; and when the type of the error code stream is an abnormal code stream, The first code stream in the error code stream is reserved, the channel code stream except the first code stream is filtered out, and the first code stream is output as the code stream to be decoded. The first code stream may be any one of the abnormal code streams having a normal multicast address and a port.
在步骤250中,对待解码码流进行解码,得到用于播放的音视频数据。In step 250, the code stream to be decoded is decoded to obtain audio and video data for playback.
步骤250中的待解码码流是经过检测和过滤的频道码流,可以是本身正常
的频道码流,也可以对错误码流过滤后所得到的码流。The code stream to be decoded in step 250 is a channel code stream that has been detected and filtered, and may be normal itself.
The channel code stream can also be used to filter the error stream to obtain the stream.
本实施例通过接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据;标记频道码流中的错误码流;根据错误码流的组播地址和端口的数量,标记出错误码流的类型;根据错误码流的类型,对错误码流进行过滤,并输出待解码码流;对待解码码流进行解码,得到用于播放的音视频数据,减少了相关中技术直接对接收到的频道码流进行解码,可能出现解码异常的问题。In this embodiment, the channel code stream uploaded by the channel server and the channel server detect the channel code stream, and the error code stream in the channel code stream is marked; according to the multicast address and the number of ports of the error code stream, Marking the type of the error code stream; filtering the error code stream according to the type of the error code stream, and outputting the code stream to be decoded; decoding the code stream to be decoded to obtain audio and video data for playing, reducing related technologies Decoding the received channel code stream directly may cause a problem of decoding abnormality.
第三实施例Third embodiment
请参阅图3,图3示出了本公开的第三实施例中码流安全播出的方法的流程图。Please refer to FIG. 3. FIG. 3 is a flow chart showing a method for secure streaming of a code stream in a third embodiment of the present disclosure.
在步骤310中,接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的频道码流的丢包率。In step 310, the channel code stream uploaded by the channel server and the packet loss rate of the channel code stream obtained by the channel server for detecting the channel code stream are received.
在步骤320中,判断丢包率是否大于预设丢包率,当丢包率大于预设丢包率时执行步骤340,当丢包率不大于预设丢包率时执行步骤330。In step 320, it is determined whether the packet loss rate is greater than the preset packet loss rate. When the packet loss rate is greater than the preset packet loss rate, step 340 is performed, and when the packet loss rate is not greater than the preset packet loss rate, step 330 is performed.
在步骤330中,标记频道码流为正常码流。In step 330, the marked channel code stream is a normal code stream.
在步骤340中,标记频道码流为错误码流。In step 340, the tag channel code stream is the error code stream.
在步骤350中,根据错误码流的组播地址和端口的数量,标记出错误码流的类型。In step 350, the type of error stream is flagged based on the multicast address of the error stream and the number of ports.
对于步骤350中提到的错误码流的类型,本实施例列举两种。第一种错误码流是码流在传输过程中由于一些特殊原因,如业务组网异常或交换机配置不当等原因,导致频道码流在传输过程中被复制成为相同的两份,此时频道码流不能被正常解码,为异常码流。第二种错误码流是码流的组播地址和端口号与一定时间内的一原有频道码流的组播地址和端口号相同,因此该错误码流会对原有频道码流产生干扰,此时该错误码流为重复码流。例如,原有码流1组播地址为239.255.1.1,端口号为1234。同时,码流2组播地址也使用239.255.1.1,端口号同样为1234。那么码流2就会对码流1产生干扰,码流2就是重复码流。For the type of error code stream mentioned in step 350, this embodiment lists two types. The first type of error code stream is caused by some special reasons, such as service network abnormality or improper switch configuration, resulting in the channel code stream being copied into the same two copies during the transmission process. The stream cannot be decoded normally and is an abnormal code stream. The second error code stream is that the multicast address and port number of the code stream are the same as the multicast address and port number of an original channel code stream in a certain period of time, so the error code stream may interfere with the original channel code stream. At this time, the error code stream is a repeated code stream. For example, the original stream 1 multicast address is 239.255.1.1, and the port number is 1234. At the same time, the stream 2 multicast address also uses 239.255.1.1, and the port number is also 1234. Then code stream 2 will interfere with code stream 1, and code stream 2 is the repeated code stream.
对于标记出错误码流的类型的方法可以根据错误码流中的组播地址和端口数量进行判断。根据错误码流中的组播地址和端口数量判断标记出错误码流的类型的方法可以包括,当错误码流含有多个相同的组播地址和端口时,标记错
误码流的类型为异常码流;以及当错误码流的组播地址和端口与预设时间内接收的一频道码流的组播地址和端口相同时,标记错误码流的类型为重复码流。The method for marking the type of the error stream can be judged based on the multicast address and the number of ports in the error stream. The method for judging the type of the error stream according to the multicast address and the number of ports in the error stream may include marking the error when the error stream contains multiple identical multicast addresses and ports.
The type of the error stream is an abnormal code stream; and when the multicast address and port of the error stream are the same as the multicast address and port of the channel stream received in the preset time, the type of the marked error stream is a repetition code. flow.
在步骤360中,根据错误码流的类型对错误码流进行过滤。In step 360, the error code stream is filtered according to the type of error code stream.
步骤360中,根据错误码流的类型对错误码流进行过滤可以包括,当错误码流的类型为重复码流时,过滤掉错误码流;以及当错误码流的类型为异常码流时,保留错误码流中的第一码流,过滤掉除第一码流外的频道码流,并将第一码流作为待解码码流输出。其中,第一码流可以是异常码流中的任意一具有正常的组播地址及端口的码流。In step 360, filtering the error code stream according to the type of the error code stream may include: filtering out the error code stream when the type of the error code stream is a repeated code stream; and when the type of the error code stream is an abnormal code stream, The first code stream in the error code stream is reserved, the channel code stream except the first code stream is filtered out, and the first code stream is output as the code stream to be decoded. The first code stream may be any one of the abnormal code streams having a normal multicast address and a port.
在步骤370中,输出待解码码流。In step 370, the code stream to be decoded is output.
步骤370输出的待解码码流是经过检测和过滤的频道码流,当频道码流为正常码流时,将频道码流作为待解码码流输出;以及当频道码流为错误码流时,对频道码流进行过滤,将过滤后得到的码流作为待解码码流。The code stream to be decoded outputted in step 370 is a channel code stream that is detected and filtered. When the channel code stream is a normal code stream, the channel code stream is output as a code stream to be decoded; and when the channel code stream is an error code stream, The channel code stream is filtered, and the filtered code stream is used as the code stream to be decoded.
在步骤380中,对待解码码流进行解码,得到用于播放的音视频数据。In step 380, the code stream to be decoded is decoded to obtain audio and video data for playback.
本实施例通过接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的频道码流的丢包率;将丢包率与预设丢包率进行对比,当丢包率不大于预设丢包率时标记频道码流为正常码流,当丢包率大于预设丢包率时标记频道码流为错误码流;根据错误码流的组播地址和端口的数量,标记出错误码流的类型;根据错误码流的类型,对错误码流进行过滤,并输出待解码码流;对待解码码流进行解码,得到用于播放的音视频数据,减少了相关技术中直接对接收到的频道码流进行解码,可能出现解码异常的问题。In this embodiment, the packet loss rate of the channel code stream obtained by detecting the channel code stream uploaded by the channel server and the channel code stream is detected by the channel server; comparing the packet loss rate with the preset packet loss rate, when the packet loss rate is not When the packet loss rate is greater than the preset packet loss rate, the tag channel code stream is a normal code stream. When the packet loss rate is greater than the preset packet loss rate, the tag channel code stream is an error code stream; according to the multicast address of the error code stream and the number of ports, the tag is marked. The type of the error code stream is generated; according to the type of the error code stream, the error code stream is filtered, and the code stream to be decoded is output; the decoded code stream is decoded to obtain the audio and video data for playing, which reduces the direct correlation in the related art. Decoding the received channel code stream may cause a problem of decoding abnormality.
第四实施例Fourth embodiment
请参阅图4,图4示出了本公开的第四实施例中码流播出的装置的结构图,码流播出的装置包括接收模块401、过滤模块402及解码模块403。Referring to FIG. 4, FIG. 4 is a structural diagram of an apparatus for streaming a code stream in a fourth embodiment of the present disclosure. The apparatus for streaming a code stream includes a receiving module 401, a filtering module 402, and a decoding module 403.
接收模块401设置为接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据。The receiving module 401 is configured to receive the channel code stream uploaded by the channel server and the detection data obtained by the channel server detecting the channel code stream.
过滤模块402设置为根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流。The filtering module 402 is configured to detect the channel code stream according to the detected data, filter out the error code stream in the channel code stream, and output the code stream to be decoded.
解码模块403设置为对待解码码流进行解码,得到用于播放的音视频数据。
The decoding module 403 is configured to decode the code stream to be decoded to obtain audio and video data for playback.
在图4的基础上,过滤模块402可以包括第一标记单元4021、第二标记单元4022及过滤单元4023,请参阅图5。On the basis of FIG. 4, the filtering module 402 can include a first marking unit 4021, a second marking unit 4022, and a filtering unit 4023, see FIG.
第一标记单元4021设置为标记频道码流中的错误码流。The first marking unit 4021 is arranged to mark the error code stream in the channel code stream.
第二标记单元4022设置为根据错误码流的组播地址和端口的数量,标记出错误码流的类型。The second marking unit 4022 is arranged to flag the type of the error stream based on the multicast address of the error stream and the number of ports.
过滤单元4023设置为根据错误码流的类型,对错误码流进行过滤,并输出待解码码流。The filtering unit 4023 is arranged to filter the error code stream according to the type of the error code stream and output the code stream to be decoded.
上述装置能够实现图1至图3的实施例中装置实现的过程,为避免重复,这里不再赘述。The foregoing apparatus can implement the process implemented by the apparatus in the embodiment of FIG. 1 to FIG. 3, and details are not described herein again to avoid repetition.
本实施例通过接收频道服务器上传的频道码流及频道服务器对频道码流进行检测所得到的检测数据;根据检测数据对频道码流进行检测,过滤掉频道码流中的错误码流,并输出待解码码流;对待解码码流进行解码,得到用于播放的音视频数据,减少了相关技术中直接对接收到的频道码流进行解码,可能出现解码异常的问题。In this embodiment, the channel code stream uploaded by the channel server and the channel server detect the channel code stream are detected; the channel code stream is detected according to the detected data, and the error code stream in the channel code stream is filtered out and output. The code stream to be decoded is decoded; the audio and video data to be played is decoded to obtain the audio and video data for playing, which reduces the problem that the received channel code stream is directly decoded in the related art, and the decoding abnormality may occur.
第五实施例Fifth embodiment
本公开的第五实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。A fifth embodiment of the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
第六实施例Sixth embodiment
本公开第六实施例还提供了电子设备的硬件结构示意图。参见图6,该电子包括:The sixth embodiment of the present disclosure further provides a hardware structure diagram of an electronic device. Referring to Figure 6, the electron includes:
至少一个处理器(Processor)60,图6中以一个处理器60为例;和存储器(Memory)61,还可以包括通信接口(Communications Interface)62和总线63。其中,处理器60、通信接口62、存储器61可以通过总线63完成相互间的通信。通信接口62可以用于信息传输。处理器60可以调用存储器61中的逻辑指令,以执行码流播出的方法。At least one processor 60, which is exemplified by a processor 60 in FIG. 6; and a memory 61, may further include a communication interface 62 and a bus 63. The processor 60, the communication interface 62, and the memory 61 can complete communication with each other through the bus 63. Communication interface 62 can be used for information transfer. The processor 60 can call the logic instructions in the memory 61 to perform the method of code stream playout.
此外,上述的存储器61中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。Furthermore, the logic instructions in the memory 61 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
存储器61作为一种计算机可读存储介质,可用于存储软件程序、计算机可
执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器60通过运行存储在存储器61中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现码流播出的方法。The memory 61 is used as a computer readable storage medium for storing software programs and computers.
Executing a program, such as a program instruction or module corresponding to a method in an embodiment of the present disclosure. The processor 60 performs a function application and data processing by executing a software program, an instruction, or a module stored in the memory 61, that is, a method of implementing code stream playout.
存储器61可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器61可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 61 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 61 may include a high speed random access memory, and may also include a nonvolatile memory.
本公开的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) Performing all or part of the steps of the method of the embodiments of the present disclosure. The foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code, or a transitory storage medium.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以根据需求进行划分,例如多个单元或组件可以结合或者可以集成到一个系统,或一些特征可以忽略,或不执行。所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. Actual implementation may be divided according to requirements. For example, multiple units or components may be combined or may be integrated into A system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即多个单元可以集成在一起,或者也可以分布到多个网络单元上。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, multiple units may be integrated together, or may be distributed to multiple networks. On the unit.
另外,在本公开实施例中的功能单元可以集成在一个处理单元中,也可以是每个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
In addition, the functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。本公开的技术方案本质上或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开多个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等多种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. The technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium, and includes one or more instructions for causing a computer device (which may be an individual) A computer, server, or network device, etc., performs all or part of the steps of the methods described in various embodiments of the present disclosure. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store a program code.
本公开提供的码流播出的方法及装置,减少了相关技术中直接对接收到的频道码流进行解码,可能出现解码异常的问题。
The method and apparatus for code stream broadcast provided by the present disclosure reduce the problem that the received channel code stream is directly decoded in the related art, and decoding abnormality may occur.
Claims (13)
- 一种码流播出的方法,包括:A method for streaming a code stream, comprising:接收频道服务器上传的频道码流及所述频道服务器对所述频道码流进行检测所得到的检测数据;Receiving a channel code stream uploaded by the channel server and detecting data obtained by the channel server detecting the channel code stream;根据所述检测数据对所述频道码流进行检测,过滤掉所述频道码流中的错误码流,并输出待解码码流;以及Detecting the channel code stream according to the detection data, filtering out an error code stream in the channel code stream, and outputting a code stream to be decoded;对所述待解码码流进行解码,得到用于播放的音视频数据。Decoding the code stream to be decoded to obtain audio and video data for playing.
- 如权利要求1所述的方法,其中,所述接收频道服务器上传的频道码流及所述频道服务器对所述频道码流进行检测所得到的检测数据,包括:The method of claim 1, wherein the channel code stream uploaded by the receiving channel server and the detection data obtained by the channel server detecting the channel code stream include:接收频道服务器上传的频道码流及所述频道服务器对所述频道码流进行检测所得到的所述频道码流的丢包率;Receiving a channel code stream uploaded by the channel server and a packet loss rate of the channel code stream obtained by the channel server detecting the channel code stream;其中,所述根据所述检测数据对所述频道码流进行检测,过滤掉所述频道码流中的错误码流,并输出待解码码流,包括:The detecting the channel code stream according to the detection data, filtering out the error code stream in the channel code stream, and outputting the code stream to be decoded, including:根据所述丢包率对所述频道码流进行检测,过滤掉所述频道码流中的错误码流,并输出待解码码流。The channel code stream is detected according to the packet loss rate, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output.
- 如权利要求2所述的方法,其中,所述根据所述丢包率对所述频道码流进行检测,包括:The method of claim 2, wherein the detecting the channel code stream according to the packet loss rate comprises:将所述丢包率与预设丢包率进行对比,当所述丢包率不大于所述预设丢包率时标记所述频道码流为正常码流,当所述丢包率大于所述预设丢包率时标记所述频道码流为错误码流。Comparing the packet loss rate with a preset packet loss rate, and marking the channel code stream as a normal code stream when the packet loss rate is not greater than the preset packet loss rate, when the packet loss rate is greater than When the preset packet loss rate is described, the channel code stream is marked as an error code stream.
- 如权利要求1所述的方法,其中,所述根据所述检测数据对所述频道码流进行检测,过滤掉所述频道码流中的错误码流,并输出待解码码流包括:The method of claim 1, wherein the detecting the channel code stream according to the detection data, filtering out the error code stream in the channel code stream, and outputting the code stream to be decoded comprises:标记所述频道码流中的错误码流;Marking an error code stream in the channel code stream;根据所述错误码流的组播地址和端口的数量,标记出所述错误码流的类型; 以及Marking the type of the error code stream according to the multicast address and the number of ports of the error code stream; as well as根据所述错误码流的类型,对所述错误码流进行过滤,并输出待解码码流。And filtering the error code stream according to the type of the error code stream, and outputting the code stream to be decoded.
- 如权利要求4所述的方法,其中,所述根据所述错误码流的组播地址和端口的数量,标记出所述错误码流的类型,包括:The method of claim 4, wherein the marking the type of the error code stream according to the number of multicast addresses and ports of the error code stream comprises:当所述错误码流含有多个相同的组播地址和端口时,标记所述错误码流的类型为异常码流;以及When the error code stream contains multiple identical multicast addresses and ports, marking the type of the error code stream as an abnormal code stream;当所述错误码流的组播地址和端口与预设时间内接收的频道码流的组播地址和端口相同时,标记所述错误码流的类型为重复码流。When the multicast address and port of the error code stream are the same as the multicast address and port of the channel code stream received within the preset time, the type of the error code stream is marked as a repetition code stream.
- 如权利要求5所述的方法,其中,所述根据所述错误码流的类型,对所述错误码流进行过滤,并输出待解码码流,包括:The method of claim 5, wherein the filtering the error code stream according to the type of the error code stream and outputting the code stream to be decoded comprises:当所述错误码流的类型为重复码流时,过滤掉所述错误码流;以及When the type of the error code stream is a repeated code stream, filtering out the error code stream;当所述错误码流的类型为异常码流时,保留所述错误码流中的第一码流,过滤掉除所述第一码流外的频道码流,并将所述第一码流作为所述待解码码流输出。When the type of the error code stream is an abnormal code stream, retaining the first code stream in the error code stream, filtering out a channel code stream other than the first code stream, and filtering the first code stream Outputted as the code stream to be decoded.
- 一种码流播出的装置,包括:A device for streaming a code stream, comprising:接收模块,设置为接收频道服务器上传的频道码流及所述频道服务器对所述频道码流进行检测所得到的检测数据;a receiving module, configured to receive a channel code stream uploaded by the channel server and detection data obtained by the channel server detecting the channel code stream;过滤模块,设置为根据所述检测数据对所述频道码流进行检测,过滤掉所述频道码流中的错误码流,并输出待解码码流;以及a filtering module, configured to detect the channel code stream according to the detection data, filter out an error code stream in the channel code stream, and output a code stream to be decoded;解码模块,设置为对所述待解码码流进行解码,得到用于播放的音视频数据。The decoding module is configured to decode the to-be-decoded code stream to obtain audio and video data for playing.
- 如权利要求7所述的装置,其中,所述接收模块设置为:The apparatus of claim 7 wherein said receiving module is configured to:接收频道服务器上传的频道码流及所述频道服务器对所述频道码流进行检 测所得到的所述频道码流的丢包率;Receiving a channel code stream uploaded by the channel server and the channel server checking the channel code stream Measuring the packet loss rate of the channel code stream obtained;其中,所述过滤模块设置为:Wherein, the filtering module is set to:根据所述丢包率对所述频道码流进行检测,过滤掉所述频道码流中的错误码流,并输出待解码码流。The channel code stream is detected according to the packet loss rate, the error code stream in the channel code stream is filtered out, and the code stream to be decoded is output.
- 如权利要求8所述的装置,其中,所述过滤模块设置为:The apparatus of claim 8 wherein said filtering module is configured to:将所述丢包率与预设丢包率进行对比,当所述丢包率不大于所述预设丢包率时标记所述频道码流为正常码流,当所述丢包率大于所述预设丢包率时标记所述频道码流为错误码流。Comparing the packet loss rate with a preset packet loss rate, and marking the channel code stream as a normal code stream when the packet loss rate is not greater than the preset packet loss rate, when the packet loss rate is greater than When the preset packet loss rate is described, the channel code stream is marked as an error code stream.
- 如权利要求7所述的装置,其中,所述过滤模块包括:The apparatus of claim 7 wherein said filtering module comprises:第一标记单元,设置为标记所述频道码流中的错误码流;a first marking unit configured to mark an error code stream in the channel code stream;第二标记单元,设置为根据所述错误码流的组播地址和端口的数量,标记出所述错误码流的类型;以及a second marking unit, configured to mark the type of the error code stream according to the multicast address and the number of ports of the error code stream;过滤单元,设置为根据所述错误码流的类型,对所述错误码流进行过滤,并输出待解码码流。And a filtering unit, configured to filter the error code stream according to the type of the error code stream, and output a code stream to be decoded.
- 如权利要求10所述的装置,其中,所述第二标记单元设置为:The apparatus of claim 10 wherein said second marking unit is configured to:当所述错误码流含有多个相同的组播地址和端口时,标记所述错误码流的类型为异常码流;以及When the error code stream contains multiple identical multicast addresses and ports, marking the type of the error code stream as an abnormal code stream;当所述错误码流的组播地址和端口与预设时间内接收的频道码流的组播地址和端口相同时,标记所述错误码流的类型为重复码流。When the multicast address and port of the error code stream are the same as the multicast address and port of the channel code stream received within the preset time, the type of the error code stream is marked as a repetition code stream.
- 如权利要求11所述的装置,其中,所述过滤单元设置为:The apparatus of claim 11 wherein said filtering unit is configured to:当所述错误码流的类型为重复码流时,过滤掉所述错误码流;以及When the type of the error code stream is a repeated code stream, filtering out the error code stream;当所述错误码流的类型为异常码流时,保留所述错误码流中的第一码流,过滤掉除所述第一码流外的频道码流,并将所述第一码流作为所述待解码码流 输出。When the type of the error code stream is an abnormal code stream, retaining the first code stream in the error code stream, filtering out a channel code stream other than the first code stream, and filtering the first code stream As the code stream to be decoded Output.
- 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-6中任一项的方法。 A non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-6.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510740683.9 | 2015-11-04 | ||
CN201510740683.9A CN106658177A (en) | 2015-11-04 | 2015-11-04 | Code stream safe broadcasting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017076325A1 true WO2017076325A1 (en) | 2017-05-11 |
Family
ID=58661934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/104583 WO2017076325A1 (en) | 2015-11-04 | 2016-11-04 | Code stream playing method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106658177A (en) |
WO (1) | WO2017076325A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116886678A (en) * | 2023-09-06 | 2023-10-13 | 中移(杭州)信息技术有限公司 | Abnormal code stream filtering method, system, electronic equipment and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739715B (en) * | 2019-01-22 | 2022-07-29 | 京东方科技集团股份有限公司 | Fault detection method and device |
CN112735117B (en) * | 2020-12-28 | 2022-02-11 | 深圳市路畅科技股份有限公司 | Filtering method, system and application of IR analysis based on NEC standard |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159843A (en) * | 2007-10-29 | 2008-04-09 | 中兴通讯股份有限公司 | Image switching method and system for improving video switch effect in video session |
CN103200396A (en) * | 2013-04-09 | 2013-07-10 | 广东粤铁瀚阳科技有限公司 | Real-time video stream display method and system based on information display platform |
CN103297772A (en) * | 2013-05-02 | 2013-09-11 | 深圳市比维视创科技有限公司 | Method and system for processing transmission screen image and display equipment |
EP2645711A1 (en) * | 2012-03-28 | 2013-10-02 | Nagravision S.A. | Method to bind the use of a television receiver to a particular network |
CN103701634A (en) * | 2013-12-10 | 2014-04-02 | 广州华多网络科技有限公司 | Method and device for transmitting multimedia data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130821A (en) * | 2010-08-11 | 2011-07-20 | 华为技术有限公司 | Method and system for processing packet loss in international protocol television (IPTV) system as well as server |
-
2015
- 2015-11-04 CN CN201510740683.9A patent/CN106658177A/en not_active Withdrawn
-
2016
- 2016-11-04 WO PCT/CN2016/104583 patent/WO2017076325A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159843A (en) * | 2007-10-29 | 2008-04-09 | 中兴通讯股份有限公司 | Image switching method and system for improving video switch effect in video session |
EP2645711A1 (en) * | 2012-03-28 | 2013-10-02 | Nagravision S.A. | Method to bind the use of a television receiver to a particular network |
CN103200396A (en) * | 2013-04-09 | 2013-07-10 | 广东粤铁瀚阳科技有限公司 | Real-time video stream display method and system based on information display platform |
CN103297772A (en) * | 2013-05-02 | 2013-09-11 | 深圳市比维视创科技有限公司 | Method and system for processing transmission screen image and display equipment |
CN103701634A (en) * | 2013-12-10 | 2014-04-02 | 广州华多网络科技有限公司 | Method and device for transmitting multimedia data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116886678A (en) * | 2023-09-06 | 2023-10-13 | 中移(杭州)信息技术有限公司 | Abnormal code stream filtering method, system, electronic equipment and storage medium |
CN116886678B (en) * | 2023-09-06 | 2023-12-05 | 中移(杭州)信息技术有限公司 | Abnormal code stream filtering method, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106658177A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230077432A1 (en) | Claiming delayed live reference streams | |
WO2017076325A1 (en) | Code stream playing method and apparatus | |
US10862767B2 (en) | Data packet prediction | |
EP2592783B1 (en) | Network content monitoring | |
CN110061979B (en) | Method and device for detecting business object | |
US11012470B2 (en) | Reducing the impact of border gateway protocol (BGP) hijacks | |
US20170171167A1 (en) | Calculation device, calculation method, communication apparatus, and storage medium | |
CN108235111B (en) | Information sharing method and intelligent set top box | |
WO2009117908A1 (en) | Method and device for media stream detection | |
US20160140345A1 (en) | Information processing device, filtering system, and filtering method | |
US9270456B1 (en) | System and methodology for decrypting encrypted media | |
WO2024187792A1 (en) | Video tamper-proofing method and apparatus, electronic device, and storage medium | |
EP2871844A1 (en) | Video recording method and system | |
WO2021174879A1 (en) | Ai video call quality analysis method and apparatus, computer device, and storage medium | |
CN112995099B (en) | Method and border access controller for voice communication attack protection | |
CN104184746A (en) | Method and device for processing data through gateway | |
CN109218824B (en) | Service processing method and device | |
CN104219212A (en) | Method, device and system for cross-network transmission of video files | |
JP2009025657A (en) | Transmitter, receiving method, and receiver | |
US20070002860A1 (en) | Method and system for a digital home network trace and debug tool | |
CN113873340A (en) | Data processing method, device, equipment, system and storage medium | |
WO2017107462A1 (en) | P2p network-based data processing method, apparatus and system | |
US9288180B2 (en) | Communication system and method | |
WO2016078212A1 (en) | Packet processing method and device, and storage medium | |
CN111954014B (en) | Live broadcast stream pushing method and device, storage medium and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16861593 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16861593 Country of ref document: EP Kind code of ref document: A1 |