CN109429068B - Video coding and decoding service processing method and device - Google Patents

Video coding and decoding service processing method and device Download PDF

Info

Publication number
CN109429068B
CN109429068B CN201710777937.3A CN201710777937A CN109429068B CN 109429068 B CN109429068 B CN 109429068B CN 201710777937 A CN201710777937 A CN 201710777937A CN 109429068 B CN109429068 B CN 109429068B
Authority
CN
China
Prior art keywords
decoding
target
encoding
capability
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710777937.3A
Other languages
Chinese (zh)
Other versions
CN109429068A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201710777937.3A priority Critical patent/CN109429068B/en
Publication of CN109429068A publication Critical patent/CN109429068A/en
Application granted granted Critical
Publication of CN109429068B publication Critical patent/CN109429068B/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/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a video coding and decoding service processing method and equipment. The method comprises the steps that a server receives a first registration message sent by each of at least one encoding device and a second registration message sent by each of at least one decoding device; a server receives a service processing message sent by any coding device or any decoding device; the server determines the target coding capacity and the target decoding capacity for coding and decoding the service data according to the service processing message, the first registration message and the second registration message; when the server determines that the target coding capacity and the target decoding capacity are not consistent and the local machine has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the target coding equipment according to the target coding capacity and the target decoding capacity to obtain data to be decoded and sends the data to be decoded to the target decoding equipment. The coding device and the decoding device can determine the coding and decoding capabilities adopted by the coding device and the decoding device respectively, so that the service data can be normally processed.

Description

