Streaming server, transmission method and program
By dynamically adjusting chunk lengths based on picture data size and type, the streaming server optimizes video streaming to reduce delays and enhance latency, particularly in network environments with proxies.
Patent Information
- Application Number
- JP2021110018
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-01
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2041-07-01
AI Technical Summary
Low-latency video streaming technologies face significant delays due to varying data sizes of encoded video frames, particularly when using fixed chunk lengths in Common Media Application Format (CMAF), which can be exacerbated by network proxies.
A streaming server dynamically adjusts chunk lengths based on the size and type of picture data, using a chunk length determination unit to split streaming data into variable-length chunks, ensuring consistent data sizes and reducing download times.
This approach minimizes delays in video streaming by optimizing chunk lengths, allowing for low-latency distribution even through proxy servers, thereby improving user viewing times and reducing network delays.
Smart Images

Figure 0007562485000001 
Figure 0007562485000002 
Figure 0007562485000003
Abstract
Description
[Technical field]
[0001] The embodiments relate to a streaming server, a transmission method, and a program for video distribution. [Background technology]
[0002] Low-latency video streaming over the Internet is achieved by a method based on the Common Media Application Format (CMAF), a specification for a low-latency media format. In CMAF, the server divides the data to be transmitted into chunks, and the chunk length is usually set to a fixed time-based length. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-186524 A [Non-patent literature]
[0004] [Non-Patent Document 1] International Organization for Standardization, Information technology - Multimedia application format (MPEG-A) - Part 19: Common media application format (CMAF) for segmented media, ISO / IEC International Standard 23000-19:2018 Summary of the Invention [Problem to be solved by the invention]
[0005] However, picture data, which is encoded video frame data, usually has a different data size for each frame, so depending on the picture data, a significant delay may occur in reception by the viewer. The impact of factors such as the resolution and frame rate of the distributed program may also be significant.
[0006] An object of the present invention is to provide a streaming server, a transmission method, and a program for streaming video distribution that determine the chunk length for each chunk of streaming data. [Means for solving the problem]
[0007] The streaming server according to an embodiment of the present invention Segment is the unit of transmission of Multiple transmission units smaller than a segment Split into chunks This was obtained by A streaming server that outputs chunk data as streaming data, Based on the size of the picture data contained in the chunk a chunk length determination unit that calculates a chunk length, which is a time length of a chunk; Segment data, which is data for a segment in chunk length Multiple and a data generating unit that divides the data into chunks and generates chunk data. When the chunk length determination unit recognizes that the received picture data is an I-picture, it sets the chunk length to be shorter than the chunk length set as a fixed length. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a functional block diagram showing an example of the configuration of a system according to an embodiment. [Diagram 2] FIG. 2 is a schematic diagram showing an example of the configuration of streaming data according to the embodiment. [Diagram 3] FIG. 3 is a diagram showing the data configuration of segments and chunks of streaming data according to the embodiment. [Figure 4] FIG. 4 is a functional block diagram illustrating an example of the configuration of a streaming data generating unit of the server according to the embodiment. [Diagram 5] FIG. 5 is a flowchart illustrating an example of a processing operation of the streaming data generating unit according to the first embodiment. [Figure 6] FIG. 6 is a diagram showing the relationship between server transmission and viewer reception of streaming data according to the first embodiment. [Figure 7] FIG. 7 is a diagram showing the viewable time of chunks according to the first embodiment. [Figure 8] FIG. 8 is a diagram showing an example of a relationship between segments and chunks of streaming data according to the first embodiment. [Figure 9] FIG. 9 is a flowchart illustrating an example of a processing operation of the streaming data generating unit according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment will be described with reference to the drawings.
[0010] FIG. 1 is a functional block diagram showing an example of the configuration of a system according to an embodiment.
[0011] The server 1 is a streaming server that provides streaming content (which may include video, audio, etc.) to clients connected to the network 4, and may be configured, for example, by a computer having a CPU, memory, communication function, etc., or a cloud. For example, the server 1 may receive video data (which may include audio data, etc.) from a live camera (not shown) connected to the network 4, output the received video data as streaming data to the network 4, and provide it to a receiving device 2 (client) connected to the network 4. The server 1 may include a video encoding unit 11 for encoding (information source compression encoding) the received video data, and a streaming data generating unit 10 for generating streaming data from the encoded video data and outputting it to the network 4. The server 1 may also receive encoded video data equivalent to the encoded data output by the video encoding unit 11 from the outside, and directly input the received encoded video data to the streaming data generating unit 10 to generate and output the streaming data.
[0012] The receiving device 2 is a client that receives the streaming data output by the server 1, and may be configured by, for example, a computer having a CPU, memory, communication function, etc. The receiving device 2 may be a terminal such as a television receiving device for digital broadcasting or a smartphone, as long as it has a computer function and a communication function that can connect to the network 4. The receiving device 2 can output (present) streaming content obtained by decoding the received streaming data from the viewer 20. A user can view the streaming content by the viewer 20. The viewer 20 is, for example, application software for receiving and displaying the streaming content, and is installed in the receiving device 2. The viewer 20 has a function of decoding the streaming data, and may be, for example, Media Source Extensions of a browser standard API.
[0013] The proxy server 3 is a computer having, for example, a CPU, a memory, a communication function, etc., connected to the network 4, and may also have a cache function, a data transfer function, etc. The data transfer unit 30 may receive the streaming data output by the server 1 via the network 4, store it in a memory (not shown) or the like, and output the stored streaming data to the receiving device 2 upon request.
[0014] The network 4 is a network in which the server 1, the receiving device 2, the proxy server 3, etc. are connected and capable of communication, such as the Internet. In addition, the network 4 is not limited to the Internet, and may be a network including a plurality of different networks, whether wired or wireless, as long as each device is capable of communication.
[0015] FIG. 2 is a schematic diagram showing an example of the configuration of streaming data according to the embodiment, and shows examples of general picture data, segments, chunks, etc. as units of video data and streaming data.
[0016] The server 1 receives video data outputted from a live video camera, for example, and the video encoding unit 11 encodes the received video data and converts it into encoded video data (picture data). Picture data 501 shows an example of generated picture data arranged in playback order (time), and three types of picture data are shown. I-picture, B-picture, and P-picture are general techniques and terms and will not be described in detail, but each has the following characteristics. An I-picture is a picture that is completed in one picture. A P-picture is a difference image with respect to the previous I-picture, and cannot be decoded without referring to the previous I-picture. A B-picture cannot be decoded without referring to all related pictures (I-picture, B-picture, P-picture) before and after it. A collection of pictures from an I-picture to the next I-picture is called a Group Of Pictures (GOP). Picture data 501 shows an example in which a B-picture and a P-picture are generated between I-pictures 1 and 16, and the GOP is 15. In the GOP unit, the GOP can be understood as a decodable unit by always starting with an I-picture. Due to the above characteristics, an I-picture usually has a larger amount of data (data size) than other pictures.
[0017] Segment 502 is a decodable unit in streaming video data, and is an example of a case where one segment is composed of one GOP. Chunks 503 and 504 are examples of chunks defined by Common Media Application Format (CMAF), a standard for media formats. A chunk is a segment divided into smaller time lengths (usually less than one second) to store video data. The time length of a chunk is sometimes called a chunk length. A CMAF-compliant server realizes low-latency video streaming by outputting and distributing streaming data chunk by chunk. In CMAF-compliant segments that are generally used for low-latency video distribution, the chunk length is fixed. Chunk 503 is an example of a case where the chunk length is set to a fixed length, and all chunk lengths within the segment are the same (for example, 0.5 seconds). Usually, a user sets the chunk length in terms of time length (specified in seconds), but the chunk length can also be interpreted as the number of pictures (number of image frames) to be transmitted within the set time length. For example, if the chunk length is set to 1 second, the chunk length can be interpreted as the value of the image frame rate (the number of image frames transmitted per second). In this embodiment, the chunk length is a time length, and is determined, for example, by the streaming data generating unit 10 of the server 1.
[0018] When the chunk length is set to a fixed length, if the type of picture data or the type of media data stored in each chunk is different, the chunk length is the same but the amount of data (data size) may differ. For example, since an I-picture usually has a larger data size than a P-picture, the data size of a chunk in which an I-picture is stored tends to be larger than others (for example, chunks in which only P-pictures are stored). As a result, the data size differs for each chunk, and the time required to download data for each chunk may vary. In particular, there is a possibility that a large delay may occur in the download of a chunk in which an I-picture, which has a large data size, is stored, and the impact may be even greater if a proxy server or the like is used.
[0019] In this embodiment, the chunk length (time length) in a segment is variable, and the server 1 determines the chunk length for each chunk and generates chunks of the determined chunk length. Chunk 504 is an example of a case where the chunk length (time length) in a segment is variable, and chunks of different chunk lengths may be included in the same segment. Note that the chunk length may be defined as the number of image frames instead of time.
[0020] 3 is a diagram showing the data configuration of segments and chunks of streaming data according to the embodiment, and shows the data structure of CMAF-compliant segments and chunks. Segment 511 shows the segment configuration, and a CMAF-compliant segment (CMAF.m4s) stores a header indicating the type of segment called a Segment Type Box (styp), followed by one or more chunks.
[0021] Chunk 512 shows the structure of the chunk, and each chunk is composed of one Media Data Box (mdat) that stores the picture data itself and one Movie Fragment Box (moof) that stores meta information related to the mdat. The moof can contain information such as the data size of the picture data stored in the mdat of the same chunk. The data size usually includes the data size of the moof. The server 1 outputs and distributes the streaming data chunk by chunk, and the viewer 20 outputs the video content by inputting the acquired chunks into the decoding function, which allows the user to view.
[0022] FIG. 4 is a functional block diagram illustrating an example of the configuration of a streaming data generating unit of the server according to the embodiment.
[0023] The streaming data generating unit 10 includes a means for receiving picture data and its meta information for each piece of picture data, a control unit 100 for determining the chunk length of a chunk in which the picture data is stored based on the received information, and a packaging unit 120 for packaging the picture data with the chunk length determined by the control unit 100 and outputting the packaged picture data as a chunk (or segment).
[0024] The control unit 100 includes a data receiving unit 110 that receives picture data and meta information, a chunk generation determination unit 101 that determines whether or not to generate a new chunk based on the data output status (feedback information) input from the data output unit 106, a picture information extraction unit 102 that extracts picture information (such as picture type and data size) from the picture data, a picture buffering unit 103 that temporarily stores the picture data, a meta information updating unit 104 that updates the meta information based on the feedback information, a chunk length determination unit 105 that determines or calculates the chunk length for each chunk based on the updated meta information and picture information, and a data output unit 106 that outputs the chunk length and picture data to the packaging unit 120 and outputs feedback information to the chunk generation determination unit 101.
[0025] The picture information is information such as the type of picture and data size, and may be extracted by analyzing picture data. The meta information is information such as the resolution of video data, the frame rate (image frame rate), the average bit rate, and GOP. The frame rate may be, for example, the number of image frames (number of pictures) received by the data receiving unit 110 per second. The average bit rate may be, for example, the average per second or the average per chunk of the data size of all frames (pictures) received by the data receiving unit 110 in the past. The average bit rate may also be the average of picture data other than I-pictures, and any average bit rate can be defined. The feedback information is information generated and output by the data output unit 106, and may be, for example, information on how many chunks have been output in a segment. The data output unit 106 may also output information on the timing of outputting chunks to the packaging unit 120 as feedback information.
[0026] The packaging unit 120 includes a packaging processing unit 121 that packages the picture data input from the data output unit 106 (storing the picture data in chunk units) based on the chunk length received from the data output unit 106. The packaging data generated by the packaging processing unit 121 is basically data in chunk units, and data output in chunk units or segment units depending on the output timing of the packaging processing unit 121 may be output in chunk units or segment units. The packaging processing unit 121 outputs the packaging data to a communication unit (not shown) or the like, and outputs the packaging data from the communication unit to the network 4. (First embodiment) In the first embodiment, an example will be shown in which a server that generates and outputs streaming data determines the chunk length when generating chunks.
[0027] FIG. 5 is a flowchart illustrating an example of a processing operation of the streaming data generating unit according to the first embodiment.
[0028] It is assumed that a user is viewing streaming content provided by the server 1 on the viewer 20 of the receiving device 2. For example, the streaming content is video data captured by a live camera that the server 1 receives via the network 4 and distributes to the receiving device 2 by the server 1. Upon receiving the video data, the server 1 encodes the video data in the video encoding unit 11 to obtain picture data. Upon receiving the picture data and meta information, the data receiving unit 110 inputs them to the chunk generation determination unit 101 (step S101).
[0029] The chunk generation determination unit 101 determines whether to generate a new chunk (step S102). The determination of whether to generate a new chunk may be made based on picture data and meta information from the data receiving unit 110, or feedback information from the data output unit 106. More specifically, the chunk generation determination unit 101 may determine to generate a new chunk when it recognizes that the data output unit 106 has output a chunk or a segment based on the timing at which the chunk or segment of the feedback information is output. The chunk generation determination unit 101 may also determine to generate a new chunk when it recognizes that the data receiving unit 110 has received a picture (e.g., an I-picture) with a large amount of data by analyzing the picture data received by the data receiving unit 110. The chunk generation determination unit 101 may analyze all the picture data received by the data receiving unit 110, or may analyze the picture data at any timing. The chunk generation determination unit 101 may set a threshold value or the like in advance in a memory (not shown) and compare the data size of the picture data with the threshold value to determine whether the data amount is large or small. Also, the chunk generation determination unit 101 may determine to generate a new chunk depending on the type of received picture data. For example, the chunk generation determination unit 101 may always determine to generate a new chunk when an I-picture is received.
[0030] Furthermore, the chunk generation determination unit 101 may determine whether or not to generate a new chunk depending on the data output status when feedback information related to the data output status is acquired from the data output unit 106. Specifically, when there is a large amount of chunk data stored in a buffer (not shown) of the data output unit 106 (which may be the picture buffering unit 103), the chunk generation determination unit 101 may determine that the data transmission speed to the viewer 20 is low and decide to generate a new chunk. On the other hand, when there is a small amount of chunk data stored in a buffer (not shown) of the data output unit 106, the chunk generation determination unit 101 may determine that the data transmission speed to the viewer 20 is high and decide to refrain from generating a new chunk.
[0031] When it is determined that a new chunk is to be generated, the chunk generation determination unit 101 sends the picture data to the picture information extraction unit 102. In addition, the meta information acquired from the data receiving unit 110 and the feedback information acquired from the data output unit 106 are input to the meta information update unit 104 (YES in step S102).
[0032] The picture information extraction unit 102 behaves differently depending on the chunk generation by the chunk generation determination unit 101 in step S102. If a new chunk is not to be generated, the picture data is immediately input to the picture buffering unit 103 (NO in step S102, S106). On the other hand, if a new chunk is to be generated, picture information is extracted from the picture data and input to the chunk length determination unit 105 (step S103). Furthermore, the meta information update unit 104 receives meta information and feedback information from the chunk generation determination unit 101, updates the meta information based on them, and inputs it to the chunk length determination unit 105 (step S104). Note that the processes of steps S103 and S104 may be performed in parallel.
[0033] Next, the chunk length determination unit 105 determines the chunk length of a newly generated chunk based on the updated meta information received from the meta information update unit 104, the picture information received from the picture information extraction unit 102, feedback information, etc. (step S105). For example, when the chunk length determination unit 105 recognizes that the picture received from the picture information is a picture with a large data size (e.g., an I-picture), it may set the chunk length to be shorter than the chunk length set as the fixed length.
[0034] Also, the chunk length determination unit 105 may recognize up to which picture data of the current segment has been output as a chunk based on video data information (resolution, frame rate, average bit rate, GOP length, etc.) acquired from the updated meta information and feedback information (data output status), and determine the chunk length based on the remaining data amount of the current segment. At this time, the chunk length may be determined so that the number of bits (data amount, data size) included in one chunk does not exceed the average bit rate, for example.
[0035] For example, when the chunk length determination unit 105 recognizes from the feedback information that the pictures whose data have not been output are only pictures whose data size is small (for example, only pictures other than I-pictures), the chunk length of the newly generated chunk may be set to a large value because the chunk size will not increase even if the chunk length is increased. Also, when the chunk length determination unit 105 determines from the feedback information that the pictures whose data have not been output include a picture whose data size is large (for example, an I-picture) and that the newly generated chunk includes a picture whose data size is large, the chunk length of the newly generated chunk may be set to a small value because increasing the chunk length increases the chunk size and increases the delay time of downloading the chunk in the receiving device 2. Also, when the chunk generation determination unit 101 determines that the data transmission speed from the server 1 to the viewer 20 is low, the chunk length determination unit 105 may set the chunk length to a smaller value, such as to half the chunk length set as the fixed length.
[0036] Furthermore, the chunk length determination unit 105 may take into consideration the number of chunks already output in the same segment (which may be included in the feedback information) when determining the chunk length. For example, shortening the chunk length can shorten the transmission time of the chunk, but the number of chunks in the segment increases. Since metadata (moof of chunk 512 in FIG. 3) is added to each chunk, the metadata, which is overhead, increases as the number of chunks increases, and as a result, the amount of data (data size) to be transmitted in one segment increases. In such a case, it is desirable for the chunk length determination unit 105 to determine the chunk length so that the number of chunks does not increase so as to suppress the amount of data in one segment as much as possible. That is, the chunk length determination unit 105 may determine the chunk length so as to increase the data size of one chunk as much as possible. In this case, the upper limit of the data size may be determined based on information such as an average bit rate. Also, for example, when the number of chunks already output in the same segment obtained from the feedback information becomes larger than a certain threshold value, the chunk length determination unit 105 may determine the chunk length so as not to generate a new chunk in the same segment thereafter.
[0037] Furthermore, in the chunk length determination and setting process, the chunk length determination unit 105 may determine the chunk length taking into consideration video data information such as resolution, frame rate, average bit rate, etc. For example, if the chunk generation determination unit 101 recognizes that the types of pictures in the segment whose data have not been output are only pictures with small data sizes (for example, only pictures other than I-pictures), but at the same time the average bit rate of each picture is high, the chunk length may be set to be shorter than the chunk length set as a fixed length, regardless of the type of picture.
[0038] Also, the chunk length determination unit 105 may determine a chunk length according to picture data to be stored for each chunk, based on the type of picture, data size, etc. obtained from the picture information. Specifically, when the chunk length determination unit 105 recognizes that the type of the received picture is an I-picture with a large data size, it may set the chunk length to a smaller length, such as half the chunk length set as a fixed length.
[0039] Furthermore, the chunk length may be determined based on the estimated data size by estimating the data size of a picture to be stored in a newly generated chunk, for example, based on an average bit rate. For example, the number of frames of a picture to be stored in the future may be determined so that the total number of bits (data size of the chunk) estimated to be stored in the newly generated chunk does not exceed a first threshold value set in advance. A second threshold value may be set to determine the amount by which the estimated data size exceeds the threshold value. In this case, even if the estimated data size exceeds the first threshold value, if it is below the second threshold value, the chunk length of the estimated data size is determined as the chunk length of the newly generated chunk. Also, several chunk lengths, for example, large, medium, and small, may be determined in advance, and the chunk length may be automatically selected based on the type of the received picture, feedback information, and the like. For example, the chunk length determination unit 105 may select "small" as the chunk length when an I picture is received. If the chunk generation determination unit 101 determines from the feedback information that the data transmission speed from the server 1 to the viewer 20 is high, the chunk length determination unit 105 may select "large" as the chunk length.
[0040] Also, the chunk length determination unit 105 may calculate the data output rate by the data output unit 106 from the feedback information and determine the chunk length according to the data output rate. Specifically, when the data output rate of the data output unit 106 is high, the chunk length determination unit 105 may determine that the data transmission rate from the server 1 to the viewer 20 is high and set the chunk length as long as possible, and when the data output rate of the data output unit 106 is low, the chunk length determination unit 105 may determine that the data transmission rate from the server 1 to the viewer 20 is low and set the chunk length as short as possible.
[0041] The picture buffering unit 103 stores the picture data in the buffer in the order of the received picture data (step S106). The data output unit 106 judges whether or not to output the data in chunks (step S107). Specifically, the data output unit 106 may judge to output the chunks when it receives the chunk length from the chunk length determination unit 105. If the data output unit 106 judges not to output the chunks, it performs reception processing of the next picture data (NO in step S107). If the data output unit 106 judges to output the data, it extracts picture data of the determined chunk length from the picture buffering unit 103 and outputs the chunk length and the picture data to the packaging unit 120 (step S108). At the same time, the data output unit 106 outputs feedback information on the data output status, such as how much of the chunk in the current segment has been output, and how many B pictures and P pictures have been output from the I picture at the beginning of the segment or GOP, to the chunk generation determination unit 101 (step S109).
[0042] Upon receiving the chunk length and picture data, the package processing unit 121 packages the received picture data with the received chunk length, and generates and outputs chunks (or segments) (step S110). Since the chunks and segments output by the above procedure conform to the CMAF format, the viewer 20 of the receiving device 2 can receive the chunks generated and output by this embodiment without any particular modification and display the streaming content, as long as it conforms to, for example, CMAF.
[0043] As described above, by setting the chunk length to be variable, the server 1 can eliminate variation in data size between the chunks to be output, and can prevent large delays caused by specific chunks with large data sizes when the receiving device 2 downloads data.
[0044] When connecting to the Internet from within a corporate or local government network, it is usually necessary to go through multiple proxy servers, which can affect (delay) communication responses. Also, chunk division within a segment is usually performed in time units and at a fixed length, so it takes time to obtain a specific chunk with a large data size, and this effect becomes particularly large when going through a proxy server, and low-latency video distribution, which CMAF aims for, may not be possible. In this embodiment, the effect is particularly noticeable in a network environment via such proxy servers, making low-latency video distribution possible.
[0045] Fig. 6 is a diagram showing the relationship between server transmission and viewer reception of streaming data according to the first embodiment. Fig. 6(a) shows an example of segment delivery (segment length 4 seconds), Fig. 6(b) shows an example of fixed-length chunk delivery in a CMAF-compliant format (segment length 4 seconds, chunk length 1 second), and Fig. 6(c) shows an example of delivery according to this embodiment in which chunks are variable length in a CMAF-compliant format.
[0046] As shown in Figure 6(a), in the segment distribution method, it takes 4+α+β seconds from the time the server generates and transmits segment 4 until the viewer receives segment 4 and the user is able to view it. This is broken down into 4 seconds for the server to transmit segment 4, α seconds for network delay including processing by proxies, and β seconds for processing time other than the above such as the viewer download time.
[0047] As shown in Figure 6(b), when the chunk length is fixed, it takes 1+α+β seconds from the time the server generates and transmits chunk 4A of segment 4 until the viewer receives chunk 4A and the user can view it. This is broken down into 1 second of transmission delay by the server for chunk 4A, α seconds of network delay including processing by proxies, and β seconds of processing time other than the above such as the viewer download time. Therefore, in Figure 6(b), the server transmission time, α seconds of network delay, and β seconds of processing time are shorter than in Figure 6(a), and the viewable time of chunk 4A (corresponding to the beginning of segment 4) is improved.
[0048] FIG. 6(c) is an example of the case where the chunk length of chunk 4A in FIG. 6(b) according to this embodiment is shortened, and the transmission delay time by the server is shorter than 1 second shown in FIG. 6(b) by the amount of shortening the chunk length of chunk 4A. Similarly, the network transmission delay α seconds also becomes smaller when the size of the data to be transmitted is reduced, so that the network transmission delay α seconds can be reduced in FIG. 6(c) compared to FIG. 6(b). This effect is particularly noticeable when, for example, a proxy server 3 is used to transmit data from the server 1 to the receiving device 2. Similarly, the processing delay β seconds also becomes smaller when the size of the data to be transmitted is reduced, so that the processing delay β seconds can be reduced in FIG. 6(c) according to this embodiment compared to FIG. 6(b). Therefore, in FIG. 6(c), the transmission time by the server, the network delay α seconds, and the processing time β seconds are shorter than in FIG. 6(b), and the viewable time of chunk 4A is improved.
[0049] FIG. 7 is a diagram showing the viewable time of chunks according to the first embodiment.
[0050] Picture data 521 is an example of pictures that are successive from picture 1, an I-picture, with the horizontal axis representing data size. Picture 2 and onwards are, for example, B-pictures or P-pictures. In picture data 521, the horizontal width of each picture represents the data size, with picture 1, an I-picture, having the largest data size. Chunk 522 is an example of chunks when picture data 521 has a fixed chunk length and a variable chunk length, with the horizontal axis representing time. When chunk 522 has a fixed length, picture data 521 is stored in one chunk. When chunk 522 has a variable length, picture data 521 is divided into two or more chunks with the chunk length set in step S105 of FIG. 5. It is shown that chunk 522 can reduce the available viewing time for a user when the chunk length is variable rather than when the chunk length is fixed.
[0051] Fig. 8 is a diagram showing an example of the relationship between segments and chunks of streaming data according to the first embodiment, in which Fig. 8(a) shows an example of a segment chunked in a fixed length, and Fig. 8(b) shows an example of a segment chunked in a variable length.
[0052] As shown in FIG. 8(a), in a segment chunked with a fixed length, all chunks are set to a fixed length (0.5 seconds in this example). On the other hand, as shown in FIG. 8(b), a segment in this embodiment is chunked with a variable length, so chunks of different chunk lengths are included. For example, a chunk in which an I-picture with a large data size is stored is short (0.1 seconds in this figure), and other chunks have a chunk length determined by the flowchart in FIG. 5. Depending on the type and data size of picture data transmitted continuously, the chunk length may be longer than 0.5 seconds, such as 0.6 seconds, or may be shorter than 0.5 seconds. However, as for the data size of each chunk, the chunk length is determined in step S105 of FIG. 5 using, for example, the average bit rate as a threshold value, so that the variation in the data size of the chunk can be kept small.
[0053] 8(c) and 8(d) are examples of a case where one segment contains multiple pieces of data with large data size (e.g., I-pictures), and FIG. 8(c) is an example of a case where the segment is chunked with a fixed length, and FIG. 8(d) is an example of a case where the segment is chunked with a variable length. In step S102 of FIG. 5, by determining whether or not to generate a chunk based on the type of picture data from the data receiving unit 110, even if an I-picture is included in the middle of a segment as in FIG. 8(d), the chunk length for storing the I-picture can be set variably, and the variation in data size for each chunk can be suppressed. Since the present embodiment makes the case of FIG. 8(d) possible, in addition to delivery from the first chunk of a segment by HTTP / 1.1 GET or the like, content acquisition from the middle of a segment (HTTP Range GET, etc.) can also be assumed, and chunks can be divided in units of GOPs. This allows the viewer 20 to decode, output, and display picture data of the received chunk without waiting for multiple chunks.
[0054] As described above, in this embodiment, the package processing unit 121 outputs chunks or segments having a structure that complies with each low-latency media format such as CMAF, so that the receiving device 2 can watch low-latency video streaming content on a chunk-by-chunk basis without the need for any special modifications in a standard environment such as a browser.
[0055] As described above, according to the server 1 (streaming data generating unit 10) of the first embodiment, by setting a chunk length for each chunk and packaging it, it becomes possible to distribute video streaming contents with low delay.
[0056] Second embodiment In this embodiment, an example will be shown in which the chunk length is determined immediately before the picture data is output from the data output unit 106.
[0057] FIG. 9 is a flowchart illustrating an example of a processing operation of the streaming data generating unit according to the second embodiment.
[0058] As in the first embodiment, when the server 1 receives video data, the video encoding unit 11 encodes the video data to obtain picture data. When the data receiving unit 110 receives picture data and meta information, the data receiving unit 110 inputs the picture data and meta information to the chunk generation determination unit 101 (step S201). The chunk generation determination unit 101 stores the received data in the picture buffering unit 103 (step S202). The chunk generation determination unit 101 counts the data size and the number of pictures of all pictures received (step S203). The chunk generation determination unit 101 prepares a threshold value in a memory (not shown), and decides to generate a chunk when the counted data size exceeds the threshold value (YES in step S204). The chunk generation determination unit 101 calculates the chunk length from the count value of the number of pictures and the image frame rate when it is decided to generate a chunk (step S205). Steps S206 and after are the same as steps S108 and after in FIG. 5, and therefore will not be described. The threshold value used by the chunk generation determination unit 101 in step S204 may be set in advance, or may be set sequentially using, for example, the average bit rate to be calculated as the threshold value.
[0059] By the above procedure, the server 1 (streaming data generating unit 10) can determine the chunk length based on the chunk size immediately before generating the chunk.
[0060] According to at least one of the embodiments described above, it is possible to provide a streaming server, a transmission method, and a program for streaming video delivery that determine the chunk length for each chunk of streaming data.
[0061] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention, and technical elements in each embodiment can be applied to another embodiment. These embodiments and their modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims. Furthermore, even if each component of the claims is expressed by dividing the component, or expressing a plurality of components together, or expressing them in combination, it is within the scope of the present invention. Furthermore, multiple embodiments may be combined, and examples composed of this combination are also within the scope of the invention. Furthermore, some components may be deleted from all the components shown in the embodiments. Furthermore, components across different embodiments may be appropriately combined.
[0062] In addition, in order to clarify the explanation, the drawings may be shown in a schematic manner with respect to the width, thickness, shape, etc. of each part compared to the actual embodiment. In the block diagram, data and signals may be exchanged between blocks that are not connected, or in a direction in which an arrow is not shown even if the blocks are connected. The processing shown in the flowchart, sequence chart, etc. may be realized by hardware such as an IC chip or a digital signal processor (DSP), or software (such as a program) operated by a computer including a microcomputer, or a combination of hardware and software. In addition, the device of the present invention is applied even when the claims are expressed as a control logic, a program including instructions for executing a computer, or a computer-readable recording medium containing the instructions. In addition, the names and terms used are not limited, and other expressions are included in the present invention as long as they have substantially the same content and the same meaning. [Explanation of symbols]
[0063] 1...server, 2...receiving device, 3...proxy server, 4...network, 10...streaming data generation unit, 11...video encoding unit, 20...viewer, 100...control unit, 101...chunk generation determination unit, 102...picture information extraction unit, 103...picture buffering unit, 104...meta information update unit, 105...chunk length determination unit, 106...data output unit, 120...packaging unit, 121...packaging processing unit.
Claims
1. 1. A streaming server that outputs chunk data obtained by dividing a segment, which is a transmission unit of picture data, into a plurality of chunks, which are transmission units smaller than the segment, as streaming data, comprising: a chunk length determination unit that calculates a chunk length, which is a time length of the chunk, based on a size of picture data included in the chunk; a data generating unit that divides segment data, which is data of the segment, into the plurality of chunks by the chunk length to generate the chunk data; When the chunk length determination unit recognizes that the received picture data is an I-picture, the chunk length determination unit sets the chunk length to be shorter than a chunk length that is set as a fixed length.
2. 2. The streaming server according to claim 1, further comprising a chunk generation determination unit that determines whether or not to generate a new chunk each time the picture data is received.
3. 3. The streaming server according to claim 1, wherein the chunk length determination unit determines the chunk length for each chunk.
4. 4. The streaming server according to claim 1, wherein the chunk length determination unit determines the chunk length based on an output status of the chunk data.
5. The streaming server according to claim 2 , wherein the chunk generation determination unit determines whether or not to generate the new chunk depending on a type of the picture data.
6. 6. The streaming server according to claim 2, wherein the chunk generation determination unit determines whether or not to generate the new chunk based on an output status of the chunk data.
7. A streaming server as described in any one of claims 1 to 3, wherein the chunk length determination unit determines the chunk length based on the number of chunks that have been output in the segment.
8. A streaming server as described in claim 7, wherein, when the number of chunks already output in the segment is greater than a threshold value, the chunk length determination unit determines the chunk length so as not to generate new chunks in the segment.
9. A streaming server as described in any one of claims 1 to 3, wherein the chunk length determination unit determines the chunk length based on the size of picture data that has not been output within the segment.
10. A streaming server described in any one of claims 1 to 3, wherein the chunk length determination unit determines the chunk length so that the data size contained in the chunk does not exceed an average bit rate for each chunk calculated based on previously received picture data.
11. 1. A method for transmitting streaming data, comprising the steps of: dividing a segment, which is a transmission unit of picture data, into a plurality of chunks, which are transmission units smaller than the segment, to obtain chunk data; and outputting the chunk data as streaming data, the method comprising the steps of: calculating a chunk length, which is a time length of the chunk, based on a size of picture data included in the chunk; When it is recognized that the received picture data is an I-picture, the chunk length is set to be shorter than the chunk length set as a fixed length; A transmission method for generating the chunk data by dividing segment data, which is data of the segment, into the plurality of chunks by the chunk length.
12. 1. A program for outputting chunk data obtained by dividing a segment, which is a transmission unit of picture data, into a plurality of chunks, which are transmission units smaller than the segment, as streaming data, the program comprising: calculating a chunk length, which is a time length of the chunk, based on a size of picture data included in the chunk; When it is recognized that the received picture data is an I-picture, the chunk length is set to be shorter than the chunk length set as a fixed length; A program for dividing segment data, which is data of the segment, into the plurality of chunks by the chunk length to generate the chunk data.
Citation Information
Patent Citations
Video distribution device and video distribution method
JP2011234233A
Content transmitting apparatus and content reproducing apparatus
JP2017073814A
Content transmitting device and content reproduction device
JP2018186524A
Information processing apparatus, information processing method, and program
JP2020022106A
Dynamic chunking for delivery instances
US20120179788A1
