The present invention relates to transcoding media files or streams, and in particular, to a system and method for optimizing a communication session between two or more terminals involving transcoding operations.
In communication sessions involving multiple users/parties/terminals, transcoding is often required to enable interoperability between terminals, for example terminals equipped with incompatible audiovisual codecs and therefore having incompatible characteristics. Transcoding operations between multiple terminals may be also required for other reasons such as reducing bandwidth usage or power consumed by a particular terminal or other reasons.
However, transcoding operations require significant computational complexity, bandwidth usage, energy usage and other resources, leading to high-energy consumption, ineffective utilization of hardware equipment, and resulting in high cost of such communication sessions.
Therefore, there is a need in the industry for conducting communication sessions between multiple terminals involving transcoding operations more effectively, with particular emphasis on utilizing fewer resources.
Therefore there is an object of the invention to provide a method and system for optimizing communication sessions between multiple terminals involving transcoding operations, for example between terminals having incompatible characteristics, or terminals having certain limitations on bandwidth usage or power usage or the like.
According to one aspect of the present invention there is provided a method for optimizing a measure of performance of a transcoding session between two or more terminals, including:
Alternatively, optimizing the cost function may include minimizing the cost function with respect to said measure of performance, or maximizing the cost function with respect to said measure of performance.
Beneficially, the one or more media characteristics may include a codec, and said measure of performance is a computation complexity of the transcoding session.
Alternatively, the measure of performance may be a bandwidth usage of the transcoding session, power consumed by the transcoding server used to perform the transcoding session, or a measure of performance of a CPU (central processing unit) used to perform the transcoding session.
Beneficially, building the cost function may include:
Furthermore, optimizing the cost function may include:
Beneficially, the plurality of respective costs may include computing a sum of the performance indexes of transcoding from the source codec to the destination codec.
According to another embodiment of the present invention there is provided a system for optimizing a measure of performance of a transcoding session between two or more terminals, including:
Alternatively, optimizing the cost function may include minimizing the cost function with respect to said measure of performance, or maximizing the cost function with respect to said measure of performance.
Beneficially, the one or more media characteristics may include a codec, and said measure of performance is a computation complexity of the transcoding session.
Alternatively, the measure of performance may be a bandwidth usage of the transcoding session, power consumed by the transcoding server used to perform the transcoding session, or a measure of performance of a CPU (central processing unit) used to perform the transcoding session.
Beneficially, building the cost function may include:
Furthermore, optimizing the cost function may include:
Beneficially, the plurality of respective costs may include computing a sum of the performance indexes of transcoding from the source codec to the destination codec.
Thus, an improved method and system for optimizing transcoding sessions between multiple terminals have been provided.
Embodiments of the invention will now be described, by way of example, with reference to the accompanying drawings in which:
In the following description, reference is made to the accompanying drawings which form a part hereof, and in which are shown various non-restrictive illustrative embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized, and structural and operational changes may be made without departing from the scope of the present invention.
In the following description, the present invention will be described in the context of a Push to Talk Over Cellular (PoC) system. However the present invention is not restricted to a PoC system and may be applied in other multiparty multimedia architectures where only one participant has permission to talk at any given time; the permission being managed by a central network element. The central network element may be any central element to the session including a Controlling PoC Function or a Multipoint Control Unit (MCU). The permission to talk may also be, in a more general context, any audiovisual media stream which is derived from one or many users and distributed to all users (for example, a video mosaic made from the video streams of several users or a mixing of several audio streams). It is to be noted also that although reference is made to talk burst and permission to talk, talking refers generally to the permission to send media streams to other participants, whether the media streams are audio, video, text, graphics or of other type. Therefore the term ‘talk burst’ will be used although the term ‘media burst’ may be more appropriate. This usage does not limit the scope of the invention, which applies to all types and combinations of media.
Two example embodiments of the present invention are described herein. A first embodiment provides a multi-party communications system and a method for optimizing a transcoding session therein with respect to computation complexity of transcoding operations (
The first example embodiment will now be described with reference to
Moreover,
The Transcoding Server 1600 may be implemented as hardware system such as server computer having one or more processors and a memory apparatus for storing computer readable instructions stored thereon for execution by the one or more processors, and forming various modules of the Transcoding Server 1600 as will be described below.
Alternatively, the Transcoding Server 1600 may be implemented as software having computer readable instructions stored on non-transitory computer readable storage medium, for example memory, for execution by a hardware processor. Similarly to the above, the computer readable instructions stored in the non-transitory computer readable storage medium form various modules of the Transcoding Server 1600 as will be described in below.
The Transcoding Server 1600 includes a Transcoding Session Manager 1602, a Transcoding Engine 1610, a Session Data Repository 1606, a Session Codecs Optimizer 1800, and a Computational Complexity Module 1608.
The Transcoding Session Manager 1602 is responsible for managing the overall operations of the Transcoding Server 1600 including managing transcoding sessions, managing input and output ports in the transcoding sessions, parsing incoming session descriptions and creating modified ones, controlling operations of the Transcoding Engine 1610, obtaining a list of optimal codecs from the Session's Codecs Optimizer 1800, and updating session data information in the Session Data Repository 1606. Note, while the embodiments described herein concern choosing optimal codecs, any media characteristic may be optimized and still be within the scope of the invention.
The Transcoding Engine 1610 is responsible for receiving media packets arriving at its ports, transcoding media packets into other formats, and retransmitting them to another destination as prescribed by the Transcoding Session Manager 1602. The Transcoding Engine 1610 also manages its own transcoding operations and input ports to comply with the requests of the Transcoding Session Manager 1602.
The Session Data Repository 1606 contains data that is required for conducting transcoding sessions by the Transcoding Server 1600. The Session Data Repository 1606 includes a list of active sessions along with respective IDs, a list of terminals participating in each session along with relevant information including a list of the codecs supported by the sessions, IP addresses and port numbers for the sessions, the actual codecs that are currently active in each session along with IP addresses, port numbers and other relevant information.
The Session Codecs Optimizer 1800 is responsible for providing, upon request, a list of optimal codecs for each terminal of a session to the Transcoding Session Manager 1602.
The Computational Complexity Module 1608 contains computational complexity values (or estimates thereof) T(s,d) for transcoding from source codec c to destination codec d. It contains such values for each transcoding operation supported by the Transcoding Engine 1610. Note that these values can be pre-configured (entered manually) or obtained from the Transcoding Engine 1610.
Note also that the Computational Complexity Module 1608 can contain complexity values for other aspects of the system 100, not limited to computational complexity, including any feature or combination of features as described herein with regard to the second example embodiment.
Therefore, the Computational Complexity Module 1608 can contain various complexity values (T(s,d)) and report them to the Session Codecs Optimizer 1800, for example, it could have one for computational complexity (TCPU(s,d)), for bandwidth (TBW(s,d)), for energy consumption (TENER(s,d)), for memory (TMEM(s,d)), or the like.
One skilled in the art of system engineering can find various variants of the Transcoding Server 1600, including distributing the Transcoding Engine 1610 over several servers to perform load balancing, or distributing the roles of each components in a slightly different manner. For instance, one may want to merge the Transcoding Engine 1610 with the Computational Complexity Module 1608, or separate the Session Data Repository 1606 into several databases.
Whether the transcoding is centralized at the CPF 110, as shown in
Once the information related to a terminal joining or leaving a session is conveyed to the Transcoding Session Manager 1602, the Transcoding Session Manager 1602 retrieves the session data from the Session Data Repository 1606 and requests the Session Codecs Optimizer 1800 to establish a list of optimal codecs for each terminal.
As explained herein below with regard to
The RE-INVITE messages, instead of containing a long list of codecs supported by the Transcoding Server 1600, are modified in that they contain only the optimal codecs, for example one optimal video codec, one optimal audio codec, forcing the terminal to accept and use the optimal codecs in the session. The optimal codecs have been selected among those supported by the terminal. Please note that many variations and modifications to this system and its components are possible to achieve the tasks described above.
Note that the proportion of the time that each terminal talks compared to the other terminals in a session, if available, is stored in the Session Data Repository 1606.
Alternatively, since the Transcoding Engine 1610 receives media packets related to the session, the Transcoding Engine 1610 is capable of estimating that proportion of time, and providing this information to the Transcoding Session Manager 1602. The Transcoding Session Manager 1602 then processes the information and stores it in the Session Data Repository 1606.
Upon Start of a New Session 1702, the method 1700 initializes session data using joining terminals' data 1704. Such data is obtained from the joining terminals' supported codecs, IP addresses and port numbers, or the like. The initialization process includes creating a session ID, adding the joining terminal to the session and storing the session data in the Session Data Repository 1606.
Next, step 1900 determines an optimal set of codecs for the transcoding session using the Session Codecs Optimizer 1800. Step 1900 is described herein below with regard to
Step 1708 then checks whether or not the optimal set of codecs have changed. If so, step 1708 exits ‘Yes’, and reserves or updates 1710 the transcoding resources at the Transcoding Engine 1610. When the session is initiated, it is considered that the optimal codecs have changed. Otherwise the method 1700 exits ‘No’ from step 1708 and checks whether terminals are leaving or joining the session 1716.
After having reserved or updated the transcoding resources 1710, the method 1700 sends modified INVITE/REINVITE messages to the terminals as required 1712. The modifications include session description modifications with updated codecs and transport information, for example, the IP addresses and port numbers. Only session descriptions that have changed are sent to terminals. For instance, if the optimized codecs do not affect a certain terminal, for example his optimal codec remained the same, then sending a REINVITE may not be required. When the session is started, the INVITE message from the terminal initiating the session is modified as described previously to include additional codecs for which the transcoding engine 1610 can perform transcoding and permit interoperability (or codecs that it is known the recipient supports, for example: when a terminal capability database exists).
In the next step 1714, the method 1700 updates the session data with updated optimal codecs information, IP addresses, port numbers, as well as answers from terminals, if they have accepted the REINVITE invitation.
In the next step 1716, the method 1700 checks whether terminals are leaving or joining the session. If so, the method 1700 exits ‘Yes’ from step 1716 and obtains data related to terminals leaving or joining the session 1718. Otherwise the step 1716 exits ‘No’ from step 1716 and loops back to the input of step 1716 to check whether terminals are leaving or joining the session.
If a terminal joins or leaves the session, the optimal set of codecs used in the session may change. In this case, it may be worth modifying the existing session, for example by changing the set of media codecs used in the transcoding session. It is also possible to modify the current transcoding session if the proportion of the time that terminals talk change significantly, and better system performance can be achieved by modifying the current codecs, even though no one has joined or left the communication session. It is also possible to modify the current transcoding session if a performance problem (an event affecting negatively the session) has occurred or if the real-time measurements of the performance assessment module have changed significantly the values of the performance indexes, and better system performance can be achieved by modifying the current codecs, even though no one has joined or left the communication session. For instance, if a quality of service problem occurred (which can be detected by the analyzing the communication between the transcoder and terminals participating to the session), then more bandwidth-efficient codecs may be selected for problematic communication paths. Changes may also occur in various other cases such as if power consumption or computational complexity at the transcoder exceeded a maximum acceptable value.
In RFC (Request for Comments published by the Internet Engineering Task Force (IETF)) 3261 (SIP: Session Initiation Protocol), section 14 explains in detail how to modify an existing session.
It mentions that this modification can involve adding a media stream, deleting a media stream, and so on. This is accomplished by sending a new INVITE request within the same dialog that established the session. An INVITE request sent within an existing dialog is known as a re-INVITE.
RFC 3264 (An Offer/Answer Model Session Description Protocol) provides further details on the re-INVITE process related to media codecs. In particular, section 8.3, describes a procedure to modify media streams and mentions that nearly all characteristics of a media stream can be modified. Section 8.3.2 provides details how to change the set of media formats, reciting:
“The list of media formats used in the session may be changed. To do this, the offerer creates a new media description, with the list of media formats in the “m=” line different from the corresponding media stream in the previous SDP. This list may include new formats, and may remove formats present from the previous SDP.”
The communication system may decide to modify the session each time a terminal joins or leaves the session, if it leads to a change in the optimal transcoding operations, or each time there is a significant difference between the current average complexity associated with the current transcoding operations in the session and the optimal average complexity achievable by modifying the session.
After having obtained leaving or joining terminals' data 1718, the method 1700 checks whether all terminals have left the session 1720. If not, the method 1700 exits ‘No’ from step 1720 and loops back to the input of step 1900 to determine the optimal set of codecs for the session. Otherwise the method 1700 exits ‘Yes’ from step 1720 and releases transcoding resources for the session 1722. This is performed by informing the Transcoding Engine 1610 that any transcoding related to the session needs to be released. In an alternative embodiment, the Transcoding Session Manager 1602 may request the Transcoding Engine 1610 to release individual transcoding operations. In the next step 1726, the method 1700 releases the session data, which is performed by deleting the session ID and its data in the Session Data Repository 1606, followed by the termination of the session 1728.
Note that the codec optimization process requires knowledge of the capabilities of terminals for each terminal. Such lists of terminals' supported codecs is stored in the Session Data Repository 1606. In another embodiment, it could also be stored in a separate database storing capabilities of participating terminals. If, for some reason, this data is not available, or only partially available, other means should be used to obtain it. For instance, in RFC 3261, the OPTIONS method can be used to query a terminal agent as to its capabilities. Alternatively, an INVITE message without media codecs can be used to learn codec capabilities if a terminal, where the terminal will provide a list of codecs in the response.
As any other module of the Transcoding Server 1600, the Session Codecs Optimizer 1800 may include a memory device, having computer readable instructions stored thereon for execution by a processor, causing the processor to perform the functionality as described herein.
The Session Data Collector/Separator/Dispatcher 1802 is responsible for receiving the Session data information, processing it and dispatching it to appropriate modules.
The Stream Codec Optimizers 1804, 1814, 1824 are responsible for determining optimal codecs and the optimal value of the cost function for each stream. The Cost Function Generator 1830 is responsible for generating a cost function for each media stream based on the session data, optimization preferences, and computational complexities for transcoding operations and performance aspects. The Optimization Preferences Repository 1840 contains preferences and parameters affecting the cost function.
The following describes the interaction between the components of
The separated stream information contains, for each stream, the information that is required to perform optimization for that specific stream such as supported codecs for that stream (for example: audio or video codecs supported by each terminal i to determine the sets Saudio(i) or Svideo(i) in the previous equations), proportion of talk times (αi, if available).
The Session Data Collector/Separator/Dispatcher 1802 also processes and separates the information into session data that is required to generate a cost function for each stream (how many streams to optimize, nature of the streams such as audio or video, the number of supported codecs for each terminal and stream, whether the proportion of talk time is known or not) and dispatches it to the Cost Function Generator 1830.
The Cost Function Generator 1830 generates a cost function for each media stream based on the session data, optimization preferences (for example: if CPU or bandwidth should be optimized or the weight βCPU and βBW that should be assigned to each property/feature to be optimized) received from the Optimization Preference Repository 1840, and computational complexities for transcoding operations and performance aspects (CPU, bandwidth, energy, or the like.) received from the Computational Complexity Module 1608 of
The cost function for each media stream is sent to the respective Stream Codec Optimizers 1804, 1814, and 1824. A required number of Stream Codec Optimizers can be provided, depending on the number of streams in the session, for example, if there are M streams in the session, there may be M Stream Codec Optimizers. The Stream Codec Optimizers 1804, 1814, and 1824 determine the optimal set of codecs for each stream, for example: vectors C*audio or C*video as described in equations 5-6 shown herein below, based on their respective session data obtained from the Session Collector/Separator/Dispatcher 1802 and cost function obtained from the Cost Function Generator 1830.
The Stream Codec Optimizers 1804, 1814, and 1824 also determine the optimal cost for each stream (for example: A*audio or A*video as shown in the equations 5-6 shown herein below) according to their respective cost function. The optimal sets of codecs and optimal costs are transmitted to the Transcoding Manager 1602.
The described method and system have the advantage of being simple to manage, because each stream is processed individually without considering other streams. This solution is appropriate for typical sessions comprising a single audio stream or one audio and one video streams. However, if a session contains multiple audio and video streams, it may be beneficial to optimize per media type instead of per media stream. However, more processing is required to map sessions to media types. Someone skilled in the art of system engineering will know how to modify the system 100 to accommodate these various scenarios without deviating from the scope of this invention.
When multiple streams need to be optimized jointly, the Stream Codec Optimizer 1804, 1814 or 1824 does not optimize for a single stream but for a combination of streams. Therefore, the Session Data Collector/Separator/Dispatcher 1802 provides the session data for streams that need to be optimized jointly, that is for a combination of streams. In particular, the Session Data Collector/Separator/Dispatcher 1802 provides a set J(i) containing, for all 1≤i≤N, a set of all vectors (for example: of the form (Jaudio(i),Jvideo(i)) representing combinations of media streams that are supported by the terminal i.
Also, the Cost Function Generator 1830 provides to the Stream Codec Optimizers 1804, 1814, 1824 the cost function required to jointly optimize these streams (or alternatively, only on of the Stream Codec Optimizers 1804, 1814 or 1824 can be used). The Stream Codec Optimizers 1804, 1814 or 1824 then optimizes jointly and returns the optimal codecs for the joint streams and the optimal costs 1826.
Upon Start 1902, the method 1900 waits for an optimize codecs request 1904 from the Transcoding Session Manager 1602. Once received, the method 1900 moves to the next step where it obtains the session data 1906. It then processes the session data in the next step 1908, including separation of information into streams and into session data that is required to generate a cost function for each stream (as described with regard to
The method 1900 then dispatches 1910 the processed data to the various modules of the Session Codec Optimizer 1800. The method 1900 then obtains computational complexities for transcoding operations and performance aspects 1912 from the Computational Complexity Module 1608.
In the next step 1914, the method 1900 obtains optimization preferences from the Optimization Preference Repository 1840. The method 1900 then begins with the first stream or stream combination 1916. It then generates a cost function for the stream or stream combinations 1920 in accordance with the method as described above. Using the generated cost function, the method 1900 determines the optimal set of codecs for the stream of stream combinations 1922. This is performed by evaluating the cost function for each possible combination of codecs supported by the terminals and finding the combination leading to the smallest cost. Step 1922 is further described with regard to
The method 1900 also computes the optimal cost, associated with the optimal codecs, for the stream or stream combination in step 1924. Example embodiments of the cost function used in steps 1920, 1922, and 1924 are described in more detail herein below.
In the next step 1926, the method 1900, sends the set of optimal codecs and the cost for the stream or stream combination to the Transcoding Session Manager 1602. The method 1900 then checks if more streams need to be processed 1928. If so, the method 1900 exits ‘Yes’ from step 1728 and starts processing the next stream or stream combination 1930. Otherwise the method 1900 exits ‘No’ from step 1928 and waits for a request to optimize codecs 1904 from the Transcoding Session Manager 1602.
Referring to
The following Matlab code is an example embodiment in accordance with the flowchart 1922 shown in
When running the program with the previous parameters:
While example embodiments of the cost function have been presented for equations 1, 4-7 shown above, it is understood that various other cost functions, optimizing various parameters of a communication session between multiple terminals, can be also built.
In any optimization problem, such as this one, it is crucial to properly set the desired cost function, as it will influence the overall performance of the system that it is desired to optimize. For instance, if it is desired want to minimize a computational complexity of the communication session, which is mainly due to the transcoding operations performed within the system as a consequence of the set of selected media codecs, it is appropriate to use a cost function that will take into account the computational complexity of each transcoding operation performed to ensure interoperability between terminals for that set of selected media codecs in the system. Such cost function will provide, for each possible choice of media codecs for the terminals in the session a cost associated with that media codecs choice. The goal of the optimization operation is to select the set of media codecs, which will optimize the cost function (minimize or maximize it depending on what it is desired to optimize). For instance, if it is desired to minimize the computational complexity of the communication system, a cost function can be derived comprised of the sum of the computational complexities of each transcoding operation performed by the transcoder for any set of codecs, and select the set of codecs that minimize the cost function. The cost function can be any function of the set of media codecs used in the multi-terminal communication session measuring or estimating one performance aspect of the communication system or a combination of several performance aspects of the communication system. Performance aspects include but are not limited to: a computational complexity for transcoding in the transcoder, computational complexity for coding/decoding media streams in the terminals, computational complexity in the communication system, energy consumption in the transcoder, energy consumption in the terminals, energy consumption in the communication system, memory usage in the transcoder/terminal/communication system, bandwidth usage in the communication system, battery usage of the terminals, audiovisual quality of the system.
An example embodiment of the cost function used in steps 1920, 1922, and 1924 is as follows.
We define the following variables:
An average complexity associated with transcoding operations in the communication session can be expressed, for example, as shown below using a sample cost function “A”:
In general, embodiments of the present invention may have a term TX(C(s),C(d)) in equation 1 instead of the term T(C(s),C(d)) as shown above wherein a value of x is predetermined to be unity. For example, the value x may be predetermined to be 2 to provide alternative weighting properties.
In the above equation (1), the term 1/card(C(d)) is used to take into account that if it is needed to transcode from source s to destinations d1 and d2 having the same codec, the transcoding complexity only needs to be counted once, or equivalently, both transcodings can be counted but with a weight of ½ as shown in the equation (1).
If the respective proportions of time that terminals talk αi are not known, it can assumed that each terminal talks the same proportion of the time and therefore:
We need to find a combination of codecs C(i) for all terminals that minimizes the cost function A.
Note that C(i) needs to be supported by terminal i, for each i. Several terminals may have the same codec, which is desirable as it will help to minimize the cost function A.
Conveniently, T(C,C) is set to zero as no transcoding is required when no codec conversion is needed. However, it is understood that it is possible to use a non zero weight for T(C,C), but then the formulae need to be modified to take into account the fact that 1/card(C(d)) would count the source in such case and will need to be also modified; also d=s should be removed in the second summation in equation (1).
Formally, the optimal codec values and optimal cost function A can be founds as follows:
where C is a vector containing the codecs of each terminal, C* is the vector containing the optimal codecs, and S(i) is the set of codecs supported by terminal i.
Note that T(Cs,Cd) can be obtained experimentally by measuring the time it takes to convert some media content from codec Cs to codec Cd.
The second example embodiment will now be described with reference to
Referring next to
The steps of the method 2100 of
In the method 2100, when there are no terminals leaving or joining the session in step 1716, the process continues to step 2116 where the Performance Assessment Module 2018 of
The step 1912 of method 1900 is replaced by step 2312, which gets performance indexes for transcoding operations and performance aspects, as well as other measurements on the current media session. Note that step 1904 which waits for an optimize codec request remains unchanged but the requests may be due performance changes in the session in addition to terminals joining or leaving the session. Example embodiments of the cost function used in steps 1920, 1923, and 1924 are described in more detail herein below.
Referring to
The following is a description of example embodiments of the cost function used in steps 1920, 1922, and 1924 of the flowcharts 1900 (
For instance, a computational complexity, energy consumption, bandwidth usage can be optimized using the approach of the embodiments of the invention.
It is also possible to develop other, more complicated cost functions to optimize transcoding resources or other resources of multi-terminal communication system, for example bandwidth usage, by taking into account multiple streams jointly. Again, the cost function can be general and cover various optimization cases such as generalize multidimensional optimization (optimize audio and video codecs for combinations of performance aspects of the system, with various importance or weights for each performance aspect or media codec type, for example, audio versus video, or each media codec type optimizing a different performance aspect), unconstrained versus constrained optimization (for example, it is desired that the power consumption, computational complexity or bandwidth to be below a certain value, and optimize other performance aspects), or the like.
It is also understood that T(Cs,Cd) may be replaced by any measure of complexity that needs to be optimized in the system supporting the multi-terminals session, including but not limited to: computational complexity, computation time, energy consumption, bandwidth usage, memory usage, or the like, as described below with regard to the second embodiment. Since their global influence on the overall system performance is additive (in other words, the total computational complexity is the sum of individual computations), the cost function in the example above is also additive (weighted sum of the T(Cs,Cd)). However, as mentioned, the cost function can be any function of the set of media codecs used in the multi-terminal communication session measuring or estimating one performance aspect of the communication system or a combination of several performance aspects of the communication system. The performance aspect may relate to various parts of the communication system including, but not limited to, the transcoding server, the terminals, the communication network and any combination of them. To give an example of other types of possible functions, let's consider it is desired to optimize the visual quality of the system, it may be desirable to use a product rather than a sum to highly penalize a poor visual quality in the system rather than allowing it as long as the overall sum is optimal (in other words, with the sum, a solution might be selected where the quality at one terminal is extremely poor while the quality at others is very good, with the product the quality will be more balanced among the terminals). For instance, the following variables and cost function for visual quality may be used:
A global visual quality associated with transcoding operations in the communication session can be expressed, for example, as shown below using a sample cost function “Av”:
Again, the cost function may take other forms beyond the sum and product and may include powers and other mathematical functions as well as their combinations. Often the performance that it is desired to optimize will dictate the best mathematical form (sum as in the case of power consumption, product for visual quality, or the like). The cost function may come from a model or empirical measurements (for example: the computational complexity or power associated with the transcoding from a source to a destination codec). Each model or measurement associated with a source and a destination codec for a specific performance aspect of the system is called: performance index (for example: V(cs,cd) is the performance index for source codec cs and destination codec cd for visual quality; T(cs,cd) is the performance index for source codec cs and destination codec cd for the computational complexity). A cost function is a function of various performance indexes, which are in turn function of source and destination codecs (and possibly some operating parameters). The cost function can incorporate measures of performance of the transcoding session (for example: computational complexity) or normalized values. The empirical measurements are performed in a performance assessment module 2018 (
The complexity T(Cs,Cd) can represent an absolute complexity measure, for example an actual processing time, or a relative measure, for example comparing the relative complexity of one transcoding operation with respect to the others.
As an example of combining several properties/aspects, the CPU (represented by TCPU(Cs,Cd)) and the bandwidth (represented by TBW(Cs,Cd)) can be combined as:
where βCPU and βBW are the weights allocated to CPU and bandwidth respectively.
The above equations (1)-(4) apply to one media stream, for example, an audio or a video stream, but it is understood that they could be applied to multiple streams.
For instance, in the case where the session includes an audio and a video streams, the codec selection process described above can be applied to each stream individually. For instance, if there is no constraint forcing the audio and video streams to be optimized jointly, then each stream can be individually optimized as follows:
where Caudio is a vector containing the audio codecs of each terminal (Caudio(i) is the codec used by terminal i), C*audio is the vector containing the optimal audio codecs, Saudio(i) is the set of audio codecs supported by terminal i, and Taudio(cs,cd) the computational complexity value or estimate for transcoding from audio codec Cs to audio codec Cd.
where Cvideo is a vector containing the video codecs of each terminal (Cvideo(i) is the codec used by terminal i), C*video is the vector containing the optimal video codecs, Svideo(i) is the set of video codecs supported by terminal i, and Tvideo(cs,cd) the computational complexity value or estimate for transcoding from video codec Cs to video codec Cd.
In some circumstances, it is possible that audio and video streams may have to be optimized jointly, for instance, if the selection of a video codec in a terminal limits the selection of the supported audio codecs.
This can happen if a terminal supports H.264 and H.263 video codecs (International Telecommunications Union (ITU) video codec standards), and AMR (Adaptive Multi-Rate), G711 (ITU audio companding standard), and MPEG-4 AAC (Advanced Audio Codec, International Standards Organization (ISO) standard) audio codecs but the terminal software would not support the playback of H.263 and MPEG-4 AAC together. In such case, only certain combinations of audio and video codecs would be possible.
Then, the optimal solution for codecs and the cost function using joint constraints on two media streams can be expressed as follows:
where J(i) is, for all 1≤i≤N, the set of all vectors of the form (Jaudio(i),Jvideo(i)) in representing combinations of media streams that are supported by the terminal i. It is assumed that Jaudio(i)*Saudio(i) and that Jvideo(i)∈Svideo(i).
It is also contemplated that the equations (5-7) can be further generalized to take into account multiple constrained media streams and combinations of unconstrained and constrained media streams.
When considering streams jointly, it is important that the computational complexity values (T(c,d)) for the various streams be expressed on a comparable scale, that is: normalized.
For example, in the case of audio and video streams, if computational complexity is minimized, it is important that they represent the computational complexities corresponding to comparable transcoding scales, such as the complexity of transcoding audio and video streams for the same duration of the media streams.
Take for instance, the case where it takes 1 ms to transcode a 20 ms audio frame from AMR to EVRC, and 10 ms to transcode a video frame from H.264 to H.263 at a frame rate of 30 fps. Then it would take 50 ms to transcode 1s of audio and 300 ms to transcode 1s of video. Therefore, Taudio(AMR,EVRC)=50 and Tvideo(H.264,H.263)=300 should be used to express the transcoding complexities on a comparable scale.
Below are a few concrete examples of optimizing the codecs and the cost function shown in equation (1) above.
Let's assume that there are four terminals in a session. The codecs that are respectively supported by the terminals are as follows:
S(1)={AMR,EVRC,PCM},S(2)={AMR},S(3)={AMR,EVRC},S(4)={EVRC,PCM}
Let us suppose that the relative computational complexity required to transcode each pair of codecs is as follows (the numbers are only illustrative):
T(AMR,AMR)=T(PCM,PCM)=T(EVRC,EVRC)=0
T(AMR,EVRC)=0.4,T(AMR,PCM)=0.17,
T(EVRC,AMR)=0.5,T(EVRC,PCM)=0.15,
T(PCM,AMR)=0.3,T(PCM,EVRC)=0.25,
If it is assumed that every terminal talks for the same duration on average, then αi=¼ for all i, and the cost function of the equation (1) becomes:
If C(i)=AMR, 1≤i≤3, and C(4)=EVRC. Then card(C(i))=3, 1≤i≤3, and card(C(4))=1.
Accordingly, the value of the cost function A becomes equal to:
Similarly, if C(i)=AMR, 1≤i≤3, and C(4)=PCM. Then card(C(i))=3, 1≤i≤3, and card(C(4))=1, and the value of the cost function A becomes equal to:
A=¼(3·T(AMR,PCM)+T(PCM,AMR))=¼(3(0.17)+0.3)=0.2025 (eq. 10)
We can evaluate the cost of other codec possibilities and arrive to the conclusion that this last combination leads to the minimum value with A=0.2025.
Therefore: C=(AMR, AMR, AMR, PCM) and A*=0.2025.
In general, the embodiments of the present invention permit the optimization of several aspects of the communication system involving multiple terminals that is influenced by the choice of codecs used in the session and for which it is needed to perform transcoding.
The method 200 described herein above permits the selection of media codecs used in a multi-terminals communication session to optimize the transcoding operations affecting the performance of the communication system. Such optimization depends on the media codecs supported by each participant in the communication session.
Although audio examples of AMR and EVRC audio codecs have been provided in above, it is understood that various other codecs may be also used. Embodiments of the invention generally describe H.263 and H.264 transcoding. It is understood that transcoding between a variety of codecs may be performed, such as MPEG-4 part 2, H.264, H.265, H.263, including transcoding between H.264 and H.265.
It is contemplated that the method and system of the embodiments of the present invention may be applied not only to multimedia sessions between multiple users/parties/terminals, but also to any communication activity between multiple users/parties/terminals, when there are many possibilities for selecting transcoding parameters for the transcoding sessions, for example different codecs or other media characteristics, between the parties/terminals to ensure interoperability, while optimizing the measure of performance of the transcoding sessions.
While example embodiments of the present invention described above provide methods and systems for determining optimal values of a media characteristic wherein the media characteristic is a codec, other media characteristics are also within the scope of the present invention. For example, media characteristics such as bitrate, resolution, frame rate, profile/level for video, sampling rate, bandwidth for audio, or the like may be used.
The method and system of the embodiments of the invention are general enough to permit the optimization of other desired properties of a multi-terminal session, such as minimizing energy consumption or bandwidth usage, or a combination of such properties.
The method and system of the embodiments of the invention provide an advantage of optimizing a measure of performance of the transcoding sessions, for example minimizing the computational complexity, thus permitting more communication sessions per server and reducing energy consumption.
Although the embodiments of the invention have been described in detail, it will be apparent to one skilled in the art that variations and modifications to the embodiment may be made within the scope of the following claims.
The present application is a Continuation of U.S. application Ser. No. 15/168,174 filed on May 30, 2016, which is now issued as U.S. patent Ser. No. 10/009,402 on Jun. 26, 2018, which in turn is a Continuation of U.S. application Ser. No. 14/019,409 filed on Sep. 5, 2013, which is now issued as U.S. Pat. No. 9,356,987 on May 31, 2016, which in turn claims benefit from U.S. provisional application Ser. No. 61/711,701 filed on Oct. 9, 2012, entire contents of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
6731734 | Shaffer et al. | May 2004 | B1 |
7002992 | Shaffer et al. | Feb 2006 | B1 |
7359731 | Choksi | Apr 2008 | B2 |
7627629 | Wu et al. | Dec 2009 | B1 |
7688764 | Dorenbosch et al. | Mar 2010 | B2 |
20020116251 | Chen et al. | Aug 2002 | A1 |
20030028643 | Jabri | Feb 2003 | A1 |
20030235184 | Dorenbosch et al. | Dec 2003 | A1 |
20060013235 | Farnham | Jan 2006 | A1 |
20060052127 | Wolter | Mar 2006 | A1 |
20060052130 | Choksi | Mar 2006 | A1 |
20070171841 | Witzel et al. | Jul 2007 | A1 |
20070177602 | Pichelin et al. | Aug 2007 | A1 |
20080037573 | Cohen | Feb 2008 | A1 |
20100149306 | Gopal | Jun 2010 | A1 |
Number | Date | Country |
---|---|---|
2824754 | Mar 2011 | CA |
1558044 | Jul 2005 | EP |
2005039724 | Feb 2005 | JP |
2005026866 | Mar 2005 | WO |
2005101876 | Oct 2005 | WO |
2005104594 | Nov 2005 | WO |
Entry |
---|
F. Andreasen et al., Media Gateway Control Protocol (MGCP) Version 1.0, Cisco Systems, Jan. 2003, 210 P., IETF RFC. |
C. Groves et al., Gateway Control Protocol Version 1, Nortel Networks Editors, Jun. 2003, 213 p., IETF RFC. |
3GPP2 and its Organizational Partners, IP Multimedia Call Control Protocol Based on SIP and SDP—Stage 3, All-IP Core Network Multimedia Domain, Nov. 2005, 304 p., 3GPP2 TSG-X. |
3GPP2 and its Organizational Partners, IP Multimedia Subsystem (IMS)—Stage 2, All-IP Core Network Multimedia Domain, Nov. 2005, 179 p., 3GPP2 TSG-X. |
3GPP2 and its Organizational Partners, Push-to-Talk over Cellular (PoC) System Requirements, Sep. 29, 2005, 21 p., 3GPP2 TSG-X. |
Open Mobile Alliance, Push to talk over Cellular (POC)—User Plane, OMA-TS_PoC-UserPlane-V1_0, Oct. 6, 2005, 167 p., Open Mobile Alliance Ltd. |
Open Mobile Alliance, Push to talk over Cellular (POC)—Control Plane Document, OMA-TS-PoC-ControlPlane-V1_0, Oct. 6, 2005, 284 p., Open Mobile Alliance Ltd. |
Open Mobile Alliance, Push to talk over Cellular (PoC)—Architecture, OMA-AD_PoC-V1_0-20050805-C, Aug. 5, 2005, 167p., Open Mobile Alliance Ltd. |
E. Burger et al., Media Services in the IMS: Evolution for Innovation, 2006, 12p., Cantata Technology. |
3rd Generation Partnership Project, Technical Specification Group Core Network, IP Multimedia (IM) session handling; IM call model; Stage 2, Dec. 2007, 60 p., 3GPP. |
3rd Generation Partnership Project, Technical Specification Group Services and System Aspects, IP Multimedia Subsystem (IMS); Stage 2, Mar. 2008, 226 p., 3GPP. |
3rd Generation Partnership Project, Technical Specification Group Services and System Aspects, Packet switched conversational multimedia applications; Default codecs (Release 7), Mar. 2008, 16 p., 3GPP. |
M. Handley et al., SDP: Session Description Protocol, ISI/LBNL, Apr. 1998, 48 p., IETF RFC. |
ITU-T Recommendation H.248.1, Gateway control protocol: Version 3, Series H: Audiovisual and Multimedia Systems, Infrastructure of audiovisual services—Communication procedures, Sep. 2005, 206 p., International Telecommunication Union. |
3rd Generation Partnership Project, Technical Specification Group Core Network and Terminals, IP multimedia call control protocol based on Session Initiation Protocol (SIP) and Session Description Protocol (SDP); Stage 3 (Release 7), Mar. 2008, 477 p., 3GPP. |
Number | Date | Country | |
---|---|---|---|
20180309814 A1 | Oct 2018 | US |
Number | Date | Country | |
---|---|---|---|
61711701 | Oct 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15168174 | May 2016 | US |
Child | 16016992 | US | |
Parent | 14019409 | Sep 2013 | US |
Child | 15168174 | US |