Video coding and decoding service processing method and device
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for processing a video coding/decoding service.
Background
H.265 coding and decoding is a new coding and decoding technology, and compared with H.264 coding and decoding, the H.265 coding and decoding has the advantages of clearer video quality, less occupied bandwidth resources and the like. Generally, the codec device supporting both the h.263 codec capability and the h.264 codec capability does not support the h.265 codec, and the video codec device supporting the h.265 codec capability can support the h.263 codec, the h.264 codec, and the h.265 codec.
Generally, an encoding device performs encoding processing on video data to obtain encoded data. The encoding device transmits the encoded data to the decoding device through the server, and the decoding device decodes the encoded data to obtain decoded video data.
However, since the server cannot know whether the data sent by the encoding device is obtained by h.265 encoding, and the server directly transmits the data to the decoding device, the decoding device cannot know whether the data can be decoded, and the decoded data still decodes the data, which causes the decoding device to fail to decode, thereby bringing unpredictable results.
Disclosure of Invention
The invention provides a video coding and decoding service processing method and equipment, which are used for solving the problem that the conventional decoding equipment cannot know whether the data sent by a server can be decoded or not so that the service data cannot be processed.
In a first aspect, the present invention provides a method for processing a video coding/decoding service, including:
the method comprises the steps that a server receives a first registration message sent by each of at least one encoding device and a second registration message sent by each of at least one decoding device, wherein the first registration message comprises an encoding list and an identification of the encoding device, the encoding list comprises an encoding capability of the encoding device, the second registration message comprises a decoding list and an identification of the decoding device, and the decoding list comprises a decoding capability of the decoding device;
the server receives a service processing message sent by any coding device or any decoding device, wherein the service processing message comprises an identifier of a target coding device and an identifier of a target decoding device for processing service data;
the server determines a target coding capacity for coding the service data and a target decoding capacity for decoding the service data according to the identification of the target coding device, the identification of the target decoding device, the first registration message and the second registration message;
when the server determines that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the target coding equipment according to the target coding capacity and the target decoding capacity to obtain data to be decoded, and sends the data to be decoded to the target decoding equipment, wherein the coded data are the data obtained by coding the service data by the target coding equipment.
In a second aspect, the present invention provides a video coding and decoding service processing method, applied to a coding device, where the method includes:
the method comprises the steps that a server receives a service request message sent by encoding equipment, wherein the service request message comprises an encoding list and an identifier of decoding equipment for processing service data, and the encoding list comprises the encoding capacity of the encoding equipment;
the server sends a selection message to the decoding equipment according to the service request message, wherein the selection message comprises the coding list, so that the decoding equipment determines a target coding capacity for coding the service data and a target decoding capacity for decoding the service data in the coding list according to the local decoding capacity;
the server receives a feedback message sent by the decoding device, wherein the feedback message comprises the target coding capacity and the target decoding capacity;
when the server determines that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the coding device according to the target coding capacity and the target decoding capacity to obtain data to be decoded, and sends the data to be decoded to the decoding device, wherein the coded data are data obtained by coding the service data by the coding device.
In a third aspect, the present invention provides a video coding and decoding service processing method, applied to a decoding device, where the method includes:
the decoding device receives a selection message sent by a server, wherein the selection message comprises an encoding list, and the encoding list comprises the encoding capability of the encoding device;
the decoding equipment determines the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the decoding capacity of the decoding equipment and the coding list;
the decoding device sends a feedback message to the server, the feedback message including the target encoding capability and the target decoding capability.
In a fourth aspect, the present invention provides a method for processing a video coding/decoding service, including:
the method comprises the steps that a server receives a service request message sent by decoding equipment, wherein the service request message comprises a decoding list and an identifier of coding equipment for processing service data, and the decoding list comprises the decoding capacity of the decoding equipment;
the server sends a selection message to the coding device according to the service request message, wherein the selection message comprises the decoding list, so that the coding device determines a target coding capacity for coding the service data and a target decoding capacity for decoding the service data in the decoding list according to the local coding capacity;
the server receives a feedback message sent by the coding equipment, wherein the feedback message comprises the target coding capacity and the target decoding capacity;
when the server determines that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the coding device according to the target coding capacity and the target decoding capacity to obtain data to be decoded, and sends the data to be decoded to the decoding device, wherein the coded data are data obtained by coding the service data by the coding device.
In a fifth aspect, the present invention provides a video coding and decoding service processing method, applied to a coding device, where the method includes:
the encoding device receives a selection message sent by a server, wherein the selection message comprises a decoding list, and the decoding list comprises the decoding capability of the decoding device;
the coding equipment determines the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the coding capacity of the coding equipment and the decoding list;
the encoding device sends a feedback message to the server, the feedback message including the target encoding capability and the target decoding capability.
In a sixth aspect, the present invention provides a server, comprising:
a receiving module, configured to receive a first registration message sent by each of at least one encoding device and a second registration message sent by each of at least one decoding device, where the first registration message includes an encoding list and an identification of the encoding device, the encoding list includes an encoding capability of the encoding device, the second registration message includes a decoding list and an identification of the decoding device, and the decoding list includes a decoding capability of the decoding device;
the receiving module is further configured to receive a service processing message sent by any encoding device or any decoding device, where the service processing message includes an identifier of a target encoding device and an identifier of a target decoding device, where the target encoding device and the target decoding device process service data
A determining module, configured to determine, according to the identifier of the target encoding device, the identifier of the target decoding device, the first registration message, and the second registration message, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data;
the determining module is specifically configured to, when it is determined that the target encoding capability and the target decoding capability are not consistent and the local device has an h.265 encoding and decoding capability, transcode, by the server, the received encoded data sent by the target encoding device according to the target encoding capability and the target decoding capability to obtain data to be decoded, and send the data to be decoded to the target decoding device, where the encoded data is data obtained by encoding, by the target encoding device, the service data.
In a seventh aspect, the present invention provides a server, including:
a receiving module, configured to receive a service request message sent by an encoding device, where the service request message includes an encoding list and an identifier of a decoding device that processes service data, and the encoding list includes encoding capability of the encoding device;
a sending module, configured to send a selection message to the decoding device according to the service request message, where the selection message includes the encoding list, so that the decoding device determines, according to a local decoding capability, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data in the encoding list;
the receiving module is further configured to receive a feedback message sent by the decoding device, where the feedback message includes the target encoding capability and the target decoding capability;
and the determining module is used for transcoding the received encoded data sent by the encoding equipment according to the target encoding capacity and the target decoding capacity to obtain data to be decoded and sending the data to be decoded to the decoding equipment when the target encoding capacity and the target decoding capacity are determined to be inconsistent and the local machine has the H.265 encoding and decoding capacity, wherein the encoded data is the data obtained by encoding the service data by the encoding equipment.
In an eighth aspect, the present invention provides a decoding device comprising:
the receiving module is used for receiving a selection message sent by a server, wherein the selection message comprises an encoding list, and the encoding list comprises the encoding capability of encoding equipment;
the determining module is used for determining the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the decoding capacity of the local computer and the coding list;
a sending module, configured to send a feedback message to the server, where the feedback message includes the target encoding capability and the target decoding capability.
In a ninth aspect, the present invention provides a server comprising:
a receiving module, configured to receive a service request message sent by a decoding device, where the service request message includes a decoding list and an identifier of an encoding device that processes service data, and the decoding list includes a decoding capability of the decoding device;
a sending module, configured to send a selection message to the encoding device according to the service request message, where the selection message includes the decoding list, so that the encoding device determines, according to a native encoding capability, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data in the decoding list;
the receiving module is further configured to receive a feedback message sent by the encoding device, where the feedback message includes the target encoding capability and the target decoding capability;
and the determining module is used for transcoding the received encoded data sent by the encoding equipment according to the target encoding capacity and the target decoding capacity to obtain data to be decoded and sending the data to be decoded to the decoding equipment when the target encoding capacity and the target decoding capacity are determined to be inconsistent and the local machine has the H.265 encoding and decoding capacity, wherein the encoded data is the data obtained by encoding the service data by the encoding equipment.
In a tenth aspect, the present invention provides an encoding device comprising:
the device comprises a receiving module, a decoding module and a processing module, wherein the receiving module is used for receiving a selection message sent by a server, the selection message comprises a decoding list, and the decoding list comprises the decoding capability of decoding equipment;
the determining module is used for determining the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the coding capacity of the local computer and the decoding list;
a sending module, configured to send a feedback message to the server, where the feedback message includes the target encoding capability and the target decoding capability.
According to the video coding and decoding service processing method and device provided by the invention, when the server confirms that the target coding capacity and the target decoding capacity are inconsistent and the local machine has the H.265 coding and decoding capacity, the server can transcode the received coded data obtained by coding the service data by the target coding device according to the target coding capacity and the target decoding capacity to obtain the data to be decoded, and the target decoding device can decode the data to be decoded. The invention solves the problem that the existing decoding equipment can not know whether the data sent by the server can be decoded or not, so that the service data can not be processed, overcomes the limitation that the encoding and decoding equipment lacks the consistent encoding and decoding capability through the transcoding of the server, and smoothly realizes the processing of the service data.
Drawings
Fig. 1 is a schematic view of a scene of a video codec service processing method according to the present invention;
fig. 2 is a signaling flow chart i of a video coding and decoding service processing method provided by the present invention;
fig. 3 is a first flowchart of a video codec service processing method according to the present invention;
fig. 4 is a second flowchart of a video codec service processing method according to the present invention;
fig. 5 is a flowchart of a video coding/decoding service processing method according to the present invention;
fig. 6 is a signaling flow chart of a video coding/decoding service processing method according to the present invention;
fig. 7 is a fourth flowchart of a video codec service processing method provided by the present invention;
fig. 8 is a fifth flowchart of a video coding/decoding service processing method provided by the present invention;
fig. 9 is a sixth flowchart of a video coding/decoding service processing method provided by the present invention;
FIG. 10 is a first schematic structural diagram of a server according to the present invention;
FIG. 11 is a second schematic structural diagram of a server according to the present invention;
fig. 12 is a schematic structural diagram of a coding and decoding device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present embodiment clearer, the technical solutions in the present embodiment will be clearly and completely described below with reference to the drawings in the present embodiment.
Fig. 1 is a schematic view of a scene of a video coding and decoding service processing method provided by the present invention, and as shown in fig. 1, the video coding and decoding service processing method of the present invention can be applied to an encoding device, a server, and a decoding device, where the encoding device may be a device having only an encoding capability or a device having both an encoding capability and a decoding capability. The decoding device may be a device having only decoding capability, or may be a device having both encoding capability and decoding capability. The present embodiment does not limit the types and numbers of the encoding device and the decoding device, and only needs to satisfy the requirement of transmitting service data between the encoding device and the decoding device through the server. The video coding and decoding service processing method in the embodiment can be applied to service processes of video monitoring, video point calling, video returning, video distribution and the like, and the video coding and decoding service processing method in the embodiment can be applied to occasions such as cells, markets, schools and the like.
For convenience of description, the encoding device in this embodiment is a camera, and the camera includes an encoding module. The decoding device is adopted as a monitor, and the monitor comprises a decoding module. And communication between the camera and the monitor is achieved by the server. The following describes the video codec service processing method provided by the present invention in detail with reference to the scene diagram shown in fig. 1. Fig. 2 is a signaling flow chart i of a video coding and decoding service processing method provided by the present invention. As shown in fig. 2, the video codec service processing method of this embodiment includes:
s101, at least one encoding device sends a first registration message to a server respectively, wherein the first registration message comprises an encoding list and an identification of the encoding device, and the encoding list comprises an encoding capability of the encoding device.
S102, the at least one decoding device sends a second registration message to the server respectively, the second registration message comprises a decoding list and the identification of the decoding device, and the decoding list comprises the decoding capability of the decoding device.
Specifically, when each encoding device registers with the server, each encoding device may report to the server together with its encoding capability and its identifier. The identifier of the coding device may be an identifier for distinguishing each coding device, may be set by a user, specifically, may be a device number of the coding device, or may be in other manners. Similarly, when each decoding device registers with the server, each decoding device can also report to the server together with its own decoding capability and its identifier. The identifier of the decoding device may be an identifier for distinguishing each decoding device, may be set by a user, specifically, may be a device number of the decoding device, or may be in other manners. In this embodiment, specific forms of the identifier of the encoding device and the identifier of the decoding device are not limited, and it is only necessary that the identifier of each encoding device can distinguish each encoding device, and the identifier of each decoding device can distinguish each decoding device.
Further, each encoding device and each decoding device may select one of the following reporting modes for reporting, may select the same reporting mode, and may also select different reporting modes. The reporting mode is specifically as follows: the report may be performed through a REGISTER message of a Session Initiation Protocol (SIP) server, or may be performed through a REGISTER message of a Non-access stratum (NAS), or may be performed through other messages. In this embodiment, specific reporting modes of each encoding device and each decoding device are not limited, and only the requirement that the server can receive the encoding capability of each encoding device and the decoding capability of each decoding device is met. The encoding capability of each encoding device in this embodiment may include an encoding mode and a resolution thereof, where the encoding mode may be at least one of encoding capabilities such as h.263 encoding capability, h.264 encoding capability, and h.265 encoding capability. The decoding capability of each decoding device may include a decoding manner and a resolution thereof, wherein the decoding manner may be at least one of decoding capabilities such as h.263 decoding capability, h.264 decoding capability and h.265 decoding capability. The specific content of the encoding capability and the decoding capability is not limited in this embodiment, and only the requirement that the server can receive the encoding capability of each encoding device and the decoding capability of each decoding device is met.
It should be noted here that S101 may be executed before S102, S102 may be executed before S101, and S101 and S102 may also be executed simultaneously. The execution sequence of S101 and S102 is not sequential, and this embodiment does not limit this.
S103, any coding device or any decoding device sends a service processing message to the server, wherein the service processing message comprises an identification of a target coding device and an identification of a target decoding device for processing service data.
Specifically, in this embodiment, when a service such as video playing or video playback is required, any encoding device or any decoding device may send a service processing message to the server. When a service is initiated by any encoding device, the service processing message includes not only the identifier of the encoding device but also the identifier of a decoding device matched with the encoding device, that is, the service processing message includes the identifier of a coding/decoding device for coding/decoding service data. Thus, when the server receives the service processing message, the server can know the identification of the target coding device and the identification of the target decoding device. Similarly, when a service is initiated by any decoding device, the service processing message includes not only the identifier of the decoding device, but also the identifier of the encoding device matched with the decoding device, that is, the service processing message includes the identifier of the encoding and decoding device for encoding and decoding service data. Thus, when the server receives the service processing message, the server can know the identification of the target coding device and the identification of the target decoding device.
S104, the server determines the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the identification of the target coding device, the identification of the target decoding device, the first registration message and the second registration message.
Specifically, each encoding device sends a first registration message to the server, and therefore the server stores the identifier of each encoding device, and therefore the server can find the identifier of the encoding device which is the same as the identifier of the target encoding device, and thus the server determines the target encoding device and the encoding list thereof. Similarly, each decoding device sends the second registration message to the server, so that the server stores the identifier of each decoding device, and therefore, the server can find the identifier of the decoding device which is the same as the identifier of the target decoding device, and thus, the server determines the target decoding device and the decoding list thereof.
Further, the server may obtain the target encoding capability and the target decoding capability according to the determined encoding list and decoding list in various implementation manners, and the specific implementation manner adopted in this embodiment is not limited. The target coding capability may be any coding capability in the coding list, and is a coding capability adopted by the target coding device to code the service data. The target decoding device may be any decoding capability in the decoding list, which is a decoding capability used by the target decoding device to decode the service data. In the embodiment, the h.263 encoding capability is consistent with the h.263 decoding capability, the h.264 encoding capability is consistent with the h.264 decoding capability, and the h.265 encoding capability is consistent with the h.265 decoding capability.
S105, when the server determines that the target coding capacity is inconsistent with the target decoding capacity and whether the local machine has the H.265 coding and decoding capacity, the server sends coding capacity feedback information to the coding equipment according to the identification of the target coding equipment, wherein the coding capacity feedback information comprises the target coding capacity.
S106, when the server determines that the target coding capacity is inconsistent with the target decoding capacity and whether the server has the H.265 coding and decoding capacity, the server sends decoding capacity feedback information to the decoding equipment according to the identification of the target decoding equipment, wherein the decoding capacity feedback information comprises the target decoding capacity.
Specifically, in this embodiment, when the server determines that the target encoding capability is inconsistent with the target decoding capability, the server may determine that the encoding/decoding capabilities of the target encoding device and the target decoding device are inconsistent. Since the target encoding capability and the target decoding capability are not consistent, if the target encoding capability and the target decoding capability only include two encoding/decoding modes, namely h.264 and h.265 encoding/decoding capabilities, two modes can be included: first, the target encoding capability is h.264 encoding capability, and the target decoding capability is h.265 decoding capability; second, the target encoding capability is an h.265 encoding capability and the target decoding capability is an h.264 decoding capability.
Further, if the server directly transmits the data sent by the target encoding device to the target decoding device, the target decoding device cannot complete the decoding process. Therefore, the server needs to determine whether the native machine has h.265 codec capability. If the server determines that the local machine has the H.265 coding and decoding capability, the server can support H.263 coding and decoding, H.264 coding and decoding, H.265 coding and decoding and the like. The server can decode the data sent by the target coding device and then code the data, and then the server sends the data to the target decoding device, so that the target decoding device can finish the decoding process.
Further, the server may determine the target encoding device according to the identifier of the target encoding device, and send the encoding capability feedback message to the target encoding device, so that the target encoding device knows the target encoding capability. The server can also determine the target decoding equipment according to the identification of the target decoding equipment, and send the decoding capability feedback message to the target coding equipment, so that the target decoding equipment can acquire the target decoding capability.
Further, the coding capability feedback message and the decoding capability feedback message also carry an identifier of service start. When receiving the coding capability feedback message, the target coding device can start the coding process of the service data according to the target coding capability. Similarly, when receiving the decoding capability feedback message, the target decoding device may prepare to receive the data sent by the server and determine to decode the received data according to the target decoding capability. Therefore, the target coding device and the target decoding device respectively acquire the respective coding and decoding capabilities, so that the service processing process can be smoothly completed, and time and labor are saved.
It should be noted here that S105 may be executed before S106, S106 may be executed before S105, and S105 and S106 may also be executed simultaneously. The execution sequence of S105 and S106 is not sequential, and this embodiment does not limit this.
And S107, the coding equipment codes the service data according to the target coding capacity to obtain coded data.
And S108, the coding device sends the coded data to a server.
Specifically, since the first feedback message received by the encoding device includes the identifier of service start, the encoding device may start to process the service, specifically, may encode the service data according to the target encoding capability to obtain encoded data, and send the encoded data to the server.
And S109, transcoding the coded data by the server according to the target coding capacity and the target decoding capacity to obtain the data to be decoded.
Specifically, the server determines the target encoding capability, the encoding device encodes the service data according to the target encoding capability to obtain data, and the decoding capability of the decoding device is the target decoding capability, so that the server can decode and encode the encoded data according to the target encoding capability and the target decoding capability to obtain the data to be decoded.
S110, the server sends the data to be decoded to the decoding equipment according to the identification of the target decoding equipment.
And S111, decoding the data to be decoded by the decoding equipment according to the target decoding capability.
Specifically, the server may determine the target decoding device according to the identifier of the target decoding device, and send the data to be decoded to the target decoding device. Since the target decoding apparatus has determined the target decoding capability, the data to be decoded is data encoded according to the encoding capability with which the target decoding capability is identical, and therefore, the target decoding apparatus can decode the data to be decoded according to the target decoding capability.
Furthermore, no matter what encoding capacity is adopted by the target encoding device to encode the service data, the server can decode the received encoded data and transcode the decoded data to obtain the data to be decoded, so that the target decoding device can decode the data to be decoded according to the target decoding capacity. In this embodiment, the transcoding processing of the server enables the encoding device, the server, and the decoding device to smoothly complete the processing process of the service data.
In the video coding and decoding service processing method provided by this embodiment, a server obtains a coding list and a label thereof of each coding device, where the coding list includes coding capability of the coding device, and the server obtains a coding list and an identifier thereof of each decoding device, and the decoding list includes decoding capability of the decoding device. When the server confirms that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server can transcode the received coded data obtained by the target coding device by coding the service data according to the target coding capacity and the target decoding capacity to obtain the data to be decoded, and the target decoding device can decode the data to be decoded. The embodiment solves the problem that the existing decoding equipment cannot know whether the data sent by the server can be decoded or not so that the service data cannot be processed, overcomes the limitation that the coding and decoding equipment lacks coding and decoding capabilities through transcoding of the server, and smoothly processes the service data.
Fig. 3 is a first flowchart of a video codec service processing method provided by the present invention. On the basis of the foregoing embodiments, a detailed description is given to a specific implementation process of the video codec service processing method in this embodiment. As shown in fig. 3, the video codec service processing method of this embodiment includes:
s201, at least one encoding device sends a first registration message to a server respectively, wherein the first registration message comprises an encoding list and an identification of the encoding device, and the encoding list comprises an encoding capability of the encoding device.
S202, the at least one decoding device sends a second registration message to the server respectively, the second registration message comprises a decoding list and the identification of the decoding device, and the decoding list comprises the decoding capability of the decoding device.
S203, any coding device or any decoding device sends a service processing message to the server, wherein the service processing message comprises an identifier of a target coding device and an identifier of a target decoding device for processing service data.
S204, the server determines the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the identification of the target coding device, the identification of the target decoding device, the first registration message and the second registration message.
The implementation manners of S201 to S204 are similar to those of S101 to S104 in the embodiment of fig. 2, and the description of this embodiment is omitted here.
S205, the server judges whether the target coding capacity is consistent with the target decoding capacity. If yes, go to S206; if not, go to step S212.
S206, the server sends first feedback information to the coding device according to the identification of the target coding device, wherein the first feedback information comprises target coding capacity.
S207, the server sends second feedback information to the decoding device according to the identification of the target decoding device, wherein the second feedback information comprises target decoding capability.
Specifically, since the target encoding capability and the target decoding capability are consistent, the server may send the first feedback message and the second feedback message to the target encoding device and the target decoding device, respectively, so that the target encoding device and the target decoding device respectively know the respective target encoding capability and the target decoding capability. Moreover, the first feedback message and the second feedback message also carry service starting identifiers, and when the target coding device receives the first feedback message, the coding process of the service data according to the target coding capacity can be started. Similarly, the target decoding device, upon receiving the second feedback message, may prepare to receive the data sent by the server and determine to decode the received data according to the target decoding capability.
It should be noted here that S206 may be executed before S207, S207 may be executed before S206, and S206 and S207 may also be executed simultaneously. The execution sequence of S206 and S207 is not sequential, and this embodiment does not limit this.
And S208, the coding equipment codes the service data according to the target coding capacity to obtain coded data.
S209, the coding device sends the coded data to a server.
S210, the server sends the coded data to the decoding equipment according to the identification of the target decoding equipment.
S211, the decoding device decodes the coded data according to the target decoding capacity.
Specifically, the server informs the target encoding device and the target decoding device of the first feedback message and the second feedback message, respectively, so that the target encoding device starts encoding the service data to obtain encoded data. Since the server confirms that the target encoding capability is identical to the target decoding capability, the target encoding apparatus and the target decoding apparatus have identical encoding capabilities. The server may transmit the encoded data directly to a target decoding device, which may decode the encoded data according to a target decoding capability. Therefore, the server unifies the coding and decoding capabilities of the target coding device and the target decoding device, and the service processing process is smoothly completed.
S212, the server determines whether the local machine has H.265 coding and decoding capability. If yes, go to S213; if not, go to step S220.
S213, the server sends third feedback information to the coding device according to the identification of the target coding device, wherein the third feedback information comprises the target coding capability.
S214, the server sends fourth feedback information to the decoding device according to the identification of the target decoding device, wherein the fourth feedback information comprises target decoding capability.
S215, the coding device codes the service data according to the target coding capacity to obtain coded data.
S216, the coding device sends the coded data to a server.
S217, the server transcodes the coded data according to the target coding capacity and the target decoding capacity to obtain the data to be decoded.
S218, the server sends the data to be decoded to the decoding device according to the identification of the target decoding device.
And S219, decoding the data to be decoded by the decoding equipment according to the target decoding capability.
S213 to S219 are similar to the implementation manners of S105 to S111 in the embodiment of fig. 2, and details are not repeated here.
S220, the server sends a matching failure message to the coding device according to the identification of the target coding device, or the server sends the matching failure message to the decoding device according to the identification of the target decoding device.
Specifically, since the server does not have the h.265 codec capability and the target encoding device and the target decoding device do not have the same codec capability, the target encoding device encodes the service data to obtain encoded data, and the target encoding device transmits the encoded data to the target decoding device via the server, and the target decoding device cannot decode the encoded data. Thus, the target encoding device, the server and the target decoding device cannot complete the service processing process.
Further, in order to avoid the unpredictable problem of the target decoding device, the server may send a matching failure message to the target encoding device or the target decoding device initiating the service, and when the target encoding device or the target decoding device receives the matching failure message, it may know that the matching process is identified, and the service data cannot be processed by the service.
Fig. 4 is a second flowchart of a video codec service processing method provided by the present invention. On the basis of the foregoing embodiment, a specific implementation manner in which the server determines the target encoding capability and the target decoding capability according to the identifier of the target encoding device, the identifier of the target decoding device, the first registration message, and the second registration message in this embodiment is described in detail. As shown in fig. 4, the method for processing video coding service includes:
s301, the server determines a target coding list according to the identification of the target coding device and the first registration message.
Specifically, since the server receives the first registration message of each encoding device, where the first registration message includes the encoding list and the identifier of the target encoding device, the server may find, in each first registration message, the first registration message that is the same as the identifier of the target encoding device, and the server may determine that the encoding list in the first registration message is the target encoding list.
S302, the server determines a target decoding list according to the identification of the target decoding device and the second registration message.
Specifically, since the server receives the second registration message of each decoding device, where the second registration message includes the decoding list and the identifier of the target decoding device, the server may find, in each second registration message, the second registration message that is the same as the identifier of the target decoding device, and the server may determine that the decoding list in the second registration message is the target decoding list.
It should be noted here that S301 may be executed before S302, S302 may be executed before S301, and S301 and S302 may also be executed simultaneously. The execution sequence of S301 and S302 is not sequential, and this embodiment does not limit this.
S303, the server judges whether the target coding list and the target decoding list have intersection or not. If yes, go to S304; if not, S305 is executed.
Specifically, since the target encoding list includes the encoding capability of the target encoding device, and the target decoding list includes the decoding capability of the target decoding device, and in this embodiment, the h.263 encoding capability is consistent with the h.263 decoding capability, the h.264 encoding capability is consistent with the h.264 decoding capability, and the h.265 encoding capability is consistent with the h.265 decoding capability, the server needs to determine whether there is an intersection of the consistent encoding and decoding capabilities in the target encoding list and the target decoding list.
S304, the server selects any one of the coding and decoding capacities in the intersection as a target coding capacity and a target coding capacity, or the server determines a coding and decoding capacity as the target coding capacity and the target decoding capacity according to a preset selection sequence in the intersection, wherein the preset selection sequence is from a low coding and decoding capacity to a high coding and decoding capacity.
Specifically, in this embodiment, when the server determines that an intersection exists, the target encoding capability and the target decoding capability may be selected in different manners.
In a possible implementation form, the server selects any one of the codec capabilities in the intersection as the target codec capability and the target codec capability. For example, when the intersection is h.264 and h.265 codec capabilities, the server may select one of the h.264 and h.265 codec capabilities as the target encoding capability and the target decoding capability. Specifically, if the server selects the h.264 encoding capability as the target encoding capability, the server takes the h.264 decoding capability as the target decoding capability. If the server selects the h.265 encoding capability as the target encoding capability, the server takes the h.265 decoding capability as the target decoding capability.
In another possible implementation form, in this embodiment, the target encoding capability and the target decoding capability may be determined by setting an order in which the servers select the encoding capability and the decoding capability in the intersection. In this embodiment, the preset selection sequence may be from a low codec capability to a high codec capability, or from the high codec capability to the low codec capability. If the encoding capability and the decoding capability only include two encoding and decoding manners, i.e., h.264 and h.265 encoding and decoding capabilities, the preset selection order may be to sequentially select the h.264 encoding and decoding capability and the h.265 encoding and decoding capability, or may be to sequentially select the h.264 encoding and decoding capability and the h.265 encoding and decoding capability, which is not limited in this embodiment.
When the preset selection sequence is that H.264 coding and decoding capacity and H.265 coding and decoding capacity are selected in sequence, if only H.264 coding and decoding capacity exists in the intersection, the server selects the H.264 coding and decoding capacity as target coding capacity and target decoding capacity; if the h.264 and h.265 codec capabilities in the intersection are available, the server needs to preferentially select the h.264 codec capability as the target encoding capability and the target decoding capability according to a preset selection order.
When the preset selection sequence is that H.265 encoding and decoding capacity and H.264 encoding and decoding capacity are selected in sequence, if only H.264 encoding and decoding capacity exists in the intersection, the server selects the H.264 encoding and decoding capacity as target encoding capacity and target decoding capacity; if the h.264 and h.265 codec capabilities in the intersection are available, the server needs to preferentially select the h.265 codec capability as the target encoding capability and the target decoding capability according to a preset selection order.
Further, when the target encoding capability and the target decoding capability have an intersection, the server can unify the encoding and decoding capabilities of the target encoding device and the target decoding device, so that the target encoding device and the target decoding device can be matched. The server can specifically send the target coding capability and the target decoding capability to the target coding device and the target decoding device respectively in the form of feedback messages, so that the target coding device and the target decoding device adopt the consistent coding and decoding capabilities to complete the processing process of the service data.
S305, the server takes the coding capacity in the target coding list as the target coding capacity and takes the decoding capacity in the target decoding list as the target decoding capacity.
Specifically, if the intersection is an empty set, it indicates that the encoding capability of the target encoding device is inconsistent with the decoding capability of the target decoding device. When the target encoding capability and the target decoding capability only include both h.264 and h.265 codec modes, the codec capability of the target encoding device and the target decoding device can be as follows:
in the first case, the encoding capability of the target encoding apparatus is the h.264 encoding capability, and the decoding capability of the target decoding apparatus is the h.265 decoding capability. In this way, the server uses the h.264 encoding capability as the target encoding capability and uses the h.265 decoding capability as the target decoding capability.
In the second case, the encoding capability of the target encoding apparatus is the h.265 encoding capability, and the decoding capability of the target decoding apparatus is the h.264 decoding capability. In this way, the server sets the h.265 encoding capability as the target encoding capability and the h.264 decoding capability as the target decoding capability.
Further, when there is no intersection between the target encoding capability and the target decoding capability, the server can determine the target encoding capability and the target decoding capability through the above specific implementation. Then, the server may specifically send the target encoding capability and the target decoding capability to the target encoding device and the target decoding device respectively through the feedback message, so that the target encoding device may know the encoding capability adopted for the service data, and the target decoding device may also know the decoding capability adopted for the data after the service data is encoded.
Fig. 5 is a flowchart three of a video coding/decoding service processing method provided by the present invention. On the basis of the foregoing embodiment, when the server determines that the target encoding capability and the target decoding capability are not consistent and the server itself has the h.265 codec capability, the server may notify the respective codec capabilities of the target encoding device and the target decoding device in the form of a feedback message in this embodiment, which is not limited to the form of the feedback message in this embodiment. And the target encoding device can start the encoding process of the service data, and the target decoding device is also ready to receive the data transmitted by the server. As shown in fig. 5, a detailed description is given to a specific implementation process of the server, the target encoding device, and the target decoding device in processing the service data in this embodiment. The video coding service processing method of the embodiment comprises the following steps:
s401, the server receives the coded data sent by the target coding device, wherein the coded data are obtained by coding the service data by the target coding device according to the target coding capability.
S402, the server decodes the coded data by adopting decoding capacity consistent with the target coding capacity to obtain the transcoding data.
Specifically, the target coding device starts to code the service data according to the target coding capacity to obtain coded data, and transmits the coded data to the server.
Further, after receiving the encoded data, the server obtains a decoding capability consistent with the target encoding capability according to the target encoding capability. For example, if the target encoding capability is an h.264 encoding capability, the decoding capability obtained by the server is an h.264 decoding capability; if the target encoding capability is the h.265 encoding capability, the decoding capability obtained by the server is the h.265 decoding capability. Then, the server decodes the encoded data according to the decoding capability to obtain the transcoded data.
And S403, the server encodes the coded data by adopting the encoding capability consistent with the target decoding capability to obtain the data to be decoded.
Specifically, after the server obtains the transcoded data, the server obtains the encoding capability consistent with the target decoding capability according to the target decoding capability. For example, if the target encoding capability is an h.264 decoding capability, the encoding capability obtained by the server is the h.264 encoding capability; if the target encoding capability is the h.265 decoding capability, the encoding capability obtained by the server is the h.265 encoding capability. Then, the server encodes the coded data according to the encoding capability to obtain the data to be decoded.
S404, the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capacity.
Specifically, the server sends the data to be decoded to the target decoding device, and since the data to be decoded is obtained through the encoding capability consistent with the target decoding capability, the target decoding device decodes the data to be decoded according to the target decoding capability, thereby smoothly completing the service processing.
In addition to the above embodiments, in this embodiment, the problem that unpredictable results because the decoding device cannot know whether the data to be decoded sent by the server can be decoded can be solved by other methods. The following goes on to describe the video decoding service processing method provided by the present invention in detail with reference to the scene diagram shown in fig. 1. Fig. 6 is a signaling flow chart of a video codec service processing method according to the present invention. Since the encoding device may also be a decoding device and the decoding device may also be an encoding device in this embodiment, the encoding device is an encoding end and the decoding device is a decoding end in this embodiment, or the encoding device is an encoding end and a decoding end, or the decoding device is a decoding end and the decoding device is an encoding end, or the decoding device is an encoding end and a decoding end. In any case, the specific processes of the video coding service processing method in this embodiment are the same and the principles are similar, which is not described in detail in this embodiment. For convenience of description, in this embodiment, only an encoding device is taken as an encoding end and a decoding device is taken as an example to describe in detail, as shown in fig. 6, the video decoding service processing method of this embodiment includes:
s501, the coding device sends a service request message to the server, the service request message comprises a coding list and an identifier of a decoding device for processing service data, and the coding list comprises coding capacity of the coding device.
Specifically, in this embodiment, if the encoding device needs to perform service processing, a service request message may be initiated to the server, where the service request message carries the encoding capability of the local device. The encoding capability of the encoding device may include an encoding mode and a resolution thereof, wherein the encoding mode may be at least one of encoding capabilities such as h.263 encoding capability, h.264 encoding capability and h.265 encoding capability. The specific content of the encoding capability is not limited in this embodiment, and only the requirement that the server can receive the encoding capability of the encoding device is met. The service request message also carries an identifier of a decoding device for processing the service data, wherein the identifier of the decoding device is used for determining the decoding device matched with the encoding device, and the decoding device can decode the service data. The identifier of the decoding device may be set by the user, specifically, may be a device number of the decoding device, or may be in other manners. In this embodiment, the specific form of the identifier of the decoding device is not limited, and only the identifier of the decoding device needs to be able to distinguish the decoding device. In this embodiment, the service applied by the service request message is not limited, and only the coding capability of the coding device and the identifier of the decoding device that processes the service data need to be transmitted to the server.
S502, the server sends a selection message to the decoding equipment according to the service request message, wherein the selection message comprises an encoding list.
S503, the decoding device determines the target coding capability for coding the service data and the target decoding capability for decoding the service data according to the decoding capability and the coding list of the decoding device.
S504, the decoding device sends a feedback message to the server, and the feedback message comprises target coding capacity and target decoding capacity.
Specifically, the server determines the decoding device according to the identifier of the decoding device in the service request message, and sends the coding list to the decoding device. The decoding device can determine the target encoding capability and the target decoding capability according to the native decoding capability and the encoding list. The decoding capability of the decoding device may include a decoding manner and a resolution thereof, where the decoding manner may be at least one of decoding capabilities such as an h.263 decoding capability, an h.264 decoding capability, and an h.265 decoding capability. The specific content of the decoding capability is not limited in this embodiment, and only the requirement that the server can receive the decoding capability of the decoding device is met. In this way, the decoding apparatus can transmit the target encoding capability and the target decoding capability to the server in the form of a feedback message.
And S505, when the server determines that the target coding capability and the target decoding capability are not consistent and whether the local machine has the H.265 coding and decoding capability, the server sends service response information to the coding equipment, wherein the service response information comprises the target coding capability.
Specifically, in this embodiment, when the server determines that the target encoding capability is inconsistent with the target decoding capability, the server may determine that the encoding capability and the decoding capability of the encoding device are inconsistent. Since the target encoding capability and the target decoding capability are not consistent, if the target encoding capability and the target decoding capability only include both h.264 and h.265 codec modes, the target encoding capability and the target decoding capability can be the following two modes: first, the target encoding capability is h.264 encoding capability, and the target decoding capability is h.265 decoding capability; second, the target encoding capability is an h.265 encoding capability and the target decoding capability is an h.264 decoding capability.
Further, if the server directly transmits the data sent by the encoding device to the decoding device, the decoding device cannot complete the decoding process. Therefore, the server needs to determine whether the native machine has h.265 codec capability. If the server determines that the local machine has the H.265 coding and decoding capability, the server can support H.263 coding and decoding, H.264 coding and decoding, H.265 coding and decoding and the like. The server can decode the data sent by the coding equipment and then code the data, and then the server sends the data to the decoding equipment, so that the decoding equipment can smoothly complete the decoding process.
Further, the service request may further include an identifier of the encoding device, and the server may determine the encoding device according to the identifier of the encoding device, and send a service response message to the encoding device, where the service response message also carries an identifier of service start. And when receiving the service response message, the coding equipment can start to code the service data according to the target coding capability.
S506, the coding device codes the service data according to the target coding capacity to obtain coded data.
And S507, the coding device sends the coded data to a server.
Specifically, since the service response information received by the encoding device includes the identifier of service start, the encoding device may start to process the service, specifically, may encode the service data according to the target encoding capability to obtain encoded data, and send the encoded data to the server.
And S508, transcoding the coded data by the server according to the target coding capacity and the target decoding capacity to obtain the data to be decoded.
Specifically, the server determines the target encoding capability, the encoding device encodes the service data according to the target encoding capability to obtain data, and the decoding capability of the decoding device is the target decoding capability, so that the server can decode and encode the encoded data according to the target encoding capability and the target decoding capability to obtain the data to be decoded.
S509, the server sends the data to be decoded to the decoding device according to the identifier of the decoding device.
S510, decoding the data to be decoded by the decoding equipment according to the target decoding capacity.
Specifically, the server may determine a target decoding device according to the identifier of the decoding device, and send data to be decoded to the decoding device. Since the decoding apparatus has determined the target decoding capability, the data to be decoded is data encoded according to the encoding capability with which the target decoding capability is consistent, and therefore, the decoding apparatus can decode the data to be decoded according to the target decoding apparatus.
Furthermore, no matter what encoding capability is adopted by the encoding device to encode the service data, the server can decode the received encoded data and transcode the decoded data to obtain the data to be decoded, so that the decoding device can decode the data to be decoded according to the target decoding capability. In this embodiment, the transcoding processing of the server enables the encoding device, the server, and the decoding device to smoothly complete the processing process of the service data.
In the video coding and decoding service processing method provided in this embodiment, when a service request message is sent to a server through a coding device, the server obtains a coding list of the coding device and an identifier of the decoding device, where the coding list includes a coding capability of the coding device. The server sends the coding capacity of the coding device to the decoding device, the decoding device determines the target coding capacity and the target decoding capacity according to the decoding capacity of the decoding device and the coding capacity of the coding device, and the decoding device sends the target coding capacity and the target decoding capacity to the server. When the server confirms that the target coding capacity and the target decoding capacity are inconsistent and the server has the H.265 coding and decoding capacity, the server can transcode the received coded data obtained by the coding device coding the service data according to the target coding capacity and the target decoding capacity to obtain the data to be decoded, and the target decoding device can decode the data to be decoded. The embodiment solves the problem that the existing decoding equipment cannot know whether the data sent by the server can be decoded or not so that the service data cannot be processed, overcomes the limitation that the encoding and decoding equipment lacks the consistent encoding and decoding capability through transcoding of the server, and smoothly processes the service data.
Further, the present embodiment is not limited to the above implementation. In this embodiment, when the server determines that the local machine has the h.265 codec capability, the server may further add the local machine having the h.265 codec capability to the coding list to obtain the added coding list. The server can send the added coding list to the decoding device, the decoding device can select from the added coding list, and if the decoding device selects the h.265 coding capability provided by the server, it indicates that the coding device and the decoding device do not have the consistent coding and decoding capability. If the decoding device selects the coding capability provided by the coding device, the coding device and the decoding device have consistent coding and decoding capabilities. The following process may be similar to the implementation process of this embodiment, and this embodiment is not described herein again.
Fig. 7 is a fourth flowchart of a video codec service processing method provided by the present invention. On the basis of the foregoing embodiments, a detailed description is given to a specific implementation process of the video codec service processing method in this embodiment. As shown in fig. 7, the video codec service processing method of this embodiment includes:
s601, the coding device sends a service request message to the server, the service request message includes a coding list and an identifier of a decoding device for processing service data, and the coding list includes coding capability of the coding device.
S602, the server sends a selection message to the decoding device according to the service request message, wherein the selection message comprises an encoding list.
S603, the decoding device determines the target coding capability of coding the service data and the target decoding capability of decoding the service data according to the decoding capability and the coding list of the decoding device.
S604, the decoding device sends a feedback message to the server, wherein the feedback message comprises the target coding capacity and the target decoding capacity.
S601-S604 are similar to the implementation manners of S501-S504 in the embodiment of fig. 6, and the description of this embodiment is omitted here.
S605, the server judges whether the target coding capacity is consistent with the target decoding capacity. If yes, go to S606; if not, go to S612.
S606, the server sends the first service response information to the coding equipment, and the service response information comprises target coding capacity.
S607, the server sends the second service response information to the coding device, and the service response information includes the target decoding capability.
Specifically, since the target encoding capability and the target decoding capability are consistent, the server may send the first service response information to the encoding device, so that the encoding device knows the target encoding capability of the server. In the embodiment, the h.263 encoding capability is consistent with the h.263 decoding capability, the h.264 encoding capability is consistent with the h.264 decoding capability, and the h.265 encoding capability is consistent with the h.265 decoding capability. Moreover, the first service response message also carries a service start identifier, and when receiving the service response message, the encoding device can start the encoding process of the service data according to the target encoding capability. Similarly, the server may send second service response information to the decoding device according to the identifier of the decoding device, where the second service response information includes the target decoding capability and the service start identifier, so that the decoding device is ready to receive the data sent by the server, and determines to decode the received data according to the target decoding capability.
It should be noted here that S606 may be executed before S607, S607 may be executed before S606, and S606 and S607 may also be executed simultaneously. The execution sequence of S606 and S607 is not sequential, and this embodiment does not limit this.
And S608, the coding device codes the service data according to the target coding capacity to obtain coded data.
And S609, the coding device sends the coded data to a server.
S610, the server sends the coded data to the decoding device according to the identification of the target decoding device.
S611, the decoding device decodes the coded data according to the target decoding capacity.
Specifically, the server informs the encoding device and the decoding device of the first service response message and the second service response message respectively, so that the encoding device starts encoding the service data to obtain encoded data. Since the server confirms that the target encoding capability is identical to the target decoding capability, the encoding apparatus and the decoding apparatus have identical encoding capabilities. The server may transmit the encoded data directly to a decoding device, which may decode the encoded data according to a target decoding capability. Therefore, the server unifies the coding and decoding capabilities of the coding device and the decoding device, and the service processing process is smoothly completed.
And S612, the server determines whether the local machine has H.265 coding and decoding capability. If yes, go to S613; if not, go to S619.
S613, the server sends third service response information to the coding equipment, wherein the third service response information comprises target coding capacity.
And S614, the coding equipment codes the service data according to the target coding capacity to obtain coded data.
And S615, the coding equipment sends the coded data to a server.
And S616, transcoding the coded data by the server according to the target coding capacity and the target decoding capacity to obtain the data to be decoded.
S617, the server sends the data to be decoded to the decoding device according to the identifier of the decoding device.
And S618, decoding the data to be decoded by the decoding equipment according to the target decoding capability.
S613 to S618 are similar to the implementation manners of S505 to S510 in the embodiment of fig. 6, and the description of this embodiment is omitted here.
S619, the server sends the matching failure message to the encoding device.
Specifically, since the server does not have the h.265 codec capability and the encoding device and the decoding device do not have the consistent codec capability, the encoding device encodes the service data to obtain encoded data, and then the encoding device transmits the encoded data to the target decoding device via the server, and the decoding device cannot decode the encoded data. Thus, the encoding device, the server and the decoding device cannot complete the processing process of the service data.
Further, in order to avoid the unpredictable problem of the decoding device, the server may send a matching failure message to the encoding device initiating the service, so as to inform the encoding device that the service data cannot be processed by the service.
On the basis of the foregoing embodiment, when the server determines that the target encoding capability and the target decoding capability are not consistent and the server has the h.265 codec capability, the server may notify the respective codec capabilities of the encoding device and the decoding device in the form of a service response message in this embodiment, which is not limited to the form of the service response message in this embodiment. And the encoding device can start the encoding process of the service data, and the target decoding device is ready to receive the data transmitted by the server. The specific process adopted is similar to the implementation manner shown in fig. 5, and details are not described here in this embodiment.
Fig. 8 is a fifth flowchart of a video coding and decoding service processing method provided by the present invention, and fig. 9 is a sixth flowchart of the video coding and decoding service processing method provided by the present invention. On the basis of the above embodiments, a specific implementation manner of determining the target encoding capability and the target decoding capability by the decoding device in this embodiment is described in detail. As shown in fig. 8, the method for processing video coding service includes:
s701, the decoding device receives a selection message sent by the server, wherein the selection message comprises an encoding list, and the encoding list comprises the encoding capability of the encoding device.
S702, the decoding device determines the target coding capability of coding the service data and the target decoding capability of decoding the service data according to the decoding capability and the coding list of the decoding device.
S703, the decoding device sends a feedback message to the server, wherein the feedback message comprises the target coding capacity and the target decoding capacity.
Specifically, since the selection message includes the encoding capability of the encoding apparatus, the decoding apparatus can know the encoding capability of the encoding apparatus. Then, the decoding device can perform intersection processing on the decoding capability and the encoding capability of the decoding device, and determine the target encoding capability and the target decoding capability. The decoding device sends the target coding capability and the target decoding capability to the server through the feedback message in a feedback message mode, and the server informs the decoding device of the selection result.
On the basis of the above embodiments, a specific implementation manner of determining the target encoding capability and the target decoding capability according to the native decoding capability and the encoding list by the decoding device in this embodiment is described in detail. As shown in fig. 9, the method for processing video coding service includes:
s801, judging whether intersection exists between the decoding capability of the decoding device and the encoding list by the decoding device. If yes, go to S802; if not, S803 is executed.
S802, the decoding device selects any one of the coding and decoding capabilities as a target coding capability and a target coding capability in the intersection, or the decoding device determines a coding and decoding capability as the target coding capability and the target decoding capability according to a preset selection sequence in the intersection, wherein the preset selection sequence is from low coding and decoding capability to high coding and decoding capability.
Specifically, in this embodiment, when the decoding device determines that an intersection exists, the target encoding capability and the target decoding capability may be selected in different manners.
In one possible implementation, the decoding device selects any one of the codec capabilities in the intersection as the target codec capability and the target codec capability. For example, when the intersection is h.264 and h.265 codec capabilities, the server may select one of the h.264 and h.265 codec capabilities as the target encoding capability and the target decoding capability. Specifically, if the server selects the h.264 encoding capability as the target encoding capability, the server takes the h.264 decoding capability as the target decoding capability. If the server selects the h.265 encoding capability as the target encoding capability, the server takes the h.265 decoding capability as the target decoding capability.
In another possible implementation form, the target encoding capability and the target decoding capability may be determined by setting an order in which the decoding devices select the encoding capability and the decoding capability in the intersection. In this embodiment, the preset selection sequence may be from a low codec capability to a high codec capability, or from the high codec capability to the low codec capability. If the encoding and decoding capabilities of the encoding and decoding device only include two encoding and decoding manners, i.e., h.264 encoding and decoding capabilities and h.265 encoding and decoding capabilities, the preset selection order may be to sequentially select the h.264 encoding and decoding capabilities and the h.265 encoding and decoding capabilities, which is not limited in this embodiment.
When the preset selection sequence is that H.264 coding and decoding capacity and H.265 coding and decoding capacity are selected in sequence, if only H.264 coding and decoding capacity exists in the intersection, the decoding equipment selects the H.264 coding and decoding capacity as target coding capacity and target decoding capacity; if the h.264 and h.265 codec capabilities in the intersection are available, the decoding device needs to preferentially select the h.264 codec capability as the target encoding capability and the target decoding capability according to a preset selection order.
When the preset selection sequence is that H.265 encoding and decoding capacity and H.264 encoding and decoding capacity are selected in sequence, if only H.264 encoding and decoding capacity exists in the intersection, the decoding equipment selects the H.264 encoding and decoding capacity as target encoding capacity and target decoding capacity; if the h.264 and h.265 codec capabilities in the intersection are available, the decoding device needs to preferentially select the h.265 codec capability as the target encoding capability and the target decoding capability according to a preset selection order.
Further, when the target coding capability and the target decoding capability intersect, the decoding device can unify the coding and decoding capabilities of the target coding device and the target decoding device, so that the local device and the decoding device can be matched. The decoding device can specifically send the target coding capacity and the target decoding capacity to the server in the form of the feedback message, so that the server transmits the target coding capacity to the coding device, and further the coding device and the decoding device can adopt the consistent coding and decoding capacity to complete the processing process of the service data.
S803, the decoding device sets the encoding capability in the encoding list as the target encoding capability and sets the own decoding capability as the target decoding capability.
Specifically, if the intersection is an empty set, it indicates that the encoding capability of the encoding device and the decoding capability of the decoding device are not consistent. When the target encoding capability and the target decoding capability only include both h.264 and h.265 codec modes, the codec capability of the encoding apparatus and the decoding apparatus can be as follows:
in the first case, the encoding capability of the encoding apparatus is the h.264 encoding capability, and the decoding capability of the decoding apparatus is the h.265 decoding capability. In this way, the decoding apparatus takes the h.264 encoding capability as the target encoding capability and the h.265 decoding capability as the target decoding capability.
In the second case, the encoding capability of the encoding apparatus is the h.265 encoding capability, and the decoding capability of the decoding apparatus is the h.264 decoding capability. In this way, the decoding apparatus takes the h.265 encoding capability as the target encoding capability and the h.264 decoding capability as the target decoding capability.
Further, when there is no intersection between the target encoding capability and the target decoding capability, the decoding apparatus can determine the target encoding capability and the target decoding capability through the above specific implementation. Specifically, the decoding device may send the target encoding capability and the target decoding capability to the server through the feedback message, and when the server has the transcoding function, the server may notify the encoding device and the decoding device to start the service processing process. Therefore, the decoding device cannot decode the data to be decoded because the decoding capability of the decoding device is limited, and the inevitable defect is avoided.
Fig. 10 is a schematic structural diagram of a server according to the first embodiment of the present invention, as shown in fig. 10, the server of the present embodiment includes:
a receiving module 11, configured to receive a first registration message sent by each of at least one encoding device and a second registration message sent by each of at least one decoding device, where the first registration message includes an encoding list and an identification of the encoding device, the encoding list includes an encoding capability of the encoding device, and the second registration message includes a decoding list and an identification of the decoding device, and the decoding list includes a decoding capability of the decoding device;
the receiving module 11 is further configured to receive a service processing message sent by any encoding device or any decoding device, where the service processing message includes an identifier of a target encoding device and an identifier of a target decoding device, where the target encoding device processes service data;
a determining module 12, configured to determine, according to the identifier of the target encoding device, the identifier of the target decoding device, the first registration message, and the second registration message, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data;
the determining module 12 is specifically configured to, when it is determined that the target encoding capability and the target decoding capability are not consistent and the local device has an h.265 encoding and decoding capability, transcode, by the server, the received encoded data sent by the target encoding device according to the target encoding capability and the target decoding capability to obtain data to be decoded, and send the data to be decoded to the target decoding device, where the encoded data is data obtained by encoding the service data by the target encoding device.
Optionally, the determining module 12 is specifically configured to determine, by the server, a target encoding list according to the identifier of the target encoding device and the first registration message;
the server determines a target decoding list according to the identifier of the target decoding equipment and the second registration message;
the server judges whether an intersection exists between the target coding list and the target decoding list;
if so, the server selects any one of the coding and decoding capabilities in the intersection as the target coding and decoding capabilities, or the server determines a coding and decoding capability in the intersection as the target coding and decoding capabilities according to a preset selection sequence, wherein the preset selection sequence is from low coding and decoding capabilities to high coding and decoding capabilities;
if not, the server takes the coding capability in the target coding list as the target coding capability and takes the decoding capability in the target decoding list as the target decoding capability.
Optionally, the determining module 12 is specifically configured to receive, by the server, encoded data sent by the target encoding device, where the encoded data is obtained by encoding, by the target encoding device, the service data according to the target encoding capability;
the server decodes the encoded data by adopting decoding capability consistent with the target encoding capability to obtain transcoding data;
the server encodes the transcoding data by adopting encoding capacity consistent with the target decoding capacity to obtain the data to be decoded;
and the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capability.
Optionally, the determining module 12 is further specifically configured to, if it is determined that the target encoding capability is consistent with the target decoding capability, the server sends a first feedback message to the encoding device according to the identifier of the target encoding device, where the first feedback message includes the target encoding capability, so that the encoding device encodes the service data according to the target encoding capability;
and the server sends a second feedback message to the decoding equipment according to the identifier of the target decoding equipment, wherein the second feedback message comprises the target decoding capability, so that the decoding equipment decodes the data after the service data is coded according to the target decoding capability.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a server provided in the present invention, and as shown in fig. 11, the server of this embodiment includes:
a receiving module 21, configured to receive a service request message sent by an encoding device, where the service request message includes an encoding list and an identifier of a decoding device that processes service data, and the encoding list includes an encoding capability of the encoding device;
a sending module 22, configured to send a selection message to the decoding device according to the service request message, where the selection message includes the encoding list, so that the decoding device determines, according to a local decoding capability, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data in the encoding list;
the receiving module 21 is further configured to receive a feedback message sent by the decoding apparatus, where the feedback message includes the target encoding capability and the target decoding capability;
the determining module 23 is configured to, when it is determined that the target encoding capability and the target decoding capability are not consistent and the local device has the h.265 encoding and decoding capability, transcode, by the server, the received encoded data sent by the encoding device according to the target encoding capability and the target decoding capability to obtain data to be decoded, and send the data to be decoded to the decoding device, where the encoded data is data obtained by encoding the service data by the encoding device.
Optionally, the determining module 23 is specifically configured to receive, by the server, encoded data sent by the encoding device, where the encoded data is obtained by encoding, by the encoding device, the service data according to the target encoding capability;
the server decodes the encoded data by adopting decoding capability consistent with the target encoding capability to obtain transcoding data;
the server encodes the transcoding data by adopting encoding capacity consistent with the target decoding capacity to obtain the data to be decoded;
and the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capability.
Optionally, the determining module 23 is further specifically configured to, if it is determined that the target encoding capability is consistent with the target decoding capability, the server sends a service response message to the encoding device, where the service response message includes the target encoding capability, so that the encoding device encodes the service data according to the target encoding capability.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 6, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 12 is a schematic structural diagram of the encoding and decoding device provided in the present invention, and as shown in fig. 12, the decoding device of the present embodiment includes:
a receiving module 31, configured to receive a selection message sent by a server, where the selection message includes an encoding list, and the encoding list includes encoding capabilities of an encoding device;
a determining module 32, configured to determine, according to a local decoding capability and the encoding list, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data;
a sending module 33, configured to send a feedback message to the server, where the feedback message includes the target encoding capability and the target decoding capability.
Optionally, the determining module 32 is specifically configured to determine, by the decoding device, whether an intersection exists between the native decoding capability and the coding list;
if so, the decoding device selects any one of the coding and decoding capabilities in the intersection as the target coding capability and the target coding capability, or the decoding device determines a coding and decoding capability as the target coding capability and the target decoding capability according to a preset selection sequence in the intersection, wherein the preset selection sequence is from low coding and decoding capability to high coding and decoding capability;
if not, the decoding device takes the encoding capacity in the encoding list as the target encoding capacity, and takes the local decoding capacity as the target decoding capacity.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 6, and the implementation principle and the technical effect are similar, which are not described herein again.
Referring to fig. 11, the server of the present embodiment includes:
a receiving module 21, configured to receive a service request message sent by a decoding device, where the service request message includes a decoding list and an identifier of an encoding device that processes service data, and the decoding list includes a decoding capability of the decoding device;
a sending module 22, configured to send a selection message to the encoding device according to the service request message, where the selection message includes the decoding list, so that the encoding device determines, according to a native encoding capability, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data in the decoding list;
the receiving module 21 is further configured to receive a feedback message sent by the encoding device, where the feedback message includes the target encoding capability and the target decoding capability;
the determining module 23 is configured to, when it is determined that the target encoding capability and the target decoding capability are not consistent and the local device has the h.265 encoding and decoding capability, transcode, by the server, the received encoded data sent by the encoding device according to the target encoding capability and the target decoding capability to obtain data to be decoded, and send the data to be decoded to the decoding device, where the encoded data is data obtained by encoding the service data by the encoding device.
Optionally, the determining module 23 is specifically configured to receive, by the server, encoded data sent by the encoding device, where the encoded data is obtained by encoding, by the encoding device, the service data according to the target encoding capability;
the server decodes the encoded data by adopting decoding capability consistent with the target encoding capability to obtain transcoding data;
the server encodes the transcoding data by adopting encoding capacity consistent with the target decoding capacity to obtain the data to be decoded;
and the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capability.
Optionally, the determining module 23 is further specifically configured to, if it is determined that the target encoding capability and the target decoding capability are consistent, the server sends a service response message to the decoding device, where the service response message includes the target decoding capability, so that the decoding device decodes the service data according to the target decoding capability.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 6, and the implementation principle and the technical effect are similar, which are not described herein again.
With reference to fig. 12, the encoding device of the present embodiment includes:
a receiving module 31, configured to receive a selection message sent by a server, where the selection message includes a decoding list, and the decoding list includes decoding capabilities of a decoding device;
a determining module 32, configured to determine, according to a native encoding capability and the decoding list, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data;
a sending module 33, configured to send a feedback message to the server, where the feedback message includes the target encoding capability and the target decoding capability.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 6, and the implementation principle and the technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (19)

