CN111416979A - Self-adaptive decoding method and device - Google Patents

Self-adaptive decoding method and device Download PDF

Info

Publication number
CN111416979A
CN111416979A CN202010138682.8A CN202010138682A CN111416979A CN 111416979 A CN111416979 A CN 111416979A CN 202010138682 A CN202010138682 A CN 202010138682A CN 111416979 A CN111416979 A CN 111416979A
Authority
CN
China
Prior art keywords
decoding
channel
adaptive
video stream
capability
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.)
Granted
Application number
CN202010138682.8A
Other languages
Chinese (zh)
Other versions
CN111416979B (en
Inventor
温新峰
李航宇
梁选勤
余毅鹏
陈家劭
杨金河
魏世宁
胡震
王平
张杰洪
张懋林
吴树雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Topsee Electronic Technology Co ltd
Original Assignee
Topsee Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Topsee Electronic Technology Co ltd filed Critical Topsee Electronic Technology Co ltd
Priority to CN202010138682.8A priority Critical patent/CN111416979B/en
Publication of CN111416979A publication Critical patent/CN111416979A/en
Application granted granted Critical
Publication of CN111416979B publication Critical patent/CN111416979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a self-adaptive decoding method and a self-adaptive decoding device, and relates to the field of network video recorders. The method comprises the following steps: acquiring a video stream from an access device; decoding the video stream; detecting a current decoding state in real time; and when the current decoding state is detected to exceed the maximum decoding capability, if a channel for decoding the main code stream exists, setting the channel into a decoding sub-code stream, and if all the channels are decoding sub-code streams, setting any channel into a channel for decoding only the key frame. The invention can detect the decoding state in real time when the network video recorder decodes, automatically adjust the decoding scheme and avoid exceeding the decoding capability of the video recorder.

Description

Self-adaptive decoding method and device
Technical Field
The invention relates to the field of network video recorders, in particular to a self-adaptive decoding method and a self-adaptive decoding device.
Background
The video recorder needs to consume system decoding resources to decode each video stream, and the decoding capability of the video recorder (how many resolution images the video recorder can handle at maximum) is certain. Therefore, if the decoding requirement exceeds the performance upper limit of the video recorder, it will inevitably result in insufficient decoding capability of the NVR (network video recorder). Video recorders of any manufacturer, brand, model have limited decoding capability, so there may be a problem of insufficient resources. In order to solve the problem of insufficient decoding capability of the NVR, the consumption of resources can be reduced by switching the main code stream and the sub code stream, reducing the decoding channels and reducing the resolution and the code rate, so that the consumption does not exceed the decoding capability of the video recorder. Unfortunately, these require manual intervention, reducing the ease of use of the product.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a self-adaptive decoding method and a self-adaptive decoding device, which can detect the decoding state in real time when a network video recorder decodes, automatically adjust the decoding scheme and avoid exceeding the decoding capability of the video recorder.
In a first aspect, an embodiment of the present invention provides an adaptive decoding method, including the following steps:
acquiring a video stream from an access device;
decoding the video stream;
detecting a current decoding state in real time;
and when the current decoding state is detected to exceed the maximum decoding capability, if a channel for decoding the main code stream exists, setting the channel into a decoding sub-code stream, and if all the channels are decoding sub-code streams, setting any channel into a channel for decoding only the key frame.
The self-adaptive decoding method of the embodiment of the invention at least has the following beneficial effects: the decoding state can be detected in real time when the network video recorder decodes, the decoding scheme is automatically adjusted, and the decoding capability of the video recorder is avoided being exceeded.
According to another embodiment of the adaptive decoding method of the present invention, the detecting a current decoding status in real time includes:
and detecting the resolution, the frame rate and the number of the decoding channels of each current decoding channel in real time.
According to further embodiments of the adaptive decoding method of the present invention, the maximum decoding capability is an image processing capability for a video stream.
According to further embodiments of the present invention, an adaptive decoding method further comprises: and storing the acquired video stream.
According to further embodiments of the present invention, an adaptive decoding method further comprises: and outputting and displaying the decoded video stream.
In a second aspect, an embodiment of the present invention further provides an adaptive decoding apparatus, including:
the acquisition module is used for acquiring a video stream from the access equipment;
a decoding module for decoding the video stream;
the detection module is used for detecting the current decoding state in real time;
and the setting module is used for setting a channel for decoding the main code stream into a decoding sub-code stream if the channel exists when the current decoding state exceeds the maximum decoding capability, and setting any channel into only a decoding key frame if all the channels are the decoding sub-code streams.
According to another embodiment of the adaptive decoding apparatus of the present invention, the detection module is specifically configured to detect, in real time, a resolution, a frame rate, and a number of decoding channels of each current decoding channel.
According to further embodiments of the adaptive decoding apparatus of the present invention, the maximum decoding capability is an image processing capability on a video stream.
According to further embodiments of the present invention, an adaptive decoding apparatus, the apparatus further comprising: and the storage module is used for storing the acquired video stream.
According to further embodiments of the present invention, an adaptive decoding apparatus, the apparatus further comprising: and the display module is used for outputting and displaying the decoded video stream.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of an adaptive decoding method according to the present invention.
Detailed Description
The concept and technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments to fully understand the objects, features and effects of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and those skilled in the art can obtain other embodiments without inventive effort based on the embodiments of the present invention, and all embodiments are within the protection scope of the present invention.
In the description of the present invention, if an orientation description is referred to, for example, the orientations or positional relationships indicated by "upper", "lower", "front", "rear", "left", "right", etc. are based on the orientations or positional relationships shown in the drawings, only for convenience of describing the present invention and simplifying the description, but not for indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. If a feature is referred to as being "disposed," "secured," "connected," or "mounted" to another feature, it can be directly disposed, secured, or connected to the other feature or indirectly disposed, secured, connected, or mounted to the other feature.
In the description of the embodiments of the present invention, if "a number" is referred to, it means one or more, if "a plurality" is referred to, it means two or more, if "greater than", "less than" or "more than" is referred to, it is understood that the number is not included, and if "greater than", "lower" or "inner" is referred to, it is understood that the number is included. If reference is made to "first" or "second", this should be understood to distinguish between features and not to indicate or imply relative importance or to implicitly indicate the number of indicated features or to implicitly indicate the precedence of the indicated features.
Example one
In some application scenarios, a system includes a webcam, a switch, a webcam, and a display. A network camera (IPC for short, hereinafter referred to as "description") of a terminal device is a main source of a code stream after video acquisition and compression coding. The exchanger is used for forwarding the code stream. The network video recorder (NVR, hereinafter abbreviated as NVR) decodes the received code stream, and displays the decoded video data on a display in a VGA or HDMI manner. The invention mainly aims to design a decoding part of the NVR, detect the decoding state of the NVR in real time during decoding, and automatically adjust a decoding scheme when detecting that the decoding capability of the NVR is insufficient, so as to avoid exceeding the decoding capability of a video recorder.
Referring to fig. 1, a flow chart of the adaptive decoding method in this embodiment is shown, which is applied to adaptive decoding of a network video recorder. The method comprises the following steps:
s100, acquiring a video stream from access equipment;
s200, decoding the video stream;
s300, detecting the current decoding state in real time;
s400, when the current decoding state is detected to exceed the maximum decoding capability, if a channel for decoding the main code stream exists, the channel is set to be a decoding sub-code stream, and if all the channels are decoding sub-code streams, any channel is set to be only used for decoding the key frame.
Specifically, the network video recorder acquires a video stream from an access device (typically, a network video camera, which transmits the video stream to the network video recorder through the RTSP protocol), decodes the video stream, and detects a current decoding state in real time. And detecting a decoding channel when the current decoding state exceeds the maximum decoding capability of the network video recorder. If a channel for decoding the main code stream exists, setting the channel as a decoding sub-code stream; if the channel for decoding the main code stream does not exist, namely all the channels are decoding sub-code streams, any channel is set to decode only the key frame.
In this embodiment, the maximum decoding capability of the network video recorder specifically means: when the video recorder outputs locally, the processing capability of the video in the video stream is that when the video recorder is connected with a VGA or HDMI display, the display can display a picture of millions of pixels at most simultaneously.
In this embodiment, the step S300 of detecting the current decoding state in real time specifically includes:
and detecting the resolution, the frame rate and the number of the decoding channels of each current decoding channel in real time. The decoding state of a single decoding channel is the resolution frame rate of the decoding channel, and the current decoding state of the video recorder is the sum of the decoding states of all the decoding channels.
Further, as shown in fig. 1, in this embodiment, the adaptive decoding method further includes the steps of:
s500, storing the acquired video stream;
and S600, outputting and displaying the decoded video stream.
Specifically, the network video recorder stores the acquired video stream from the network video camera, and when the network video recorder is used for subsequently viewing the playback video, the network video recorder reads the stored data and then decodes and displays the data. And the network video recorder outputs and displays the decoded video stream in a VGA or HDMI mode.
Example two
The present embodiment provides an adaptive decoding apparatus, including:
the acquisition module is used for acquiring a video stream from the access equipment;
a decoding module for decoding the video stream;
the detection module is used for detecting the current decoding state in real time;
and the setting module is used for setting a channel for decoding the main code stream into a decoding sub-code stream if the channel exists when the access equipment is detected to exceed the maximum decoding capability, and setting any channel into a channel for decoding only the key frame if all the channels are the decoding sub-code streams.
The modules are arranged in the network video recorder and used for realizing the steps of the network video recorder self-adaptive decoding method.
In this embodiment, the detection module is specifically configured to detect the resolution, the frame rate, and the number of decoding channels of each current decoding channel in real time.
In this embodiment, the adaptive decoding apparatus further includes: and the storage module is used for storing the acquired video stream.
In this embodiment, the adaptive decoding apparatus further includes: and the display module is used for outputting and displaying the decoded video stream.
In this embodiment, the working process of the adaptive decoding apparatus refers to the description of the adaptive decoding method in the first embodiment, and is not described herein again.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with each other without conflict.

Claims (10)

1. An adaptive decoding method, characterized in that the method comprises the steps of:
acquiring a video stream from an access device;
decoding the video stream;
detecting a current decoding state in real time;
and when the current decoding state is detected to exceed the maximum decoding capability, if a channel for decoding the main code stream exists, setting the channel into a decoding sub-code stream, and if all the channels are decoding sub-code streams, setting any channel into a channel for decoding only the key frame.
2. The adaptive decoding method according to claim 1, wherein the step of detecting the current decoding status in real time specifically comprises:
and detecting the resolution, the frame rate and the number of the decoding channels of each current decoding channel in real time.
3. An adaptive decoding method according to claim 2, wherein the maximum decoding capability is the image processing capability of the video stream.
4. An adaptive decoding method according to claim 3, characterized in that the method further comprises: and storing the acquired video stream.
5. An adaptive decoding method according to claim 4, characterized in that the method further comprises: and outputting and displaying the decoded video stream.
6. An adaptive decoding apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a video stream from the access equipment;
a decoding module for decoding the video stream;
the detection module is used for detecting the current decoding state in real time;
and the setting module is used for setting a channel for decoding the main code stream into a decoding sub-code stream if the channel exists when the current decoding state exceeds the maximum decoding capability, and setting any channel into only a decoding key frame if all the channels are the decoding sub-code streams.
7. The adaptive decoding apparatus according to claim 6, wherein the detecting module is specifically configured to detect, in real time, the resolution, the frame rate, and the number of decoding channels of each current decoding channel.
8. An adaptive decoding device according to claim 7, wherein the maximum decoding capability is the image processing capability of the video stream.
9. An adaptive decoding device according to claim 8, wherein the device further comprises: and the storage module is used for storing the acquired video stream.
10. An adaptive decoding device according to claim 9, wherein the device further comprises: and the display module is used for outputting and displaying the decoded video stream.
CN202010138682.8A 2020-03-03 2020-03-03 Self-adaptive decoding method and device Active CN111416979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010138682.8A CN111416979B (en) 2020-03-03 2020-03-03 Self-adaptive decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010138682.8A CN111416979B (en) 2020-03-03 2020-03-03 Self-adaptive decoding method and device

Publications (2)

Publication Number Publication Date
CN111416979A true CN111416979A (en) 2020-07-14
CN111416979B CN111416979B (en) 2023-01-10

Family

ID=71494211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010138682.8A Active CN111416979B (en) 2020-03-03 2020-03-03 Self-adaptive decoding method and device

Country Status (1)

Country Link
CN (1) CN111416979B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714320A (en) * 2020-12-25 2021-04-27 杭州海康威视数字技术股份有限公司 Decoding method, decoding device and computer readable storage medium
CN114363609A (en) * 2022-01-07 2022-04-15 重庆紫光华山智安科技有限公司 Decoding control method, decoding control device, decoding equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607552A (en) * 2013-10-14 2014-02-26 同方(深圳)云计算技术股份有限公司 Network video recorder (NVR) video hard decoding chip system resource allocation method
CN104660978A (en) * 2013-11-18 2015-05-27 三星泰科威株式会社 Image processing apparatus and method for processing images
CN106231225A (en) * 2016-09-14 2016-12-14 深圳市泛海三江科技发展有限公司 A kind of network hard disk video recorder data processing method and system
CN108810607A (en) * 2018-07-11 2018-11-13 深圳市东微智能科技股份有限公司 Bitstreams switching method, apparatus, computer equipment and storage medium
CN109769106A (en) * 2019-02-28 2019-05-17 杭州雄迈信息技术有限公司 A kind of monitoring method and device thereof for realizing multichannel number using network hard disk video recorder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607552A (en) * 2013-10-14 2014-02-26 同方(深圳)云计算技术股份有限公司 Network video recorder (NVR) video hard decoding chip system resource allocation method
CN104660978A (en) * 2013-11-18 2015-05-27 三星泰科威株式会社 Image processing apparatus and method for processing images
CN106231225A (en) * 2016-09-14 2016-12-14 深圳市泛海三江科技发展有限公司 A kind of network hard disk video recorder data processing method and system
CN108810607A (en) * 2018-07-11 2018-11-13 深圳市东微智能科技股份有限公司 Bitstreams switching method, apparatus, computer equipment and storage medium
CN109769106A (en) * 2019-02-28 2019-05-17 杭州雄迈信息技术有限公司 A kind of monitoring method and device thereof for realizing multichannel number using network hard disk video recorder

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714320A (en) * 2020-12-25 2021-04-27 杭州海康威视数字技术股份有限公司 Decoding method, decoding device and computer readable storage medium
CN114363609A (en) * 2022-01-07 2022-04-15 重庆紫光华山智安科技有限公司 Decoding control method, decoding control device, decoding equipment and storage medium
CN114363609B (en) * 2022-01-07 2024-04-26 重庆紫光华山智安科技有限公司 Decoding control method, device, decoding equipment and storage medium

Also Published As

Publication number Publication date
CN111416979B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN112468855B (en) Data transmission method and device and nonvolatile storage medium
US5754700A (en) Method and apparatus for improving the quality of images for non-real time sensitive applications
US20150242994A1 (en) Method and system for accelerating video preview digital camera
US9699099B2 (en) Method of transmitting data in a communication system
CN111416979B (en) Self-adaptive decoding method and device
CN110677672A (en) Method and system for encoding video with overlays
US7876360B2 (en) Image data transfer processor and surveillance camera system
US8970654B1 (en) System and method for selecting portions of video data for high quality feed while continuing a low quality feed
US20090033969A1 (en) Image control apparatus and image control method
US7646929B2 (en) Signal-transmitting system, data-transmitting apparatus and data-receiving apparatus
JP4157887B2 (en) Security monitoring system that outputs both still images
CN111641804A (en) Video data processing method and device, terminal, camera and video conference system
CN101554053A (en) Framebuffer sharing for video processing
JP2009515442A (en) Point-to-multipoint wireless display method
US6359643B1 (en) Method and apparatus for signaling a still image capture during video capture
JP2005073218A (en) Image processing apparatus
CN112822517A (en) Resolution adaptation method and device and nonvolatile storage medium
US20060259939A1 (en) Method, system and receiving device for transmitting screen frames from one to many terminals
CN111314648A (en) Information processing method, processing device, first electronic equipment and server
EP3070598B1 (en) Image processing system and method
CN112328145A (en) Image display method, device, equipment and computer readable storage medium
JP2001502492A (en) Apparatus and method for generating on-screen display messages using line doubling
CN113612938A (en) Multi-type adaptive resolution image conversion method and device
CN112399173A (en) Channel decoding test method, system and readable storage medium
JPH08191451A (en) Moving picture transmitter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant