WO2017020661A1 - Code stream sending method and device - Google Patents

Code stream sending method and device Download PDF

Info

Publication number
WO2017020661A1
WO2017020661A1 PCT/CN2016/086381 CN2016086381W WO2017020661A1 WO 2017020661 A1 WO2017020661 A1 WO 2017020661A1 CN 2016086381 W CN2016086381 W CN 2016086381W WO 2017020661 A1 WO2017020661 A1 WO 2017020661A1
Authority
WO
WIPO (PCT)
Prior art keywords
code stream
information
format
conversion
media
Prior art date
Application number
PCT/CN2016/086381
Other languages
French (fr)
Chinese (zh)
Inventor
刘艳
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017020661A1 publication Critical patent/WO2017020661A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234327Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by decomposing into layers, e.g. base layer and one or more enhancement layers

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a code stream sending method and device.
  • H.264 a digital video compression format
  • AVC Advanced Video Coding
  • SVC Scalable Video Coding
  • H.264/SVC SVC technology
  • the code stream generated by the SVC encoding of the original video sequence has a base layer and a plurality of enhancement layers.
  • the basic layer includes the most basic video reconstruction information, and the low-quality video sequence can be recovered when the basic layer is received, and the enhancement layer includes the detailed information of the reconstructed video. As the data of the received enhancement layer increases, Combined with the basic layer, the video sequence of higher quality is gradually recovered, thereby showing the scalable characteristics of the video.
  • the H.264/SVC terminal and the H.264/AVC terminal are only limited to the interworking of the base layer, that is, regardless of the resolution, frame rate, or code rate that the AVC terminal itself can support. If the value is high, only the code stream of the basic layer sent by the SVC terminal can be received, and more code streams are lost, resulting in poor quality of the reconstructed video.
  • the embodiment of the invention provides a code stream sending method and device, which are used to solve the technical problem that the terminal loses more code streams when receiving the code stream sent by the peer end.
  • a code stream sending method including:
  • the media gateway receives the attribute information of the code stream sent by the media receiving end, and determines the first code stream conversion information according to the attribute information of the code stream;
  • the first code stream conversion information includes a conversion type information and a layer-by-layer conversion mode.
  • Information, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
  • the media gateway modifies the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer mode, and sends the modified attribute information to the media sending end.
  • the media gateway receives the code stream of the first format sent by the media sending end, and converts the code stream of the first format into a code stream of the second format; the code stream of the first format is the media
  • the sending end is sent according to the modified attribute information, where the first format is a multi-layer encoding format, and the second format is a single-layer encoding format;
  • the media gateway sends the code stream of the second format to the media receiving end.
  • the information that is converted into the code stream of the single layer coding format by the code stream of the multi-layer coding format includes: information converted from the SVC format to the AVC format, At least one of information converted from the SHVC format to the AVC format and information converted from the SHVC format to the HEVC format.
  • the information of the layer-by-layer conversion mode includes information converted according to a preset level
  • the media gateway receives the code stream in the first format sent by the media sending end, and includes:
  • the media gateway receives the code stream of the preset level sent by the media sending end, and the format of the code stream of the preset level is the first format.
  • converting the code stream of the first format to the code stream of the second format includes:
  • the first code stream conversion information further includes conversion level information, which is: extracting data related to a frame rate Package information
  • Converting the code stream of the first format into a code stream of the second format including:
  • the extracted frame rate related data packet is converted into the code stream of the second format.
  • the first code stream conversion information further includes conversion level information, that is: extracting data related to resolution Package information
  • Converting the code stream of the first format into a code stream of the second format including:
  • the extracted resolution-related data packet is converted into the code stream of the second format.
  • the attribute information of the code stream determines the first stream conversion information, including:
  • the attribute information of the code stream is used to indicate attribute information of a code stream supported by the media receiving end;
  • the attribute information of the code stream is used to indicate the first code stream conversion information
  • the conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, wherein the information of the layer-by-layer conversion mode includes information converted according to a preset level.
  • the conversion capability information further includes conversion level information, where:
  • the conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  • a media gateway including:
  • a determining module configured to receive attribute information of a code stream sent by the media receiving end, and determine first code stream conversion information according to the attribute information of the code stream;
  • the first code stream conversion information includes conversion type information and layer by layer Information of the converted mode, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
  • a change module configured to modify attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and send the modified attribute information to the media to send end;
  • a conversion module configured to receive a code stream in a first format sent by the media sending end, and convert the code stream in the first format into a code stream in a second format;
  • the media sending end is sent according to the modified attribute information, where the first format is a multi-layer encoding format, and the second format is a single-layer encoding format;
  • a sending module configured to send the code stream in the second format to the media receiving end.
  • a media receiving end including:
  • a sending module configured to send attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information;
  • the first code stream conversion information includes conversion type information and layer-by-layer conversion Mode information, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
  • a receiving module configured to receive a code stream of a second format sent by the media gateway, where the code stream of the second format is a code stream of the first format received by the media gateway according to the first code stream conversion information Converted to get.
  • the code stream conversion information (that is, the first code stream conversion information) is provided, and after determining the first code stream conversion information, the media gateway may modify the layer-by-layer conversion mode information in the first code stream conversion information.
  • the code stream sent by the terminal is the code stream requested by the media gateway, and meets the requirements of the media receiving end.
  • the media gateway can directly convert the code stream of the first format into the code stream of the second format, and the code stream of the second format is the media receiving.
  • the terminal supports, so the media receiving end can receive the code stream in the second format.
  • the media receiving end specifically receives the parts of the code stream, and can notify the media gateway by using the attribute information of the code stream, can receive as many code streams as possible, try to avoid the loss of the code stream, and increase the information receiving capability and information of the media receiving end.
  • the amount of reception in addition, because the received code stream is more, that is, the received video information is more, the video quality reconstructed according to the received code stream is better.
  • FIG. 1 is a flowchart of a method for transmitting a code stream according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for receiving a code stream according to an embodiment of the present invention
  • FIG. 3 is an interaction diagram of a first example of a code stream conversion method according to an embodiment of the present invention.
  • FIG. 4 is an interaction diagram of a second example of a code stream conversion method according to an embodiment of the present invention.
  • FIG. 5 is an interaction diagram of a third example of a code stream conversion method according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a media gateway according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a media receiving end according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a media gateway according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a media receiving end according to an embodiment of the present invention.
  • MGW Media Gateway
  • H.248 a media gateway control protocol
  • MGCP Media Gateway Control Protocol
  • a media gateway is defined to convert a media format in one network into another A device in the media format required by the network.
  • the media gateway uses various media (such as voice, data, fax, video, etc.) in a circuit-switched network (such as PSTN (Public Switched Telephone Network)) and a packet network (such as IP (Internet Protocol) network). Transfer between, it provides a bidirectional interface for communication between related entities of different networks.
  • PSTN Public Switched Telephone Network
  • IP Internet Protocol
  • the media gateway can convert between the bearer channel of the circuit switched network and the media stream of the packet network, and can process audio, video or T.120 (a protocol for multipoint data conference and real-time communication), and also has the processing The ability to combine any combination of the three, and the ability to perform full-duplex media translation.
  • the media gateway can be divided into a trunking gateway, an access gateway, and a multimedia service access gateway according to the location of the media gateway in the network and the processed media stream. Wireless Access Gateway, etc.
  • Conference Center which can communicate with multiple terminals in media. When media communication with the terminal, it can be transited through the media gateway.
  • the conference center may include an AS (Application Server) and an MRF (Multimedia Resource Function).
  • the AS and the MRF may be located in the same physical entity or may be located in different physical entities.
  • the AS can be used by the MediaX3600 (the core component in the converged conference system).
  • the MRF can include a Multimedia Resource Function Controller (MRFC) and a Multimedia Resource Function Processor (MRFP).
  • MRFC Multimedia Resource Function Controller
  • MRFP Multimedia Resource Function Processor
  • a terminal which is a device that provides voice and/or data connectivity to a user, for example, may include a handheld device with wireless connectivity, or a processing device connected to a wireless modem.
  • the terminal can communicate with the core network via the RAN to exchange voice and/or data with the RAN.
  • the terminal may be a UE (User Equipment), a wireless terminal, a mobile terminal, a Subscriber Unit, a Subscriber Station, a Mobile Station, a Mobile Station, a Remote Station (Remote). Station), AP (Access Point, access point), far Remote Terminal, Access Terminal, User Terminal, User Agent, User Device, etc.
  • it can be a mobile phone (or "cellular" phone), a computer with a mobile terminal, a portable, pocket, handheld, computer built-in or in-vehicle mobile device.
  • PCS Personal Communication Service
  • cordless telephone SIP (Session Initiation Protocol) telephone
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • the media sender can be a conference center or can be any terminal.
  • the media receiving end can be a conference center, or can be any terminal.
  • the conversion capability information is provided, and the code stream conversion information may be determined according to the conversion capability information, thereby performing code stream conversion.
  • the conversion capability information may include conversion type information and conversion mode information, and optionally, conversion level information. The following are introduced separately.
  • H.264/SVC is based on H.264/AVC
  • H.265/SHVC Scalable High Video Coding
  • HEVC High Efficiency Video Coding
  • the conversion type information may include information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format, and may also include a single layer coding format.
  • the code stream is converted into information of a code stream of a multi-layered encoded format, and may also include information that is not converted.
  • the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format may include: information converted from the SVC format to the AVC format, information converted from the SHVC format to the AVC format, and converted from the SHVC format to At least one of the information in the HEVC format;
  • the information of the code stream converted from the code stream of the single layer encoding format to the code stream of the multi-layer encoding format may include: information converted from the AVC format to the SVC format, converted from the AVC format to the SHVC format. At least one of information, and information converted from the HEVC format to the SHVC format; information that is not converted may be expressed, for example, as NONE.
  • SHVC is also applicable to the present invention if it has a next generation layered coding format.
  • the conversion mode information may include information of a layer-by-layer conversion mode, that is, layer-by-layer conversion according to a hierarchical relationship.
  • the information of the layer-by-layer conversion mode may include information converted according to a preset level, that is, the specified preset level may be converted.
  • the information converted according to the preset level may have different representation manners.
  • a possible information to be converted according to a preset level may be a level specified, which means that the layer and the layers below the layer are converted.
  • the specified layer and the layer below the specified layer can be regarded as the preset level.
  • the information converted according to the preset level may include "highest strategy”, "average strategy”, and "minimum strategy", indicating conversion according to the highest enhancement layer, conversion according to the average enhancement layer, and conversion according to the lowest enhancement layer, respectively. If the conversion is performed according to the highest enhancement layer, it indicates that the media sender is to be notified, all layers of the code stream are sent, and the code stream sent by the media sender is sent.
  • the average enhancement layer Converting; if the average enhancement layer is converted, it means that the media sender is to be notified, only each layer starting from the average enhancement layer (including the average enhancement layer) is sent, and other enhancement layers above the average enhancement layer need not be sent, and Transmitting the code stream sent by the media sender; if converting according to the lowest enhancement layer, it indicates that the media sender is to be notified, only each layer from the lowest enhancement layer (including the lowest enhancement layer), above the lowest enhancement layer The other enhancement layers do not need to be sent, and the code stream sent by the media sender is converted.
  • the code stream to be sent by the media sending end includes a basic layer (or may also be referred to as a base layer) and multiple enhancement layers
  • the enhancement layer with the serial number in the middle may refer to an average enhancement layer, for example, the media sending end is to be sent.
  • the code stream comprises a total of 8 layers, including a basic layer and 7 enhancement layers, the serial numbers are 0-8, 0 is the base layer, and the others are enhancement layers, and the average enhancement layer can refer to the fourth enhancement layer in the middle. , that is, the enhancement layer numbered 4.
  • the code stream to be sent by the media sending end includes one base layer and multiple enhancement layers
  • the enhancement layer closest to the base layer can be regarded as the lowest enhancement layer.
  • the layer corresponding to the sequence number 0 is the base layer, and then the layer can be considered as The layer corresponding to the serial number 1 is the lowest enhancement layer.
  • the average enhancement layer may also refer to other enhancement layers, and the lowest enhancement layer may also refer to other enhancement layers.
  • another possible information that is converted according to a preset level may be one or more levels, which means that each layer specified is converted.
  • the specified layer can be considered as a preset level. Among them, when you specify a level, the level it depends on needs to be within the specified range.
  • the code stream to be sent by the media sending end includes a total of 8 layers, including a basic layer and 7 enhancement layers, the serial numbers are 0-8, 0 is the base layer, and the others are enhancement layers.
  • the policy according to the preset level conversion may be, for example, a policy according to the base layer conversion (that is, the specified level is layer 0), or may be, for example, a policy according to the base layer and the first enhancement layer (ie, the specified level is 0.
  • the third layer has a dependence on the second layer
  • the fourth layer has a dependency on the third layer.
  • the fourth layer has dependence on the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Relationship, therefore, for example, to specify the 4th layer as the preset level, you need to specify the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer as the preset level, for example, to specify the 3rd layer as the preset. Level, you need to specify layer 0, layer 1 and layer 2 as the default level, etc.), and so on.
  • the base layer contains the most basic video reconstruction information, the base layer should be included in the preset hierarchy regardless of the manner in which the layer-switched mode information is indicated.
  • the conversion capability information may further include conversion level information.
  • the conversion level information may include: extracting information of the data packet related to the frame rate, or extracting information of the data packet related to the resolution, respectively, indicating that the packet is extracted according to the air domain and the packet is extracted according to the time domain. For example, if the conversion level information includes extracting information about a data packet related to a frame rate, it indicates that a data packet related to a frame rate is extracted from a code stream of a preset level sent by the media sending end; if the conversion level information includes extraction The information about the resolution-related data packet indicates that the resolution-related data packet is extracted from the preset-level code stream sent by the media sender for conversion.
  • the preset stream of the code stream sent by the media sender includes a total of 4 layers, including 1 base layer and 3 enhancement layers. If the conversion level information includes extracting data packets related to the frame rate, the layer 4 can be extracted from the layer. A frame rate related packet is extracted from the code stream, and the extracted data packet is converted.
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations.
  • the character "/" in this article unless otherwise specified, generally indicates that the contextual object is an "or" relationship.
  • an embodiment of the present invention provides a code stream sending method, and a flow of the method is described as follows.
  • Step 101 The media gateway receives the attribute information of the code stream sent by the media receiving end, and determines the first code stream conversion information according to the attribute information of the code stream.
  • the first code stream conversion information includes the conversion type information and the layer-by-layer conversion.
  • the information of the mode, the conversion type information includes information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format.
  • Step 102 The media gateway modifies the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and sends the modified attribute information to the media sending end.
  • Step 103 The media gateway receives the code stream of the first format sent by the media sending end, and converts the code stream of the first format into the code stream of the second format.
  • the code stream of the first format is the media sending end according to the modified
  • the attribute information is sent, the first format is a multi-layer encoding format, and the second format is a single layer encoding format.
  • Step 104 The media gateway sends the code stream in the second format to the media receiving end.
  • the media gateway may determine the first code stream conversion information according to the attribute information of the code stream and the conversion capability information.
  • the determination method is as follows:
  • Determining the first stream conversion information according to the attribute information of the code stream including:
  • the attribute information of the code stream is used to indicate the attribute information of the code stream supported by the media receiving end; or the attribute information of the code stream is used to indicate the first code stream conversion information.
  • the media receiving end may store the conversion capability information (for example, the media receiving end may be a conference center), or the media gateway may send the conversion capability information to the media receiving end, and the media receiving end may according to its own capabilities, or may
  • the first stream conversion information is determined from the conversion capability information by information such as the capability and the current network status.
  • the media receiving end is a conference center
  • the media receiving end has certain intelligence.
  • the media gateway can send the conversion capability information to the conference center.
  • the conference center can select the code stream conversion information suitable for itself according to its own capabilities, or according to its own capabilities and current network status information, for example, This is referred to as first stream conversion information, and the first stream conversion information is transmitted to the media gateway. In this way, the media gateway can determine to use the first code stream conversion information for code stream conversion.
  • the conference center has certain intelligence, it can be used as a media receiver.
  • Capabilities may select code stream conversion information (ie, first code stream conversion information) according to information such as its own capabilities and current network status, such that the selected first stream conversion information can more fully reflect the requirements of the media receiving end. Therefore, the code stream conversion process can be completed as much as possible according to the requirements of the media receiving end, and the success rate of the code stream receiving at the receiving end of the medium is improved.
  • the media gateway stores the conversion capability information, and the media gateway may determine the first code stream conversion information from the conversion capability information according to the capability of the media receiving end, or according to the capability of the media receiving end and the current network state.
  • the media receiving end is an ordinary terminal, and it can be considered that the ordinary terminal does not have good intelligence.
  • the media gateway may determine the first code stream conversion information suitable for the media receiving end according to the capability of the media receiving end, or according to the capability of the media receiving end and the current network status, without determining by the media receiving end.
  • the media gateway may be based on its own capabilities fed back by the terminals, or may be based on The information that is forwarded by these terminals and the current network status and other information, selects the code stream conversion information suitable for these terminals from the stored conversion capability information, and has lower requirements on the intelligence of the terminal, and the scope of application is wider. And the media gateway may also select the code stream conversion information suitable for the media receiving end according to the attribute information of the code stream fed back by the media receiving end, so that the selected first code stream conversion information may reflect the requirement of the media receiving end as much as possible, thereby enabling the code stream conversion. The process can be completed as much as possible according to the requirements of the media receiving end, and the success rate of the code stream receiving at the receiving end of the media is improved.
  • the media gateway determines the first code stream conversion information.
  • the media gateway After determining the first code stream conversion information, the media gateway establishes a transmission channel with the media receiving end, and the media gateway performs a code stream conversion function, and sends the converted code stream to the media receiving end.
  • the capability of the media receiving end can be used as a reference condition, or the capability of the media receiving end and the current network state can be used as reference conditions.
  • the network status may be represented by a network resource (NR), and the network resource recommendation may be evaluated from two dimensions: a traffic occupation situation and a packet loss rate, and of course, other possible indicators may also be adopted.
  • the evaluation is carried out, and the invention is not limited. If the two dimensions of traffic occupation and packet loss rate are evaluated, examples are as follows:
  • multiple intervals can be set. For example, setting the [0, X1%] interval indicates that the flow is sufficient, setting [X1%, X2%] indicates that the flow is flat, and setting the [X2%, X3%] interval indicates that the flow is tight.
  • the specific number of intervals, the endpoint value of the interval, and the like can be set differently according to different situations.
  • the packet loss rate can be calculated according to the RTCP feedback mechanism (that is, the number of packets sent in the SR (Sender Report) in the Real-time Transport Control Protocol (RTCP) message can be The number of received packets in the corresponding RR (Receiver Report) is used to count the packet loss rate.
  • the RTCP feedback mechanism that is, the number of packets sent in the SR (Sender Report) in the Real-time Transport Control Protocol (RTCP) message can be The number of received packets in the corresponding RR (Receiver Report) is used to count the packet loss rate.
  • a plurality of sections can be set.
  • a plurality of packet loss rate sections such as [0, Y1%], [Y1%, Y2%], and [Y2%, Y3%] can be set.
  • the values of Y1, Y2, and Y3 can be set according to different situations.
  • the information of the specific number of sections, the endpoint value of the section, and the like can be set differently according to different situations.
  • the preset level may be selected to be all layers of the code stream to be transmitted by the media transmitting end; if the NR is determined to be extremely tight, the conversion type information may be selected as NONE, that is, no conversion is performed. ,and many more.
  • the capabilities of other terminals in the network may be considered when evaluating the network status.
  • the media gateway can consider the capabilities of the peer (eg, may include the media receiver and/or the media sender) in addition to the network resources.
  • the conference center needs to evaluate the network status, the conference center can consider the network resources in addition to the network resources.
  • the conference center serves as the media receiver, the peer end can refer to the media sender. If the conference center serves as the media sender, The peer may then refer to the capabilities of the media receiving end, and/or may also consider the capabilities of multiple terminals in the network, such as the ability to consider one or more terminals in communication with the conference center, and the like.
  • the capabilities of the terminal can be evaluated from the dimensions of the resolution, and of course from other dimensions. For example, if the evaluation is performed from the dimension of the resolution, the corresponding interval may be set.
  • the terminal whose resolution is greater than or equal to 720P is a high-capacity terminal, and the terminal whose resolution is [360P, 180P] is a low-capability terminal.
  • a terminal with a resolution of 180P or less is set as a low-capability terminal, and the like.
  • the manner in which the capabilities of the terminal are evaluated is not limited in the present invention.
  • the media gateway has modified the attribute information of the code stream sent by the media sending end according to the information of the layer-by-layer conversion mode, and sends the modified attribute information to the media sending end. Therefore, in another embodiment of the present invention, the information of the layer-converted mode includes the information converted according to the preset level.
  • the media gateway receives the code stream of the first format sent by the media sending end, including:
  • the media gateway receives the preset level code stream sent by the media sending end, and the format of the preset level code stream is the first format.
  • the media sending end may send the layer indicated by the layer-switched mode information to the media gateway, and the layer-switched mode information may not be sent to the media gateway.
  • the media gateway receives the required layer, does not need to receive other unneeded layers, reduces the amount of data to be transmitted, and saves system resources.
  • the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7.
  • the information of the layer-by-layer conversion mode includes information converted according to a preset level, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Floor.
  • the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway, and the 4th, 5th, and 6th layers of the code stream to be sent And layer 7 can be sent without, reducing The amount of data that the media gateway needs to receive, and the data that the media gateway does not need to receive is reduced, which is equivalent to reducing the redundant data received by the media gateway.
  • the code stream sent by the media sending end needs to be transferred to the media receiving end after being transferred by the media gateway, and then, in step 103, after receiving the code stream of the first format sent by the media sending end, the media gateway may It is converted into a code stream in a second format.
  • the code stream format sent by the media sending end is referred to as a first format
  • the code stream format supported by the media receiving end is referred to as a second format.
  • the embodiments of the present invention mainly protect the manner in which the code stream of the multi-layer format is converted into the code stream of the single-layer format. Therefore, the first format is a multi-layer encoding format, and the second format is a single-layer encoding format.
  • the media gateway converts the received preset-level SVC format code stream into the AVC format code stream.
  • the first code stream conversion information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format, and includes converting according to a preset level
  • the information of the mode is to convert the code stream of the first format into the code stream of the second format, including: converting the code stream of the preset level into the code stream of the second format.
  • the media gateway receives the code stream of the preset level, and the media gateway can convert the received code stream into the code stream of the second format.
  • the media gateway can convert the received code stream into the code stream of the second format.
  • the first stream conversion information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format, and information of a mode converted according to a preset level. Also includes conversion level information, which is described as follows:
  • the conversion level information includes extracting information of a data packet related to a frame rate.
  • the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7.
  • the information of the layer-by-layer conversion mode includes information converted according to a preset level, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Floor. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway.
  • the media gateway may extract a frame rate-related data packet from the received preset level code stream, and convert the extracted frame rate-related data packet into a second format code stream, and the preset level is For a data packet that is not related to the frame rate, the media gateway may not perform the conversion, so as to ensure that the converted code stream is the code stream required by the media receiving end.
  • the media gateway can perform code stream conversion in this manner to obtain the code stream required by the media receiving end as much as possible.
  • the conversion level information includes extracting information of the data packet related to the resolution.
  • the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7.
  • the information of the layer-by-layer conversion mode includes information converted according to a preset level, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Floor. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway.
  • the resolution-related data packet may be extracted from the received preset-level code stream, and the extracted resolution-related data packet is converted into the second-format code stream, and the preset level is
  • the media gateway may not convert the data packets that are not related to the resolution, so as to ensure that the converted code stream is the code stream required by the media receiving end.
  • the media gateway can perform code stream conversion in this manner to obtain the code stream required by the media receiving end as much as possible.
  • the media gateway may send the code stream of the second format to the media receiving end according to step 104, so that the media receiving end receives the sending by the media sending end.
  • the code stream, the format of the received code stream is also a format that the media receiving end can support, and the received content is also adapted to the media receiving end.
  • the media gateway notifies the media sender according to the first code stream conversion information, which code streams are sent, and also converts the preset layer code stream according to the first code stream conversion information (for example, conversion level information), the first code stream
  • the conversion information is the code stream conversion information determined by considering the capability of the media receiving end. Then, the media transmitting end sends the SVC format code stream, and the media receiving end supports the AVC format code stream as an example, according to the media receiving end.
  • the code stream conversion information determined by the capability may convert the code stream of other layers of the SVC (for example, the enhancement layer) in addition to the code stream of the base layer of the SVC, which is equivalent to the AVC terminal being able to receive the SVC terminal.
  • the enhancement layer is a refinement of the base layer. If there is only the base layer, the entire picture may be Complete, but there may be partial unclearness. If there are not only the base layer and the enhancement layer, the picture will be much clearer than the base layer, and the details will be more realistic and can be more Image quality, at the same time, try to receive more code streams, try to avoid the loss of code stream, increase the information receiving ability and information receiving amount of the media receiving end, in addition, because the received code stream is more, that is, the received video information More, the quality of the video reconstructed according to the received code stream is better.
  • the media gateway can re-evaluate the network state in real time, timing, or triggered.
  • the manner of specifically evaluating the network state is as previously described. If the evaluation determines that the code stream conversion information needs to be adjusted, the media gateway may adjust the code stream conversion information, for example, from the first code stream conversion information to the second code stream conversion information. For example, before the network resource is evaluated as “sufficient”, the conversion policy information corresponding to the first stream conversion information is “the highest policy”, and when the evaluation is later, the network resource is “tight”, the media gateway may adjust.
  • the media gateway Converting the policy information, for example, to the “minimum policy”, thereby obtaining new code stream conversion information (ie, the second code stream conversion information).
  • the media gateway After the adjustment, the media gateway re-notifies the media sender, so that the media sender sends the second
  • the code stream converts the information to match the code stream.
  • the second code stream conversion information may include information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format, and information of a layer-by-layer conversion mode.
  • the second code stream conversion information is included. It can also include conversion level information.
  • the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7.
  • the information of the layer-by-layer conversion mode corresponding to the first code stream conversion information includes information converted according to a preset level, and the preset level is, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, Layer 1, Layer 2 and Layer 3. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway.
  • the information of the layer-by-layer conversion mode corresponding to the first code stream conversion information includes information converted according to a preset level, and the preset level is, for example, the fourth layer. And the following levels, that is, the preset levels are the 0th layer, the 1st layer, the 2nd layer, the 3rd layer, and the 4th layer. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, the 3rd layer, and the 4th layer of the code stream to be sent to the media gateway.
  • the media gateway can adjust the code stream conversion information according to the network status and the like, so that the code stream conversion conforms to the requirements of the media receiving end as much as possible, improves the network resource utilization rate, and improves the success rate of the code stream transmission.
  • the code stream conversion information (that is, the first code stream conversion information) is provided.
  • the media gateway may perform code stream conversion according to the first code stream conversion information, that is, the media sending end.
  • the transmitted code stream of the first format is converted into the code stream of the second format, and the code stream of the second format is supported by the media receiving end, so the media receiving end can receive the code stream of the second format.
  • the format of the received code stream is first converted.
  • the media sending end sends the SVC format code stream, and the media receiving end supports the AVC.
  • the media gateway can convert the SVC format code stream into the AVC format code stream, and then send the AVC format code stream to the media receiving end.
  • the code stream in the SVC format is sent by the media sender, and the code stream in the AVC format is supported by the media receiver as an example.
  • the AVC terminal can receive the code stream of the base layer sent by the SVC terminal.
  • the code stream of other layers (such as the enhancement layer) sent by the SVC terminal tries to avoid the loss of the code stream, increases the information receiving capability and the information receiving amount of the media receiving end, and further, because the received code stream is more, that is, the received video information. More, the quality of the video reconstructed according to the received code stream is better.
  • an embodiment of the present invention provides a code stream receiving method, which is a method performed by a media receiving end corresponding to the method introduced in the process of FIG. The process is described below.
  • Step 201 The media receiving end sends the attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information, where the first code stream conversion information includes the conversion type information and the layer-by-layer conversion mode.
  • the information of the conversion type includes information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format.
  • Step 202 The media receiving end receives the code stream of the second format sent by the media gateway, where the code stream of the second format is obtained by the media gateway converting the code stream of the first format received according to the first code stream conversion information.
  • the media receiving end may be a device with certain intelligence, such as a conference center, or may be a device with weak intelligence, such as a terminal.
  • the method before the media receiving end sends the attribute information of the code stream to the media gateway, the method further includes: the media receiving end receiving the conversion capability information sent by the media gateway; and the media receiving end according to the conversion capability information. Determining the attribute information of the code stream, the attribute information of the code stream is used to indicate the first code stream conversion information; wherein the conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, and the information of the layer-by-layer conversion mode includes Set the information of the level conversion.
  • the media receiving end may store the conversion capability information, or the media gateway may send the conversion capability information to the media receiving end, and the media receiving end may according to its own The capability, or the first code stream conversion information is determined from the conversion capability information according to the information of the capability and the current network state, and the attribute information of the code stream corresponding to the first code stream conversion information may be sent to the media gateway.
  • the media receiving end can modify the attribute information of the code stream sent by the media gateway according to the first code stream conversion information, and send the attribute information of the modified code stream to the media gateway.
  • the media receiving end is a less intelligent device, such as a terminal, it may not have the ability to select a code stream conversion information, so the media gateway may be based on its own capabilities fed back by the media receiving end, or may be based on the media.
  • the information fed back by the receiving end and the current network state and the like, and the code stream conversion information suitable for the media receiving end are selected from the stored conversion capability information, and the intelligence requirement of the media receiving end is relatively low, and the applicable scope is wider.
  • the media gateway may also select the code stream conversion information suitable for the media receiving end according to the attribute information of the code stream fed back by the media receiving end, so that the selected first code stream conversion information may reflect the requirement of the media receiving end as much as possible, thereby enabling the code stream conversion.
  • the process can be completed as much as possible according to the requirements of the media receiving end, and the success rate of the code stream receiving at the receiving end of the media is improved.
  • the conversion capability information further includes conversion level information; wherein: the conversion level information includes: extracting information of the data packet related to the frame rate, or extracting information of the data packet related to the resolution.
  • the media receiving end can also re-evaluate the network status in real time, timing, or triggered.
  • the manner in which the network status is specifically evaluated is described in the flow of FIG. If the evaluation determines that the code stream conversion information needs to be adjusted, the media receiving end may adjust the code stream conversion information, for example, from the first code stream conversion information to the second code stream conversion information, for example, before the network resource is evaluated as “sufficient”, The conversion strategy information corresponding to the first stream conversion information is the "highest policy", and when the evaluation is later performed, the network resource is evaluated as "tight”, and the media receiving end may adjust the conversion policy information, for example, to the "minimum policy”. Therefore, the new code stream conversion information (ie, the second code stream conversion information) is obtained. After the adjustment, the media receiving end notifies the media gateway of the adjusted code stream conversion information.
  • the media receiving end can adjust the code stream conversion information according to the network status and the like, so that the code stream conversion conforms to the requirements of the media receiving end as much as possible, improves the network resource utilization rate, and improves the success rate of the code stream transmission.
  • the media receiving end may further send the code stream in the second format to the other media receiving end. That is, the media receiving end can also serve as a media transmitting end.
  • the media receiving end may send the attribute information of the code stream to the media gateway, and the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then the media gateway may perform the code according to the first code stream conversion information.
  • Stream conversion that is, converting the code stream of the first format sent by the media sender to the code stream of the second format, and the code stream of the second format is the medium
  • the body receiving end supports, so the media receiving end can receive the code stream in the second format.
  • the media gateway is the first code stream conversion information determined after considering the situation of the media receiving end, and the finally obtained code stream is also the code stream required by the media receiving end, and can meet the requirements of the media receiving end as much as possible.
  • the media sender sends the SVC format code stream
  • the media receiver supports the AVC format code stream.
  • the media gateway can convert the SVC format code stream into the AVC format code stream, and specifically convert the SVC format. Which part of the code stream is also determined according to the first code stream conversion information, and then the code stream of the AVC format is sent to the media receiving end.
  • the media receiver supports the AVC format code stream as an example, which is equivalent to the AVC terminal being able to receive the code stream of the base layer sent by the SVC terminal.
  • the code stream conversion information it can also receive the code stream of other layers (such as the enhancement layer) sent by the SVC terminal, try to avoid the loss of the code stream, increase the information receiving capability and the information receiving amount of the media receiving end, and further, because of the received There are more code streams, that is, more received video information, and the quality of the video reconstructed according to the received code stream is better.
  • FIG. 1 and FIG. 2 are corresponding processes, the contents can be referred to each other, and thus the duplicate content is not described in detail.
  • the terminal serves as a media sending end
  • the conference center serves as a media receiving end
  • the media gateway is used to forward between the media sending end and the media receiving end.
  • the terminal in FIG. 3 may be, for example, a UE
  • the media gateway may be, for example, an SBC (Session Border Controller).
  • the conference center may be, for example, an MRF (in FIG. 3, the AS and the MRF may be located in the same entity).
  • the terminal sends the code stream in the SVC format, and the conference center supports the code stream in the AVC format.
  • the terminal initiates a session. That is, the terminal sends a first session request message to the media gateway for requesting to send the code stream to the conference center.
  • the media gateway After receiving the first session request message, the media gateway sends a second session request message carrying the conversion capability information to the conference center.
  • the conversion capability information includes, for example:
  • ⁇ Conversion type information SVC-AVC; SHVC-AVC; SHVC-HEVC; AVC-SVC; AVC-SHVC; HEVC-SHVC; NONE ⁇ ;
  • the conference center receives the second session request message. Because the session between the terminal and the conference center is not completely established at this time, the conference center can be used as the basis for selecting the code stream conversion information according to the capability of the conference center and the current network state. For example, the conference center can be based on the capabilities of the conference center and the current The traffic statistics are used as a basis. The conference center selects the first code stream conversion information from the conversion capability information according to the capability of the conference center and the current network state, and sends a second session response message carrying the first code stream conversion information to the media gateway.
  • the first stream conversion information includes:
  • the media gateway After receiving the second session response message, the media gateway sends the third session request information carrying the first code stream conversion information to the conference center.
  • the conference center After receiving the third session request message, the conference center sends a third session response message to the media gateway, where the third session response message indicates that the conference center accepts the first code stream conversion information.
  • the media gateway After receiving the third session response message, the media gateway sends a first session response message to the terminal, and the SDP (Session Description Protocol) is associated with the SVC code stream in the attribute information of the code stream carried in the first session response message.
  • the attribute is based on the first stream conversion information, and the SDP attributes related to the other codecs are negotiated with the corresponding codec attributes received from the conference center.
  • the media gateway After receiving the response of the terminal to the first session response message, the media gateway establishes a session channel with the terminal, and the terminal can send the code stream.
  • the code stream is normally transmitted, and the terminal 1 sends the code stream to the media gateway 2.
  • the media gateway 2 converts the code stream into the AVC format code stream according to the conversion level information, and then the AVC.
  • the formatted code stream is sent to the terminal 2.
  • the terminal may also send an RTCP message (which carries the SR) to indicate the number of data packets sent in a certain period of time while transmitting the code stream.
  • the conference center which is the receiving end of the media, can send an RTCP message (which carries the RR) to the terminal, and the RR carries the number of data packets received by the conference center from the terminal in the corresponding period.
  • the conference center adjusts the code stream conversion information according to the network status (for example, according to the RTCP message).
  • the RTCP message contains the SR and the RR, the SR contains the number of packets sent, and the RR contains the number of packets received.
  • the conference center can calculate the packet loss rate based on the SR and the RR, and then combine the traffic statistics and the peer capability to determine whether to adjust the code stream conversion information. If the code stream conversion information is to be adjusted, the adjusted code stream conversion information is notified to the media gateway.
  • the media gateway receives the new code stream conversion information, initiates session re-negotiation to the conference center according to the new code stream conversion information.
  • the final session is updated.
  • the AVC code stream 1 in FIG. 3 indicates that the AVC code stream is converted according to the first code stream conversion information
  • the AVC code stream 2 indicates that the information is converted according to the second code stream (ie, the adjusted code).
  • Stream conversion information AVC code stream obtained after conversion.
  • the media receiving end may send the attribute information of the code stream to the media gateway, and the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then the media gateway may perform the code according to the first code stream conversion information.
  • the stream conversion is to convert the code stream of the first format sent by the media sending end into the code stream of the second format, and the code stream of the second format is supported by the media receiving end, so the media receiving end can receive the code stream of the second format.
  • the media gateway is the first code stream conversion information determined after considering the situation of the media receiving end, and the finally obtained code stream is also the code stream required by the media receiving end, and can meet the requirements of the media receiving end as much as possible.
  • the media sender sends the SVC format code stream
  • the media receiver supports the AVC format code stream.
  • the media receiving end may determine the first code stream conversion information, and send the first code stream conversion information to the media gateway, where the media gateway may notify the media sending end to send the first code stream conversion information according to the first code stream conversion information.
  • the first code stream conversion information is determined by the media receiving end, and can basically reflect the requirements of the media receiving end more realistically, so as to ensure that the media receiving end can receive the code stream that is needed by itself.
  • the number of layers of the SVC format indicated in the first stream conversion information may be relatively large. So that the media receiver can receive more code streams, which helps to reconstruct better quality video.
  • the conference center also sends the AVC code stream obtained by converting the second code stream conversion information to other media receiving ends (ie, terminal 2 in FIG. 4).
  • the media transmitting end is referred to as the terminal 1
  • the media gateway between the terminal 1 and the conference center is referred to as the media gateway 1
  • the conference center and the terminal 2 are also forwarded by the media gateway, and the media gateway is referred to as a media gateway.
  • the media gateway 2 is also, for example, an SBC.
  • the conference center initiates a renegotiation request message to the terminal 2.
  • the conference center forwards the code stream (ie, AVC stream 2) converted according to the second stream conversion information to the terminal 2.
  • AVC stream 2 ie, AVC stream 2
  • the step 12 may include multiple steps, and the conference center may initiate a renegotiation request message to the terminal to request to send the code stream to the terminal, and may refer to the existing implementation process, and details are not described herein.
  • the media receiving end may further forward the received code stream to other terminals, so that the media gateway does not need to specifically send the code stream to the terminals, thereby reducing the terminal.
  • the process of information exchange with the media gateway reduces the burden on the media gateway.
  • FIG. 3 is an example of a conference center as a media receiving end
  • FIG. 4 is an example of a conference center serving as a media receiving end and a media sending end at the same time
  • FIG. 3 is an example of a conference center as a media receiving end
  • FIG. 4 is an example of a conference center serving as a media receiving end and a media sending end at the same time
  • point-to-multiple An example of point communication because the conference center can complete multipoint communication.
  • the terminal 1 serves as a media sending end
  • the terminal 2 serves as a media receiving end
  • the media gateway 1 and the media gateway 2 are used for forwarding between the media sending end and the media receiving end
  • FIG. 5 further includes an application server.
  • the terminal in FIG. 5 may be, for example, a UE
  • the media gateway may be, for example, an SBC (Session Border Controller).
  • the terminal 1 transmits a code stream in an SVC format
  • the terminal 2 supports a code stream in an AVC format.
  • FIG. 5 is an example of a terminal-terminal, that is, an example of point-to-point communication.
  • the terminal 1 sends a first session request message to the media gateway 2, requesting to send a code stream to the terminal 2.
  • the media gateway 2 After receiving the first session request message, the media gateway 2 sends a second session request message to the terminal 2. For example, after receiving the first session request message, the media gateway 2 may forward the first session request message to the terminal 2 directly. In this case, the second session request message is the same message as the first session request message.
  • the terminal 2 After receiving the second session request message, the terminal 2 generates a second session response message according to its own capabilities. For example, the terminal 2 cannot identify the SVC stream attribute carried in the second session request message because the SVC is not supported, so the second session responds. The SVC stream attribute is removed from the message, and the second session response message is sent to the media gateway 2.
  • the media gateway 2 identifies that the terminal 2 does not support the SVC capability according to the second session response message, and the media gateway determines the first code stream conversion information according to the stored conversion capability information, and sends a third session request message to the terminal 2, and the third The session request message carries the first stream conversion information.
  • the media gateway 2 may modify the media attribute of the SVC code stream to the media attribute of the AVC code stream in the third session request message.
  • conversion capability information includes:
  • ⁇ Conversion type information SVC-AVC; SHVC-AVC; SHVC-HEVC; AVC-SVC; AVC-SHVC; HEVC-SHVC; NONE ⁇ ;
  • the first stream conversion information includes:
  • ⁇ Conversion level information extracting data packets related to resolution ⁇ ;
  • the terminal 2 re-responds to the third session request message sent by the media gateway 2, and replies to the media gateway 2 with a third session response message.
  • the media gateway 2 After the media gateway 2 receives the third session response message, if the third session response message indicates that the terminal 2 accepts the first code stream conversion information, the media gateway 2 sends a first session response message to the terminal.
  • the SDP attribute related to the SVC code stream is subject to the first code stream conversion information, and the SDP attributes related to other codecs are received from the media gateway 2
  • the attribute negotiation of the codec shall prevail.
  • the code stream is normally transmitted, and the terminal 1 sends the code stream to the media gateway 2.
  • the media gateway 2 converts the code stream into the AVC format code stream according to the conversion level information, and then The code stream of the AVC format is transmitted to the terminal 2.
  • the terminal 1 may also send an RTCP message (which carries the SR) to indicate the number of data packets sent in a certain period of time, and at the same time, the media gateway 2 as the media receiving end will RTCP message ( The RR is sent to the terminal 1, and the RR carries the number of data packets received by the media gateway 2 from the terminal 1 in the corresponding period.
  • the media gateway 2 adjusts the code stream conversion information according to the current network state (for example, according to the RTCP message).
  • the RTCP message contains the SR and the RR, the SR contains the number of packets sent, and the RR contains the number of packets received.
  • the conference center can calculate the packet loss rate based on the SR and the RR, and then combine the traffic statistics and the peer capability to determine whether to adjust the code stream conversion information.
  • the session re-negotiation is initiated to the terminal 2 according to the new code stream conversion information.
  • the final session is updated.
  • the AVC code stream 1 in FIG. 5 indicates that the information is converted according to the first code stream conversion information.
  • the obtained AVC code stream, AVC code stream 2 indicates an AVC code stream obtained by converting the second code stream conversion information (i.e., the adjusted code stream conversion information).
  • the media receiving end (ie, the terminal 2) is an ordinary terminal.
  • the media receiving end has weak intelligence and does not have the capability of selecting the code stream conversion information. Therefore, the media gateway can respond to the media receiving end.
  • the ability of the media to select the code stream conversion information suitable for the media receiving end from the stored conversion capability information has lower requirements on the intelligence of the media receiving end, and the scope of application is wider.
  • the media gateway also selects the code stream conversion information suitable for the media receiving end according to the attribute information of the code stream fed back by the media receiving end, so that the selected first code stream conversion information can reflect the requirement of the media receiving end as much as possible, thereby enabling the code stream conversion process to Try to complete the requirements of the media receiving end, and improve the success rate of the stream receiving at the receiving end of the media.
  • an embodiment of the present invention provides a media gateway, which may include a determining module 601, a changing module 602, a converting module 603, and a sending module 604.
  • the determining module 601 is configured to receive attribute information of the code stream sent by the media receiving end, and determine the first code stream conversion information according to the attribute information of the code stream; the first code stream conversion information includes the conversion type information and the layer-by-layer conversion mode. Information, the conversion type information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
  • the change module 602 is configured to modify the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and send the modified attribute information to the media sending end;
  • the converting module 603 is configured to receive a code stream of a first format sent by the media sending end, and convert the code stream of the first format into a code stream of the second format; the code stream of the first format is modified by the media sending end.
  • the attribute information is sent, the first format is a multi-layer encoding format, and the second format is a single layer encoding format;
  • the sending module 604 is configured to send the code stream in the second format to the media receiving end.
  • the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format includes: information converted from the SVC format to the AVC format, information converted from the SHVC format to the AVC format, And at least one of information converted from the SHVC format to the HEVC format.
  • the information of the mode converted by layer includes information converted according to a preset level
  • the conversion module 603 is configured to receive the code stream in the first format sent by the media sending end, and specifically includes:
  • the code stream of the preset level sent by the sending end of the media is received, and the format of the code stream of the preset level is the first format.
  • the converting module 603 is configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
  • the code stream of the preset level is converted into the code stream of the second format.
  • the first code stream conversion information further includes conversion level information, which is: extracting information about a data packet related to a frame rate;
  • the converting module 603 is configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
  • the extracted frame rate related data packet is converted into a code stream of the second format.
  • the first code stream conversion information further includes conversion level information, which is: extracting information about a resolution-related data packet;
  • the converting module 603 is configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
  • the extracted resolution-related data packet is converted into a code stream of the second format.
  • the determining module 601 is configured to determine the first code stream conversion information according to the attribute information of the code stream, and specifically includes:
  • the attribute information of the code stream is used to indicate attribute information of the code stream supported by the media receiving end;
  • the attribute information of the code stream is used to indicate the first code stream conversion information
  • the conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, wherein the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
  • the conversion capability information further includes conversion level information; wherein:
  • the conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  • the device in the embodiment of the present invention is a device corresponding to the method as described above.
  • the media gateway may be the media gateway described in FIG. 1 to FIG. 5. Therefore, the functions implemented by each module in the media gateway, as well as some implementation details, may be referred to the description of the method part.
  • the media gateway may perform code stream conversion according to the first code stream conversion information, and then send the converted code stream to the media receiving end, so that the media receiving end can receive
  • the code stream that can be identified by itself, and the first code stream conversion information is determined by the media gateway through the attribute information of the code stream sent by the media receiving end, so that the converted code stream can meet the requirements of the media receiving end as much as possible.
  • the media gateway can perform code stream conversion according to the requirements of the media receiving end, and the media gateway has strong intelligence.
  • an embodiment of the present invention provides a media receiving end, which may be, for example, a conference center, or other common terminals.
  • the media receiving end may include a sending module 701 and a receiving module 702.
  • the sending module 701 is configured to send the attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information; the first code stream conversion information includes the conversion type information and the information of the layer-by-layer conversion mode.
  • the conversion type information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
  • the receiving module 702 is configured to receive a code stream in a second format sent by the media gateway, where the code stream in the second format is obtained by converting, by the media gateway, a code stream in a first format received according to the first code stream conversion information.
  • the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format includes: information converted from the SVC format to the AVC format, information converted from the SHVC format to the AVC format, And transferred by SHVC format Switch to at least one of the HEVC format information.
  • the media receiving end further includes a determining module
  • the receiving module 702 is further configured to: before the sending module 701 sends the attribute information of the code stream to the media gateway, receive the conversion capability information sent by the media gateway;
  • the determining module is configured to: determine attribute information of the code stream according to the conversion capability information, where the attribute information of the code stream is used to indicate the first code stream conversion information;
  • the conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, and the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
  • the conversion capability information further includes conversion level information; wherein:
  • the conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  • the media receiving end in the embodiment of the present invention may be the media receiving end described in FIG. 1 to FIG. 5. Therefore, the functions implemented by each module in the media receiving end, as well as some implementation details, may be referred to the description of the method part.
  • the media receiving end may send the attribute information of the code stream to the media gateway, so that the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then perform the code stream according to the first code stream conversion information.
  • the code stream obtained after the conversion is sent to the media receiving end, so that the media receiving end can receive the code stream that can be recognized by the media, because the first code stream conversion information is determined by the media gateway through the attribute information of the code stream sent by the media receiving end,
  • the converted code stream can match the needs of the media receiver as much as possible.
  • the media receiving end can send the attribute information of the code stream to the media gateway to inform the media gateway of what kind of code stream it needs.
  • the media receiving end has a strong initiative, and the received code stream has a high utilization rate.
  • an embodiment of the present invention further provides a media gateway, which may include a memory 801, a processor 802, a receiver 803, and a transmitter 804.
  • the processor 802 may be a central processing unit or an ASIC (Application Specific Integrated Circuit), and may be one or more integrated circuits for controlling program execution, and may be an FPGA (Field Programmable Gate Array).
  • the hardware circuit developed by the programming gate array can be a baseband chip.
  • the number of memories 801 may be one or more.
  • the memory 801 may include a ROM (Read Only Memory), a RAM (Random Access Memory), and a disk storage.
  • the receiver 803 and the transmitter 804 may belong to a radio frequency system, and the receiver 803 and the transmitter 804 are configured to perform network communication with an external device, and specifically, may communicate with an external device through a network such as an Ethernet, a radio access network, or a wireless local area network.
  • Receiver 803 and transmitter 804 may be physically separate components or may be physically identical components.
  • These memories 801, receivers 803, and transmitters 804 may be coupled to the processor 802 via a bus, or may be coupled to the processor 802 via dedicated connection lines, respectively.
  • the code corresponding to the method shown above is solidified into the chip, thereby enabling the chip to perform the method shown in the previous embodiment while it is running. How to design and program the processor 802 Techniques well known to those skilled in the art will not be described here.
  • the memory 801 is configured to store an instruction required by the processor 802 to perform a task
  • the receiver 803 is configured to receive attribute information of a code stream sent by the media receiving end.
  • the processor 802 is configured to execute the instruction stored in the memory 801, determine the first code stream conversion information according to the attribute information of the code stream, and modify the attribute information of the code stream sent by the media sending end to the media according to the information of the layer-by-layer conversion mode.
  • the attribute information sent by the receiving end is sent to the media sending end by the sender 804.
  • the first stream converting information includes the conversion type information and the layer-by-layer conversion mode information, and the conversion type information includes The code stream of the layer coding format is converted into the information of the code stream of the single layer coding format;
  • the receiver 803 is further configured to receive a code stream in a first format sent by the media sending end.
  • the processor 802 is further configured to convert the code stream in the first format into the code stream in the second format, and send the code stream in the second format to the media receiving end by using the transmitter 804; the code stream in the first format is sent by the media.
  • the first format is a multi-layer encoding format
  • the second format is a single layer encoding format.
  • the information of the code stream converted into the single layer coding format by the code stream of the multi-layer coding format includes: information converted from the SVC format to the AVC format, and converted from the SHVC format to the AVC. At least one of format information and information converted from the SHVC format to the HEVC format.
  • the information of the mode converted by layer includes information converted according to a preset level
  • the receiver 803 is configured to receive the code stream in the first format sent by the media sending end, and specifically includes:
  • the code stream of the preset level sent by the sending end of the media is received, and the format of the code stream of the preset level is the first format.
  • the processor 802 is further configured to convert the code stream of the first format into the code stream of the second format, specifically:
  • the code stream of the preset level is converted into the code stream of the second format.
  • the first code stream conversion information further includes conversion level information, which is: extracting information about a data packet related to a frame rate;
  • the processor 802 is further configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
  • the extracted frame rate related data packet is converted into a code stream of the second format.
  • the first code stream conversion information further includes conversion level information, which is: extracting information about a resolution-related data packet;
  • the processor 802 is further configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
  • the extracted resolution-related data packet is converted into a code stream of the second format.
  • the processor 802 is configured to determine, according to the attribute information of the code stream, the first code stream conversion information, specifically:
  • the attribute information of the code stream is used to indicate attribute information of the code stream supported by the media receiving end;
  • the attribute information of the code stream is used to indicate the first code stream conversion information
  • the conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, wherein the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
  • the conversion capability information further includes conversion level information, where:
  • the conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  • an embodiment of the present invention further provides a media receiving end, where the media receiving end may include a memory 901, a processor 902, a receiver 903, and a transmitter 904.
  • the processor 902 may be a central processing unit or an ASIC, and may be one or more integrated circuits for controlling program execution, may be hardware circuits developed using an FPGA, and may be baseband chips.
  • the number of memories 901 may be one or more.
  • the memory 901 may include a ROM, a RAM, and a disk storage.
  • the receiver 903 and the transmitter 904 may belong to a radio frequency system, and the receiver 903 and the transmitter 904 are configured to perform network communication with an external device, and specifically, may communicate with an external device through a network such as an Ethernet, a radio access network, or a wireless local area network.
  • Receiver 903 and transmitter 904 may be physically separate components or may be physically identical components.
  • These memories 901, receivers 903, and transmitters 904 may be coupled to the processor 902 via a bus, or may be coupled to the processor 902 via dedicated connection lines, respectively.
  • the code corresponding to the method shown above is solidified into the chip, thereby enabling the chip to perform the method shown in the previous embodiment while it is running.
  • How to design and program the processor 902 is a technique known to those skilled in the art, and details are not described herein again.
  • the memory 901 is configured to store an instruction required by the processor 902 to perform a task
  • the processor 902 is configured to execute the instruction stored in the memory 901, and send the attribute information of the code stream to the media gateway by using the transmitter 904, where the attribute information of the code stream is used to determine the first code stream conversion information;
  • the first code stream conversion information includes Converting type information and information of a mode converted by layer, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
  • the receiver 903 is configured to receive a code stream in a second format sent by the media gateway, where the code stream in the second format is obtained by converting, by the media gateway, a code stream in a first format received according to the first code stream conversion information.
  • the information of the code stream converted into the single layer coding format by the code stream of the multi-layer coding format includes: information converted from the SVC format to the AVC format, and converted from the SHVC format to the AVC. At least one of format information and information converted from the SHVC format to the HEVC format.
  • the receiver 903 is further configured to: before the processor 902 sends the attribute information of the code stream to the media gateway through the transmitter 904, Receiving conversion capability information sent by the media gateway;
  • the processor 902 is further configured to: determine attribute information of the code stream according to the conversion capability information, where the attribute information of the code stream is used to indicate the first code stream conversion information;
  • the conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, and the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
  • the conversion capability information further includes conversion level information, where:
  • the conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  • an embodiment of the present invention provides a media system, where the media system includes the media gateway and the conference center introduced in the foregoing embodiments.
  • the media gateway implements code stream conversion, and the conference center can serve as a media sending end.
  • the conference center sends the code stream to the media gateway, and the media gateway performs the code stream according to the method provided in the previous embodiment. After the conversion, the converted code stream is sent to the media receiving end.
  • the media gateway converts the code stream sent by the media sending end according to the method provided in the previous embodiment, and then sends the converted code stream to the conference center.
  • the conference center in the media system can be used only as the media sending end, or can be used only as the media receiving end, or can also serve as the media sending end and the media receiving end at the same time, which is not limited by the present invention.
  • the media receiving end may send the attribute information of the code stream to the media gateway, so that the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then perform code stream conversion according to the first code stream conversion information.
  • the obtained code stream is sent to the media receiving end, so that the media receiving end can receive the code stream that can be recognized by the media, because the first code stream conversion information is determined by the media gateway through the attribute information of the code stream sent by the media receiving end, and thus the conversion The subsequent stream can be as close as possible to the needs of the media receiver.
  • the media receiving end can send the attribute information of the code stream to the media gateway to inform the media gateway of what kind of code stream it needs.
  • the media receiving end has a strong initiative, and the received code stream has a high utilization rate.
  • the media gateway can perform code stream conversion after considering the situation of the media receiving end, and can obtain the code stream required by the media receiving end as much as possible, and the media gateway has strong processing capability and high intelligence.
  • the code stream can be converted, so that the converted code stream is as close as possible to the needs of the media receiving end.
  • the working mode of the media system is relatively simple. In practical applications, the scope of application can be relatively wide.
  • the code stream conversion information (that is, the first code stream conversion information) is provided, and after determining the first code stream conversion information, the media gateway may modify the layer-by-layer conversion mode information in the first code stream conversion information.
  • the code stream sent by the terminal is also the code stream requested by the media gateway, which meets the requirements of the media receiving end, and the media gateway can directly convert the code stream of the first format into the second format.
  • the code stream, the code stream of the second format is supported by the media receiving end, so the media receiving end can receive the code stream of the second format.
  • the media receiving end specifically receives the parts of the code stream, and can notify the media gateway by using the attribute information of the code stream, can receive as many code streams as possible, try to avoid the loss of the code stream, and increase the information receiving capability and information of the media receiving end.
  • the amount of reception in addition, because the received code stream is more, that is, the received video information is more, the video quality reconstructed according to the received code stream is better.
  • the media sender sends the SVC format code stream
  • the media receiver supports the AVC format code stream.
  • the media gateway can convert the SVC format code stream into the AVC format code stream, and then the AVC format code. The stream is sent to the media receiver.
  • the code stream in the SVC format is sent by the media sender, and the code stream in the AVC format is supported by the media receiver as an example.
  • the AVC terminal can receive the code stream of the base layer sent by the SVC terminal.
  • the code stream of other layers (such as the enhancement layer) sent by the SVC terminal tries to avoid the loss of the code stream, increases the information receiving capability and the information receiving amount of the media receiving end, and further, because the received code stream is more, that is, the received video information. More, the quality of the video reconstructed according to the received code stream is better.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit or unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium including a number of instructions to make a computer device (can be a A human computer, server, or network device, or the like, or a processor, performs all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

Disclosed are a code stream sending method and device which are used for solving the technical problem that many code streams are lost when a terminal receives code streams sent by an opposite end. The method comprises: a media gateway receiving attribute information about code streams sent by a media receiving end, and determining first code stream conversion information according to the attribute information about the code streams; the media gateway modifying, according to information about the mode in which conversion is performed by layers, attribute information about code streams sent by a media sending end into the attribute information sent by the media receiving end, and sending the modified attribute information to the media sending end; the media gateway receiving code streams in a first format, which are sent by the media sending end, and converting the code streams in the first format into code streams in a second format; and the media gateway sending the code streams in the second format to the media receiving end.

Description

一种码流发送方法及设备Code stream sending method and device
本申请要求于2015年7月31日提交中国专利局、申请号为201510466493.2、发明名称为“一种码流发送方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510466493.2, the entire disclosure of which is hereby incorporated by reference. in.
技术领域Technical field
本发明涉及通信技术领域,特别涉及一种码流发送方法及设备。The present invention relates to the field of communications technologies, and in particular, to a code stream sending method and device.
背景技术Background technique
在H.264(一种数字视频压缩格式)/AVC(Advanced Video Coding,高级视频编码)的基础上引入了SVC(Scalable Video Coding,可伸缩视频编码)技术,即H.264/SVC,SVC技术利用了AVC编解码器的各种高效算法工具,在编码产生的视频的时间上(帧率)、及空间上(分辨率)都可扩展,同时可以产生不同帧率、分辨率或质量等级的解码视频,效果更好。Based on H.264 (a digital video compression format) / AVC (Advanced Video Coding), SVC (Scalable Video Coding) technology, namely H.264/SVC, SVC technology Utilizing the various efficient algorithm tools of the AVC codec, the time (frame rate) and spatial (resolution) of the video generated by the code can be expanded, and different frame rates, resolutions or quality levels can be generated. Decoding the video, the effect is better.
原始视频序列经SVC编码后产生的码流具有一个基本层和多个增强层。其中,基本层包含最基本的视频重建信息,接收到基本层就可恢复出低质量的视频序列,而增强层则包含重建视频的细节信息,随着接收的增强层的数据的增加,就可以结合基本层逐渐恢复出质量越来越高的视频序列,从而显示出视频的可分级特性。The code stream generated by the SVC encoding of the original video sequence has a base layer and a plurality of enhancement layers. The basic layer includes the most basic video reconstruction information, and the low-quality video sequence can be recovered when the basic layer is received, and the enhancement layer includes the detailed information of the reconstructed video. As the data of the received enhancement layer increases, Combined with the basic layer, the video sequence of higher quality is gradually recovered, thereby showing the scalable characteristics of the video.
然而,现有技术中,H.264/SVC终端与H.264/AVC终端仅局限在基本层的互通,也就是说,不论AVC终端本身能支持的分辨率、帧率或者码率等有多高,都只能接收SVC终端发送的基本层的码流,会丢失较多的码流,导致重建的视频质量不高。However, in the prior art, the H.264/SVC terminal and the H.264/AVC terminal are only limited to the interworking of the base layer, that is, regardless of the resolution, frame rate, or code rate that the AVC terminal itself can support. If the value is high, only the code stream of the basic layer sent by the SVC terminal can be received, and more code streams are lost, resulting in poor quality of the reconstructed video.
发明内容Summary of the invention
本发明实施例提供一种码流发送方法及设备,用于解决终端在接收对端发送的码流时会丢失较多码流的技术问题。The embodiment of the invention provides a code stream sending method and device, which are used to solve the technical problem that the terminal loses more code streams when receiving the code stream sent by the peer end.
第一方面,提供一种码流发送方法,包括:In a first aspect, a code stream sending method is provided, including:
媒体网关接收媒体接收端发送的码流的属性信息,并根据所述码流的属性信息确定第一码流转换信息;所述第一码流转换信息中包括转换类型信息和按层转换的模式的信息,所述转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;The media gateway receives the attribute information of the code stream sent by the media receiving end, and determines the first code stream conversion information according to the attribute information of the code stream; the first code stream conversion information includes a conversion type information and a layer-by-layer conversion mode. Information, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
所述媒体网关根据所述按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为所述媒体接收端发送的属性信息,并将修改后的属性信息发送给媒体发送端;The media gateway modifies the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer mode, and sends the modified attribute information to the media sending end. ;
所述媒体网关接收所述媒体发送端发送的第一格式的码流,并将所述第一格式的码流转换为第二格式的码流;所述第一格式的码流为所述媒体发送端根据修改后的属性信息发送的,所述第一格式为多层编码格式,所述第二格式为单层编码格式; The media gateway receives the code stream of the first format sent by the media sending end, and converts the code stream of the first format into a code stream of the second format; the code stream of the first format is the media The sending end is sent according to the modified attribute information, where the first format is a multi-layer encoding format, and the second format is a single-layer encoding format;
所述媒体网关将所述第二格式的码流发送给所述媒体接收端。The media gateway sends the code stream of the second format to the media receiving end.
结合第一方面,在第一方面的第一种可能的实现方式中,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由SVC格式转换为AVC格式的信息、由SHVC格式转换为AVC格式的信息、及由SHVC格式转换为HEVC格式的信息中的至少一种。With reference to the first aspect, in a first possible implementation manner of the first aspect, the information that is converted into the code stream of the single layer coding format by the code stream of the multi-layer coding format includes: information converted from the SVC format to the AVC format, At least one of information converted from the SHVC format to the AVC format and information converted from the SHVC format to the HEVC format.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述按层转换的模式的信息包括按照预设层级转换的信息;With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the information of the layer-by-layer conversion mode includes information converted according to a preset level;
所述媒体网关接收所述媒体发送端发送的第一格式的码流,包括:The media gateway receives the code stream in the first format sent by the media sending end, and includes:
所述媒体网关接收所述媒体发送端发送的所述预设层级的码流,所述预设层级的码流的格式为所述第一格式。The media gateway receives the code stream of the preset level sent by the media sending end, and the format of the code stream of the preset level is the first format.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,将所述第一格式的码流转换为第二格式的码流,包括:In conjunction with the second possible implementation of the first aspect, in a third possible implementation of the first aspect, converting the code stream of the first format to the code stream of the second format includes:
将所述预设层级的码流转换为所述第二格式的码流。Converting the code stream of the preset level into a code stream of the second format.
结合第一方面的第二种可能的实现方式,在第一方面的第四种可能的实现方式中,所述第一码流转换信息还包括转换级别信息,为:抽取与帧率相关的数据包的信息;With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the first code stream conversion information further includes conversion level information, which is: extracting data related to a frame rate Package information
将所述第一格式的码流转换为第二格式的码流,包括:Converting the code stream of the first format into a code stream of the second format, including:
按照所述转换级别信息,从所述预设层级的码流中抽取与帧率相关的数据包;Extracting, according to the conversion level information, a data packet related to a frame rate from a code stream of the preset level;
将抽取的与帧率相关的数据包转换为所述第二格式的码流。The extracted frame rate related data packet is converted into the code stream of the second format.
结合第一方面的第二种可能的实现方式,在第一方面的第五种可能的实现方式中,所述第一码流转换信息还包括转换级别信息,为:抽取与分辨率相关的数据包的信息;With reference to the second possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the first code stream conversion information further includes conversion level information, that is: extracting data related to resolution Package information
将所述第一格式的码流转换为第二格式的码流,包括:Converting the code stream of the first format into a code stream of the second format, including:
按照所述转换级别信息,从所述预设层级的码流中抽取与分辨率相关的数据包;Extracting, according to the conversion level information, a resolution-related data packet from the code stream of the preset level;
将抽取的与分辨率相关的数据包转换为所述第二格式的码流。The extracted resolution-related data packet is converted into the code stream of the second format.
结合第一方面或第一方面的第一种可能的实现方式至第五种可能的实现方式中的任一种可能的实现方式,在第一方面的第六种可能的实现方式中,根据所述码流的属性信息确定第一码流转换信息,包括:With reference to the first aspect or the first possible implementation manner of the first aspect to the fifth possible implementation manner, in a sixth possible implementation manner of the first aspect, The attribute information of the code stream determines the first stream conversion information, including:
根据所述码流的属性信息以及转换能力信息确定所述第一码流转换信息;Determining, according to the attribute information of the code stream and the conversion capability information, the first code stream conversion information;
其中,所述码流的属性信息用于指示所述媒体接收端支持的码流的属性信息;或The attribute information of the code stream is used to indicate attribute information of a code stream supported by the media receiving end; or
所述码流的属性信息用于指示所述第一码流转换信息;The attribute information of the code stream is used to indicate the first code stream conversion information;
其中,所述转换能力信息包括所述转换类型信息及所述按层转换的模式的信息,其中,所述按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, wherein the information of the layer-by-layer conversion mode includes information converted according to a preset level.
结合第一方面的第六种可能的实现方式,在第一方面的第七种可能的实现方式中,所述转换能力信息还包括转换级别信息;其中:In conjunction with the sixth possible implementation of the first aspect, in a seventh possible implementation of the first aspect, the conversion capability information further includes conversion level information, where:
所述转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。 The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
第二方面,提供一种媒体网关,包括:In a second aspect, a media gateway is provided, including:
确定模块,用于接收媒体接收端发送的码流的属性信息,并根据所述码流的属性信息确定第一码流转换信息;所述第一码流转换信息中包括转换类型信息和按层转换的模式的信息,所述转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;a determining module, configured to receive attribute information of a code stream sent by the media receiving end, and determine first code stream conversion information according to the attribute information of the code stream; the first code stream conversion information includes conversion type information and layer by layer Information of the converted mode, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
更改模块,用于根据所述按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为所述媒体接收端发送的属性信息,并将修改后的属性信息发送给媒体发送端;a change module, configured to modify attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and send the modified attribute information to the media to send end;
转换模块,用于接收所述媒体发送端发送的第一格式的码流,并将所述第一格式的码流转换为第二格式的码流;所述第一格式的码流为所述媒体发送端根据修改后的属性信息发送的,所述第一格式为多层编码格式,所述第二格式为单层编码格式;a conversion module, configured to receive a code stream in a first format sent by the media sending end, and convert the code stream in the first format into a code stream in a second format; The media sending end is sent according to the modified attribute information, where the first format is a multi-layer encoding format, and the second format is a single-layer encoding format;
发送模块,用于将所述第二格式的码流发送给所述媒体接收端。And a sending module, configured to send the code stream in the second format to the media receiving end.
第三方面,提供一种媒体接收端,包括:In a third aspect, a media receiving end is provided, including:
发送模块,用于向媒体网关发送码流的属性信息,所述码流的属性信息用于确定第一码流转换信息;所述第一码流转换信息中包括转换类型信息和按层转换的模式的信息,所述转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;a sending module, configured to send attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information; the first code stream conversion information includes conversion type information and layer-by-layer conversion Mode information, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
接收模块,用于接收所述媒体网关发送的第二格式的码流;所述第二格式的码流为所述媒体网关对根据所述第一码流转换信息接收的第一格式的码流转换得到的。a receiving module, configured to receive a code stream of a second format sent by the media gateway, where the code stream of the second format is a code stream of the first format received by the media gateway according to the first code stream conversion information Converted to get.
本发明实施例中提供了码流转换信息(即第一码流转换信息),媒体网关在确定第一码流转换信息后,可以根据第一码流转换信息中的按层转换的模式信息修改媒体发送端发送的码流的属性信息,并将修改后的属性信息通知媒体发送端,这样媒体发送端会根据修改后的码流的属性信息向媒体网关发送第一格式的码流,媒体发送端发送的码流也就是媒体网关所请求的码流,符合媒体接收端的需求,媒体网关可以直接将第一格式的码流转换为第二格式的码流,第二格式的码流是媒体接收端所支持的,因此媒体接收端能够接收第二格式的码流。In the embodiment of the present invention, the code stream conversion information (that is, the first code stream conversion information) is provided, and after determining the first code stream conversion information, the media gateway may modify the layer-by-layer conversion mode information in the first code stream conversion information. The attribute information of the code stream sent by the media sending end, and notifying the media sending end of the modified attribute information, so that the media sending end sends the code stream of the first format to the media gateway according to the attribute information of the modified code stream, and the media sending The code stream sent by the terminal is the code stream requested by the media gateway, and meets the requirements of the media receiving end. The media gateway can directly convert the code stream of the first format into the code stream of the second format, and the code stream of the second format is the media receiving. The terminal supports, so the media receiving end can receive the code stream in the second format.
这样,媒体接收端具体接收码流中的哪些部分,可以通过码流的属性信息来通知媒体网关,可以接收尽量多的码流,尽量避免码流的丢失,增加媒体接收端的信息接收能力和信息接收量,此外,因为接收的码流较多,也就是接收的视频信息较多,根据接收的码流重建的视频质量也就较好。In this way, the media receiving end specifically receives the parts of the code stream, and can notify the media gateway by using the attribute information of the code stream, can receive as many code streams as possible, try to avoid the loss of the code stream, and increase the information receiving capability and information of the media receiving end. The amount of reception, in addition, because the received code stream is more, that is, the received video information is more, the video quality reconstructed according to the received code stream is better.
附图说明DRAWINGS
图1为本发明实施例中码流发送方法的流程图;1 is a flowchart of a method for transmitting a code stream according to an embodiment of the present invention;
图2为本发明实施例中码流接收方法的流程图;2 is a flowchart of a method for receiving a code stream according to an embodiment of the present invention;
图3为本发明实施例中码流转换方法的第一个示例的交互图;3 is an interaction diagram of a first example of a code stream conversion method according to an embodiment of the present invention;
图4为本发明实施例中码流转换方法的第二个示例的交互图;4 is an interaction diagram of a second example of a code stream conversion method according to an embodiment of the present invention;
图5为本发明实施例中码流转换方法的第三个示例的交互图;FIG. 5 is an interaction diagram of a third example of a code stream conversion method according to an embodiment of the present invention; FIG.
图6为本发明实施例中媒体网关的结构框图; 6 is a structural block diagram of a media gateway according to an embodiment of the present invention;
图7为本发明实施例中媒体接收端的结构框图;FIG. 7 is a structural block diagram of a media receiving end according to an embodiment of the present invention;
图8为本发明实施例中媒体网关的结构示意图;FIG. 8 is a schematic structural diagram of a media gateway according to an embodiment of the present invention;
图9为本发明实施例中媒体接收端的结构示意图。FIG. 9 is a schematic structural diagram of a media receiving end according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
首先介绍本发明实施例中用到的一些概念。First, some concepts used in the embodiments of the present invention will be described.
1、媒体网关(Media Gateway,MGW),为用于连接不同类型的网络的功能单元。在相关标准(如H.248(一种媒体网关控制协议)、MGCP(Media Gateway Control Protocol,媒体网关控制协议)等)中,媒体网关被定义为将一种网络中的媒体格式转换成另一种网络所要求的媒体格式的设备。媒体网关将各种媒体(如语音、数据、传真、视频等)在电路交换网络(如PSTN(Public Switched Telephone Network,公共交换电话网络))与分组网络(如IP(Internet Protocol,网际协议)网络)之间转送,它在不同网络的相关实体之间提供相互通信的双向接口。比如,媒体网关能够在电路交换网的承载通道和分组网的媒体流之间进行转换,可以处理音频、视频或T.120(用于多点数据会议和实时通信的协议),也具备处理这三者任意组合的能力,并且能够进行全双工的媒体翻译。根据媒体网关在网络中的位置和所处理媒体流的不同,可以将媒体网关分为中继网关(Trunking Gateway)、接入网关(Access Gateway)、多媒体服务接入网关(Multimedia Service Access Gateway)、无线接入网关(Wireless Access Gateway)等。1. Media Gateway (MGW) is a functional unit for connecting different types of networks. In related standards (such as H.248 (a media gateway control protocol), MGCP (Media Gateway Control Protocol), etc.), a media gateway is defined to convert a media format in one network into another A device in the media format required by the network. The media gateway uses various media (such as voice, data, fax, video, etc.) in a circuit-switched network (such as PSTN (Public Switched Telephone Network)) and a packet network (such as IP (Internet Protocol) network). Transfer between, it provides a bidirectional interface for communication between related entities of different networks. For example, the media gateway can convert between the bearer channel of the circuit switched network and the media stream of the packet network, and can process audio, video or T.120 (a protocol for multipoint data conference and real-time communication), and also has the processing The ability to combine any combination of the three, and the ability to perform full-duplex media translation. The media gateway can be divided into a trunking gateway, an access gateway, and a multimedia service access gateway according to the location of the media gateway in the network and the processed media stream. Wireless Access Gateway, etc.
2、会议中心(Conference Focus),能够与多个终端进行媒体通信,在与终端进行媒体通信时,可以通过媒体网关进行中转。例如,会议中心可以包括AS(Application Server,应用服务器)和MRF(Multimedia Resource Function,多媒体资源功能),AS和MRF可以位于同一物理实体中,或者也可以位于不同的物理实体中。其中,AS可以由MediaX3600(融合会议系统中的核心组件)充当,MRF可以包括MRFC(Multimedia Resource Function Controller,多媒体资源控制器)和MRFP(Multimedia Resource Function Processor,多媒体资源处理器)。2. Conference Center, which can communicate with multiple terminals in media. When media communication with the terminal, it can be transited through the media gateway. For example, the conference center may include an AS (Application Server) and an MRF (Multimedia Resource Function). The AS and the MRF may be located in the same physical entity or may be located in different physical entities. The AS can be used by the MediaX3600 (the core component in the converged conference system). The MRF can include a Multimedia Resource Function Controller (MRFC) and a Multimedia Resource Function Processor (MRFP).
3、终端,是指向用户提供语音和/或数据连通性的设备,例如可以包括具有无线连接功能的手持式设备、或连接到无线调制解调器的处理设备。该终端可以经RAN与核心网进行通信,与RAN交换语音和/或数据。该终端可以为UE(User Equipment,用户设备)、无线终端、移动终端、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、AP(Access Point,接入点)、远 程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、或用户装备(User Device)等。例如,可以是移动电话(或称为“蜂窝”电话),具有移动终端的计算机,便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。例如,PCS(Personal Communication Service,个人通信业务)电话、无绳电话、SIP(会话发起协议)话机、WLL(Wireless Local Loop,无线本地环路)站、PDA(Personal Digital Assistant,个人数字助理)等设备。3. A terminal, which is a device that provides voice and/or data connectivity to a user, for example, may include a handheld device with wireless connectivity, or a processing device connected to a wireless modem. The terminal can communicate with the core network via the RAN to exchange voice and/or data with the RAN. The terminal may be a UE (User Equipment), a wireless terminal, a mobile terminal, a Subscriber Unit, a Subscriber Station, a Mobile Station, a Mobile Station, a Remote Station (Remote). Station), AP (Access Point, access point), far Remote Terminal, Access Terminal, User Terminal, User Agent, User Device, etc. For example, it can be a mobile phone (or "cellular" phone), a computer with a mobile terminal, a portable, pocket, handheld, computer built-in or in-vehicle mobile device. For example, PCS (Personal Communication Service) telephone, cordless telephone, SIP (Session Initiation Protocol) telephone, WLL (Wireless Local Loop) station, PDA (Personal Digital Assistant), etc. .
媒体发送端,可以是会议中心,或者可以是任一终端。同样的,媒体接收端,可以是会议中心,或者可以是任一终端。The media sender can be a conference center or can be any terminal. Similarly, the media receiving end can be a conference center, or can be any terminal.
本发明实施例中提供转换能力信息,可以根据转换能力信息来确定码流转换信息,从而进行码流转换。转换能力信息可以包括转换类型信息和转换模式信息,可选的,还可以包括转换级别信息。以下分别介绍。In the embodiment of the present invention, the conversion capability information is provided, and the code stream conversion information may be determined according to the conversion capability information, thereby performing code stream conversion. The conversion capability information may include conversion type information and conversion mode information, and optionally, conversion level information. The following are introduced separately.
一、转换类型信息。First, the conversion type information.
可选的,因H.264/SVC以H.264/AVC为基本层,H.265/SHVC(Scalable High Video Coding,可伸缩的高效视频编码)分别以H.264/AVC和H.265/HEVC(High Efficiency Video Coding,高效视频编码)为基本层,因此,转换类型信息可以包括由多层编码格式的码流转换为单层编码格式的码流的信息,还可以包括由单层编码格式的码流转换为多层编码格式的码流的信息,另外,还可以包括不进行转换的信息。Optionally, H.264/SVC is based on H.264/AVC, and H.265/SHVC (Scalable High Video Coding) is H.264/AVC and H.265/ respectively. HEVC (High Efficiency Video Coding) is a basic layer. Therefore, the conversion type information may include information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format, and may also include a single layer coding format. The code stream is converted into information of a code stream of a multi-layered encoded format, and may also include information that is not converted.
例如,由多层编码格式的码流转换为单层编码格式的码流的信息可以包括:由SVC格式转换为AVC格式的信息、由SHVC格式转换为AVC格式的信息、以及由SHVC格式转换为HEVC格式的信息中的至少一种;由单层编码格式的码流转换为多层编码格式的码流的信息可以包括:由AVC格式转换为SVC格式的信息、由AVC格式转换为SHVC格式的信息、以及由HEVC格式转换为SHVC格式的信息中的至少一种;不进行转换的信息例如可以表示为NONE。另外,本领域技术人员自然知晓,如果SHVC有下一代的分层编码格式,也可适用于本发明。For example, the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format may include: information converted from the SVC format to the AVC format, information converted from the SHVC format to the AVC format, and converted from the SHVC format to At least one of the information in the HEVC format; the information of the code stream converted from the code stream of the single layer encoding format to the code stream of the multi-layer encoding format may include: information converted from the AVC format to the SVC format, converted from the AVC format to the SHVC format. At least one of information, and information converted from the HEVC format to the SHVC format; information that is not converted may be expressed, for example, as NONE. In addition, it is naturally known to those skilled in the art that SHVC is also applicable to the present invention if it has a next generation layered coding format.
二、转换模式信息。Second, the conversion mode information.
本发明实施例中,基于SVC分层的特点,转换模式信息中可以包括按层转换的模式的信息,即按照层级关系逐层转换。In the embodiment of the present invention, based on the feature of the SVC layering, the conversion mode information may include information of a layer-by-layer conversion mode, that is, layer-by-layer conversion according to a hierarchical relationship.
本发明实施例中,按层转换的模式的信息可以包括按照预设层级转换的信息,即,可以将指定的预设层级进行转换。本发明实施例中,按照预设层级转换的信息可以有不同的表述方式。In the embodiment of the present invention, the information of the layer-by-layer conversion mode may include information converted according to a preset level, that is, the specified preset level may be converted. In the embodiment of the present invention, the information converted according to the preset level may have different representation manners.
1、例如,一种可能的按照预设层级转换的信息可以为,指定一个层级,其含义为:将该层以及该层以下的层进行转换。此时,指定的层及指定的层以下的层就可以视为预设层级。例如,按照预设层级转换的信息可以包括“最高策略”、“平均策略”和“最低策略”,分别表示按照最高增强层转换、按照平均增强层转换和按照最低增强层转换。如果按照最高增强层转换,则表明要通知媒体发送端,将码流的所有层都发送过来,并将媒体发送端发送的码流 进行转换;如果按照平均增强层转换,则表明要通知媒体发送端,只发送从平均增强层开始向下的每层(包括平均增强层),平均增强层之上的其他增强层无需发送,并将媒体发送端发送的码流进行转换;如果按照最低增强层转换,则表明要通知媒体发送端,只发送从最低增强层开始向下的每层(包括最低增强层),最低增强层之上的其他增强层无需发送,并将媒体发送端发送的码流进行转换。1. For example, a possible information to be converted according to a preset level may be a level specified, which means that the layer and the layers below the layer are converted. At this time, the specified layer and the layer below the specified layer can be regarded as the preset level. For example, the information converted according to the preset level may include "highest strategy", "average strategy", and "minimum strategy", indicating conversion according to the highest enhancement layer, conversion according to the average enhancement layer, and conversion according to the lowest enhancement layer, respectively. If the conversion is performed according to the highest enhancement layer, it indicates that the media sender is to be notified, all layers of the code stream are sent, and the code stream sent by the media sender is sent. Converting; if the average enhancement layer is converted, it means that the media sender is to be notified, only each layer starting from the average enhancement layer (including the average enhancement layer) is sent, and other enhancement layers above the average enhancement layer need not be sent, and Transmitting the code stream sent by the media sender; if converting according to the lowest enhancement layer, it indicates that the media sender is to be notified, only each layer from the lowest enhancement layer (including the lowest enhancement layer), above the lowest enhancement layer The other enhancement layers do not need to be sent, and the code stream sent by the media sender is converted.
例如,媒体发送端待发送的码流包括一个基本层(或者也可以称为基础层)和多个增强层,则序号位于中间的增强层可以是指平均增强层,例如媒体发送端待发送的码流共包括8层,其中包括一个基本层和7个增强层,序号分别为0-8,0为基本层,其他均为增强层,则平均增强层可以是指中间的第四个增强层,即序号为4的增强层。再例如,媒体发送端待发送的码流包括一个基本层和多个增强层,则最靠近基本层的增强层即可以认为是最低增强层,例如序号0对应的层为基本层,则可以认为序号1对应的层为最低增强层。当然,这里只是举例,平均增强层也可以是指其他的增强层,以及,最低增强层也可以是指其他的增强层。For example, the code stream to be sent by the media sending end includes a basic layer (or may also be referred to as a base layer) and multiple enhancement layers, and the enhancement layer with the serial number in the middle may refer to an average enhancement layer, for example, the media sending end is to be sent. The code stream comprises a total of 8 layers, including a basic layer and 7 enhancement layers, the serial numbers are 0-8, 0 is the base layer, and the others are enhancement layers, and the average enhancement layer can refer to the fourth enhancement layer in the middle. , that is, the enhancement layer numbered 4. For example, if the code stream to be sent by the media sending end includes one base layer and multiple enhancement layers, the enhancement layer closest to the base layer can be regarded as the lowest enhancement layer. For example, the layer corresponding to the sequence number 0 is the base layer, and then the layer can be considered as The layer corresponding to the serial number 1 is the lowest enhancement layer. Of course, here is just an example, the average enhancement layer may also refer to other enhancement layers, and the lowest enhancement layer may also refer to other enhancement layers.
2、例如,另一种可能的按照预设层级转换的信息可以为,指定一个或多个层级,其含义为:将指定的每层进行转换。此时,指定的层就可以视为预设层级。其中,在指定一个层级时,其所依赖的层级也需要在指定的范围之内。2. For example, another possible information that is converted according to a preset level may be one or more levels, which means that each layer specified is converted. At this point, the specified layer can be considered as a preset level. Among them, when you specify a level, the level it depends on needs to be within the specified range.
例如,媒体发送端待发送的码流共包括8层,其中包括一个基本层和7个增强层,序号分别为0-8,0为基本层,其他均为增强层。则按照预设层级转换的策略,例如可以为按照基本层转换的策略(即指定层级为第0层),或例如可以为按照基本层和第一增强层转换的策略(即指定层级为第0层和第1层,其中第1层是依赖于第0层的),或例如可以为按照基本层、第一增强层、第二增强层、第三增强层和第四增强层(即指定层级为第0层、第1层、第2层、第3层和4层,其中,第1层对第0层有依赖关系,即依赖于第0层,第2层对第1层有依赖关系,第3层对第2层有依赖关系,第4层对第3层有依赖关系,即总体来看,第4层对第0层、第1层、第2层和第3层都有依赖关系,因此,例如要指定第4层为预设层级,则需将第0层、第1层、第2层和第3层均指定为预设层级,而例如要指定第3层为预设层级,则需将第0层、第1层和第2层均指定为预设层级,等等),等等。For example, the code stream to be sent by the media sending end includes a total of 8 layers, including a basic layer and 7 enhancement layers, the serial numbers are 0-8, 0 is the base layer, and the others are enhancement layers. The policy according to the preset level conversion may be, for example, a policy according to the base layer conversion (that is, the specified level is layer 0), or may be, for example, a policy according to the base layer and the first enhancement layer (ie, the specified level is 0. a layer and a first layer, wherein the first layer is dependent on the 0th layer), or may be, for example, a base layer, a first enhancement layer, a second enhancement layer, a third enhancement layer, and a fourth enhancement layer (ie, a specified hierarchy) It is the 0th layer, the 1st layer, the 2nd layer, the 3rd layer and the 4th layer, wherein the first layer has a dependency on the 0th layer, that is, it depends on the 0th layer, and the 2nd layer has a dependency on the 1st layer. The third layer has a dependence on the second layer, and the fourth layer has a dependency on the third layer. In general, the fourth layer has dependence on the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Relationship, therefore, for example, to specify the 4th layer as the preset level, you need to specify the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer as the preset level, for example, to specify the 3rd layer as the preset. Level, you need to specify layer 0, layer 1 and layer 2 as the default level, etc.), and so on.
因为基本层包含最基本的视频重建信息,因此,无论按层转换的模式信息按照哪种方式进行指示,在预设层级中都应该包含基本层。Since the base layer contains the most basic video reconstruction information, the base layer should be included in the preset hierarchy regardless of the manner in which the layer-switched mode information is indicated.
三、转换级别信息。Third, the conversion level information.
在本发明另一实施例中,转换能力信息还可以包括转换级别信息。In another embodiment of the present invention, the conversion capability information may further include conversion level information.
转换级别信息可以包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息,分别表示按照空域抽包和按照时域抽包。例如,若转换级别信息包括抽取与帧率相关的数据包的信息,则表明从媒体发送端发送的预设层级的码流中抽取与帧率相关的数据包进行转换;若转换级别信息包括抽取与分辨率相关的数据包的信息,则表明从媒体发送端发送的预设层级的码流中抽取与分辨率相关的数据包进行转换。 The conversion level information may include: extracting information of the data packet related to the frame rate, or extracting information of the data packet related to the resolution, respectively, indicating that the packet is extracted according to the air domain and the packet is extracted according to the time domain. For example, if the conversion level information includes extracting information about a data packet related to a frame rate, it indicates that a data packet related to a frame rate is extracted from a code stream of a preset level sent by the media sending end; if the conversion level information includes extraction The information about the resolution-related data packet indicates that the resolution-related data packet is extracted from the preset-level code stream sent by the media sender for conversion.
例如,媒体发送端发送的预设层级的码流共包括4层,其中包括1个基本层和3个增强层,若转换级别信息包括抽取与帧率相关的数据包,则可以从这4层码流中抽取与帧率相关的数据包,并将抽取的数据包进行转换。For example, the preset stream of the code stream sent by the media sender includes a total of 4 layers, including 1 base layer and 3 enhancement layers. If the conversion level information includes extracting data packets related to the frame rate, the layer 4 can be extracted from the layer. A frame rate related packet is extracted from the code stream, and the extracted data packet is converted.
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are used interchangeably herein. The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article, unless otherwise specified, generally indicates that the contextual object is an "or" relationship.
下面结合说明书附图对本发明实施例作进一步详细描述。The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
请参见图1,本发明实施例提供一种码流发送方法,所述方法的流程描述如下。Referring to FIG. 1, an embodiment of the present invention provides a code stream sending method, and a flow of the method is described as follows.
步骤101:媒体网关接收媒体接收端发送的码流的属性信息,并根据码流的属性信息确定第一码流转换信息;其中,第一码流转换信息中包括转换类型信息和按层转换的模式的信息,转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息。Step 101: The media gateway receives the attribute information of the code stream sent by the media receiving end, and determines the first code stream conversion information according to the attribute information of the code stream. The first code stream conversion information includes the conversion type information and the layer-by-layer conversion. The information of the mode, the conversion type information includes information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format.
步骤102:媒体网关根据按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为媒体接收端发送的属性信息,并将修改后的属性信息发送给媒体发送端。Step 102: The media gateway modifies the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and sends the modified attribute information to the media sending end.
步骤103:媒体网关接收媒体发送端发送的第一格式的码流,并将第一格式的码流转换为第二格式的码流;其中,第一格式的码流为媒体发送端根据修改后的属性信息发送的,第一格式为多层编码格式,第二格式为单层编码格式。Step 103: The media gateway receives the code stream of the first format sent by the media sending end, and converts the code stream of the first format into the code stream of the second format. The code stream of the first format is the media sending end according to the modified The attribute information is sent, the first format is a multi-layer encoding format, and the second format is a single layer encoding format.
步骤104:媒体网关将第二格式的码流发送给媒体接收端。Step 104: The media gateway sends the code stream in the second format to the media receiving end.
可选的,在本发明另一实施例中,媒体网关可以根据码流的属性信息,以及转换能力信息,确定第一码流转换信息。确定方式例如为:Optionally, in another embodiment of the present invention, the media gateway may determine the first code stream conversion information according to the attribute information of the code stream and the conversion capability information. The determination method is as follows:
根据码流的属性信息确定第一码流转换信息,包括:Determining the first stream conversion information according to the attribute information of the code stream, including:
根据码流的属性信息以及转换能力信息确定第一码流转换信息;Determining the first code stream conversion information according to the attribute information of the code stream and the conversion capability information;
其中,码流的属性信息用于指示媒体接收端支持的码流的属性信息;或,码流的属性信息用于指示所述第一码流转换信息。The attribute information of the code stream is used to indicate the attribute information of the code stream supported by the media receiving end; or the attribute information of the code stream is used to indicate the first code stream conversion information.
以上确定方式涵盖了如下几种情况:The above determination methods cover the following situations:
1、媒体接收端可以存储转换能力信息(例如媒体接收端可以为会议中心),或者,媒体网关可以将转换能力信息发送给媒体接收端,媒体接收端可以根据自身的能力,或,可以根据自身的能力和当前的网络状态等信息,从转换能力信息中确定第一码流转换信息。1. The media receiving end may store the conversion capability information (for example, the media receiving end may be a conference center), or the media gateway may send the conversion capability information to the media receiving end, and the media receiving end may according to its own capabilities, or may The first stream conversion information is determined from the conversion capability information by information such as the capability and the current network status.
例如媒体接收端是会议中心,则媒体接收端具有一定的智能性。媒体网关可以将转换能力信息发送给会议中心,会议中心可以根据自身的能力,或,可以根据自身的能力和当前的网络状态等信息,从转换能力信息中选择适合自身的码流转换信息,例如将其称为第一码流转换信息,并将第一码流转换信息发送给媒体网关。这样,媒体网关就可以确定用第一码流转换信息进行码流转换。For example, if the media receiving end is a conference center, the media receiving end has certain intelligence. The media gateway can send the conversion capability information to the conference center. The conference center can select the code stream conversion information suitable for itself according to its own capabilities, or according to its own capabilities and current network status information, for example, This is referred to as first stream conversion information, and the first stream conversion information is transmitted to the media gateway. In this way, the media gateway can determine to use the first code stream conversion information for code stream conversion.
在这种情况下,由于会议中心具有一定的智能性,其作为媒体接收端时可以根据自身的 能力,或,可以根据自身的能力和当前的网络状态等信息选择码流转换信息(即第一码流转换信息),这样选择的第一码流转换信息可以较为充分地反映出媒体接收端的需求,从而使得码流转换过程能够尽量按照媒体接收端的需求完成,提高媒体接收端的码流接收成功率。In this case, because the conference center has certain intelligence, it can be used as a media receiver. Capabilities, or, may select code stream conversion information (ie, first code stream conversion information) according to information such as its own capabilities and current network status, such that the selected first stream conversion information can more fully reflect the requirements of the media receiving end. Therefore, the code stream conversion process can be completed as much as possible according to the requirements of the media receiving end, and the success rate of the code stream receiving at the receiving end of the medium is improved.
2、媒体网关存储转换能力信息,媒体网关可以根据媒体接收端的能力,或,可以根据媒体接收端的能力和当前的网络状态等信息,从转换能力信息中确定第一码流转换信息。2. The media gateway stores the conversion capability information, and the media gateway may determine the first code stream conversion information from the conversion capability information according to the capability of the media receiving end, or according to the capability of the media receiving end and the current network state.
例如媒体接收端是普通终端,可以认为普通终端不具有很好的智能性。则媒体网关可以根据媒体接收端的能力,或,可以根据媒体接收端的能力和当前的网络状态等信息,确定适合媒体接收端的第一码流转换信息,无需媒体接收端确定。For example, the media receiving end is an ordinary terminal, and it can be considered that the ordinary terminal does not have good intelligence. The media gateway may determine the first code stream conversion information suitable for the media receiving end according to the capability of the media receiving end, or according to the capability of the media receiving end and the current network status, without determining by the media receiving end.
在这种情况下,由于认为有些普通终端不具有很好的智能性,可能不具备自己选择码流转换信息的能力,因此媒体网关可以根据这些终端所反馈的其自身的能力,或,可以根据这些终端所反馈的其自身的能力和当前的网络状态等信息,从存储的转换能力信息中选择适合这些终端的码流转换信息,对终端的智能性要求较低,适用范围更为广泛。且媒体网关也可以是根据媒体接收端反馈的码流的属性信息来选择适合媒体接收端的码流转换信息,这样选择的第一码流转换信息可以尽量反映媒体接收端的需求,从而使得码流转换过程能够尽量按照媒体接收端的需求完成,提高媒体接收端的码流接收成功率。In this case, since some ordinary terminals are not considered to have good intelligence, they may not have the ability to select the code stream conversion information. Therefore, the media gateway may be based on its own capabilities fed back by the terminals, or may be based on The information that is forwarded by these terminals and the current network status and other information, selects the code stream conversion information suitable for these terminals from the stored conversion capability information, and has lower requirements on the intelligence of the terminal, and the scope of application is wider. And the media gateway may also select the code stream conversion information suitable for the media receiving end according to the attribute information of the code stream fed back by the media receiving end, so that the selected first code stream conversion information may reflect the requirement of the media receiving end as much as possible, thereby enabling the code stream conversion. The process can be completed as much as possible according to the requirements of the media receiving end, and the success rate of the code stream receiving at the receiving end of the media is improved.
当然,媒体网关确定第一码流转换信息,除了以上列举的方式外,还可以有其他的确定方式,本发明不作限制。Certainly, the media gateway determines the first code stream conversion information. In addition to the above enumerated manners, there may be other determination manners, which are not limited by the present invention.
在确定第一码流转换信息后,媒体网关与媒体接收端建立传输通道,媒体网关执行码流转换功能,并将转换后的码流发送给媒体接收端。After determining the first code stream conversion information, the media gateway establishes a transmission channel with the media receiving end, and the media gateway performs a code stream conversion function, and sends the converted code stream to the media receiving end.
如前已有描述,无论媒体网关还是媒体接收端,在选择码流转换信息时,可以将媒体接收端的能力作为参考条件,或,可以将媒体接收端的能力和当前的网络状态作为参考条件。As described above, whether the media gateway or the media receiving end selects the code stream conversion information, the capability of the media receiving end can be used as a reference condition, or the capability of the media receiving end and the current network state can be used as reference conditions.
在本发明另一实施例中,网络状态可以通过网络资源(Network Resources,NR)来表示,网络资源建议可以从流量占用情况和丢包率两个维度进行评估,当然也可以通过其他可能的指标进行评估,本发明不作限制。若从流量占用情况和丢包率两个维度进行评估,则举例如下:In another embodiment of the present invention, the network status may be represented by a network resource (NR), and the network resource recommendation may be evaluated from two dimensions: a traffic occupation situation and a packet loss rate, and of course, other possible indicators may also be adopted. The evaluation is carried out, and the invention is not limited. If the two dimensions of traffic occupation and packet loss rate are evaluated, examples are as follows:
a)流量占用率(The rate of flow,Rf)=实际流量/硬件带宽总额。a) The rate of flow (Rf) = actual traffic / total hardware bandwidth.
例如可以设定多个区间,例如,设定[0,X1%]区间表明流量充足,设定[X1%,X2%]表明流量持平,设定[X2%,X3%]区间表明流量紧张。具体的区间数量、区间的端点值等信息都可以根据不同情况进行不同的设定。For example, multiple intervals can be set. For example, setting the [0, X1%] interval indicates that the flow is sufficient, setting [X1%, X2%] indicates that the flow is flat, and setting the [X2%, X3%] interval indicates that the flow is tight. The specific number of intervals, the endpoint value of the interval, and the like can be set differently according to different situations.
b)丢包率(The rate of lost packets,Rp)。b) The rate of lost packets (Rp).
例如可以根据RTCP反馈机制来计算丢包率(即,可以根据RTCP(Real-time Transport Control Protocol,实时传输控制协议)消息中的SR(Sender Report,发送报告)中的发送的数据包的数量和相应的RR(Receiver Report,接收报告)中的接收的数据包的数量来统计丢包率)。 For example, the packet loss rate can be calculated according to the RTCP feedback mechanism (that is, the number of packets sent in the SR (Sender Report) in the Real-time Transport Control Protocol (RTCP) message can be The number of received packets in the corresponding RR (Receiver Report) is used to count the packet loss rate.
例如可以设定多个区间,例如可以设定[0,Y1%]、[Y1%,Y2%]和[Y2%,Y3%]等多个丢包率区间。具体的,Y1、Y2和Y3的值可根据不同情况设定。以及,具体的区间数量、区间的端点值等信息都可以根据不同情况进行不同的设定。For example, a plurality of sections can be set. For example, a plurality of packet loss rate sections such as [0, Y1%], [Y1%, Y2%], and [Y2%, Y3%] can be set. Specifically, the values of Y1, Y2, and Y3 can be set according to different situations. And, the information of the specific number of sections, the endpoint value of the section, and the like can be set differently according to different situations.
例如,一种根据流量占用情况和丢包率评估网络资源的方式如下:For example, a way to evaluate network resources based on traffic usage and packet loss rate is as follows:
Rf<X1%并且Rp<Y1%时,判定NR为充足;When Rf<X1% and Rp<Y1%, it is determined that NR is sufficient;
X1%<Rf<X2%或者Y1%<p<Y2%时,判定NR为持平;When X1%<Rf<X2% or Y1%<p<Y2%, it is determined that NR is flat;
X2%<Rf<X3%或者Y2%<p<Y3%时,判定NR为紧张;When X2%<Rf<X3% or Y2%<p<Y3%, it is determined that NR is nervous;
Rf>X3%或者Rp>Y3%时,判定NR为极端紧张。When Rf>X3% or Rp>Y3%, it is judged that NR is extremely tight.
例如,如果NR判定为充足,则可以选择将预设层级设定为媒体发送端待发送的码流的所有层;如果NR判定为极端紧张,则转换类型信息可以选择为NONE,即不进行转换,等等。For example, if the NR is determined to be sufficient, the preset level may be selected to be all layers of the code stream to be transmitted by the media transmitting end; if the NR is determined to be extremely tight, the conversion type information may be selected as NONE, that is, no conversion is performed. ,and many more.
另外,在本发明另一实施例中,在评估网络状态时,除了可以考虑网络资源外,还可以考虑网络中其他终端的能力。例如,如果媒体网关需要评估网络状态,则媒体网关除了可以评估网络资源外,还可以考虑对端(例如可以包括媒体接收端和/或媒体发送端)的能力。如果会议中心需要评估网络状态,则会议中心除了可以评估网络资源外,还可以考虑对端(如果会议中心作为媒体接收端,则对端可以是指媒体发送端,如果会议中心作为媒体发送端,则对端可以是指媒体接收端)的能力,和/或,还可以考虑网络中多个终端的能力,例如可以考虑与会议中心进行通信的一个或多个终端的能力,等等。In addition, in another embodiment of the present invention, in addition to the network resources, the capabilities of other terminals in the network may be considered when evaluating the network status. For example, if the media gateway needs to evaluate the network status, the media gateway can consider the capabilities of the peer (eg, may include the media receiver and/or the media sender) in addition to the network resources. If the conference center needs to evaluate the network status, the conference center can consider the network resources in addition to the network resources. If the conference center serves as the media receiver, the peer end can refer to the media sender. If the conference center serves as the media sender, The peer may then refer to the capabilities of the media receiving end, and/or may also consider the capabilities of multiple terminals in the network, such as the ability to consider one or more terminals in communication with the conference center, and the like.
终端的能力,建议可以从分辨率的维度进行评估,当然也可以从其他维度进行评估。例如,若从分辨率的维度进行评估,可以设定相应的区间,例如设定分辨率大于等于720P的终端为高能力终端,设定分辨率为[360P,180P]的终端为低能力终端,设定分辨率小于等于180P的终端为低能力终端,等等。对于评估终端的能力的方式本发明不作限制。The capabilities of the terminal can be evaluated from the dimensions of the resolution, and of course from other dimensions. For example, if the evaluation is performed from the dimension of the resolution, the corresponding interval may be set. For example, the terminal whose resolution is greater than or equal to 720P is a high-capacity terminal, and the terminal whose resolution is [360P, 180P] is a low-capability terminal. A terminal with a resolution of 180P or less is set as a low-capability terminal, and the like. The manner in which the capabilities of the terminal are evaluated is not limited in the present invention.
因媒体网关已经根据按层转换的模式的信息修改了媒体发送端发送的码流的属性信息,并将修改后的属性信息发送给了媒体发送端,因此,本发明另一实施例中,若按层转换的模式的信息包括按照预设层级转换的信息,则步骤103中,媒体网关接收媒体发送端发送的第一格式的码流,包括:The media gateway has modified the attribute information of the code stream sent by the media sending end according to the information of the layer-by-layer conversion mode, and sends the modified attribute information to the media sending end. Therefore, in another embodiment of the present invention, The information of the layer-converted mode includes the information converted according to the preset level. In step 103, the media gateway receives the code stream of the first format sent by the media sending end, including:
媒体网关接收媒体发送端发送的预设层级的码流,预设层级的码流的格式为第一格式。The media gateway receives the preset level code stream sent by the media sending end, and the format of the preset level code stream is the first format.
在该实施例中,媒体发送端可以将按层转换的模式的信息所指示的层发送给媒体网关,而按层转换的模式的信息未指示的层,媒体发送端可以不发送给媒体网关,这样,媒体网关接收的就是所需要的层,无需接收其他不需要的层,减少需传输的数据量,节省系统资源。In this embodiment, the media sending end may send the layer indicated by the layer-switched mode information to the media gateway, and the layer-switched mode information may not be sent to the media gateway. In this way, the media gateway receives the required layer, does not need to receive other unneeded layers, reduces the amount of data to be transmitted, and saves system resources.
例如,媒体发送端待发送的码流本身包括8层,其中包括1个基本层和7个增强层,序号分别为0-7,基本层的序号为0,最高增强层的序号为7。按层转换的模式的信息中包括按照预设层级转换的信息,预设层级例如为第3层及以下的层级,即,预设层级为第0层、第1层、第2层和第3层。则媒体发送端可以将待发送的码流的第0层、第1层、第2层和第3层发送给媒体网关,而待发送的码流的第4层、第5层、第6层和第7层可以不发送,减少 媒体网关需接收的数据量,且减少的是媒体网关所不需要接收的数据,因此也相当于减少了媒体网关接收的冗余数据。For example, the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7. The information of the layer-by-layer conversion mode includes information converted according to a preset level, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Floor. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway, and the 4th, 5th, and 6th layers of the code stream to be sent And layer 7 can be sent without, reducing The amount of data that the media gateway needs to receive, and the data that the media gateway does not need to receive is reduced, which is equivalent to reducing the redundant data received by the media gateway.
在本发明另一实施例中,媒体发送端发送的码流需要通过媒体网关中转后到达媒体接收端,则步骤103中,媒体网关接收媒体发送端发送的第一格式的码流后,可以将其转换为第二格式的码流,其中,本发明实施例中将媒体发送端发送的码流格式称为第一格式,将媒体接收端所支持的码流格式称为第二格式。本发明的各个实施例主要保护的是由多层格式的码流转换为单层格式的码流的方式,因此,第一格式为多层编码格式,第二格式为单层编码格式。In another embodiment of the present invention, the code stream sent by the media sending end needs to be transferred to the media receiving end after being transferred by the media gateway, and then, in step 103, after receiving the code stream of the first format sent by the media sending end, the media gateway may It is converted into a code stream in a second format. The code stream format sent by the media sending end is referred to as a first format, and the code stream format supported by the media receiving end is referred to as a second format. The embodiments of the present invention mainly protect the manner in which the code stream of the multi-layer format is converted into the code stream of the single-layer format. Therefore, the first format is a multi-layer encoding format, and the second format is a single-layer encoding format.
例如,第一格式为SVC格式,第二格式为AVC格式,则媒体网关就将接收的预设层级的SVC格式的码流转换为AVC格式的码流。For example, if the first format is the SVC format and the second format is the AVC format, the media gateway converts the received preset-level SVC format code stream into the AVC format code stream.
可选的,在本发明另一实施例中,若第一码流转换信息中包括由多层编码格式的码流转换为单层编码格式的码流的信息,以及,包括按照预设层级转换的模式的信息,则将第一格式的码流转换为第二格式的码流,包括:将预设层级的码流转换为第二格式的码流。Optionally, in another embodiment of the present invention, if the first code stream conversion information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format, and includes converting according to a preset level The information of the mode is to convert the code stream of the first format into the code stream of the second format, including: converting the code stream of the preset level into the code stream of the second format.
即,媒体网关接收的是预设层级的码流,则媒体网关可以将接收的码流转换为第二格式的码流。具体的码流的格式的转换方式,可参考现有技术,本发明不作限制。That is, the media gateway receives the code stream of the preset level, and the media gateway can convert the received code stream into the code stream of the second format. For the manner of converting the format of the specific code stream, refer to the prior art, and the present invention is not limited.
在本发明另一实施例中,若第一码流转换信息中除了包括由多层编码格式的码流转换为单层编码格式的码流的信息以及按照预设层级转换的模式的信息之外,还包括转换级别信息,则分情况介绍如下:In another embodiment of the present invention, if the first stream conversion information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format, and information of a mode converted according to a preset level. Also includes conversion level information, which is described as follows:
1、转换级别信息包括抽取与帧率相关的数据包的信息。1. The conversion level information includes extracting information of a data packet related to a frame rate.
则,将第一格式的码流转换为第二格式的码流,包括:按照转换级别信息,从预设层级的码流中抽取与帧率相关的数据包;将抽取的与帧率相关的数据包转换为第二格式的码流。And converting the code stream of the first format into the code stream of the second format, including: extracting, according to the conversion level information, a frame rate-related data packet from the code stream of the preset level; and extracting the frame rate related to the extracted frame rate The packet is converted to a code stream of the second format.
例如,媒体发送端待发送的码流本身包括8层,其中包括1个基本层和7个增强层,序号分别为0-7,基本层的序号为0,最高增强层的序号为7。按层转换的模式的信息中包括按照预设层级转换的信息,预设层级例如为第3层及以下的层级,即,预设层级为第0层、第1层、第2层和第3层。则媒体发送端可以将待发送的码流的第0层、第1层、第2层和第3层发送给媒体网关。媒体网关接收后,可以从接收的预设层级的码流中抽取与帧率相关的数据包,并将抽取的与帧率相关的数据包转换为第二格式的码流,而预设层级中与帧率不相关的数据包,媒体网关可以不进行转换,这样,尽量保证转换得到的码流是媒体接收端所需要的码流。For example, the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7. The information of the layer-by-layer conversion mode includes information converted according to a preset level, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Floor. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway. After receiving, the media gateway may extract a frame rate-related data packet from the received preset level code stream, and convert the extracted frame rate-related data packet into a second format code stream, and the preset level is For a data packet that is not related to the frame rate, the media gateway may not perform the conversion, so as to ensure that the converted code stream is the code stream required by the media receiving end.
例如,如果媒体接收端对码流的帧率要求比较高,那么媒体网关可以采用这种方式进行码流转换,以尽量得到媒体接收端所需的码流。For example, if the media receiving end requires a higher frame rate of the code stream, the media gateway can perform code stream conversion in this manner to obtain the code stream required by the media receiving end as much as possible.
2、转换级别信息包括抽取与分辨率相关的数据包的信息。2. The conversion level information includes extracting information of the data packet related to the resolution.
则,将第一格式的码流转换为第二格式的码流,包括:按照转换级别信息,从预设层级的码流中抽取与分辨率相关的数据包;将抽取的与分辨率相关的数据包转换为第二格式的码 流。And converting the code stream of the first format into the code stream of the second format, including: extracting, according to the conversion level information, a resolution-related data packet from the code stream of the preset level; and extracting the resolution-related The packet is converted to a code in the second format flow.
例如,媒体发送端待发送的码流本身包括8层,其中包括1个基本层和7个增强层,序号分别为0-7,基本层的序号为0,最高增强层的序号为7。按层转换的模式的信息中包括按照预设层级转换的信息,预设层级例如为第3层及以下的层级,即,预设层级为第0层、第1层、第2层和第3层。则媒体发送端可以将待发送的码流的第0层、第1层、第2层和第3层发送给媒体网关。媒体网关接收后,可以从接收的预设层级的码流中抽取与分辨率相关的数据包,并将抽取的与分辨率相关的数据包转换为第二格式的码流,而预设层级中与分辨率不相关的数据包,媒体网关可以不进行转换,这样,尽量保证转换得到的码流是媒体接收端所需要的码流。For example, the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7. The information of the layer-by-layer conversion mode includes information converted according to a preset level, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer. Floor. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway. After receiving the media gateway, the resolution-related data packet may be extracted from the received preset-level code stream, and the extracted resolution-related data packet is converted into the second-format code stream, and the preset level is The media gateway may not convert the data packets that are not related to the resolution, so as to ensure that the converted code stream is the code stream required by the media receiving end.
例如,如果媒体接收端对码流的分辨率要求比较高,那么媒体网关可以采用这种方式进行码流转换,以尽量得到媒体接收端所需的码流。For example, if the resolution of the code stream on the media receiving end is relatively high, the media gateway can perform code stream conversion in this manner to obtain the code stream required by the media receiving end as much as possible.
媒体网关在将第一格式的码流转换为第二格式的码流后,可以按照步骤104,将第二格式的码流发送给媒体接收端,这样媒体接收端就接收到了媒体发送端发送的码流,接收的码流的格式也是媒体接收端能够支持的格式,接收的内容也是与媒体接收端相适应的内容。After converting the code stream of the first format to the code stream of the second format, the media gateway may send the code stream of the second format to the media receiving end according to step 104, so that the media receiving end receives the sending by the media sending end. The code stream, the format of the received code stream is also a format that the media receiving end can support, and the received content is also adapted to the media receiving end.
媒体网关是根据第一码流转换信息告知媒体发送端,发送哪些码流,以及,还可以根据第一码流转换信息(例如转换级别信息)对预设层级码流进行转换,第一码流转换信息是考虑了媒体接收端的能力后确定的码流转换信息,那么,以媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流为例,根据媒体接收端的能力所确定的码流转换信息,可能除了转换SVC的基本层的码流之外,还可以转换SVC的其他层(例如增强层)的码流,则相当于AVC终端除了能接收SVC终端发送的基本层的码流之外,还能够接收SVC终端发送的其他层(例如增强层)的码流,一般来说,增强层是对基本层的细化,若只有基本层,那整个画面可能是完整的,但是可能存在局部的不清晰,若不仅有基本层还有增强层,则画面相较于基本层来说会清晰很多,细节逼真,能够得到更好的图像质量,同时,尽量接收较多的码流,也是尽量避免码流的丢失,增加媒体接收端的信息接收能力和信息接收量,此外,因为接收的码流较多,也就是接收的视频信息较多,根据接收的码流重建的视频质量也就较好。The media gateway notifies the media sender according to the first code stream conversion information, which code streams are sent, and also converts the preset layer code stream according to the first code stream conversion information (for example, conversion level information), the first code stream The conversion information is the code stream conversion information determined by considering the capability of the media receiving end. Then, the media transmitting end sends the SVC format code stream, and the media receiving end supports the AVC format code stream as an example, according to the media receiving end. The code stream conversion information determined by the capability may convert the code stream of other layers of the SVC (for example, the enhancement layer) in addition to the code stream of the base layer of the SVC, which is equivalent to the AVC terminal being able to receive the SVC terminal. In addition to the code stream of the base layer, it can also receive the code stream of other layers (such as the enhancement layer) sent by the SVC terminal. Generally, the enhancement layer is a refinement of the base layer. If there is only the base layer, the entire picture may be Complete, but there may be partial unclearness. If there are not only the base layer and the enhancement layer, the picture will be much clearer than the base layer, and the details will be more realistic and can be more Image quality, at the same time, try to receive more code streams, try to avoid the loss of code stream, increase the information receiving ability and information receiving amount of the media receiving end, in addition, because the received code stream is more, that is, the received video information More, the quality of the video reconstructed according to the received code stream is better.
在本发明另一实施例中,在媒体网关与媒体接收端建立传输通道后,媒体网关还可以实时、定时或受触发时重新评估网络状态,具体评估网络状态的方式如前已有介绍。如果评估确定码流转换信息需要调整,则媒体网关可以调整码流转换信息,例如从第一码流转换信息调整为第二码流转换信息。例如,之前评估网络资源为“充足”,因此第一码流转换信息对应的转换策略信息为“最高策略”,而后来再进行评估时,评估网络资源为“紧张”,则媒体网关可能会调整转换策略信息,例如调整为“最低策略”,从而得到新的码流转换信息(即第二码流转换信息),在调整后,媒体网关重新通知媒体发送端,从而媒体发送端发送与第二码流转换信息相适应的码流。 In another embodiment of the present invention, after the media gateway establishes a transmission channel with the media receiving end, the media gateway can re-evaluate the network state in real time, timing, or triggered. The manner of specifically evaluating the network state is as previously described. If the evaluation determines that the code stream conversion information needs to be adjusted, the media gateway may adjust the code stream conversion information, for example, from the first code stream conversion information to the second code stream conversion information. For example, before the network resource is evaluated as “sufficient”, the conversion policy information corresponding to the first stream conversion information is “the highest policy”, and when the evaluation is later, the network resource is “tight”, the media gateway may adjust. Converting the policy information, for example, to the “minimum policy”, thereby obtaining new code stream conversion information (ie, the second code stream conversion information). After the adjustment, the media gateway re-notifies the media sender, so that the media sender sends the second The code stream converts the information to match the code stream.
其中,第二码流转换信息中可以包括由多层编码格式的码流转换为单层编码格式的码流的信息和按层转换的模式的信息,可选的,第二码流转换信息中还可以包括转换级别信息。The second code stream conversion information may include information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format, and information of a layer-by-layer conversion mode. Optionally, the second code stream conversion information is included. It can also include conversion level information.
例如,媒体发送端待发送的码流本身包括8层,其中包括1个基本层和7个增强层,序号分别为0-7,基本层的序号为0,最高增强层的序号为7。与第一码流转换信息相对应的按层转换的模式的信息中包括按照预设层级转换的信息,预设层级例如为第3层及以下的层级,即,预设层级为第0层、第1层、第2层和第3层。则媒体发送端可以将待发送的码流的第0层、第1层、第2层和第3层发送给媒体网关。当码流转换信息更新为第二码流转换信息后,与第一码流转换信息相对应的按层转换的模式的信息中包括按照预设层级转换的信息,预设层级例如为第4层及以下的层级,即,预设层级为第0层、第1层、第2层、第3层和第4层。则媒体发送端可以将待发送的码流的第0层、第1层、第2层、第3层和第4层发送给媒体网关。For example, the code stream to be sent by the media sending end itself includes 8 layers, including 1 base layer and 7 enhancement layers, the serial numbers are 0-7, the base layer number is 0, and the highest enhancement layer serial number is 7. The information of the layer-by-layer conversion mode corresponding to the first code stream conversion information includes information converted according to a preset level, and the preset level is, for example, a layer of the third layer and below, that is, the preset level is the 0th layer, Layer 1, Layer 2 and Layer 3. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, and the 3rd layer of the code stream to be sent to the media gateway. After the code stream conversion information is updated to the second code stream conversion information, the information of the layer-by-layer conversion mode corresponding to the first code stream conversion information includes information converted according to a preset level, and the preset level is, for example, the fourth layer. And the following levels, that is, the preset levels are the 0th layer, the 1st layer, the 2nd layer, the 3rd layer, and the 4th layer. Then, the media sending end may send the 0th layer, the 1st layer, the 2nd layer, the 3rd layer, and the 4th layer of the code stream to be sent to the media gateway.
在该实施例中,媒体网关可以根据网络状态等信息调整码流转换信息,使得码流转换尽量符合媒体接收端的需求,提高网络资源利用率,也提高码流发送的成功率。In this embodiment, the media gateway can adjust the code stream conversion information according to the network status and the like, so that the code stream conversion conforms to the requirements of the media receiving end as much as possible, improves the network resource utilization rate, and improves the success rate of the code stream transmission.
本发明实施例中提供了码流转换信息(即第一码流转换信息),媒体网关在确定第一码流转换信息后,可以根据第一码流转换信息进行码流转换,即将媒体发送端发送的第一格式的码流转换为第二格式的码流,第二格式的码流是媒体接收端所支持的,因此媒体接收端能够接收第二格式的码流。媒体网关在将媒体发送端发送的码流再发送给媒体接收端之前,首先将接收的码流的格式进行转换,例如媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流,则媒体网关可以将SVC格式的码流转换为AVC格式的码流,之后再将AVC格式的码流发送给媒体接收端。In the embodiment of the present invention, the code stream conversion information (that is, the first code stream conversion information) is provided. After determining the first code stream conversion information, the media gateway may perform code stream conversion according to the first code stream conversion information, that is, the media sending end. The transmitted code stream of the first format is converted into the code stream of the second format, and the code stream of the second format is supported by the media receiving end, so the media receiving end can receive the code stream of the second format. Before the media stream sends the code stream sent by the media sending end to the media receiving end, the format of the received code stream is first converted. For example, the media sending end sends the SVC format code stream, and the media receiving end supports the AVC. In the format of the code stream, the media gateway can convert the SVC format code stream into the AVC format code stream, and then send the AVC format code stream to the media receiving end.
继续以媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流为例,相当于AVC终端除了能接收SVC终端发送的基础层的码流之外,还能够接收SVC终端发送的其他层(例如增强层)的码流,尽量避免码流的丢失,增加媒体接收端的信息接收能力和信息接收量,此外,因为接收的码流较多,也就是接收的视频信息较多,根据接收的码流重建的视频质量也就较好。The code stream in the SVC format is sent by the media sender, and the code stream in the AVC format is supported by the media receiver as an example. The AVC terminal can receive the code stream of the base layer sent by the SVC terminal. The code stream of other layers (such as the enhancement layer) sent by the SVC terminal tries to avoid the loss of the code stream, increases the information receiving capability and the information receiving amount of the media receiving end, and further, because the received code stream is more, that is, the received video information. More, the quality of the video reconstructed according to the received code stream is better.
请参见图2,基于同一发明构思,本发明实施例提供一种码流接收方法,所述方法是与图1流程所介绍的方法相对应的、由媒体接收端执行的方法,所述方法的流程描述如下。Referring to FIG. 2, based on the same inventive concept, an embodiment of the present invention provides a code stream receiving method, which is a method performed by a media receiving end corresponding to the method introduced in the process of FIG. The process is described below.
步骤201:媒体接收端向媒体网关发送码流的属性信息,码流的属性信息用于确定第一码流转换信息;其中,第一码流转换信息中包括转换类型信息和按层转换的模式的信息,转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息。Step 201: The media receiving end sends the attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information, where the first code stream conversion information includes the conversion type information and the layer-by-layer conversion mode. The information of the conversion type includes information of a code stream converted into a single layer coding format by a code stream of a multi-layer coding format.
步骤202:媒体接收端接收媒体网关发送的第二格式的码流;其中,第二格式的码流为媒体网关对根据第一码流转换信息接收的第一格式的码流转换得到的。Step 202: The media receiving end receives the code stream of the second format sent by the media gateway, where the code stream of the second format is obtained by the media gateway converting the code stream of the first format received according to the first code stream conversion information.
本发明实施例中,媒体接收端可以是具有一定智能性的设备,例如会议中心,或者可以是智能性较弱的设备,例如终端。 In the embodiment of the present invention, the media receiving end may be a device with certain intelligence, such as a conference center, or may be a device with weak intelligence, such as a terminal.
可选的,在本发明另一实施例中,在媒体接收端向媒体网关发送码流的属性信息之前,还包括:媒体接收端接收媒体网关发送的转换能力信息;媒体接收端根据转换能力信息确定码流的属性信息,码流的属性信息用于指示第一码流转换信息;其中,转换能力信息包括转换类型信息及按层转换的模式的信息,按层转换的模式的信息包括按照预设层级转换的信息。Optionally, in another embodiment of the present invention, before the media receiving end sends the attribute information of the code stream to the media gateway, the method further includes: the media receiving end receiving the conversion capability information sent by the media gateway; and the media receiving end according to the conversion capability information. Determining the attribute information of the code stream, the attribute information of the code stream is used to indicate the first code stream conversion information; wherein the conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, and the information of the layer-by-layer conversion mode includes Set the information of the level conversion.
即,如果媒体接收端为具有一定智能性的设备,例如为会议中心,则媒体接收端可以存储转换能力信息,或者媒体网关可以将转换能力信息发送给媒体接收端,媒体接收端可以根据自身的能力,或根据自身的能力和当前的网络状态等信息,从转换能力信息中确定第一码流转换信息,并可以将与第一码流转换信息对应的码流的属性信息发送给媒体网关。或者可以理解为,媒体接收端可以根据第一码流转换信息修改媒体网关发送的码流的属性信息,并将修改后的码流的属性信息发送给媒体网关。That is, if the media receiving end is a device with certain intelligence, for example, a conference center, the media receiving end may store the conversion capability information, or the media gateway may send the conversion capability information to the media receiving end, and the media receiving end may according to its own The capability, or the first code stream conversion information is determined from the conversion capability information according to the information of the capability and the current network state, and the attribute information of the code stream corresponding to the first code stream conversion information may be sent to the media gateway. Or it can be understood that the media receiving end can modify the attribute information of the code stream sent by the media gateway according to the first code stream conversion information, and send the attribute information of the modified code stream to the media gateway.
或者,如果媒体接收端为智能性较弱的设备,例如终端,可能不具备自己选择码流转换信息的能力,因此媒体网关可以根据媒体接收端所反馈的其自身的能力,或,可以根据媒体接收端所反馈的其自身的能力和当前的网络状态等信息,从存储的转换能力信息中选择适合媒体接收端的码流转换信息,对媒体接收端的智能性要求较低,适用范围更为广泛。且媒体网关也可以是根据媒体接收端反馈的码流的属性信息来选择适合媒体接收端的码流转换信息,这样选择的第一码流转换信息可以尽量反映媒体接收端的需求,从而使得码流转换过程能够尽量按照媒体接收端的需求完成,提高媒体接收端的码流接收成功率。Alternatively, if the media receiving end is a less intelligent device, such as a terminal, it may not have the ability to select a code stream conversion information, so the media gateway may be based on its own capabilities fed back by the media receiving end, or may be based on the media. The information fed back by the receiving end and the current network state and the like, and the code stream conversion information suitable for the media receiving end are selected from the stored conversion capability information, and the intelligence requirement of the media receiving end is relatively low, and the applicable scope is wider. And the media gateway may also select the code stream conversion information suitable for the media receiving end according to the attribute information of the code stream fed back by the media receiving end, so that the selected first code stream conversion information may reflect the requirement of the media receiving end as much as possible, thereby enabling the code stream conversion. The process can be completed as much as possible according to the requirements of the media receiving end, and the success rate of the code stream receiving at the receiving end of the media is improved.
在本发明另一实施例中,转换能力信息还包括转换级别信息;其中:转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。In another embodiment of the present invention, the conversion capability information further includes conversion level information; wherein: the conversion level information includes: extracting information of the data packet related to the frame rate, or extracting information of the data packet related to the resolution.
在本发明另一实施例中,媒体接收端,例如会议中心,还可以实时、定时或受触发时重新评估网络状态,具体评估网络状态的方式在图1流程中已有介绍。如果评估确定码流转换信息需要调整,则媒体接收端可以调整码流转换信息,例如从第一码流转换信息调整为第二码流转换信息,例如,之前评估网络资源为“充足”,因此第一码流转换信息对应的转换策略信息为“最高策略”,而后来再进行评估时,评估网络资源为“紧张”,则媒体接收端可能会调整转换策略信息,例如调整为“最低策略”,从而得到新的码流转换信息(即第二码流转换信息),在调整后,媒体接收端将调整后的码流转换信息通知媒体网关。In another embodiment of the present invention, the media receiving end, such as the conference center, can also re-evaluate the network status in real time, timing, or triggered. The manner in which the network status is specifically evaluated is described in the flow of FIG. If the evaluation determines that the code stream conversion information needs to be adjusted, the media receiving end may adjust the code stream conversion information, for example, from the first code stream conversion information to the second code stream conversion information, for example, before the network resource is evaluated as “sufficient”, The conversion strategy information corresponding to the first stream conversion information is the "highest policy", and when the evaluation is later performed, the network resource is evaluated as "tight", and the media receiving end may adjust the conversion policy information, for example, to the "minimum policy". Therefore, the new code stream conversion information (ie, the second code stream conversion information) is obtained. After the adjustment, the media receiving end notifies the media gateway of the adjusted code stream conversion information.
媒体网关接收第二码流转换信息后的处理方式,在图1流程中已有介绍。本发明实施例中,媒体接收端可以根据网络状态等信息调整码流转换信息,使得码流转换尽量符合媒体接收端的需求,提高网络资源利用率,也提高码流发送的成功率。The processing method after the media gateway receives the second stream conversion information is described in the flow of FIG. 1. In the embodiment of the present invention, the media receiving end can adjust the code stream conversion information according to the network status and the like, so that the code stream conversion conforms to the requirements of the media receiving end as much as possible, improves the network resource utilization rate, and improves the success rate of the code stream transmission.
另外,媒体接收端接收第二格式的码流后,也可以再将第二格式的码流发送给其他媒体接收端。即,媒体接收端也可以再作为媒体发送端。In addition, after receiving the code stream in the second format, the media receiving end may further send the code stream in the second format to the other media receiving end. That is, the media receiving end can also serve as a media transmitting end.
本发明实施例中,媒体接收端可以向媒体网关发送码流的属性信息,媒体网关可以根据码流的属性信息确定第一码流转换信息,然后媒体网关可以根据第一码流转换信息进行码流转换,即将媒体发送端发送的第一格式的码流转换为第二格式的码流,第二格式的码流是媒 体接收端所支持的,因此媒体接收端能够接收第二格式的码流。相当于,媒体网关是在考虑了媒体接收端的情况之后确定的第一码流转换信息,则最后得到的码流也就是媒体接收端所需要的码流,能够尽量符合媒体接收端的需求。In the embodiment of the present invention, the media receiving end may send the attribute information of the code stream to the media gateway, and the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then the media gateway may perform the code according to the first code stream conversion information. Stream conversion, that is, converting the code stream of the first format sent by the media sender to the code stream of the second format, and the code stream of the second format is the medium The body receiving end supports, so the media receiving end can receive the code stream in the second format. Correspondingly, the media gateway is the first code stream conversion information determined after considering the situation of the media receiving end, and the finally obtained code stream is also the code stream required by the media receiving end, and can meet the requirements of the media receiving end as much as possible.
例如,媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流,则媒体网关可以将SVC格式的码流转换为AVC格式的码流,并且具体转换SVC格式的码流中的哪些部分,也是根据第一码流转换信息确定的,之后再将AVC格式的码流发送给媒体接收端。For example, the media sender sends the SVC format code stream, and the media receiver supports the AVC format code stream. The media gateway can convert the SVC format code stream into the AVC format code stream, and specifically convert the SVC format. Which part of the code stream is also determined according to the first code stream conversion information, and then the code stream of the AVC format is sent to the media receiving end.
继续以媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流为例,相当于AVC终端除了能接收SVC终端发送的基础层的码流之外,在第一码流转换信息的支持下,还能够接收SVC终端发送的其他层(例如增强层)的码流,尽量避免码流的丢失,增加媒体接收端的信息接收能力和信息接收量,此外,因为接收的码流较多,也就是接收的视频信息较多,根据接收的码流重建的视频质量也就较好。Continuing to send the SVC format code stream to the media sender, the media receiver supports the AVC format code stream as an example, which is equivalent to the AVC terminal being able to receive the code stream of the base layer sent by the SVC terminal. Supported by the code stream conversion information, it can also receive the code stream of other layers (such as the enhancement layer) sent by the SVC terminal, try to avoid the loss of the code stream, increase the information receiving capability and the information receiving amount of the media receiving end, and further, because of the received There are more code streams, that is, more received video information, and the quality of the video reconstructed according to the received code stream is better.
因为图1与图2是相对应的流程,内容可相互参考,因此重复内容不多赘述。Since FIG. 1 and FIG. 2 are corresponding processes, the contents can be referred to each other, and thus the duplicate content is not described in detail.
以下,针对图1流程和图2流程进行举例。Hereinafter, the flow of FIG. 1 and the flow of FIG. 2 will be exemplified.
请参见图3,终端作为媒体发送端,会议中心作为媒体接收端,媒体网关用于在媒体发送端和媒体接收端之间进行转发。图3中的终端例如可以是UE,媒体网关例如可以是SBC(Session Border Controller,会话边界控制器),会议中心例如可以是MRF(图3中,AS和MRF可以位于同一实体中)。例如终端发送的是SVC格式的码流,会议中心支持的是AVC格式的码流。Referring to FIG. 3, the terminal serves as a media sending end, and the conference center serves as a media receiving end, and the media gateway is used to forward between the media sending end and the media receiving end. The terminal in FIG. 3 may be, for example, a UE, and the media gateway may be, for example, an SBC (Session Border Controller). The conference center may be, for example, an MRF (in FIG. 3, the AS and the MRF may be located in the same entity). For example, the terminal sends the code stream in the SVC format, and the conference center supports the code stream in the AVC format.
1、终端发起会话。即终端向媒体网关发送第一会话请求消息,用于请求向会议中心发送码流。1. The terminal initiates a session. That is, the terminal sends a first session request message to the media gateway for requesting to send the code stream to the conference center.
2、媒体网关收到第一会话请求消息后,向会议中心发送携带转换能力信息的第二会话请求消息。2. After receiving the first session request message, the media gateway sends a second session request message carrying the conversion capability information to the conference center.
转换能力信息例如包括:The conversion capability information includes, for example:
{{
{转换类型信息:SVC-AVC;SHVC-AVC;SHVC-HEVC;AVC-SVC;AVC-SHVC;HEVC-SHVC;NONE};{Conversion type information: SVC-AVC; SHVC-AVC; SHVC-HEVC; AVC-SVC; AVC-SHVC; HEVC-SHVC; NONE};
{按照预设层级转换的信息:最高策略,或平均策略,或最低策略};{Information converted by default level: highest strategy, or average strategy, or minimum strategy};
{转换级别信息:抽取与分辨率相关的数据包,或抽取与帧率相关的数据包}{Conversion level information: Extract resolution-related packets, or extract frame rate-related packets}
}}
3、会议中心接收第二会话请求消息。由于此时终端与会议中心之间的会话没有完全建立,因此会议中心可以根据会议中心的能力和当前的网络状态来作为选择码流转换信息的依据,例如会议中心可以根据会议中心的能力和当前的流量统计情况来作为依据。会议中心根据会议中心的能力和当前的网络状态,从转换能力信息中选择第一码流转换信息,向媒体网关发送携带第一码流转换信息的第二会话响应消息。3. The conference center receives the second session request message. Because the session between the terminal and the conference center is not completely established at this time, the conference center can be used as the basis for selecting the code stream conversion information according to the capability of the conference center and the current network state. For example, the conference center can be based on the capabilities of the conference center and the current The traffic statistics are used as a basis. The conference center selects the first code stream conversion information from the conversion capability information according to the capability of the conference center and the current network state, and sends a second session response message carrying the first code stream conversion information to the media gateway.
例如,第一码流转换信息包括: For example, the first stream conversion information includes:
{{
{转换类型信息:SVC-AVC};{Conversion type information: SVC-AVC};
{按照预设层级转换的信息:最高策略};{Information converted by default level: highest strategy};
}}
4、媒体网关接收第二会话响应消息后,向会议中心发送携带第一码流转换信息的第三会话请求信息。After receiving the second session response message, the media gateway sends the third session request information carrying the first code stream conversion information to the conference center.
5、会议中心接收第三会话请求消息后,向媒体网关发送第三会话响应消息,第三会话响应消息表明会议中心接受第一码流转换信息。After receiving the third session request message, the conference center sends a third session response message to the media gateway, where the third session response message indicates that the conference center accepts the first code stream conversion information.
6、媒体网关接收第三会话响应消息后,向终端发送第一会话响应消息,第一会话响应消息携带的码流的属性信息中,对SVC码流的相关SDP(Session Description Protocol,会话描述协议)属性以第一码流转换信息为准,对相应其他编解码相关的SDP属性以从会议中心收到的对应的编解码的属性协商为准。After receiving the third session response message, the media gateway sends a first session response message to the terminal, and the SDP (Session Description Protocol) is associated with the SVC code stream in the attribute information of the code stream carried in the first session response message. The attribute is based on the first stream conversion information, and the SDP attributes related to the other codecs are negotiated with the corresponding codec attributes received from the conference center.
7、媒体网关收到终端针对第一会话响应消息的响应后,与终端之间的会话通道建立,终端可以发送码流。7. After receiving the response of the terminal to the first session response message, the media gateway establishes a session channel with the terminal, and the terminal can send the code stream.
一旦媒体通道建立,码流正常发送,终端1就会向媒体网关2发送码流,媒体网关2接收SVC格式的码流后,按照转换级别信息将其转换为AVC格式的码流,再将AVC格式的码流发送给终端2。此时终端在发送码流的同时,也可以发送RTCP消息(其中携带SR)来指示一定时间周期内发送的数据包的数量。同时,作为媒体接收端的会议中心可以发送RTCP消息(其中携带RR)给终端,该RR会携带会议中心在相应周期内从终端收到的数据包的数量。Once the media channel is established, the code stream is normally transmitted, and the terminal 1 sends the code stream to the media gateway 2. After receiving the code stream in the SVC format, the media gateway 2 converts the code stream into the AVC format code stream according to the conversion level information, and then the AVC. The formatted code stream is sent to the terminal 2. At this time, the terminal may also send an RTCP message (which carries the SR) to indicate the number of data packets sent in a certain period of time while transmitting the code stream. At the same time, the conference center, which is the receiving end of the media, can send an RTCP message (which carries the RR) to the terminal, and the RR carries the number of data packets received by the conference center from the terminal in the corresponding period.
8-9、会议中心根据网络状态(例如根据RTCP消息)来调整码流转换信息。8-9. The conference center adjusts the code stream conversion information according to the network status (for example, according to the RTCP message).
RTCP消息包含SR和RR,SR包含发送的数据包的数量,RR包含接收的数据包的数量。会议中心可根据SR和RR计算丢包率,然后再结合流量统计和对端能力等信息,确定是否要调整码流转换信息。如果要调整码流转换信息,则将调整后的码流转换信息通知媒体网关。The RTCP message contains the SR and the RR, the SR contains the number of packets sent, and the RR contains the number of packets received. The conference center can calculate the packet loss rate based on the SR and the RR, and then combine the traffic statistics and the peer capability to determine whether to adjust the code stream conversion information. If the code stream conversion information is to be adjusted, the adjusted code stream conversion information is notified to the media gateway.
10-11、若媒体网关接收到新的码流转换信息,则根据新的码流转换信息,向会议中心发起会话重协商。最终会话更新。如图3所示,图3中的AVC码流1表明是按照第一码流转换信息转换后得到的AVC码流,AVC码流2表明是按照第二码流转换信息(即调整后的码流转换信息)转换后得到的AVC码流。10-11. If the media gateway receives the new code stream conversion information, initiates session re-negotiation to the conference center according to the new code stream conversion information. The final session is updated. As shown in FIG. 3, the AVC code stream 1 in FIG. 3 indicates that the AVC code stream is converted according to the first code stream conversion information, and the AVC code stream 2 indicates that the information is converted according to the second code stream (ie, the adjusted code). Stream conversion information) AVC code stream obtained after conversion.
在该实施例中,媒体接收端可以向媒体网关发送码流的属性信息,媒体网关可以根据码流的属性信息确定第一码流转换信息,然后媒体网关可以根据第一码流转换信息进行码流转换,即将媒体发送端发送的第一格式的码流转换为第二格式的码流,第二格式的码流是媒体接收端所支持的,因此媒体接收端能够接收第二格式的码流。相当于,媒体网关是在考虑了媒体接收端的情况之后确定的第一码流转换信息,则最后得到的码流也就是媒体接收端所需要的码流,能够尽量符合媒体接收端的需求。In this embodiment, the media receiving end may send the attribute information of the code stream to the media gateway, and the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then the media gateway may perform the code according to the first code stream conversion information. The stream conversion is to convert the code stream of the first format sent by the media sending end into the code stream of the second format, and the code stream of the second format is supported by the media receiving end, so the media receiving end can receive the code stream of the second format. . Correspondingly, the media gateway is the first code stream conversion information determined after considering the situation of the media receiving end, and the finally obtained code stream is also the code stream required by the media receiving end, and can meet the requirements of the media receiving end as much as possible.
例如,媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流,则 媒体接收端可以确定第一码流转换信息,并将第一码流转换信息发送给媒体网关,则媒体网关可以根据第一码流转换信息,通知媒体发送端发送与第一码流转换信息相适应的SVC格式的码流,并将接收的SVC格式的码流转换为AVC格式的码流,之后再将AVC格式的码流发送给媒体接收端。这样,第一码流转换信息是媒体接收端确定的,基本能够较为真实地反映媒体接收端的需求,从而尽量保证媒体接收端能够接收自己所需要的码流。例如,如果媒体接收端的能力较强,或者如果媒体接收端的能力较强以及当前的网络状态也比较好,则第一码流转换信息中所指示的SVC格式的码流的层数可能会比较多,这样媒体接收端就能接收比较多的码流,有助于重建质量较好的视频。For example, the media sender sends the SVC format code stream, and the media receiver supports the AVC format code stream. The media receiving end may determine the first code stream conversion information, and send the first code stream conversion information to the media gateway, where the media gateway may notify the media sending end to send the first code stream conversion information according to the first code stream conversion information. Adapting the code stream of the SVC format, and converting the received SVC format code stream into the AVC format code stream, and then transmitting the AVC format code stream to the media receiving end. In this way, the first code stream conversion information is determined by the media receiving end, and can basically reflect the requirements of the media receiving end more realistically, so as to ensure that the media receiving end can receive the code stream that is needed by itself. For example, if the capability of the media receiving end is strong, or if the capability of the media receiving end is strong and the current network state is also good, the number of layers of the SVC format indicated in the first stream conversion information may be relatively large. So that the media receiver can receive more code streams, which helps to reconstruct better quality video.
请参见图4,在图3的基础上,会议中心还要将按照第二码流转换信息转换后得到的AVC码流发送给其他媒体接收端(即图4中的终端2)。图4中,媒体发送端称为终端1,终端1与会议中心之间的媒体网关称为媒体网关1,会议中心与终端2之间也要经过媒体网关的转发,该媒体网关称为媒体网关2,媒体网关2例如也是SBC。Referring to FIG. 4, on the basis of FIG. 3, the conference center also sends the AVC code stream obtained by converting the second code stream conversion information to other media receiving ends (ie, terminal 2 in FIG. 4). In FIG. 4, the media transmitting end is referred to as the terminal 1, the media gateway between the terminal 1 and the conference center is referred to as the media gateway 1, and the conference center and the terminal 2 are also forwarded by the media gateway, and the media gateway is referred to as a media gateway. 2. The media gateway 2 is also, for example, an SBC.
步骤1-11,可参考针对图3的描述,不多赘述。For the steps 1-11, reference may be made to the description for FIG. 3, and details are not described.
12、会议中心向终端2发起重协商请求消息。12. The conference center initiates a renegotiation request message to the terminal 2.
13、会议中心将按照第二码流转换信息转换得到的码流(即AVC码流2)转发给终端2。13. The conference center forwards the code stream (ie, AVC stream 2) converted according to the second stream conversion information to the terminal 2.
其中,步骤12中可以包括多个步骤,而会议中心向终端发起重协商请求消息、以请求向终端发送码流,可参考现有的实现过程,此处不多赘述。The step 12 may include multiple steps, and the conference center may initiate a renegotiation request message to the terminal to request to send the code stream to the terminal, and may refer to the existing implementation process, and details are not described herein.
在该实施例中,媒体接收端在接收AVC格式的码流后,还可以将接收的码流再转发给其他的终端,这样,媒体网关无需再专门把码流发送给这些终端,减少了终端与媒体网关之间的信息交互过程,减轻媒体网关的负担。In this embodiment, after receiving the code stream in the AVC format, the media receiving end may further forward the received code stream to other terminals, so that the media gateway does not need to specifically send the code stream to the terminals, thereby reducing the terminal. The process of information exchange with the media gateway reduces the burden on the media gateway.
其中,在会议中心作为媒体接收端和/或媒体发送端时(例如图3为会议中心作为媒体接收端的例子,图4为会议中心同时作为媒体接收端和媒体发送端的例子),为点对多点通信的示例,因为会议中心可以完成多点通信。Wherein, when the conference center is used as the media receiving end and/or the media sending end (for example, FIG. 3 is an example of a conference center as a media receiving end, FIG. 4 is an example of a conference center serving as a media receiving end and a media sending end at the same time), which is a point-to-multiple An example of point communication, because the conference center can complete multipoint communication.
请参见图5,终端1作为媒体发送端,终端2作为媒体接收端,媒体网关1和媒体网关2用于在媒体发送端和媒体接收端之间进行转发,以及,图5中还包括应用服务器。图5中的终端例如可以是UE,媒体网关例如可以是SBC(Session Border Controller,会话边界控制器)。例如终端1发送的是SVC格式的码流,终端2支持的是AVC格式的码流。图5为终端-终端的例子,即点对点通信的示例。Referring to FIG. 5, the terminal 1 serves as a media sending end, the terminal 2 serves as a media receiving end, the media gateway 1 and the media gateway 2 are used for forwarding between the media sending end and the media receiving end, and FIG. 5 further includes an application server. . The terminal in FIG. 5 may be, for example, a UE, and the media gateway may be, for example, an SBC (Session Border Controller). For example, the terminal 1 transmits a code stream in an SVC format, and the terminal 2 supports a code stream in an AVC format. FIG. 5 is an example of a terminal-terminal, that is, an example of point-to-point communication.
1、终端1向媒体网关2发送第一会话请求消息,请求向终端2发送码流。1. The terminal 1 sends a first session request message to the media gateway 2, requesting to send a code stream to the terminal 2.
2、媒体网关2收到第一会话请求消息后,向终端2发送第二会话请求消息。例如,媒体网关2收到第一会话请求消息后,可以直接将第一会话请求消息转发给终端2,在这种情况下,第二会话请求消息与第一会话请求消息是同一消息。2. After receiving the first session request message, the media gateway 2 sends a second session request message to the terminal 2. For example, after receiving the first session request message, the media gateway 2 may forward the first session request message to the terminal 2 directly. In this case, the second session request message is the same message as the first session request message.
3、终端2收到第二会话请求消息后,结合自身的能力,生成第二会话响应消息。例如,终端2因不支持SVC而无法识别第二会话请求消息中携带的SVC码流属性,所以在第二会话响应 消息中去掉SVC码流属性,并把第二会话响应消息发送给媒体网关2。3. After receiving the second session request message, the terminal 2 generates a second session response message according to its own capabilities. For example, the terminal 2 cannot identify the SVC stream attribute carried in the second session request message because the SVC is not supported, so the second session responds. The SVC stream attribute is removed from the message, and the second session response message is sent to the media gateway 2.
4、媒体网关2根据第二会话响应消息识别出终端2不支持SVC能力,则媒体网关根据存储的转换能力信息确定第一码流转换信息,且向终端2发送第三会话请求消息,第三会话请求消息中携带第一码流转换信息。例如,媒体网关2可以在第三会话请求消息中,将SVC码流的媒体属性修改为AVC码流的媒体属性。The media gateway 2 identifies that the terminal 2 does not support the SVC capability according to the second session response message, and the media gateway determines the first code stream conversion information according to the stored conversion capability information, and sends a third session request message to the terminal 2, and the third The session request message carries the first stream conversion information. For example, the media gateway 2 may modify the media attribute of the SVC code stream to the media attribute of the AVC code stream in the third session request message.
例如,转换能力信息包括:For example, conversion capability information includes:
{{
{转换类型信息:SVC-AVC;SHVC-AVC;SHVC-HEVC;AVC-SVC;AVC-SHVC;HEVC-SHVC;NONE};{Conversion type information: SVC-AVC; SHVC-AVC; SHVC-HEVC; AVC-SVC; AVC-SHVC; HEVC-SHVC; NONE};
{按照预设层级转换的信息:最高策略,或平均策略,或最低策略};{Information converted by default level: highest strategy, or average strategy, or minimum strategy};
{转换级别信息:抽取与分辨率相关的数据包,或抽取与帧率相关的数据包}{Conversion level information: Extract resolution-related packets, or extract frame rate-related packets}
}}
例如,第一码流转换信息包括:For example, the first stream conversion information includes:
{{
{转换类型信息:SVC-AVC};{Conversion type information: SVC-AVC};
{按照预设层级转换的信息:平均策略};{Information converted by default level: average strategy};
{转换级别信息:抽取与分辨率相关的数据包};{Conversion level information: extracting data packets related to resolution};
}}
5、终端2重新响应媒体网关2发送的第三会话请求消息,向媒体网关2回复第三会话响应消息。5. The terminal 2 re-responds to the third session request message sent by the media gateway 2, and replies to the media gateway 2 with a third session response message.
6、媒体网关2接收第三会话响应消息后,若第三会话响应消息表明终端2接受第一码流转换信息,则媒体网关2向终端发送第一会话响应消息。第一会话响应消息携带的码流的属性信息中,对SVC码流相关的SDP属性以第一码流转换信息为准,对其他编解码相关的SDP属性以从媒体网关2收到的对应的编解码的属性协商为准。After the media gateway 2 receives the third session response message, if the third session response message indicates that the terminal 2 accepts the first code stream conversion information, the media gateway 2 sends a first session response message to the terminal. In the attribute information of the code stream carried in the first session response message, the SDP attribute related to the SVC code stream is subject to the first code stream conversion information, and the SDP attributes related to other codecs are received from the media gateway 2 The attribute negotiation of the codec shall prevail.
7、一旦媒体通道建立,码流正常发送,终端1就会向媒体网关2发送码流,媒体网关2接收SVC格式的码流后,按照转换级别信息将其转换为AVC格式的码流,再将AVC格式的码流发送给终端2。且,终端1在向媒体网关2发送码流的同时,也可以发送RTCP消息(其中携带SR)来指示一定时间周期内发送的数据包的数量,同时作为媒体接收端的媒体网关2将RTCP消息(其中携带RR)发送给终端1,该RR会携带媒体网关2在相应周期从终端1收到的数据包的数量。7. Once the media channel is established, the code stream is normally transmitted, and the terminal 1 sends the code stream to the media gateway 2. After receiving the code stream in the SVC format, the media gateway 2 converts the code stream into the AVC format code stream according to the conversion level information, and then The code stream of the AVC format is transmitted to the terminal 2. Moreover, while transmitting the code stream to the media gateway 2, the terminal 1 may also send an RTCP message (which carries the SR) to indicate the number of data packets sent in a certain period of time, and at the same time, the media gateway 2 as the media receiving end will RTCP message ( The RR is sent to the terminal 1, and the RR carries the number of data packets received by the media gateway 2 from the terminal 1 in the corresponding period.
8-9、媒体网关2根据当前的网络状态(例如根据RTCP消息)来调整码流转换信息。8-9. The media gateway 2 adjusts the code stream conversion information according to the current network state (for example, according to the RTCP message).
RTCP消息包含SR和RR,SR包含发送的数据包的数量,RR包含接收的数据包的数量。会议中心可根据SR和RR计算丢包率,然后再结合流量统计和对端能力等信息,确定是否要调整码流转换信息。The RTCP message contains the SR and the RR, the SR contains the number of packets sent, and the RR contains the number of packets received. The conference center can calculate the packet loss rate based on the SR and the RR, and then combine the traffic statistics and the peer capability to determine whether to adjust the code stream conversion information.
若媒体网关2调整了码流转换信息,则根据新的码流转换信息,向终端2发起会话重协商。最终会话更新。如图5所示,图5中的AVC码流1表明是按照第一码流转换信息转换后 得到的AVC码流,AVC码流2表明是按照第二码流转换信息(即调整后的码流转换信息)转换后得到的AVC码流。If the media gateway 2 adjusts the code stream conversion information, the session re-negotiation is initiated to the terminal 2 according to the new code stream conversion information. The final session is updated. As shown in FIG. 5, the AVC code stream 1 in FIG. 5 indicates that the information is converted according to the first code stream conversion information. The obtained AVC code stream, AVC code stream 2 indicates an AVC code stream obtained by converting the second code stream conversion information (i.e., the adjusted code stream conversion information).
在该实施例中,媒体接收端(即终端2)为普通终端,例如媒体接收端的智能性较弱,不具备自己选择码流转换信息的能力,因此媒体网关可以根据媒体接收端所反馈的其自身的能力,从存储的转换能力信息中选择适合媒体接收端的码流转换信息,对媒体接收端的智能性要求较低,适用范围更为广泛。且媒体网关也是根据媒体接收端反馈的码流的属性信息来选择适合媒体接收端的码流转换信息,这样选择的第一码流转换信息可以尽量反映媒体接收端的需求,从而使得码流转换过程能够尽量按照媒体接收端的需求完成,提高媒体接收端的码流接收成功率。In this embodiment, the media receiving end (ie, the terminal 2) is an ordinary terminal. For example, the media receiving end has weak intelligence and does not have the capability of selecting the code stream conversion information. Therefore, the media gateway can respond to the media receiving end. The ability of the media to select the code stream conversion information suitable for the media receiving end from the stored conversion capability information has lower requirements on the intelligence of the media receiving end, and the scope of application is wider. And the media gateway also selects the code stream conversion information suitable for the media receiving end according to the attribute information of the code stream fed back by the media receiving end, so that the selected first code stream conversion information can reflect the requirement of the media receiving end as much as possible, thereby enabling the code stream conversion process to Try to complete the requirements of the media receiving end, and improve the success rate of the stream receiving at the receiving end of the media.
以下结合附图介绍本发明实施例中的设备。The device in the embodiment of the present invention is described below with reference to the accompanying drawings.
请参见图6,基于同一发明构思,本发明一个实施例提供一种媒体网关,该媒体网关可以包括确定模块601、更改模块602、转换模块603和发送模块604。Referring to FIG. 6 , based on the same inventive concept, an embodiment of the present invention provides a media gateway, which may include a determining module 601, a changing module 602, a converting module 603, and a sending module 604.
确定模块601,用于接收媒体接收端发送的码流的属性信息,并根据码流的属性信息确定第一码流转换信息;第一码流转换信息中包括转换类型信息和按层转换的模式的信息,转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;The determining module 601 is configured to receive attribute information of the code stream sent by the media receiving end, and determine the first code stream conversion information according to the attribute information of the code stream; the first code stream conversion information includes the conversion type information and the layer-by-layer conversion mode. Information, the conversion type information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
更改模块602,用于根据按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为媒体接收端发送的属性信息,并将修改后的属性信息发送给媒体发送端;The change module 602 is configured to modify the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and send the modified attribute information to the media sending end;
转换模块603,用于接收媒体发送端发送的第一格式的码流,并将第一格式的码流转换为第二格式的码流;第一格式的码流为媒体发送端根据修改后的属性信息发送的,第一格式为多层编码格式,第二格式为单层编码格式;The converting module 603 is configured to receive a code stream of a first format sent by the media sending end, and convert the code stream of the first format into a code stream of the second format; the code stream of the first format is modified by the media sending end. The attribute information is sent, the first format is a multi-layer encoding format, and the second format is a single layer encoding format;
发送模块604,用于将第二格式的码流发送给媒体接收端。The sending module 604 is configured to send the code stream in the second format to the media receiving end.
在本发明另一实施例中,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由SVC格式转换为AVC格式的信息、由SHVC格式转换为AVC格式的信息、及由SHVC格式转换为HEVC格式的信息中的至少一种。In another embodiment of the present invention, the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format includes: information converted from the SVC format to the AVC format, information converted from the SHVC format to the AVC format, And at least one of information converted from the SHVC format to the HEVC format.
在本发明另一实施例中,按层转换的模式的信息包括按照预设层级转换的信息;In another embodiment of the present invention, the information of the mode converted by layer includes information converted according to a preset level;
转换模块603用于接收媒体发送端发送的第一格式的码流,具体包括:The conversion module 603 is configured to receive the code stream in the first format sent by the media sending end, and specifically includes:
接收媒体发送端发送的预设层级的码流,预设层级的码流的格式为第一格式。The code stream of the preset level sent by the sending end of the media is received, and the format of the code stream of the preset level is the first format.
在本发明另一实施例中,转换模块603用于将第一格式的码流转换为第二格式的码流,具体包括:In another embodiment of the present invention, the converting module 603 is configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
将预设层级的码流转换为第二格式的码流。The code stream of the preset level is converted into the code stream of the second format.
在本发明另一实施例中,第一码流转换信息还包括转换级别信息,为:抽取与帧率相关的数据包的信息;In another embodiment of the present invention, the first code stream conversion information further includes conversion level information, which is: extracting information about a data packet related to a frame rate;
转换模块603用于将第一格式的码流转换为第二格式的码流,具体包括:The converting module 603 is configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
按照转换级别信息,从预设层级的码流中抽取与帧率相关的数据包; Extracting a frame rate-related data packet from a code stream of a preset level according to conversion level information;
将抽取的与帧率相关的数据包转换为第二格式的码流。The extracted frame rate related data packet is converted into a code stream of the second format.
在本发明另一实施例中,第一码流转换信息还包括转换级别信息,为:抽取与分辨率相关的数据包的信息;In another embodiment of the present invention, the first code stream conversion information further includes conversion level information, which is: extracting information about a resolution-related data packet;
转换模块603用于将第一格式的码流转换为第二格式的码流,具体包括:The converting module 603 is configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
按照转换级别信息,从预设层级的码流中抽取与分辨率相关的数据包;Extracting the resolution-related data packet from the code stream of the preset level according to the conversion level information;
将抽取的与分辨率相关的数据包转换为第二格式的码流。The extracted resolution-related data packet is converted into a code stream of the second format.
在本发明另一实施例中,确定模块601用于根据码流的属性信息确定第一码流转换信息,具体包括:In another embodiment of the present invention, the determining module 601 is configured to determine the first code stream conversion information according to the attribute information of the code stream, and specifically includes:
根据码流的属性信息以及转换能力信息确定第一码流转换信息;Determining the first code stream conversion information according to the attribute information of the code stream and the conversion capability information;
其中,码流的属性信息用于指示媒体接收端支持的码流的属性信息;或The attribute information of the code stream is used to indicate attribute information of the code stream supported by the media receiving end; or
码流的属性信息用于指示第一码流转换信息;The attribute information of the code stream is used to indicate the first code stream conversion information;
其中,转换能力信息包括转换类型信息及按层转换的模式的信息,其中,按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, wherein the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
在本发明另一实施例中,转换能力信息还包括转换级别信息;其中:In another embodiment of the present invention, the conversion capability information further includes conversion level information; wherein:
转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
本发明实施例中的设备是与如前描述的方法相应的设备。例如媒体网关可以是图1-图5中介绍的媒体网关,因此,媒体网关中每个模块所实现的功能,以及一些实施细节等,可参考方法部分的描述。The device in the embodiment of the present invention is a device corresponding to the method as described above. For example, the media gateway may be the media gateway described in FIG. 1 to FIG. 5. Therefore, the functions implemented by each module in the media gateway, as well as some implementation details, may be referred to the description of the method part.
在该实施例中,媒体网关在确定第一码流转换信息后,可以根据第一码流转换信息进行码流转换,再将转换后的码流发送给媒体接收端,使得媒体接收端可以接收自身能够识别的码流,且第一码流转换信息是媒体网关通过媒体接收端发送的码流的属性信息确定的,因此转换后的码流能够尽量符合媒体接收端的需求。In this embodiment, after determining the first code stream conversion information, the media gateway may perform code stream conversion according to the first code stream conversion information, and then send the converted code stream to the media receiving end, so that the media receiving end can receive The code stream that can be identified by itself, and the first code stream conversion information is determined by the media gateway through the attribute information of the code stream sent by the media receiving end, so that the converted code stream can meet the requirements of the media receiving end as much as possible.
媒体网关可以根据媒体接收端的需求来进行码流的转换,媒体网关的智能性较强。The media gateway can perform code stream conversion according to the requirements of the media receiving end, and the media gateway has strong intelligence.
请参见图7,基于同一发明构思,本发明一个实施例提供一种媒体接收端,该媒体接收端例如可以是会议中心,或者也可以是其他普通终端。媒体接收端可以包括发送模块701和接收模块702。Referring to FIG. 7, an embodiment of the present invention provides a media receiving end, which may be, for example, a conference center, or other common terminals. The media receiving end may include a sending module 701 and a receiving module 702.
发送模块701,用于向媒体网关发送码流的属性信息,码流的属性信息用于确定第一码流转换信息;第一码流转换信息中包括转换类型信息和按层转换的模式的信息,转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;The sending module 701 is configured to send the attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information; the first code stream conversion information includes the conversion type information and the information of the layer-by-layer conversion mode. The conversion type information includes information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
接收模块702,用于接收媒体网关发送的第二格式的码流;第二格式的码流为媒体网关对根据第一码流转换信息接收的第一格式的码流转换得到的。The receiving module 702 is configured to receive a code stream in a second format sent by the media gateway, where the code stream in the second format is obtained by converting, by the media gateway, a code stream in a first format received according to the first code stream conversion information.
在本发明另一实施例中,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由SVC格式转换为AVC格式的信息、由SHVC格式转换为AVC格式的信息、及由SHVC格式转 换为HEVC格式的信息中的至少一种。In another embodiment of the present invention, the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format includes: information converted from the SVC format to the AVC format, information converted from the SHVC format to the AVC format, And transferred by SHVC format Switch to at least one of the HEVC format information.
在本发明另一实施例中,媒体接收端还包括确定模块;In another embodiment of the present invention, the media receiving end further includes a determining module;
接收模块702还用于:在发送模块701向媒体网关发送码流的属性信息之前,接收媒体网关发送的转换能力信息;The receiving module 702 is further configured to: before the sending module 701 sends the attribute information of the code stream to the media gateway, receive the conversion capability information sent by the media gateway;
确定模块用于:根据转换能力信息确定码流的属性信息,码流的属性信息用于指示第一码流转换信息;The determining module is configured to: determine attribute information of the code stream according to the conversion capability information, where the attribute information of the code stream is used to indicate the first code stream conversion information;
其中,转换能力信息包括转换类型信息及按层转换的模式的信息,按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, and the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
在本发明另一实施例中,转换能力信息还包括转换级别信息;其中:In another embodiment of the present invention, the conversion capability information further includes conversion level information; wherein:
转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
本发明实施例中的媒体接收端可以是图1-图5中介绍的媒体接收端,因此,媒体接收端中每个模块所实现的功能,以及一些实施细节等,可参考方法部分的描述。The media receiving end in the embodiment of the present invention may be the media receiving end described in FIG. 1 to FIG. 5. Therefore, the functions implemented by each module in the media receiving end, as well as some implementation details, may be referred to the description of the method part.
在该实施例中,媒体接收端可以向媒体网关发送码流的属性信息,从而媒体网关可以根据码流的属性信息确定第一码流转换信息,再将根据第一码流转换信息进行码流转换后得到的码流发送给媒体接收端,使得媒体接收端可以接收自身能够识别的码流,因为第一码流转换信息是媒体网关通过媒体接收端发送的码流的属性信息确定的,因此转换后的码流能够尽量符合媒体接收端的需求。In this embodiment, the media receiving end may send the attribute information of the code stream to the media gateway, so that the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then perform the code stream according to the first code stream conversion information. The code stream obtained after the conversion is sent to the media receiving end, so that the media receiving end can receive the code stream that can be recognized by the media, because the first code stream conversion information is determined by the media gateway through the attribute information of the code stream sent by the media receiving end, The converted code stream can match the needs of the media receiver as much as possible.
媒体接收端可以通过向媒体网关发送码流的属性信息来告知媒体网关自己需要什么样的码流,媒体接收端的主动性较强,接收的码流的利用率也较高。The media receiving end can send the attribute information of the code stream to the media gateway to inform the media gateway of what kind of code stream it needs. The media receiving end has a strong initiative, and the received code stream has a high utilization rate.
请参见图8,基于同一发明构思以及上述各实施例,本发明一个实施例还提供一种媒体网关,该媒体网关可以包括存储器801、处理器802、接收器803和发送器804。Referring to FIG. 8 , based on the same inventive concept and the above embodiments, an embodiment of the present invention further provides a media gateway, which may include a memory 801, a processor 802, a receiver 803, and a transmitter 804.
处理器802具体可以是中央处理器或ASIC(Application Specific Integrated Circuit,特定应用集成电路),可以是一个或多个用于控制程序执行的集成电路,可以是使用FPGA(Field Programmable Gate Array,现场可编程门阵列)开发的硬件电路,可以是基带芯片。存储器801的数量可以是一个或多个。存储器801可以包括ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)和磁盘存储器。接收器803和发送器804可以属于射频系统,接收器803和发送器804用于与外部设备进行网络通信,具体可以通过以太网、无线接入网、无线局域网等网络与外部设备进行通信。接收器803和发送器804可以是物理上相互独立的两个元件,也可以是物理上的同一个元件。The processor 802 may be a central processing unit or an ASIC (Application Specific Integrated Circuit), and may be one or more integrated circuits for controlling program execution, and may be an FPGA (Field Programmable Gate Array). The hardware circuit developed by the programming gate array can be a baseband chip. The number of memories 801 may be one or more. The memory 801 may include a ROM (Read Only Memory), a RAM (Random Access Memory), and a disk storage. The receiver 803 and the transmitter 804 may belong to a radio frequency system, and the receiver 803 and the transmitter 804 are configured to perform network communication with an external device, and specifically, may communicate with an external device through a network such as an Ethernet, a radio access network, or a wireless local area network. Receiver 803 and transmitter 804 may be physically separate components or may be physically identical components.
这些存储器801、接收器803和发送器804可以通过总线与处理器802相连接,或者也可以通过专门的连接线分别与处理器802连接。These memories 801, receivers 803, and transmitters 804 may be coupled to the processor 802 via a bus, or may be coupled to the processor 802 via dedicated connection lines, respectively.
通过对处理器802进行设计编程,将前述所示的方法所对应的代码固化到芯片内,从而使芯片在运行时能够执行前述实施例中的所示的方法。如何对处理器802进行设计编程为本 领域技术人员所公知的技术,这里不再赘述。By programming the processor 802, the code corresponding to the method shown above is solidified into the chip, thereby enabling the chip to perform the method shown in the previous embodiment while it is running. How to design and program the processor 802 Techniques well known to those skilled in the art will not be described here.
在本发明实施例中,In the embodiment of the present invention,
存储器801,用于存储处理器802执行任务所需的指令;The memory 801 is configured to store an instruction required by the processor 802 to perform a task;
接收器803,用于接收媒体接收端发送的码流的属性信息;The receiver 803 is configured to receive attribute information of a code stream sent by the media receiving end.
处理器802,用于执行存储器801存储的指令,根据码流的属性信息确定第一码流转换信息;根据按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为媒体接收端发送的属性信息,并通过发送器804将修改后的属性信息发送给媒体发送端;第一码流转换信息中包括转换类型信息和按层转换的模式的信息,转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;The processor 802 is configured to execute the instruction stored in the memory 801, determine the first code stream conversion information according to the attribute information of the code stream, and modify the attribute information of the code stream sent by the media sending end to the media according to the information of the layer-by-layer conversion mode. The attribute information sent by the receiving end is sent to the media sending end by the sender 804. The first stream converting information includes the conversion type information and the layer-by-layer conversion mode information, and the conversion type information includes The code stream of the layer coding format is converted into the information of the code stream of the single layer coding format;
接收器803,还用于接收媒体发送端发送的第一格式的码流;The receiver 803 is further configured to receive a code stream in a first format sent by the media sending end.
处理器802,还用于将第一格式的码流转换为第二格式的码流,并通过发送器804将第二格式的码流发送给媒体接收端;第一格式的码流为媒体发送端根据修改后的属性信息发送的,第一格式为多层编码格式,第二格式为单层编码格式。The processor 802 is further configured to convert the code stream in the first format into the code stream in the second format, and send the code stream in the second format to the media receiving end by using the transmitter 804; the code stream in the first format is sent by the media. According to the modified attribute information, the first format is a multi-layer encoding format, and the second format is a single layer encoding format.
可选的,在本发明另一实施例中,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由SVC格式转换为AVC格式的信息、由SHVC格式转换为AVC格式的信息、及由SHVC格式转换为HEVC格式的信息中的至少一种。Optionally, in another embodiment of the present invention, the information of the code stream converted into the single layer coding format by the code stream of the multi-layer coding format includes: information converted from the SVC format to the AVC format, and converted from the SHVC format to the AVC. At least one of format information and information converted from the SHVC format to the HEVC format.
可选的,在本发明另一实施例中,按层转换的模式的信息包括按照预设层级转换的信息;Optionally, in another embodiment of the present invention, the information of the mode converted by layer includes information converted according to a preset level;
接收器803用于接收媒体发送端发送的第一格式的码流,具体包括:The receiver 803 is configured to receive the code stream in the first format sent by the media sending end, and specifically includes:
接收媒体发送端发送的预设层级的码流,预设层级的码流的格式为第一格式。The code stream of the preset level sent by the sending end of the media is received, and the format of the code stream of the preset level is the first format.
可选的,在本发明另一实施例中,处理器802还用于将第一格式的码流转换为第二格式的码流,具体包括:Optionally, in another embodiment of the present invention, the processor 802 is further configured to convert the code stream of the first format into the code stream of the second format, specifically:
将预设层级的码流转换为第二格式的码流。The code stream of the preset level is converted into the code stream of the second format.
可选的,在本发明另一实施例中,第一码流转换信息还包括转换级别信息,为:抽取与帧率相关的数据包的信息;Optionally, in another embodiment of the present invention, the first code stream conversion information further includes conversion level information, which is: extracting information about a data packet related to a frame rate;
处理器802还用于将第一格式的码流转换为第二格式的码流,具体包括:The processor 802 is further configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
按照转换级别信息,从预设层级的码流中抽取与帧率相关的数据包;Extracting a frame rate-related data packet from a code stream of a preset level according to conversion level information;
将抽取的与帧率相关的数据包转换为第二格式的码流。The extracted frame rate related data packet is converted into a code stream of the second format.
可选的,在本发明另一实施例中,第一码流转换信息还包括转换级别信息,为:抽取与分辨率相关的数据包的信息;Optionally, in another embodiment of the present invention, the first code stream conversion information further includes conversion level information, which is: extracting information about a resolution-related data packet;
处理器802还用于将第一格式的码流转换为第二格式的码流,具体包括:The processor 802 is further configured to convert the code stream in the first format into the code stream in the second format, and specifically includes:
按照转换级别信息,从预设层级的码流中抽取与分辨率相关的数据包;Extracting the resolution-related data packet from the code stream of the preset level according to the conversion level information;
将抽取的与分辨率相关的数据包转换为第二格式的码流。The extracted resolution-related data packet is converted into a code stream of the second format.
可选的,在本发明另一实施例中,处理器802用于根据码流的属性信息确定第一码流转换信息,具体包括: Optionally, in another embodiment of the present invention, the processor 802 is configured to determine, according to the attribute information of the code stream, the first code stream conversion information, specifically:
根据码流的属性信息以及转换能力信息确定第一码流转换信息;Determining the first code stream conversion information according to the attribute information of the code stream and the conversion capability information;
其中,码流的属性信息用于指示媒体接收端支持的码流的属性信息;或The attribute information of the code stream is used to indicate attribute information of the code stream supported by the media receiving end; or
码流的属性信息用于指示所述第一码流转换信息;The attribute information of the code stream is used to indicate the first code stream conversion information;
其中,转换能力信息包括转换类型信息及按层转换的模式的信息,其中,按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, wherein the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
可选的,在本发明另一实施例中,转换能力信息还包括转换级别信息;其中:Optionally, in another embodiment of the present invention, the conversion capability information further includes conversion level information, where:
转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
请参见图9,基于同一发明构思以及上述各实施例,本发明一个实施例还提供一种媒体接收端,该媒体接收端可以包括存储器901、处理器902、接收器903和发送器904。Referring to FIG. 9 , based on the same inventive concept and the foregoing embodiments, an embodiment of the present invention further provides a media receiving end, where the media receiving end may include a memory 901, a processor 902, a receiver 903, and a transmitter 904.
处理器902具体可以是中央处理器或ASIC,可以是一个或多个用于控制程序执行的集成电路,可以是使用FPGA开发的硬件电路,可以是基带芯片。存储器901的数量可以是一个或多个。存储器901可以包括ROM、RAM和磁盘存储器。接收器903和发送器904可以属于射频系统,接收器903和发送器904用于与外部设备进行网络通信,具体可以通过以太网、无线接入网、无线局域网等网络与外部设备进行通信。接收器903和发送器904可以是物理上相互独立的两个元件,也可以是物理上的同一个元件。The processor 902 may be a central processing unit or an ASIC, and may be one or more integrated circuits for controlling program execution, may be hardware circuits developed using an FPGA, and may be baseband chips. The number of memories 901 may be one or more. The memory 901 may include a ROM, a RAM, and a disk storage. The receiver 903 and the transmitter 904 may belong to a radio frequency system, and the receiver 903 and the transmitter 904 are configured to perform network communication with an external device, and specifically, may communicate with an external device through a network such as an Ethernet, a radio access network, or a wireless local area network. Receiver 903 and transmitter 904 may be physically separate components or may be physically identical components.
这些存储器901、接收器903和发送器904可以通过总线与处理器902相连接,或者也可以通过专门的连接线分别与处理器902连接。These memories 901, receivers 903, and transmitters 904 may be coupled to the processor 902 via a bus, or may be coupled to the processor 902 via dedicated connection lines, respectively.
通过对处理器902进行设计编程,将前述所示的方法所对应的代码固化到芯片内,从而使芯片在运行时能够执行前述实施例中的所示的方法。如何对处理器902进行设计编程为本领域技术人员所公知的技术,这里不再赘述。By programming the processor 902, the code corresponding to the method shown above is solidified into the chip, thereby enabling the chip to perform the method shown in the previous embodiment while it is running. How to design and program the processor 902 is a technique known to those skilled in the art, and details are not described herein again.
在本发明实施例中,In the embodiment of the present invention,
存储器901,用于存储处理器902执行任务所需的指令;The memory 901 is configured to store an instruction required by the processor 902 to perform a task;
处理器902,用于执行存储器901存储的指令,通过发送器904向媒体网关发送码流的属性信息,码流的属性信息用于确定第一码流转换信息;第一码流转换信息中包括转换类型信息和按层转换的模式的信息,转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;The processor 902 is configured to execute the instruction stored in the memory 901, and send the attribute information of the code stream to the media gateway by using the transmitter 904, where the attribute information of the code stream is used to determine the first code stream conversion information; the first code stream conversion information includes Converting type information and information of a mode converted by layer, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
接收器903,用于接收媒体网关发送的第二格式的码流;第二格式的码流为媒体网关对根据第一码流转换信息接收的第一格式的码流转换得到的。The receiver 903 is configured to receive a code stream in a second format sent by the media gateway, where the code stream in the second format is obtained by converting, by the media gateway, a code stream in a first format received according to the first code stream conversion information.
可选的,在本发明另一实施例中,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由SVC格式转换为AVC格式的信息、由SHVC格式转换为AVC格式的信息、及由SHVC格式转换为HEVC格式的信息中的至少一种。Optionally, in another embodiment of the present invention, the information of the code stream converted into the single layer coding format by the code stream of the multi-layer coding format includes: information converted from the SVC format to the AVC format, and converted from the SHVC format to the AVC. At least one of format information and information converted from the SHVC format to the HEVC format.
可选的,在本发明另一实施例中,Optionally, in another embodiment of the present invention,
接收器903还用于:在处理器902通过发送器904向媒体网关发送码流的属性信息之前, 接收媒体网关发送的转换能力信息;The receiver 903 is further configured to: before the processor 902 sends the attribute information of the code stream to the media gateway through the transmitter 904, Receiving conversion capability information sent by the media gateway;
处理器902还用于:根据转换能力信息确定码流的属性信息,码流的属性信息用于指示第一码流转换信息;The processor 902 is further configured to: determine attribute information of the code stream according to the conversion capability information, where the attribute information of the code stream is used to indicate the first code stream conversion information;
其中,转换能力信息包括转换类型信息及按层转换的模式的信息,按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes information of the conversion type information and the mode of the layer-by-layer conversion, and the information of the mode of the layer-by-layer conversion includes information converted according to a preset level.
可选的,在本发明另一实施例中,转换能力信息还包括转换级别信息;其中:Optionally, in another embodiment of the present invention, the conversion capability information further includes conversion level information, where:
转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
基于同一发明构思以及上述各实施例,本发明一个实施例提供一种媒体系统,该媒体系统包括前述实施例中介绍的媒体网关以及会议中心。Based on the same inventive concept and the foregoing embodiments, an embodiment of the present invention provides a media system, where the media system includes the media gateway and the conference center introduced in the foregoing embodiments.
在媒体系统中,媒体网关实现码流转换,会议中心可以作为媒体发送端,在作为媒体发送端时,会议中心将码流发送给媒体网关,媒体网关按照如前实施例提供的方法对码流进行转换后,将转换后的码流发送给媒体接收端。在会议中心作为媒体接收端时,媒体网关按照如前实施例提供的方法将媒体发送端发送的码流进行转换后,将转换后的码流发送给会议中心。In the media system, the media gateway implements code stream conversion, and the conference center can serve as a media sending end. When acting as a media sending end, the conference center sends the code stream to the media gateway, and the media gateway performs the code stream according to the method provided in the previous embodiment. After the conversion, the converted code stream is sent to the media receiving end. When the conference center is used as the media receiving end, the media gateway converts the code stream sent by the media sending end according to the method provided in the previous embodiment, and then sends the converted code stream to the conference center.
在应用时,媒体系统中的会议中心可以只作为媒体发送端,或者可以只作为媒体接收端,或者也可以同时作为媒体发送端和媒体接收端,本发明对此不作限制。In the application, the conference center in the media system can be used only as the media sending end, or can be used only as the media receiving end, or can also serve as the media sending end and the media receiving end at the same time, which is not limited by the present invention.
关于媒体系统的工作过程,在如前实施例中已有介绍。The working process of the media system has been described in the previous embodiment.
在媒体系统中,媒体接收端可以向媒体网关发送码流的属性信息,从而媒体网关可以根据码流的属性信息确定第一码流转换信息,再将根据第一码流转换信息进行码流转换后得到的码流发送给媒体接收端,使得媒体接收端可以接收自身能够识别的码流,因为第一码流转换信息是媒体网关通过媒体接收端发送的码流的属性信息确定的,因此转换后的码流能够尽量符合媒体接收端的需求。In the media system, the media receiving end may send the attribute information of the code stream to the media gateway, so that the media gateway may determine the first code stream conversion information according to the attribute information of the code stream, and then perform code stream conversion according to the first code stream conversion information. The obtained code stream is sent to the media receiving end, so that the media receiving end can receive the code stream that can be recognized by the media, because the first code stream conversion information is determined by the media gateway through the attribute information of the code stream sent by the media receiving end, and thus the conversion The subsequent stream can be as close as possible to the needs of the media receiver.
媒体接收端可以通过向媒体网关发送码流的属性信息来告知媒体网关自己需要什么样的码流,媒体接收端的主动性较强,接收的码流的利用率也较高。媒体网关可以在考虑媒体接收端的情况后进行码流转换,能够尽量得到媒体接收端所需要的码流,媒体网关对信息的处理能力较强,智能性较高。The media receiving end can send the attribute information of the code stream to the media gateway to inform the media gateway of what kind of code stream it needs. The media receiving end has a strong initiative, and the received code stream has a high utilization rate. The media gateway can perform code stream conversion after considering the situation of the media receiving end, and can obtain the code stream required by the media receiving end as much as possible, and the media gateway has strong processing capability and high intelligence.
通过提供媒体系统,能够完成码流的转换,使得转换后的码流尽量符合媒体接收端的需求。同时,媒体系统的工作方式较为简单,在实际应用中,应用范围可以比较广泛。By providing a media system, the code stream can be converted, so that the converted code stream is as close as possible to the needs of the media receiving end. At the same time, the working mode of the media system is relatively simple. In practical applications, the scope of application can be relatively wide.
本发明实施例中提供了码流转换信息(即第一码流转换信息),媒体网关在确定第一码流转换信息后,可以根据第一码流转换信息中的按层转换的模式信息修改媒体发送端发送的码流的属性信息,并将修改后的属性信息通知媒体发送端,这样媒体发送端会根据修改后的码流的属性信息向媒体网关发送第一格式的码流,媒体发送端发送的码流也就是媒体网关所请求的码流,符合媒体接收端的需求,媒体网关可以直接将第一格式的码流转换为第二格式的 码流,第二格式的码流是媒体接收端所支持的,因此媒体接收端能够接收第二格式的码流。In the embodiment of the present invention, the code stream conversion information (that is, the first code stream conversion information) is provided, and after determining the first code stream conversion information, the media gateway may modify the layer-by-layer conversion mode information in the first code stream conversion information. The attribute information of the code stream sent by the media sending end, and notifying the media sending end of the modified attribute information, so that the media sending end sends the code stream of the first format to the media gateway according to the attribute information of the modified code stream, and the media sending The code stream sent by the terminal is also the code stream requested by the media gateway, which meets the requirements of the media receiving end, and the media gateway can directly convert the code stream of the first format into the second format. The code stream, the code stream of the second format is supported by the media receiving end, so the media receiving end can receive the code stream of the second format.
这样,媒体接收端具体接收码流中的哪些部分,可以通过码流的属性信息来通知媒体网关,可以接收尽量多的码流,尽量避免码流的丢失,增加媒体接收端的信息接收能力和信息接收量,此外,因为接收的码流较多,也就是接收的视频信息较多,根据接收的码流重建的视频质量也就较好。In this way, the media receiving end specifically receives the parts of the code stream, and can notify the media gateway by using the attribute information of the code stream, can receive as many code streams as possible, try to avoid the loss of the code stream, and increase the information receiving capability and information of the media receiving end. The amount of reception, in addition, because the received code stream is more, that is, the received video information is more, the video quality reconstructed according to the received code stream is better.
例如媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流,则媒体网关可以将SVC格式的码流转换为AVC格式的码流,之后再将AVC格式的码流发送给媒体接收端。For example, the media sender sends the SVC format code stream, and the media receiver supports the AVC format code stream. The media gateway can convert the SVC format code stream into the AVC format code stream, and then the AVC format code. The stream is sent to the media receiver.
继续以媒体发送端发送的是SVC格式的码流,媒体接收端支持的是AVC格式的码流为例,相当于AVC终端除了能接收SVC终端发送的基础层的码流之外,还能够接收SVC终端发送的其他层(例如增强层)的码流,尽量避免码流的丢失,增加媒体接收端的信息接收能力和信息接收量,此外,因为接收的码流较多,也就是接收的视频信息较多,根据接收的码流重建的视频质量也就较好。The code stream in the SVC format is sent by the media sender, and the code stream in the AVC format is supported by the media receiver as an example. The AVC terminal can receive the code stream of the base layer sent by the SVC terminal. The code stream of other layers (such as the enhancement layer) sent by the SVC terminal tries to avoid the loss of the code stream, increases the information receiving capability and the information receiving amount of the media receiving end, and further, because the received code stream is more, that is, the received video information. More, the quality of the video reconstructed according to the received code stream is better.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional unit described above is exemplified. In practical applications, the above function assignment can be completed by different functional units as needed. The internal structure of the device is divided into different functional units to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit or unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个 人计算机,服务器,或者网络设备等)或processor(处理器)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. , including a number of instructions to make a computer device (can be a A human computer, server, or network device, or the like, or a processor, performs all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本发明的方法及其核心思想,不应理解为对本发明的限制。本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。 The above embodiments are only used to describe the technical solutions of the present application in detail, but the description of the above embodiments is only for helping to understand the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art will be able to devise variations or alternatives within the scope of the present invention within the scope of the present invention.

Claims (20)

  1. 一种码流发送方法,其特征在于,包括:A code stream sending method, comprising:
    媒体网关接收媒体接收端发送的码流的属性信息,并根据所述码流的属性信息确定第一码流转换信息;所述第一码流转换信息中包括转换类型信息和按层转换的模式的信息,所述转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;The media gateway receives the attribute information of the code stream sent by the media receiving end, and determines the first code stream conversion information according to the attribute information of the code stream; the first code stream conversion information includes a conversion type information and a layer-by-layer conversion mode. Information, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
    所述媒体网关根据所述按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为所述媒体接收端发送的属性信息,并将修改后的属性信息发送给媒体发送端;The media gateway modifies the attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer mode, and sends the modified attribute information to the media sending end. ;
    所述媒体网关接收所述媒体发送端发送的第一格式的码流,并将所述第一格式的码流转换为第二格式的码流;所述第一格式的码流为所述媒体发送端根据修改后的属性信息发送的,所述第一格式为多层编码格式,所述第二格式为单层编码格式;The media gateway receives the code stream of the first format sent by the media sending end, and converts the code stream of the first format into a code stream of the second format; the code stream of the first format is the media The sending end is sent according to the modified attribute information, where the first format is a multi-layer encoding format, and the second format is a single-layer encoding format;
    所述媒体网关将所述第二格式的码流发送给所述媒体接收端。The media gateway sends the code stream of the second format to the media receiving end.
  2. 如权利要求1所述的方法,其特征在于,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由可伸缩视频编码SVC格式转换为高级视频编码AVC格式的信息、由可伸缩的高效视频编码SHVC格式转换为AVC格式的信息、及由可伸缩的高效视频编码SHVC格式转换为高效视频编码HEVC格式的信息中的至少一种。The method according to claim 1, wherein the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format comprises: information converted from the scalable video encoding SVC format to the advanced video encoding AVC format. At least one of information converted from the scalable high-efficiency video coding SHVC format to the AVC format, and information converted from the scalable high-efficiency video coding SHVC format to the high-efficiency video coding HEVC format.
  3. 如权利要求1或2所述的方法,其特征在于,所述按层转换的模式的信息包括按照预设层级转换的信息;The method according to claim 1 or 2, wherein the information of the layer-by-layer conversion mode comprises information converted according to a preset level;
    所述媒体网关接收所述媒体发送端发送的第一格式的码流,包括:The media gateway receives the code stream in the first format sent by the media sending end, and includes:
    所述媒体网关接收所述媒体发送端发送的所述预设层级的码流,所述预设层级的码流的格式为所述第一格式。The media gateway receives the code stream of the preset level sent by the media sending end, and the format of the code stream of the preset level is the first format.
  4. 如权利要求3所述的方法,其特征在于,将所述第一格式的码流转换为第二格式的码流,包括:The method of claim 3, wherein converting the code stream of the first format to the code stream of the second format comprises:
    将所述预设层级的码流转换为所述第二格式的码流。Converting the code stream of the preset level into a code stream of the second format.
  5. 如权利要求3所述的方法,其特征在于,所述第一码流转换信息还包括转换级别信息,为:抽取与帧率相关的数据包的信息;The method according to claim 3, wherein the first code stream conversion information further comprises conversion level information, which is: extracting information of a data packet related to a frame rate;
    将所述第一格式的码流转换为第二格式的码流,包括:Converting the code stream of the first format into a code stream of the second format, including:
    按照所述转换级别信息,从所述预设层级的码流中抽取与帧率相关的数据包;Extracting, according to the conversion level information, a data packet related to a frame rate from a code stream of the preset level;
    将抽取的与帧率相关的数据包转换为所述第二格式的码流。The extracted frame rate related data packet is converted into the code stream of the second format.
  6. 如权利要求3所述的方法,其特征在于,所述第一码流转换信息还包括转换级别信息,为:抽取与分辨率相关的数据包的信息;The method according to claim 3, wherein the first code stream conversion information further comprises conversion level information, which is: extracting information of the data packet related to the resolution;
    将所述第一格式的码流转换为第二格式的码流,包括:Converting the code stream of the first format into a code stream of the second format, including:
    按照所述转换级别信息,从所述预设层级的码流中抽取与分辨率相关的数据包; Extracting, according to the conversion level information, a resolution-related data packet from the code stream of the preset level;
    将抽取的与分辨率相关的数据包转换为所述第二格式的码流。The extracted resolution-related data packet is converted into the code stream of the second format.
  7. 如权利要求1-6任一所述的方法,其特征在于,根据所述码流的属性信息确定第一码流转换信息,包括:The method according to any one of claims 1-6, wherein determining the first code stream conversion information according to the attribute information of the code stream comprises:
    根据所述码流的属性信息以及转换能力信息确定所述第一码流转换信息;Determining, according to the attribute information of the code stream and the conversion capability information, the first code stream conversion information;
    其中,所述码流的属性信息用于指示所述媒体接收端支持的码流的属性信息;或所述码流的属性信息用于指示所述第一码流转换信息;The attribute information of the code stream is used to indicate attribute information of a code stream supported by the media receiving end; or the attribute information of the code stream is used to indicate the first code stream conversion information;
    其中,所述转换能力信息包括所述转换类型信息及所述按层转换的模式的信息,所述按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, and the information of the layer-by-layer conversion mode includes information converted according to a preset level.
  8. 如权利要求7所述的方法,其特征在于,所述转换能力信息还包括转换级别信息;其中:The method of claim 7, wherein the conversion capability information further comprises conversion level information; wherein:
    所述转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  9. 一种媒体网关,其特征在于,包括:A media gateway, comprising:
    确定模块,用于接收媒体接收端发送的码流的属性信息,并根据所述码流的属性信息确定第一码流转换信息;所述第一码流转换信息中包括转换类型信息和按层转换的模式的信息,所述转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;a determining module, configured to receive attribute information of a code stream sent by the media receiving end, and determine first code stream conversion information according to the attribute information of the code stream; the first code stream conversion information includes conversion type information and layer by layer Information of the converted mode, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
    更改模块,用于根据所述按层转换的模式的信息,将媒体发送端发送的码流的属性信息修改为所述媒体接收端发送的属性信息,并将修改后的属性信息发送给媒体发送端;a change module, configured to modify attribute information of the code stream sent by the media sending end to the attribute information sent by the media receiving end according to the information of the layer-by-layer conversion mode, and send the modified attribute information to the media to send end;
    转换模块,用于接收所述媒体发送端发送的第一格式的码流,并将所述第一格式的码流转换为第二格式的码流;所述第一格式的码流为所述媒体发送端根据修改后的属性信息发送的,所述第一格式为多层编码格式,所述第二格式为单层编码格式;a conversion module, configured to receive a code stream in a first format sent by the media sending end, and convert the code stream in the first format into a code stream in a second format; The media sending end is sent according to the modified attribute information, where the first format is a multi-layer encoding format, and the second format is a single-layer encoding format;
    发送模块,用于将所述第二格式的码流发送给所述媒体接收端。And a sending module, configured to send the code stream in the second format to the media receiving end.
  10. 如权利要求9所述的媒体网关,其特征在于,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由可伸缩视频编码SVC格式转换为高级视频编码AVC格式的信息、由可伸缩的高效视频编码SHVC格式转换为AVC格式的信息、及由可伸缩的高效视频编码SHVC格式转换为高效视频编码HEVC格式的信息中的至少一种。The media gateway according to claim 9, wherein the information of the code stream converted into the single layer coding format by the code stream of the multi-layer coding format comprises: converting from the scalable video coding SVC format to the advanced video coding AVC format. The information, the information converted from the scalable high-efficiency video coding SHVC format to the AVC format, and the information converted from the scalable high-efficiency video coding SHVC format to the high-efficiency video coding HEVC format.
  11. 如权利要求9或10所述的媒体网关,其特征在于,所述按层转换的模式的信息包括按照预设层级转换的信息;The media gateway according to claim 9 or 10, wherein the information of the layer-by-layer conversion mode comprises information converted according to a preset level;
    所述转换模块用于接收所述媒体发送端发送的第一格式的码流,具体包括:The converting module is configured to receive the code stream in the first format sent by the media sending end, and specifically includes:
    接收所述媒体发送端发送的所述预设层级的码流,所述预设层级的码流的格式为所述第一格式。And receiving, by the media sending end, the code stream of the preset level, where the format of the code stream of the preset level is the first format.
  12. 如权利要求11所述的媒体网关,其特征在于,所述转换模块用于将所述第一格式的码流转换为第二格式的码流,具体包括:The media gateway according to claim 11, wherein the converting module is configured to convert the code stream of the first format into a code stream of the second format, and specifically includes:
    将所述预设层级的码流转换为所述第二格式的码流。 Converting the code stream of the preset level into a code stream of the second format.
  13. 如权利要求11所述的媒体网关,其特征在于,所述第一码流转换信息还包括转换级别信息,为:抽取与帧率相关的数据包的信息;The media gateway according to claim 11, wherein the first stream conversion information further comprises conversion level information, which is: extracting information of a data packet related to a frame rate;
    所述转换模块用于将所述第一格式的码流转换为第二格式的码流,具体包括:The converting module is configured to convert the code stream in the first format into a code stream in the second format, and specifically includes:
    按照所述转换级别信息,从所述预设层级的码流中抽取与帧率相关的数据包;Extracting, according to the conversion level information, a data packet related to a frame rate from a code stream of the preset level;
    将抽取的与帧率相关的数据包转换为所述第二格式的码流。The extracted frame rate related data packet is converted into the code stream of the second format.
  14. 如权利要求11所述的媒体网关,其特征在于,所述第一码流转换信息还包括转换级别信息,为:抽取与分辨率相关的数据包的信息;The media gateway according to claim 11, wherein the first code stream conversion information further comprises conversion level information, which is: extracting information about a resolution-related data packet;
    所述转换模块用于将所述第一格式的码流转换为第二格式的码流,具体包括:The converting module is configured to convert the code stream in the first format into a code stream in the second format, and specifically includes:
    按照所述转换级别信息,从所述预设层级的码流中抽取与分辨率相关的数据包;Extracting, according to the conversion level information, a resolution-related data packet from the code stream of the preset level;
    将抽取的与分辨率相关的数据包转换为所述第二格式的码流。The extracted resolution-related data packet is converted into the code stream of the second format.
  15. 如权利要求9-14任一所述的媒体网关,其特征在于,所述确定模块用于根据所述码流的属性信息确定第一码流转换信息,具体包括:The media gateway according to any one of claims 9-14, wherein the determining module is configured to determine, according to the attribute information of the code stream, the first code stream conversion information, which specifically includes:
    根据所述码流的属性信息以及转换能力信息确定所述第一码流转换信息;Determining, according to the attribute information of the code stream and the conversion capability information, the first code stream conversion information;
    其中,所述码流的属性信息用于指示所述媒体接收端支持的码流的属性信息;或所述码流的属性信息用于指示所述第一码流转换信息;The attribute information of the code stream is used to indicate attribute information of a code stream supported by the media receiving end; or the attribute information of the code stream is used to indicate the first code stream conversion information;
    其中,所述转换能力信息包括所述转换类型信息及所述按层转换的模式的信息,所述按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, and the information of the layer-by-layer conversion mode includes information converted according to a preset level.
  16. 如权利要求15所述的媒体网关,其特征在于,所述转换能力信息还包括转换级别信息;其中:The media gateway according to claim 15, wherein said conversion capability information further comprises conversion level information; wherein:
    所述转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
  17. 一种媒体接收端,其特征在于,包括:A media receiving end, comprising:
    发送模块,用于向媒体网关发送码流的属性信息,所述码流的属性信息用于确定第一码流转换信息;所述第一码流转换信息中包括转换类型信息和按层转换的模式的信息,所述转换类型信息包括由多层编码格式的码流转换为单层编码格式的码流的信息;a sending module, configured to send attribute information of the code stream to the media gateway, where the attribute information of the code stream is used to determine the first code stream conversion information; the first code stream conversion information includes conversion type information and layer-by-layer conversion Mode information, the conversion type information including information of a code stream converted into a single layer encoding format by a code stream of a multi-layer encoding format;
    接收模块,用于接收所述媒体网关发送的第二格式的码流;所述第二格式的码流为所述媒体网关对根据所述第一码流转换信息接收的第一格式的码流转换得到的。a receiving module, configured to receive a code stream of a second format sent by the media gateway, where the code stream of the second format is a code stream of the first format received by the media gateway according to the first code stream conversion information Converted to get.
  18. 如权利要求17所述的媒体接收端,其特征在于,由多层编码格式的码流转换为单层编码格式的码流的信息包括:由可伸缩视频编码SVC格式转换为高级视频编码AVC格式的信息、由可伸缩的高效视频编码SHVC格式转换为AVC格式的信息、及由可伸缩的高效视频编码SHVC格式转换为高效视频编码HEVC格式的信息中的至少一种。The media receiving end according to claim 17, wherein the information of the code stream converted into the single layer encoding format by the code stream of the multi-layer encoding format comprises: converting from the scalable video encoding SVC format to the advanced video encoding AVC format. The information, the information converted from the scalable high-efficiency video coding SHVC format to the AVC format, and the information converted from the scalable high-efficiency video coding SHVC format to the high-efficiency video coding HEVC format.
  19. 如权利要求17或18所述的媒体接收端,其特征在于,所述媒体接收端还包括确定模块;The media receiving end according to claim 17 or 18, wherein the media receiving end further comprises a determining module;
    所述接收模块还用于:在所述发送模块向媒体网关发送码流的属性信息之前,接收所述 媒体网关发送的转换能力信息;The receiving module is further configured to: receive, before the sending module sends the attribute information of the code stream to the media gateway, Conversion capability information sent by the media gateway;
    所述确定模块用于:根据所述转换能力信息确定所述码流的属性信息,所述码流的属性信息用于指示所述第一码流转换信息;The determining module is configured to: determine attribute information of the code stream according to the conversion capability information, where the attribute information of the code stream is used to indicate the first code stream conversion information;
    其中,所述转换能力信息包括所述转换类型信息及所述按层转换的模式的信息,所述按层转换的模式的信息包括按照预设层级转换的信息。The conversion capability information includes the conversion type information and the information of the layer-by-layer conversion mode, and the information of the layer-by-layer conversion mode includes information converted according to a preset level.
  20. 如权利要求19所述的媒体接收端,其特征在于,所述转换能力信息还包括转换级别信息;其中:The media receiving end according to claim 19, wherein said conversion capability information further comprises conversion level information; wherein:
    所述转换级别信息包括:抽取与帧率相关的数据包的信息,或,抽取与分辨率相关的数据包的信息。 The conversion level information includes: extracting information of a data packet related to a frame rate, or extracting information of a data packet related to the resolution.
PCT/CN2016/086381 2015-07-31 2016-06-20 Code stream sending method and device WO2017020661A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510466493.2A CN106412620A (en) 2015-07-31 2015-07-31 Code stream transmission method and device
CN201510466493.2 2015-07-31

Publications (1)

Publication Number Publication Date
WO2017020661A1 true WO2017020661A1 (en) 2017-02-09

Family

ID=57942394

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086381 WO2017020661A1 (en) 2015-07-31 2016-06-20 Code stream sending method and device

Country Status (2)

Country Link
CN (1) CN106412620A (en)
WO (1) WO2017020661A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412620A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Code stream transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060029108A1 (en) * 2004-05-31 2006-02-09 Kabushiki Kaisha Toshiba Digital device, transcoder, and data transmitting method
CN102790905A (en) * 2012-08-03 2012-11-21 重庆大学 Transcoding method from H.264/SVC(scalable video coding) to H.264/AVC(advanced video coding) based on video on demand system of P2PVoD
US8391482B2 (en) * 2001-05-04 2013-03-05 Hewlett-Packard Development Company, L.P. Signal format that facilitates easy scalability of data streams
CN103283248A (en) * 2010-12-20 2013-09-04 通用仪表公司 SVC-to-AVC rewriter with open-loop statistal multplexer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101015191A (en) * 2004-07-09 2007-08-08 高通股份有限公司 System for layering content for scheduled delivery in a data network
KR20160104678A (en) * 2014-01-02 2016-09-05 브이아이디 스케일, 인크. Sub-bitstream extraction process for hevc extensions
CN106412620A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Code stream transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8391482B2 (en) * 2001-05-04 2013-03-05 Hewlett-Packard Development Company, L.P. Signal format that facilitates easy scalability of data streams
US20060029108A1 (en) * 2004-05-31 2006-02-09 Kabushiki Kaisha Toshiba Digital device, transcoder, and data transmitting method
CN103283248A (en) * 2010-12-20 2013-09-04 通用仪表公司 SVC-to-AVC rewriter with open-loop statistal multplexer
CN102790905A (en) * 2012-08-03 2012-11-21 重庆大学 Transcoding method from H.264/SVC(scalable video coding) to H.264/AVC(advanced video coding) based on video on demand system of P2PVoD

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412620A (en) * 2015-07-31 2017-02-15 华为技术有限公司 Code stream transmission method and device

Also Published As

Publication number Publication date
CN106412620A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
EP2656579B1 (en) Signaling techniques for a multimedia-aware radio and network adaptation
US8374113B2 (en) Distributed gateway for reliable multicast wireless video
KR101936944B1 (en) Interactive video conferencing
KR101557504B1 (en) Method for transmitting adapted channel condition apparatus using the method and providing system
US10638351B2 (en) Service rate adjustment method and apparatus
US20080025414A1 (en) Apparatus and method for transmitting moving picture stream using bluetooth
WO2011049179A1 (en) Distribution system, gateway, distribution method, and program
EP2901751A1 (en) Energy-aware multimedia adaptation for streaming and conversational services
WO2017147959A1 (en) Service carrying method, communication terminal, control element s-cscf and system
JP2004266330A (en) Communication terminal and control method therefor
US11711550B2 (en) Method and apparatus for supporting teleconferencing and telepresence containing multiple 360 degree videos
WO2014194815A1 (en) Method for switching coding mode, sending end and receiving end
CN109618188B (en) Video data encoding and forwarding method, device, equipment and storage medium
WO2022088833A1 (en) Method for transmitting data packet of media stream, and communication apparatus
CN107342951A (en) Data transmission method and device
US11805156B2 (en) Method and apparatus for processing immersive media
WO2017020661A1 (en) Code stream sending method and device
WO2016184281A1 (en) Media interoperability method and device thereof
WO2010108416A1 (en) Method, device and communication system for forwarding scalable video coding data messages
WO2019228534A1 (en) Media transmission method and h323-sip gateway
CN107404363B (en) Method, system, terminal and network side equipment for adjusting voice code rate
WO2023273756A1 (en) Data transmission method and related device
WO2022262294A1 (en) Video stream transmission method and related communication apparatus
KR20240065355A (en) Method and apparatus for performing media call service
WO2010075794A1 (en) Method and apparatus for processing compressed multiplexed messages

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16832149

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16832149

Country of ref document: EP

Kind code of ref document: A1