1. A video coding and decoding service processing method is characterized by comprising the following steps:
the method comprises the steps that a server receives a first registration message sent by each of at least one encoding device and a second registration message sent by each of at least one decoding device, wherein the first registration message comprises an encoding list and an identification of the encoding device, the encoding list comprises an encoding capability of the encoding device, the second registration message comprises a decoding list and an identification of the decoding device, and the decoding list comprises a decoding capability of the decoding device;
the server receives a service processing message sent by any coding device or any decoding device, wherein the service processing message comprises an identifier of a target coding device and an identifier of a target decoding device for processing service data;
the server determines a target coding capacity for coding the service data and a target decoding capacity for decoding the service data according to the identification of the target coding device, the identification of the target decoding device, the first registration message and the second registration message;
when the server determines that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the target coding equipment according to the target coding capacity and the target decoding capacity to obtain data to be decoded, and sends the data to be decoded to the target decoding equipment, wherein the coded data are the data obtained by coding the service data by the target coding equipment.
2. The method of claim 1, wherein the server determines a target encoding capability for encoding the service data and a target decoding capability for decoding the service according to the identification of the target encoding device, the identification of the target decoding device, the first registration message, and the second registration message, and comprises:
the server determines a target coding list according to the identification of the target coding device and the first registration message;
the server determines a target decoding list according to the identifier of the target decoding equipment and the second registration message;
the server judges whether an intersection exists between the target coding list and the target decoding list;
if so, the server selects any one of the coding and decoding capabilities in the intersection as the target coding and decoding capabilities, or the server determines a coding and decoding capability in the intersection as the target coding and decoding capabilities according to a preset selection sequence, wherein the preset selection sequence is from low coding and decoding capabilities to high coding and decoding capabilities;
if not, the server takes the coding capability in the target coding list as the target coding capability and takes the decoding capability in the target decoding list as the target decoding capability.
3. The method according to claim 1, wherein the server transcodes, according to the target encoding capability and the target decoding capability, the received encoded data that is sent by the target encoding device and used for encoding the service data, to obtain data to be decoded, and sends the data to be decoded to the target decoding device, and the method includes:
the server receives encoded data sent by the target encoding equipment, wherein the encoded data are data obtained by encoding the service data by the target encoding equipment according to the target encoding capacity;
the server decodes the encoded data by adopting decoding capability consistent with the target encoding capability to obtain transcoding data;
the server encodes the transcoding data by adopting encoding capacity consistent with the target decoding capacity to obtain the data to be decoded;
and the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capability.
4. The method of claim 1, wherein if the server determines that the target encoding capability and the target decoding capability are consistent, the method further comprises:
the server sends a first feedback message to the coding equipment according to the identification of the target coding equipment, wherein the first feedback message comprises the target coding capacity, so that the coding equipment codes the service data according to the target coding capacity;
and the server sends a second feedback message to the decoding equipment according to the identifier of the target decoding equipment, wherein the second feedback message comprises the target decoding capability, so that the decoding equipment decodes the data after the service data is coded according to the target decoding capability.
5. A video coding and decoding service processing method is characterized by comprising the following steps:
the method comprises the steps that a server receives a service request message sent by encoding equipment, wherein the service request message comprises an encoding list and an identifier of decoding equipment for processing service data, and the encoding list comprises the encoding capacity of the encoding equipment;
the server sends a selection message to the decoding equipment according to the service request message, wherein the selection message comprises the coding list, so that the decoding equipment determines a target coding capacity for coding the service data and a target decoding capacity for decoding the service data in the coding list according to the local decoding capacity;
the server receives a feedback message sent by the decoding device, wherein the feedback message comprises the target coding capacity and the target decoding capacity;
when the server determines that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the coding device according to the target coding capacity and the target decoding capacity to obtain data to be decoded, and sends the data to be decoded to the decoding device, wherein the coded data are data obtained by coding the service data by the coding device.
6. The method according to claim 5, wherein the server transcodes, according to the target encoding capability and the target decoding capability, the received encoded data that is sent by the target encoding device and used for encoding the service data, to obtain data to be decoded, and sends the data to be decoded to the target decoding device, and the method includes:
the server receives encoded data sent by the encoding equipment, wherein the encoded data are obtained by encoding the service data by the encoding equipment according to the target encoding capacity;
the server decodes the encoded data by adopting decoding capability consistent with the target encoding capability to obtain transcoding data;
the server encodes the transcoding data by adopting encoding capacity consistent with the target decoding capacity to obtain the data to be decoded;
and the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capability.
7. The method of claim 5, wherein if the server determines that the target encoding capability and the target decoding capability are consistent, the method further comprises:
and the server sends a service response message to the coding equipment, wherein the service response message comprises the target coding capacity, so that the coding equipment codes the service data according to the target coding capacity.
8. A video coding and decoding service processing method is applied to a decoding device, and the method comprises the following steps:
the decoding device receives a selection message sent by a server, wherein the selection message comprises an encoding list, and the encoding list comprises the encoding capability of the encoding device;
the decoding equipment determines the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the decoding capacity of the decoding equipment and the coding list;
the decoding device sends a feedback message to the server, the feedback message including the target encoding capability and the target decoding capability.
9. The method of claim 8, wherein the decoding device determines a target encoding capability for encoding the service data and a target decoding capability for decoding the service data according to a native decoding capability and the encoding list, and comprises:
the decoding device judges whether the decoding capability of the decoding device and the coding list have intersection or not;
if so, the decoding device selects any one of the coding and decoding capabilities in the intersection as the target coding capability and the target coding capability, or the decoding device determines a coding and decoding capability as the target coding capability and the target decoding capability according to a preset selection sequence in the intersection, wherein the preset selection sequence is from low coding and decoding capability to high coding and decoding capability;
if not, the decoding device takes the encoding capacity in the encoding list as the target encoding capacity, and takes the local decoding capacity as the target decoding capacity.
10. A video coding and decoding service processing method is characterized by comprising the following steps:
the method comprises the steps that a server receives a service request message sent by decoding equipment, wherein the service request message comprises a decoding list and an identifier of coding equipment for processing service data, and the decoding list comprises the decoding capacity of the decoding equipment;
the server sends a selection message to the coding device according to the service request message, wherein the selection message comprises the decoding list, so that the coding device determines a target coding capacity for coding the service data and a target decoding capacity for decoding the service data in the decoding list according to the local coding capacity;
the server receives a feedback message sent by the coding equipment, wherein the feedback message comprises the target coding capacity and the target decoding capacity;
when the server determines that the target coding capacity is inconsistent with the target decoding capacity and the server has the H.265 coding and decoding capacity, the server transcodes the received coded data sent by the coding device according to the target coding capacity and the target decoding capacity to obtain data to be decoded, and sends the data to be decoded to the decoding device, wherein the coded data are data obtained by coding the service data by the coding device.
11. The method of claim 10, wherein the server transcodes the received encoded data, which is sent by the encoding device and used for encoding the service data, according to the target encoding capability and the target decoding capability to obtain data to be decoded, and sends the data to be decoded to the decoding device, and the method includes:
the server receives encoded data sent by the encoding equipment, wherein the encoded data are obtained by encoding the service data by the encoding equipment according to the target encoding capacity;
the server decodes the encoded data by adopting decoding capability consistent with the target encoding capability to obtain transcoding data;
the server encodes the transcoding data by adopting encoding capacity consistent with the target decoding capacity to obtain the data to be decoded;
and the server sends the data to be decoded to the decoding equipment so that the decoding equipment decodes the data to be decoded according to the target decoding capability.
12. The method of claim 10, wherein if the server determines that the target encoding capability and the target decoding capability are consistent, the method further comprises:
and the server sends a service response message to the decoding equipment, wherein the service response message comprises the target decoding capability, so that the decoding equipment decodes the service data according to the target decoding capability.
13. A video coding and decoding service processing method is applied to a coding device, and the method comprises the following steps:
the encoding device receives a selection message sent by a server, wherein the selection message comprises a decoding list, and the decoding list comprises the decoding capability of the decoding device;
the coding equipment determines the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the coding capacity of the coding equipment and the decoding list;
the encoding device sends a feedback message to the server, the feedback message including the target encoding capability and the target decoding capability.
14. The method of claim 13, wherein the encoding device determines a target encoding capability for encoding the service data and a target decoding capability for decoding the service data according to a native encoding capability and the decoding list, and comprises:
the encoding equipment judges whether the encoding capacity of the local machine and the decoding list have intersection or not;
if so, the encoding device selects any one of the encoding and decoding capabilities in the intersection as the target encoding and decoding capabilities, or the encoding device determines an encoding and decoding capability as the target encoding and decoding capabilities according to a preset selection sequence in the intersection, wherein the preset selection sequence is from a low encoding and decoding capability to a high encoding and decoding capability;
if not, the encoding device takes the encoding capability of the encoding device as the target encoding capability, and takes the decoding capability in the decoding list as the target decoding capability.
15. A server, comprising:
a receiving module, configured to receive a first registration message sent by each of at least one encoding device and a second registration message sent by each of at least one decoding device, where the first registration message includes an encoding list and an identification of the encoding device, the encoding list includes an encoding capability of the encoding device, the second registration message includes a decoding list and an identification of the decoding device, and the decoding list includes a decoding capability of the decoding device;
the receiving module is further configured to receive a service processing message sent by any encoding device or any decoding device, where the service processing message includes an identifier of a target encoding device and an identifier of a target decoding device, where the target encoding device and the target decoding device process service data
A determining module, configured to determine, according to the identifier of the target encoding device, the identifier of the target decoding device, the first registration message, and the second registration message, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data;
the determining module is specifically configured to, when it is determined that the target encoding capability and the target decoding capability are not consistent and the local device has an h.265 encoding and decoding capability, transcode, by the server, the received encoded data sent by the target encoding device according to the target encoding capability and the target decoding capability to obtain data to be decoded, and send the data to be decoded to the target decoding device, where the encoded data is data obtained by encoding, by the target encoding device, the service data.
16. A server, comprising:
a receiving module, configured to receive a service request message sent by an encoding device, where the service request message includes an encoding list and an identifier of a decoding device that processes service data, and the encoding list includes encoding capability of the encoding device;
a sending module, configured to send a selection message to the decoding device according to the service request message, where the selection message includes the encoding list, so that the decoding device determines, according to a local decoding capability, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data in the encoding list;
the receiving module is further configured to receive a feedback message sent by the decoding device, where the feedback message includes the target encoding capability and the target decoding capability;
and the determining module is used for transcoding the received encoded data sent by the encoding equipment according to the target encoding capacity and the target decoding capacity to obtain data to be decoded and sending the data to be decoded to the decoding equipment when the target encoding capacity and the target decoding capacity are determined to be inconsistent and the local machine has the H.265 encoding and decoding capacity, wherein the encoded data is the data obtained by encoding the service data by the encoding equipment.
17. A decoding device, characterized by comprising:
the receiving module is used for receiving a selection message sent by a server, wherein the selection message comprises an encoding list, and the encoding list comprises the encoding capability of encoding equipment;
the determining module is used for determining the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the decoding capacity of the local computer and the coding list;
a sending module, configured to send a feedback message to the server, where the feedback message includes the target encoding capability and the target decoding capability.
18. A server, comprising:
a receiving module, configured to receive a service request message sent by a decoding device, where the service request message includes a decoding list and an identifier of an encoding device that processes service data, and the decoding list includes a decoding capability of the decoding device;
a sending module, configured to send a selection message to the encoding device according to the service request message, where the selection message includes the decoding list, so that the encoding device determines, according to a native encoding capability, a target encoding capability for encoding the service data and a target decoding capability for decoding the service data in the decoding list;
the receiving module is further configured to receive a feedback message sent by the encoding device, where the feedback message includes the target encoding capability and the target decoding capability;
and the determining module is used for transcoding the received encoded data sent by the encoding equipment according to the target encoding capacity and the target decoding capacity to obtain data to be decoded and sending the data to be decoded to the decoding equipment when the target encoding capacity and the target decoding capacity are determined to be inconsistent and the local machine has the H.265 encoding and decoding capacity, wherein the encoded data is the data obtained by encoding the service data by the encoding equipment.
19. An encoding device, characterized by comprising:
the device comprises a receiving module, a decoding module and a processing module, wherein the receiving module is used for receiving a selection message sent by a server, the selection message comprises a decoding list, and the decoding list comprises the decoding capability of decoding equipment;
the determining module is used for determining the target coding capacity for coding the service data and the target decoding capacity for decoding the service data according to the coding capacity of the local computer and the decoding list;
a sending module, configured to send a feedback message to the server, where the feedback message includes the target encoding capability and the target decoding capability.
CN201710777937.3A 2017-09-01 2017-09-01 Video coding and decoding service processing method and device Active CN109429068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710777937.3A CN109429068B (en) 2017-09-01 2017-09-01 Video coding and decoding service processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710777937.3A CN109429068B (en) 2017-09-01 2017-09-01 Video coding and decoding service processing method and device

