Method and apparatus for multiplexing data
By limiting the data packet size based on frame rate information in the communication system and prioritizing multiplexing of audio data, the jitter problem during multiplexing is solved and the perceived quality of audio and video calls is improved.
Patent Information
- Application Number
- CN202210215320.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2016-10-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2036-10-21
AI Technical Summary
In existing communication systems, when multiplexing data streams, it is easy to cause jitter in media frames, resulting in a reduction in the perceived quality of audio or video at the receiving device, especially when video data packets are sent between audio data packets, which may Causes significant interruptions or freezes.
Prevent jitter by limiting the size of other data packets based on the conveyed frame rate information to make them dependent on the frame rate in the media stream, ensuring that the maximum packet size does not exceed the available bandwidth multiplied by the frame rate, and prioritizing packets via the traffic shaping module Audio data packets are multiplexed onto the channel to avoid bursts of video data.
It effectively reduces audio packet jitter introduced by video data packets, improves the audio quality of audio and video calls, ensures stable broadcast of the data stream at the receiving device, and improves perceived quality.
Smart Images

Figure CN114584520B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application with the application date of October 21, 2016, application number 201680063113.3, and invention name “Method and device for multiplexing data”. Background Art
[0002] The communication system allows users to communicate with each other through a communication network, such as by conducting communication events over the network. The network can be, for example, the Internet or a public switched telephone network (PSTN). During a call, audio and / or video signals can be transmitted between nodes of the network, thereby allowing users to send and receive audio data (e.g., voice) and / or video data (e.g., webcam video) to each other in a communication session over the communication network.
[0003] Such communication systems include voice or video over Internet Protocol (VoIP) systems. In order to use a VoIP system, a user installs and executes client software on a user device. The client software establishes a VoIP connection and provides other functions such as registration and user authentication. In addition to voice communications, the client can also establish connections for communication events such as instant messaging ("IM"), screen sharing, or whiteboard sessions.
[0004] The data of the communication event can be encapsulated in a data stream. That is, a stream of data packets, which can be sent, for example, in real time when generated, so that there is only a short delay (e.g., about two seconds or less) between the data of the stream being generated at the sending device and being received at the receiving device. In other words, the data packets of the stream generated earlier can be sent before the data packets of the stream generated later are generated. Different types of data can be implemented in different, separate streams, for example, audio data can be implemented in an audio data stream (i.e., encapsulated in an audio data packet of an audio stream), separated and different from the video data stream implementing the video data (i.e., encapsulated in a video data packet of a video stream). During a call, additional streams, such as control data streams, and / or additional audio data streams can also be generated at the sending device, for example, there can be a call video data stream for a call video captured using a camera of a sending device, a screen sharing video data stream for screen sharing video data, a whiteboard video data stream for whiteboard video data, etc. The data streams may be identified, for example, by a stream identifier, for example, included in a header of a data packet of the stream; and / or the separate data streams may be distinguished from each other in the manner in which they are generated and managed at the sending device. In order to send multiple streams to a receiving device simultaneously, they may be multiplexed on a channel of a network between the sending device and the receiving device, for example, by using time division multiplexing. Summary of the invention
[0005] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
[0006] Various aspects of the subject matter involve multiple data streams being sent from a sending device to a receiving device via an end-to-end or process-to-process channel. The streams are sent via an end-to-end channel at a transport layer of a network layer between the sending device and the receiving device, or via a process-to-process channel at an application layer of a network layer between the sending device and the receiving device.
[0007] A media data stream is generated at a transmitting device, which includes audio or video data to be broadcast at a receiving device at a desired broadcast rate. An end-to-end bandwidth of an end-to-end channel or a process-to-process bandwidth of a process-to-process channel available for the media stream and another data stream is determined. The maximum packet size for the other data stream is determined based on the determined available bandwidth and using broadcast information related to the audio or video data of the media data stream, which conveys the desired broadcast rate of the audio or video data. At the sending device, based on the determined maximum packet size, a plurality of data packets of the other data stream are generated, each data packet having a size not exceeding the determined maximum value. The media data stream and the other data stream are multiplexed onto a channel at the sending device, thereby sending the two data streams from the sending device to the receiving device via the same channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to better understand the present subject matter and to show how it may be carried out, reference will now be made, by way of example only, to the following drawings, in which:
[0009] Figure 1 shows a block diagram of a communication system;
[0010] Figure 2 A block diagram of a transmitting device as a user equipment is shown;
[0011] Figure 3 An application layer channel from a sending device via a network to a receiving device is shown;
[0012] Figure 4 The functional modules of the sending device are shown;
[0013] Figure 5 Multiplexed audio and video data streams are shown. DETAILED DESCRIPTION
[0014] The present subject matter relates to a solution wherein a media data stream, which is a data stream comprising audio or video data ("media data"), is multiplexed with at least one other data stream (which may be another media data stream, or some other type of data stream) on the same channel (end-to-end, i.e., a transport layer channel, or process-to-process, i.e., an application layer channel). That is, wherein the media stream and the other streams share the available bandwidth (BW) of the channel, e.g., the total bandwidth of the channel or a portion of the total bandwidth allocated to them.
[0015] The maximum packet size for other data streams is determined based on both frame information conveying the playout rate of the audio or video data (e.g., frame rate R) and a determination of the available bandwidth BW (which is an end-to-end or process-to-process bandwidth estimate) in order to prevent the other data streams from creating jitter in the media stream (see below).
[0016] The concepts of "end-to-end" and "process-to-process" communications are well known in the context of networked systems, particularly (but not exclusively) in the context of communications over the public Internet and more generally in the context of the TCP / IP suite of protocols.
[0017] The use of end-to-end or process-to-process bandwidth estimation means that the video packet size is adjusted taking into account the complete communication path between the sending device and the receiving device.
[0018] The end-to-end or process-to-process bandwidth may be limited by a bottleneck anywhere in the communication path between the sending device and the receiving device. For example, the end-to-end or process-to-process bandwidth may be established via multiple lower layer channels, such as network layer (corresponding to layer 3 of the OSI model) or link layer (e.g., MAC layer, i.e., layer 2 of the OSI model, or physical layer, i.e., layer 1 of the OSI model) channels, for example, one or more lower layer channels between the sending device and an intermediate node (e.g., a router, switch, or cellular base station), plus one or more lower layer channels between the intermediate node, any other intermediate nodes, and the receiving device. In this case, the bottleneck may, for example, occur in the portion of the communication path between the sending device and, for example, a cellular base station, but equally, it may occur in the portion of the communication path between the cellular base station and the receiving device (e.g., elsewhere in the cellular network, within the Internet or other packet-based network, within a network local to the receiving device such as a home or corporate LAN, or the receiving device's own network where available). Using an end-to-end or process-to-process bandwidth estimate means that the bottleneck can be taken into account by reducing the maximum media packet size regardless of where the bottleneck occurs in the communication path.
[0019] Video data may be, for example, a series of video frames (i.e., images) that are played out by displaying them in succession at a playout rate R, which is referred to in this context as the frame rate, so that each frame is displayed for a duration of 1 / R before the next frame is displayed. Audio data may also be in the form of a series of audio frames to be played out at the playout rate (frame rate), or in the form of a series of individual audio data samples to be played out at the playout rate (sampling rate). An audio frame is a group of multiple audio data samples to be played out over a desired duration (which is the inverse of the frame rate, i.e., 1 / R in the case where R is the frame rate). For example, audio data is sometimes divided into frames in order to apply audio compression on a per-frame basis.
[0020] In the following, the description is expressed in terms of media frames and their frame rates, however as will be understood, all descriptions regarding frame rates are generally applicable to other types of playout rates, such as the sampling rates of individual audio samples where available (e.g., it is not always necessary to divide the audio data into frames).
[0021] The present disclosure notes that data packets of other data streams may cause "jitter" in media frames when they are played out at a receiving device. Jitter is the effect that occurs when the last received media frame is completely played out at the receiving device (i.e., played out for more than its expected duration (1 / R) for audio frames, and displayed for its expected duration (1 / R) for video frames) before the next media frame to be played out has been received. This in turn may cause, for example, perceptible interruptions in the audio or perceptible freezing or slowing down of the video, which may reduce the perceived quality of the audio / video when it is played out at the receiving device.
[0022] To help illustrate, consider the following example. For example, data packets of other data streams are sent (in time) between two data media data packets (i.e., audio or video packets) of a media stream, which contain adjacent media frames in the sequence of frames to be played out. Figure 5 , which shows that a video data packet VP of a further data stream (which in this example is a video stream) is sent between two audio data packets AP of a media stream (which in this example is an audio stream).
[0023] Other data packets can cause jitter in adjacent frames in the following situations:
[0024] △T O > 1 / R (1)
[0025] Among them, T Ois the worst case time it takes to completely transmit other data packets via the channel. That is, if the time taken to send other data packets exceeds the expected duration of the last received media frame (1 / R).
[0026] Equation (1) assumes that the playout of the next media frame can start immediately after its first part is received, before it is completely received. In the case where the next media frame needs to be completely received before its playout starts, jitter may occur in the following cases:
[0027] △T O + △T M > 1 / R (2)
[0028] Among them, △T M is the worst-case time it takes to completely transmit the next media frame contained in one or more media data packets of the media stream via the channel, i.e. if the time used to send other data packets and the next media frame exceeds the expected duration of the last received media frame (1 / R).
[0029] Note that Figure 5 In the example, △T O =△T V , and △T M =△T A .
[0030] These are just two examples: Exactly when other data packets will cause jitter is obviously dependent on the environment. However, the present disclosure notes that regardless of the individual environment, whether other data streams will cause jitter will depend at least to some extent on the size of the data packets in the other streams compared to the expected playout rate of the media data in the media stream.
[0031] Thus, the present subject matter solves this jitter problem by limiting the size of other data packets based on frame information that communicates a desired frame rate R, such that the maximum packet size for other data streams has a dependency on the frame rate R of frames in the (separate and different) media stream. The frame information may, for example, include the desired frame rate R and the desired frame duration (1 / R), or communicate the frame rate R in some other manner.
[0032] Worst case transmission time △T O and △T M It is given by the following equation:
[0033] △T O = MS O / BW (3)
[0034] △T M = MS M / BW (4)
[0035] Among them, MS O is the maximum size of other data packets and MS M is the maximum size of a media packet, for example, in bits, bytes, kilobits, kilobytes, etc.; BW is the available bandwidth, for example, in bits per second, bytes per second, kilobits per second, kilobytes per second, etc. That is, the relevant packet size is divided by the available channel bandwidth BW.
[0036] As indicated above, the available bandwidth BW is the end-to-end or process-to-process bandwidth of the entire communication path from the sending device to the receiving device, as this is what determines how long each data packet takes to fully arrive at the receiving device.
[0037] Embodiments of the subject matter are described in detail below. First, a context in which embodiments of the subject matter can be usefully applied will be described.
[0038] Figure 1 A block diagram of a communication system 1 is shown. The communication system 1 comprises a communication network 2, to which a first user device 6 and a second user device 10 are connected. The communication network 2 is in this example a packet-based internetwork (internet), such as the Internet, and thus comprises a plurality of routers 3 that route data between individual networks in the communication network 2. However, the communication network 2 may be another type of network such as a cellular network or a PSTN. In the case where the user devices 6, 10 are mobile devices, they may be connected to the Internet, for example, via a cellular network.
[0039] The user devices 6, 10 are respectively available to a first user 4 and a second user 8. Each user device 6, 10 is shown executing a respective client 7, 11.
[0040] Each client 7, 11 is used to implement communication events within the communication system 1 via the communication network 2, such as audio and / or video calls between the user 4 and other users 8, and / or other communication events, such as whiteboards, instant messaging or screen sharing sessions. The communication system 1 can be based on an Internet protocol voice or video (VoIP) system. These systems can be beneficial to users because they often have significantly lower costs than traditional fixed-line or mobile cellular networks, especially for long-distance communications. The client 7, 11 establishes a VoIP connection and provides other functions such as registration and user authentication (e.g., based on login credentials such as a username and an associated password).
[0041] In order to realize the communication event, data is captured from each of the users at their corresponding devices and sent to the devices of other users for output to other users. For example, in a video call, audio data containing the user's voice (call audio) is captured via the microphone of the corresponding device and sent in an audio data stream via the network; video data reflecting the user's movement (call video) is captured via the camera of the corresponding device and sent in a video stream via the communication network 2. The call audio / video is captured and encoded at the sending device before sending, and is decoded and output at other devices after being received. Users 4 and 8 can therefore communicate with each other audibly and visually via the communication network 2.
[0042] A communication event may be real-time in the sense that there is a short delay of, for example, approximately 2 seconds or less, at most, between when data (e.g., call audio / video) is captured from one of multiple users at their device and when the captured data is output to the other users at their devices.
[0043] exist Figure 1 Only two users 4, 8 in the communication system 1 are shown, but as will be readily appreciated, there may be many more users of the communication system 1, each of which operates their devices and clients to enable them to communicate with other users via the communication network 2. For example, a group communication event such as a group call (e.g., a video conference) may be performed between three or more users of the communication system 1.
[0044] Figure 2A block diagram of a user device 6 is shown. The user device 6 is a computer device that can take a variety of forms, such as a desktop or laptop computer device, a mobile phone (e.g., a smart phone), a tablet computing device, a wearable computing device (headset, smart watch, etc.), a television (e.g., a smart TV) or other wall-mounted device (e.g., a video conferencing device), a set-top box, a game console, etc. The user device 6 includes a processor 22, which is formed by one or more processor units (e.g., CPU, GPU, custom processing unit, etc.) and the following components connected to the processor 22: a memory 20 formed on one or more memory units (e.g., RAM units, direct access memory units, etc.); a network interface 24; at least one input device, such as a camera 27 and a microphone 28 as shown; at least one output device, such as a speaker 26 and a display 25. The user device 6 is connected to the communication network 2 via its network interface 24 so that the processor 22 can send data to / receive data from the communication network 2. The network interface 24 can be a wired interface (e.g., Ethernet, FireWire, Thunderbolt, USB, etc.) or a wireless interface (e.g., Wi-Fi, Bluetooth, NFC, etc.). The memory stores the code of the client 7 to execute on the processor 22. The client 7 can be, for example, a plug-in of another application such as an independent communication client application, a Web browser, etc., which runs on a processor in an execution environment provided by other applications. The client 7 has a user interface (UI) for receiving information from the user 4 and outputting information to the user 4. For example, the client 7 can output decoded audio / video via a speaker 26 and a display 25, respectively. The display 25 can include a touch screen so that the display can serve as an input device. The client captures audio / video via a microphone 28 and a camera 27, respectively, which is encoded and sent to one or more other user devices of other users participating in the call. Any of these components can be integrated in the user device 6 or connected to the external component of the user device 6 via a suitable external interface.
[0045] Figure 3It is shown how a channel 12 can be established between user devices 6, 10 via a communication network 2. The communication network 2 has a plurality of network layers, namely a link layer 14 (the lowest layer), a network layer 15 above the link layer 14, a transport layer 16 above the network layer 15, and an application layer 17 above the transport layer 16. The network layers may be, for example, according to the TCP / IP group. The application layer 17 provides process-to-process communication between processes running on different hosts, i.e., general-purpose computer devices connected to the communication network 2, such as user devices 6, 10. The transport layer 16 provides end-to-end communication between different hosts, including providing end-to-end connections between multiple hosts for use by the processes. The network layer 15 provides routing via a router 3, i.e., communication between different individual networks of the Internet 2. The link layer 14 provides communication between physical network addresses (e.g., MAC "media access control" addresses) of adjacent nodes in the individual networks of the Internet 2, for example, via network switches and / or hubs, etc. operating at the link layer 14.
[0046] In this example, the channel 12 is an application layer channel at the application layer 17 of the communication network 2, which is established between instances of the clients 7, 11 respectively running on the user devices 6, 10. That is, a process-to-process channel between the client instances on the two user devices 6, 10.
[0047] The channel 12 can in turn be established via one or more transport layer channels between the user devices 6, 10, which are often referred to as end-to-end or host-to-host channels. Each transport layer channel is in turn established via a channel between one of the user devices 6, 10 and the router 3 or a network layer channel between multiple pairs of routers 3, which is in turn established via a link layer channel within an individual network of the Internet 2.
[0048] The embodiments of the present subject matter described hereinafter are applicable to channel 12. However, in general the present subject matter may be applied at any network layer (eg, at a transport layer channel).
[0049] The channel 12 is in this example a unidirectional channel from the client instance on the first user device 6 to the client instance on the second user device 10. Alternatively, the channel 12 may be bidirectional, e.g. with respective (fixed or variable) portions of its total bandwidth allocated to communications in each direction.
[0050] The described embodiments are applied at the first user equipment 6 to implement data transmission from the first user equipment 6 to the second user equipment 10. Obviously, the embodiments can be equally applied at the user equipment 10 to implement transmission in the other direction in the same call.
[0051] For example, Figure 4A media data transmission system 30 of a user device 6 is shown. Various functional modules 32-46 of the media data transmission system 30 are shown, which are software modules of the client 7. That is, the functional modules 32-46 represent functions implemented by executing corresponding codes of the client 7 on the processor 22 of the user device 6. The functional modules include: an audio frame module 32, an audio encoder 34, an audio packetization module 36, which constitute an audio data packetization system 31a of the media data transmission system 30; a traffic shaping module 39, a bandwidth measurement module 45, and a multiplexer 40; a video encoder 42, and a video packetization module 44, which constitute a video data processing system 31b of the media data transmission system 30; and a video packet size determination module 46. Also shown are audio and video data buffers 50, 52, which are implemented in the memory 20 and can be, for example, first-in-first-out buffers.
[0052] The audio data packetization system 31a packetizes the audio data captured by the microphone 28 in real time for transmission to the user device 10 via the channel 12 during a call between the users 4 , 8 .
[0053] The audio frame module 32 receives the audio data samples captured by the microphone 28 and generates a series of audio frames AF using the received audio samples. Each audio frame AF is a group of consecutive audio samples captured by the microphone. The number of samples in each frame can be based on the frame information 23 (see FIG. 2 ) stored electronically in the memory 20. Figure 2 ) is configured by the audio codec. The frame information 23 conveys the expected frame rate RA for the audio frames and may be, for example, a frame parameter that specifies the frame rate RA (e.g., in frames per second) or the expected audio frame duration (1 / RA) (e.g., in ms or audio samples). Typical frame durations (1 / RA) are 20ms, 40ms, 60ms, 80ms, or 100ms and may be audio codec dependent. The frame rate RA is the rate at which frames are expected to be played out at the user device 10, which should match the rate at which they are generated in real time.
[0054] The audio encoder 34 applies audio compression to the frames AF on a per-frame basis, thereby reducing the size (in bits) of each frame AF for transmission.
[0055] The audio encoder 34 and the audio frame module 32 may, for example, constitute an audio codec of the client 7 .
[0056] The audio packetization module 36 encapsulates the encoded audio frames AF into audio data packets AP (which are application layer packets in this example) in real time to generate an audio data stream AS. That is, the audio data packets AP are data packets of the audio stream AS.
[0057] Each audio data packet AP has a header and a payload, the header including relevant metadata, such as a stream identifier identifying an audio stream AS, while the payload includes audio data of an audio frame AF. In this example, each audio packet payload includes one (and only one) entire audio frame AF, so that there is a direct one-to-one correspondence between audio frames AF and audio data packets AP. However, it is clear that the audio frames AF can be organized into packets in various other ways.
[0058] Once the audio data packets AP of the audio stream AS have been generated, they are stored in the audio data buffer 50 for transmission via the channel 12 .
[0059] The video data processing system 31 b packetizes the video data (image data) captured by the camera 27 in real time for transmission to the user device 10 via the channel 12 during a call between the users 4 , 8 .
[0060] The video encoder 42 (e.g., a video codec) receives video frames from the camera 27 at a video frame rate RV, for example, 15-20fps (frames per second), or higher, such as 20-30fps, or even up to 60fps for high-quality video. That is, the RV video frames VF are captured every second. Each video frame VF is an image to be displayed at the receiving device. The images are expected to be displayed successively at the receiving device at the same rate at which they are captured so as to accurately replicate the motion captured by the camera 27. The video encoder 42 applies video compression to the received frames VF to reduce their size (in bits). This may involve, for example, image quantization, whereby a range of pixel values is mapped to a single value; reducing the pixel resolution of the frame, i.e., reducing the number of pixels in each frame; intra-frame coding, whereby pixel values in the encoded frame are expressed relative to other pixels in the same frame; inter-frame coding, whereby pixel values in each frame are expressed relative to pixels in the same frame or other frames, and so on.
[0061] The video packetization module 44 encapsulates the encoded video frame VF in the video data packet VP of the video data stream VS. Each video data packet VP has a header and a payload, wherein the header includes relevant metadata, such as an identifier of the video stream VS that distinguishes the video stream VS from the audio stream AS, and the payload includes the encoded video data in the encoded frame. In this example, the video data packet VP, and in particular its payload, has a variable size. In particular, the maximum size MSV of each video data packet VP is dynamically determined by the video packet size determination module 46, as will be described when appropriate. Thus, each video data packet VP can include only some encoded video data in a single encoded frame, the entire encoded frame, encoded video data in multiple encoded frames, etc., depending on how the maximum packet size MSV is currently set.
[0062] Once the video data packets VP of the video stream VS have been generated, they are stored in the video data buffer 52 for transmission to the user device 10 via the channel 12 .
[0063] The audio and video packets VP, AP may for example have a fixed header of respective size.The video packet VP may at least have a payload of variable size, which may vary according to the maximum packet size MSV.
[0064] The multiplexer 40 multiplexes the audio and video streams AS, VS on the channel 12 (ie the same channel) using time division multiplexing. That is, the audio and video data packets AP, VP are then selectively retrieved from the audio and video data buffers 50, 52, respectively, and sent one after another via the channel.
[0065] The audio and video data packets AP, VP are dedicated audio and video data packets, respectively, i.e., each of the packets includes only one of the audio data and the video data; i.e., the audio data and the video data are not mixed in the same packet. Both the audio data packets AP and the video data packets VP are generated sequentially, i.e., the audio packets are generated one after another, as are the video data packets. The generation of the video data packets VP is simultaneous with the generation of the audio data packets AP; i.e., the audio and video data packets AP, VP are generated in parallel with each other.
[0066] The audio and video packets AP, VP are multiplexed into a stream as they are generated by a multiplexer 40. The multiplexing is such that any two adjacent audio packets AP are separated from each other by at most one video data packet VP, which is affected by the traffic shaping module 39, in this example.
[0067] The bandwidth measurement module 45 determines the available bandwidth BW of the channel 12. That is, the bandwidth BW available for the audio and video streams AS, VS, which may be the total bandwidth BW of the channel or a portion of the total bandwidth, such as a portion allocated to be shared by the streams AS, VS. In this example, the determined bandwidth BW is the determined process-to-process bandwidth of the channel 12 (but may alternatively be, for example, the determined end-to-end bandwidth of the transport layer channel).
[0068] By reducing the maximum video packet size MSV at low bandwidths, audio packet jitter can be reduced and thus the audio quality for audio-video calls can be improved. That is, the audio packet jitter introduced by the transmission of the video packets VP can be reduced or eliminated.
[0069] Thus, the video packet size determination module 46 controls the maximum video packet size MSV as a function of: (i) the frame rate RA of the audio stream AS and (ii) the available bandwidth (BW) of the channel 12 .
[0070] By reducing the maximum video packet size MSV for the current video frame rate RA as the bandwidth decreases, audio jitter may be prevented or at least reduced.
[0071] In other words, the maximum video packet size MSV is dynamically adjusted based on the channel capacity and the audio frame rate RA.
[0072] The audio packets AP created at the sender end are placed directly on the line (i.e., multiplexed directly onto channel 12), approximately every 20 ms for an audio frame rate RA of 50 fps, while the video packets VP are stepped through the traffic shaping module 39 in order to avoid sending too large bursts of video data between audio packets. The stepping granularity is limited to one video packet, and therefore the maximum instantaneous delay ΔT introduced by stepping one video packet between audio packets is V It is equal to the maximum video packet size MSV divided by the available channel bandwidth BW. That is:
[0073] △T V =MS V / BW
[0074] As in Figure 5 As shown in .
[0075] As an example, for a maximum video packet size of, for example, 1152 bytes (plus header 1200 bytes) and an available channel bandwidth of 100 kbps, this corresponds to ΔT V = 100 ms (1200 bytes / 12.5 bytes per second) transmission time. This may cause a significant increase in audio jitter when inserted between audio packets that are expected to be spaced only 20 ms apart.
[0076] In order to prevent the video data packets MSV from generating audio packet jitter, in some cases the maximum video packet size MSV may be set such that:
[0077] MS V =BW / R A (or, more generally, MS V ≤BW / R A )
[0078] That is, when it is no greater than (eg, substantially equal to) the available channel bandwidth BW divided by the audio frame rate R A This prevents the situation in equation (1) above from occurring.
[0079] In other cases, the maximum video packet size MSV may be set such that:
[0080] MS V =(BW / R A )-MS A (or, more generally, MS V ≤(BW / R A )–MS A )
[0081] Among them, MS A is the size (or maximum size) of the audio packet AP, so that the time taken to transmit one audio packet AP is:
[0082] △T A =MS A / BW
[0083] If also Figure 5 This prevents the situation in equation (2) above from occurring.
[0084] Making the video packets as large as possible (i.e. as large as possible without generating audio jitter) makes the most efficient use of the available bandwidth BW, since this means that as small a portion of the bandwidth BW as possible is used for packet header data. The maximum video packet size MSV may be bounded such that:
[0085]
[0086] Among them, for example
[0087] or That is, MS V Can be the audio frame rate R A and (in some cases) the available bandwidth BW, i.e., lowered by a first predetermined value MS min The upper limit is the second predetermined value MSmax .
[0088] For example, MS min = 256 bytes and MS max = 1152 bytes. For example, MS V It can increase linearly from 256 bytes at 100 kbps (and below) to 1152 bytes at 460 kbps (and above).
[0089] Traffic shaping is achieved by the traffic shaping module 39 preferentially multiplexing audio data packets into the combined stream ahead of video data packets. That is, by delaying the multiplexing of any available video data packets (i.e., any video packets currently held in the video data buffer) into the combined stream to allow any currently available audio data packets (i.e., any audio data packets currently held in the audio data buffer) to be multiplexed into the combined stream first. That is, audio data packets are retrieved from the audio data buffer and incorporated into the combined stream in priority to video data packets in the video data buffer, so that video data packets are incorporated only after all available audio data packets have been incorporated into the combined stream.
[0090] Alternatively, a server (e.g., a media relay server) may receive the stream VS and / or AS, i.e., the server may replace Figure 3 The position of the second user device 10 in the media relay server. The media relay server also operates at the application layer 17, and in this case, the channel 12 is process-to-process, i.e., the application layer channel between the user device 6 and the media relay server (or end-to-end, i.e., the transport layer channel). The media relay server can, for example, perform functions such as repacketizing audio and / or video into new media data packets after transcoding and / or audio mixing (e.g., in a packet call), etc. The new media data packets are sent to the second user device 10 from the media relay server via separate, additional process-to-process or end-to-end channels between the media relay server and the second user device 10. In this case, the media relay server can include the present technology in the repacketization process, wherein the maximum packet size of the new video data packet is limited based on the broadcast rate and the end-to-end or process-to-process bandwidth estimation of the additional channel between the media relay server and the second user device 10.
[0091] That is, the present technology can be implemented in the following situations, for example:
[0092] 1. At the sending user equipment, based on the end-to-end or process-to-process bandwidth of the channel between the sending user equipment and the receiving user equipment; or
[0093] 2. At the sending user device, based on the sending user device and the server operating at the application layer 17 (or at the application layer
[0094] 17) between the end-to-end or process-to-process bandwidth of the channel; and / or
[0095] 3. At the server (or other intermediate device), based on the end-to-end or process-to-process bandwidth of the channel between the server and the receiving user device.
[0096] Although described above with reference to audio frames, the same techniques may be applied to video frames. For example, in the case where the video frame rate exceeds the frame rate, video packet jitter may actually be more perceptible than audio packet jitter, so it is appropriate to adjust the maximum audio packet size MSA based on the frame information 23 relating to the video frame rate RV. Furthermore, in general, the data in the packet whose maximum size is adjusted may not be audio or video data at all, but some other type of data, for example control data multiplexed into a control data stream on the same channel.
[0097] It should be noted that, in general, the frame information 23 may include a frame rate (R, e.g., in frames per second) or a frame duration (FD=1 / R, e.g., in ms or, if available, in audio samples), e.g., for an audio frame, the time interval within which a frame is played out, and for a video frame, the time interval within which a frame is displayed before changing to the next video frame. The frame duration conveys the frame rate, since the frame rate is the inverse of the frame duration, i.e., R=1 / FD.
[0098] It should be noted that although in the above, both bandwidth BW and frame rate R are used to calculate the maximum packet size MS, this is not necessary, for example, in some cases a fixed bandwidth may be assumed. Furthermore, the maximum packet size MS does not necessarily have to be determined at the client - it may for example be determined elsewhere in the network, or in the case of a fixed bandwidth and fixed frame rate may even be determined in advance and hard-coded into the client 7.
[0099] Generally speaking, any of the functions described herein can be implemented using software, firmware, hardware (e.g., fixed logic circuitry), or a combination of these implementations. The terms "module," "function," "component," and "logic" as used herein generally represent software, firmware, hardware, or a combination thereof ( Figure 4In the case of software implementation, a module, function, or logic represents a program code that performs a specified task when executed on a processor (e.g., a CPU or multiple CPUs). The program code can be stored in one or more computer-readable memory devices. The features of the technology described below are platform-independent, which means that the technology can be implemented on a variety of commercial computing platforms with a variety of processors.
[0100] For example, user equipment 6, 10 (user terminal) may also include an entity (e.g., software) that causes the hardware of the user equipment to perform operations, such as a processor function block, etc. For example, the user equipment may include a computer-readable medium, which may be configured to store instructions that cause the user equipment, and more particularly the operating system and the associated hardware of the user equipment to perform operations. Therefore, the instructions are used to configure the operating system and the associated hardware to perform operations, and in this way cause the conversion of the state of the operating system and cause the associated hardware to perform functions. The instructions may be provided to the user equipment by a computer-readable medium through a variety of different configurations.
[0101] One such configuration of a computer-readable medium is a signal bearing medium, and is thus configured to send instructions (e.g., as a carrier wave) to a computing device, e.g., via a network. A computer-readable medium may also be configured as a computer-readable storage medium, and is thus not a signal bearing medium. Examples of computer-readable storage media include random access memory (RAM), read-only memory (ROM), optical disks, flash memory, hard disk storage, and other memory devices that may use magnetic, optical, and other technologies to store instructions and other data.
[0102] A first aspect of the present subject matter is directed to a method for sending multiple data streams from a sending device to a receiving device via a channel, the method comprising: generating a media data stream at the sending device, the media data stream comprising audio data or video data to be played out at the receiving device at a desired playout rate; determining a maximum packet size for another data stream using playout information, the playout information relating to the audio data or video data of the media data stream and conveying the desired playout rate for the audio data or video data; generating a plurality of data packets of the another data stream based on the determined maximum packet size at the sending device, wherein each data packet has a packet size not exceeding the determined maximum value; and multiplexing the media data stream and the another data stream onto the end-to-end channel or the process-to-process channel at the sending device, thereby sending both the media data stream and the another data stream from the sending device to the receiving device via the same channel.
[0103] In an embodiment, the media data stream may be an audio data stream comprising audio data; wherein the other data stream may be a video data stream, and the data packets are video data packets comprising video data to be played out at the receiving device.
[0104] The maximum packet size may also be determined based on a bandwidth of a channel available to the media stream and the further stream.
[0105] The maximum packet size may be no greater than the available bandwidth divided by the desired playout rate.
[0106] The maximum packet size may be substantially equal to the available bandwidth divided by the desired playout rate.
[0107] The maximum packet size of the another data stream may be no greater than the available bandwidth divided by the desired playout rate minus a maximum packet size of media data packets of the media stream.
[0108] The maximum packet size of the another data stream may be substantially equal to the available bandwidth divided by the desired playout rate minus a maximum packet size of media data packets of the media stream.
[0109] The sending device may be a sending user equipment.
[0110] Alternatively, the sending device may be a sending server.
[0111] The receiving device may be a receiving user equipment.
[0112] Alternatively, the receiving device may be a receiving server.
[0113] The available bandwidth for the media stream and the further stream may be the total bandwidth of the channel, or a portion of the total bandwidth shared by the data streams.
[0114] Traffic shaping may be implemented at the sending device by delaying multiplexing of available data packets of the other data stream onto the channel to allow available data packets of the media data stream to be multiplexed onto the channel first.
[0115] The data packets of the stream may be rendered available for multiplexing onto the channel by storing them in a first data buffer and a second data buffer of the sending device, respectively.
[0116] Steps may be performed to effectuate a call between a user of the sending device and a user of the receiving device.
[0117] The maximum packet size may be lower bounded by a first predetermined value and upper bounded by a second predetermined value, and may vary depending at least on a playout rate between the first predetermined value and the second predetermined value.
[0118] The streams may be multiplexed such that each adjacent pair of data packets of the media stream sent via the channel is separated by at most one data packet of the other stream on the channel.
[0119] The audio data or video data may be in the form of a series of audio frames or video frames, and the desired playout rate is the desired frame rate of the frames.
[0120] Each frame in the series of frames may be embodied in a single respective data packet of the media data stream.
[0121] The media data stream may be a video data stream comprising video data; while the another data stream may be an audio data stream, and the data packets may be audio data packets comprising audio data to be played out at the receiving device.
[0122] The channel may be an application layer channel established via a network at an application layer of the network.
[0123] The channel may be a transport layer channel established via a network at a transport layer of the network.
[0124] A second aspect of the present subject matter relates to a device for sending multiple data streams to a receiving device via a network having multiple network layers, the device comprising: a network interface; a memory storing stream generation code; and a processor, wherein the stream generation code is configured to cause the following operations when executed on the processor: generating a media data stream, the media data stream comprising audio data or video data to be played out at the receiving device at a desired playout rate; determining a maximum packet size for another data stream using playout information, the playout information relating to the audio data or video data of the media data stream and conveying the desired playout rate for the audio data or video data; generating a plurality of data packets of the another data stream based on the determined maximum packet size, wherein each data packet has a packet size not exceeding the determined maximum value; and multiplexing the media data stream and the another data stream onto the channel using the network interface, thereby sending both the media data stream and the another data stream from the sending device to the receiving device via the same channel.
[0125] A third aspect of the present subject matter relates to a method for sending audio data and video data from a sending device to a receiving device via a channel, the method comprising: generating a set of data packets at the sending device, which embody a first sequence of media frames to be broadcast at the receiving device at a desired frame rate, the first sequence of frames being one of audio frames or video frames; determining a maximum packet size for a second sequence of media frames using frame information of the first sequence of media frames involving audio frames, the frame information conveying the desired frame rate, wherein the second sequence of media frames is the other of audio frames or video frames; generating a second set of data packets at the sending device based on the determined maximum value, which embody a second sequence of media frames, each data packet in the second set of data packets having a packet size not greater than the determined maximum value; and multiplexing the first set of data packets and the second set of data packets onto the channel at the sending device, thereby sending both the media data stream and the other data stream from the sending device to the receiving device via the same channel.
[0126] A fourth aspect of the present subject matter is directed to a device for sending audio data and video data to at least one other device, the device comprising: a network interface; a memory storing a stream generation code; a processor, wherein the stream generation code is configured to implement the method described in the third aspect when executed on the processor.
[0127] A fifth aspect of the present subject matter is directed to a computer program product comprising code, the code being stored on a computer-readable medium and being configured to, when executed on a processor of a sending device, implement any one of the methods described in the above aspects or embodiments thereof.
[0128] Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as exemplary ways of implementing the claims.
Claims
1. A method for preventing jitter in an audio stream, the method comprising: At a sending computing device, using one or more computer processors: determining an available end-to-end network bandwidth between the sending computing device and a receiving computing device, the receiving computing device being a recipient of the audio stream; determining a maximum packet size for video packets of the video stream, the maximum packet size being calculated based on the available end-to-end network bandwidth and an audio sampling rate of the audio stream, the maximum packet size being determined to allow the transmitting computing device to transmit at least one video packet between transmissions of a first audio packet and a second audio packet such that the second audio packet can be received by the receiving computing device before the first audio packet can be fully played out at the audio sampling rate; Creating a video packet according to the video stream, wherein the size of the video packet is less than or equal to the maximum packet size; as well as The video packets are caused to be sent to the receiving computing device between consecutive audio packets corresponding to the audio stream.
2. The method according to claim 1, wherein: The audio stream and the video stream are part of a two-way network communication between the sending computing device and the receiving computing device.
3. The method according to claim 2, wherein: The two-way network communication is a call, and wherein the method further comprises: capturing the video stream using a camera communicatively coupled to the sending computing device; and The audio stream is captured using a microphone communicatively coupled to the sending computing device.
4. The method according to claim 1, wherein: The receiving computing device is a media relay server.
5. The method according to claim 1, wherein: The maximum packet size is limited between a predetermined maximum size and a predetermined minimum size.
6. The method according to claim 1, wherein: Determining the maximum packet size for video packets of the video stream includes: calculating the maximum packet size based on the available end-to-end network bandwidth and the audio sampling rate of the audio stream, the maximum packet size being determined to allow the sending computing device to transmit at least one video packet between the transmission of the first audio packet and the second audio packet, so that the second audio packet is fully received by the receiving computing device before the first audio packet can be fully broadcast at the audio sampling rate.
7. The method according to claim 1, wherein: Determining the maximum packet size for video packets of the video stream includes: calculating the maximum packet size based on the available end-to-end network bandwidth and the audio sampling rate of the audio stream, the maximum packet size being determined to allow the sending computing device to transmit at least one video packet between the transmission of the first audio packet and the second audio packet, so that the second audio packet is partially received by the receiving computing device before the first audio packet can be fully broadcast at the audio sampling rate.
8. A first computing device, comprising: one or more computer processors; A memory storing instructions that, when executed by the one or more computer processors, cause the first computing device to perform operations including: determining an available end-to-end network bandwidth between the first computing device and a second computing device, the second computing device being a recipient of the audio stream; determining a maximum packet size for video packets of the video stream, the maximum packet size being calculated based on the available end-to-end network bandwidth and an audio sampling rate of the audio stream, the maximum packet size being determined to allow the first computing device to transmit at least one video packet between transmissions of a first audio packet and a second audio packet such that the second audio packet is received by the second computing device before the first audio packet can be fully played out at the audio sampling rate; Creating a video packet according to the video stream, wherein the size of the video packet is less than or equal to the maximum packet size; as well as The video packets are caused to be sent to the second computing device between consecutive audio packets corresponding to the audio stream.
9. The first computing device according to claim 8, wherein: The audio stream and the video stream are part of a bidirectional network communication between the first computing device and the second computing device.
10. The first computing device according to claim 9, wherein: The two-way network communication is a call, and wherein the operations further comprise: capturing the video stream using a camera communicatively coupled to the first computing device; and The audio stream is captured using a microphone communicatively coupled to the first computing device.
11. The first computing device according to claim 8, wherein: The second computing device is a media relay server.
12. The first computing device according to claim 8, wherein: The maximum packet size is limited between a predetermined maximum size and a predetermined minimum size.
13. The first computing device according to claim 8, wherein: The operation of determining the maximum packet size for video packets of the video stream includes: calculating the maximum packet size based on the available end-to-end network bandwidth and the audio sampling rate of the audio stream, the maximum packet size being determined to allow the first computing device to transmit at least one video packet between the transmission of the first audio packet and the second audio packet, so that the second audio packet is fully received by the second computing device before the first audio packet can be fully broadcast at the audio sampling rate.
14. The first computing device according to claim 8, wherein: The operation of determining the maximum packet size for video packets of the video stream includes: calculating the maximum packet size based on the available end-to-end network bandwidth and the audio sampling rate of the audio stream, the maximum packet size being determined to allow the first computing device to transmit at least one video packet between the transmission of the first audio packet and the second audio packet, so that the second audio packet is partially received by the second computing device before the first audio packet can be fully broadcast at the audio sampling rate.
15. A first computing device, comprising: means for determining available end-to-end network bandwidth between the first computing device and a second computing device, the second computing device being a recipient of the audio stream; means for determining a maximum packet size for video packets of the video stream, the maximum packet size being calculated based on the available end-to-end network bandwidth and an audio sampling rate of the audio stream, the maximum packet size being determined to allow the first computing device to transmit at least one video packet between transmissions of a first audio packet and a second audio packet such that the second audio packet is received by the second computing device before the first audio packet can be fully played out at the audio sampling rate; means for creating video packets from the video stream, the video packets having a size less than or equal to the maximum packet size; as well as Means for causing the video packets to be sent to the second computing device between consecutive audio packets corresponding to the audio stream.
16. The first computing device of claim 15, wherein: The audio stream and the video stream are part of a bidirectional network communication between the first computing device and the second computing device.
17. The first computing device of claim 16, wherein: The two-way network communication is a call, and wherein the first computing device further comprises: means for capturing the video stream using a camera communicatively coupled to the first computing device; and Means for capturing the audio stream using a microphone communicatively coupled to the first computing device.
18. The first computing device of claim 15, wherein: The maximum packet size is limited between a predetermined maximum size and a predetermined minimum size.
19. The first computing device of claim 15, wherein: The unit for determining the maximum packet size for video packets of the video stream includes: a unit for calculating the maximum packet size based on the available end-to-end network bandwidth and the audio sampling rate of the audio stream, the maximum packet size being determined to allow the first computing device to transmit at least one video packet between transmissions of the first audio packet and the second audio packet, so that the second audio packet is fully received by the second computing device before the first audio packet can be fully broadcast at the audio sampling rate.
20. The first computing device of claim 15, wherein: The unit for determining the maximum packet size for video packets of the video stream includes: a unit for calculating the maximum packet size based on the available end-to-end network bandwidth and the audio sampling rate of the audio stream, the maximum packet size being determined to allow the first computing device to transmit the at least one video packet between the transmission of the first audio packet and the second audio packet, so that the second audio packet is partially received by the second computing device before the first audio packet can be fully broadcast at the audio sampling rate.
Citation Information
Patent Citations
Efficient interworking between circuit-switched and packet-switched multimedia services
US20090180470A1
Streaming information based on available bandwidth
US20150215223A1