Publications (2)

Publication Number Publication Date
CN109429068A CN109429068A (en) 2019-03-05
CN109429068B true CN109429068B (en) 2020-09-29

Family

ID=65512831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710777937.3A Active CN109429068B (en) 2017-09-01 2017-09-01 Video coding and decoding service processing method and device

Country Status (1)

Country Link
CN (1) CN109429068B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248192B (en) * 2019-06-12 2021-10-15 腾讯科技(深圳)有限公司 Encoder switching method, decoder switching method, screen sharing method and screen sharing system
CN111314778B (en) * 2020-03-02 2021-09-07 北京小鸟科技股份有限公司 Coding and decoding fusion processing method, system and device based on multiple compression modes
CN112019940B (en) * 2020-09-08 2021-05-04 南京云照乐摄影有限公司 Image transmission system, image uploading device, cloud server and image receiving device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996970A (en) * 2006-12-19 2007-07-11 中兴通讯股份有限公司 A negotiation method for 3G video gateway multi-media decoding and encoding capability
CN201781576U (en) * 2009-11-27 2011-03-30 广东亿迅科技有限公司 Real-time video stream transcoding server and video monitoring system comprising same
CN102025715A (en) * 2010-05-17 2011-04-20 华中科技大学 SIP (Session Initiation Protocol) protocol-based multimedia network communication method
CN103151041A (en) * 2013-01-28 2013-06-12 中兴通讯股份有限公司 Method and system for achieving automatic speech recognition business and media server
CN104320403A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Communication method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996970A (en) * 2006-12-19 2007-07-11 中兴通讯股份有限公司 A negotiation method for 3G video gateway multi-media decoding and encoding capability
CN201781576U (en) * 2009-11-27 2011-03-30 广东亿迅科技有限公司 Real-time video stream transcoding server and video monitoring system comprising same
CN102025715A (en) * 2010-05-17 2011-04-20 华中科技大学 SIP (Session Initiation Protocol) protocol-based multimedia network communication method
CN103151041A (en) * 2013-01-28 2013-06-12 中兴通讯股份有限公司 Method and system for achieving automatic speech recognition business and media server
CN104320403A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN109429068A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN109429068B (en) Video coding and decoding service processing method and device
AU2022209216B2 (en) Methods and apparatus for use of compact concurrent codecs in multimedia communications
US11570456B2 (en) Apparatus and methods thereof for video processing
KR101244911B1 (en) Apparatus for encoding and decoding muti-view image by using camera parameter, and method thereof, a recording medium having a program to implement thereof
US10375408B2 (en) Device capability negotiation method and apparatus, and computer storage medium
KR101581947B1 (en) System and method for selectively transcoding
US20080107175A1 (en) Method and apparatus for encoding and decoding based on intra prediction
US11968379B2 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and electronic device
US11044278B2 (en) Transcoding capability configuration method and device and computer storage medium
CN111163335B (en) Video processing method and device for distributed server
JP2023126617A (en) Candidates in frames with global motion
JP2015095686A (en) Imaging apparatus, imaging system, control method of imaging apparatus, control method of imaging system and program
JP2022530411A (en) Signal transduction of global motion vector in picture header
US9245528B2 (en) Communication system, method, and apparatus
WO2021093882A1 (en) Video meeting method, meeting terminal, server, and storage medium
CN105323636A (en) Video processing method and video processing device
GB2585017A (en) Video coding and decoding
CN110545431B (en) Video decoding method and device, video encoding method and device
US11265357B2 (en) AV1 codec for real-time video communication
KR101606121B1 (en) Method and apparatus for segmenting video files
CN114513544B (en) Local area network wireless screen-throwing method, equipment and computer readable storage medium
CN112839197B (en) Image code stream processing method, device, system and storage medium
KR100998200B1 (en) Method and video server to improve image reponse function
CN104954813A (en) Picture transmission method, apparatus, and system

Legal Events

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