STREAM TRANSMISSION DEVICE, STREAM GENERATION DEVICE, AND PROGRAM

The stream sending device facilitates seamless bit rate transitions by using transition GOPs to maintain decoding consistency, addressing the challenge of video distortion during rate changes.

JP7565733B2Active Publication Date: 2024-10-11NIPPON HOSO KYOKAI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020160202
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-24
Publication Date
2024-10-11
Estimated Expiration
2040-09-24

AI Technical Summary

Technical Problem

Existing stream sending devices face challenges in seamlessly switching between different bit rates without causing video distortion on the receiving side, either leading to delayed transitions due to requiring IRAP AUs or increased bit rates with all-intra encoding.

Method used

The device switches between streams encoded at different bit rates by using transition GOPs that maintain the same decoding result as the original stream, allowing for instantaneous transitions at arbitrary AUs without disrupting the video.

Benefits of technology

Enables smooth switching between bit rates at any Access Unit (AU) without video disturbances, reducing bit rates efficiently and maintaining decoding integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565733000005
    Figure 0007565733000005
  • Figure 0007565733000006
    Figure 0007565733000006
  • Figure 0007565733000007
    Figure 0007565733000007
Patent Text Reader

Abstract

To perform switching, at an arbitrary AU, between streams encoded at different bit rates, and transmit the streams without causing distortion in a video on the receiving side.SOLUTION: A stream transmission device having a function of switching and transmitting a plurality of coded streams encoded at different bit rates includes a first bit rate stream encoded at a first bit rate, and a second bit rate stream encoded at a second bit rate, and uses, when switching from an i-th (0<i<GOP length) AU of an X-th (X is arbitrary) GOP of the first bit rate stream is performed, a transition GOP which has the same GOP structure as the X-th GOP, and in which, coding is performed, from a first AU to an i-1-th AU, to obtain the same decoding result as the X-th GOP of the first bit rate stream, and the i-th and subsequent AUs are encoded at a bit rate closer to the second bit rate than to the first bit rate.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a stream sending device, a stream generating device, and a program, and more particularly to a stream sending device, a stream generating device, and a program that can accommodate increases and decreases in network bandwidth (transmittable bit rate). [Background technology]

[0002] In recent years, content including ultra-high definition video images such as 4K and 8K has been put into practical use. This content is encoded and stored in advance, and is sent out by a stream sending device over a network, etc. Note that content includes multiple media such as video and audio, but since this invention is directed to video coding technology, the following description will only focus on video.

[0003] Various compression coding technologies have been put to practical use for recording and transmitting video, and for example, a coding method is used that realizes highly accurate prediction by simultaneously referring to past and future pictures by rearranging the coding order (Non-Patent Document 1). Also, depending on the reference method, each picture may be called an I (Intra Coded) picture that is an independently decodable picture, a P (Predictive Coded) picture that is a picture using forward motion compensation prediction, a B (Bi-directional Predictive Coded) picture that is a picture using bidirectional motion compensation prediction, or the like.

[0004] For technical explanation in this specification, some terms, functions, etc. are defined. One image (picture, frame, etc.) is called "AU (Access Unit)". Also, "IRAP (Intra Random Access Point) AU" refers to an AU that can be decoded normally when decoding is started from that AU, as well as the AUs following that AU in display order. A fragment of an encoded stream including an IRAP AU to the AU immediately preceding the next IRAP AU is called "GOP (Group of Pictures)". This GOP is the same as the concept generally called GOP in the field of video coding. Also, "GOP structure" refers to the reference mode such as I, B, P of each AU in the GOP and the structure of the AUs that can be referenced. This is also the same as the concept generally called "GOP structure" in the field of video coding. In this specification, the GOP length of a certain GOP is expressed functionally as "len(GOP)" and the GOP structure as "struct(GOP)". Also, the bit length of a certain AU is expressed as "strlen(AU)".

[0005] "Two streams have the same GOP structure" means that when the GOPs constituting one stream are GOP A[0], GOP A[1], GOP A[2],... and the GOPs constituting the other stream are GOP B[0], GOP B[1], GOP B[2],..., the GOP structures of GOP A[x] and GOP B[x] are the same for all x. Also, AU[x] refers to the x-th AU in the coding order of the GOP of interest (0<=x< len(GOP), "<=" has the above meaning).

[0006] Generally, in preparation for a reduction in the network bandwidth used for transmission, a stream transmission device encodes and stores the same content at multiple bit rates, and normally transmits an encoded stream encoded at a high bit rate.When congestion occurs in the network, for example, and the available network bandwidth decreases, the device switches to transmitting an encoded stream encoded at a low bit rate.

[0007] FIG. 9 is a conceptual diagram of an encoded stream stored in a conventional stream sending device 1. "Stream output" is a stream sent by the device 1. The stream sending device 1 is provided with a stream encoded at a high bit rate (hereinafter referred to as a "high bit rate stream") and a stream encoded at a low bit rate (hereinafter referred to as a "low bit rate stream"). Note that the thickness of the stream in the figure corresponds to the amount of bits (amount of information). The GOPs constituting the high bit rate stream are, from the beginning, GOP H[0], GOP H[1], GOP H[2], . . ., and the GOPs constituting the low bit rate stream are, from the beginning, GOP L[0], GOP L[1], GOP L[2], . . .

[0008] Fig. 10 is a conceptual diagram of bit rate switching in a conventional stream transmission device 1. A "bit rate change instruction" is a signal given to the device from outside, instructing the device to change the bit rate. If network congestion occurs during transmission of a high bit rate stream (for example, during transmission of GOP H[1]) and switching to a low bit rate is required (when a bit rate change instruction is received), the transmission of GOP H[1] is terminated, and then a low bit rate stream is transmitted from GOP L[2]. This is because, in general, it is impossible to normally decode an encoded stream from any AU other than the IRAP AU, which is the first AU of a GOP. [Prior art documents] [Non-patent literature]

[0009] [Non-Patent Document 1] Sakae Ohkubo (editor), Teruhiko Suzuki, et al., "H.265 / HEVC Textbook", Impress Japan Co., Ltd., October 21, 2013, pp. 236-241 Summary of the Invention [Problem to be solved by the invention]

[0010] When the network bandwidth increases or decreases, it is desirable to switch the bit rate as soon as possible. However, because it is impossible to correctly decode an encoded stream from any source other than an IRAP AU, switching in the middle of a GOP poses the problem that video distortion occurs on the receiving side immediately after the switch. To prevent this distortion, it is necessary to switch the stream to be sent by IRAP AU (i.e., by GOP), but in this case, there is the problem that switching to a stream with a different bit rate is delayed until the next IRAP AU appears. Alternatively, if all AUs are encoded by IRAP AUs (i.e., all-intra encoding), it is possible to switch streams at any AU without causing video distortion on the receiving side, but in this case, there is the problem that the bit rate of the entire stream becomes high.

[0011] Therefore, in consideration of the above-mentioned problems, an object of the present invention is to provide a stream sending device that can switch between streams encoded at different bit rates at any AU and send them without causing any disturbance in the image on the receiving side, as well as a stream generating device that generates the stream for this purpose, and a program. [Means for solving the problem]

[0012] In order to solve the above problems, a stream transmission device according to the present invention is a stream transmission device having a function of switching and transmitting a plurality of encoded streams encoded at different bitrates. The stream transmission device includes a first bitrate stream encoded at a first bitrate and a second bitrate stream having the same GOP (Group of picture) structure as the first bitrate stream and encoded at a second bitrate. When switching is performed starting from the i-th (0 < i < GOP length) AU of the X-th (X is arbitrary) GOP of the first bitrate stream, an encoding is performed that has the same GOP structure as the X-th GOP and results in the same decoding result as that from the first AU to the (i - 1)-th AU of the X-th GOP of the first bitrate stream for the first AU to the (i - 1)-th AU. For the i-th and subsequent AUs, a transition GOP encoded at a bitrate closer to the second bitrate than the first bitrate is used. The first bitrate stream is transmitted up to the (i - 1)-th AU of the X-th GOP, and then the i-th and subsequent AUs of the transition GOP are transmitted, and switching to the second bitrate stream is performed starting from the (X + 1)-th GOP.

[0013] In order to solve the above problems, the stream transmission device according to the present invention includes an accumulation unit that accumulates a plurality of encoded streams encoded at different bitrates, and a transmission stream selection unit that selects, switches, and transmits the encoded streams accumulated in the accumulation unit. In the stream transmission device, the accumulation unit includes a first bitrate stream encoded at a first bitrate, a second bitrate stream having the same GOP structure as the first bitrate stream and encoded at a second bitrate, and a transition stream used for switching from the first bitrate stream to the second bitrate stream. The GOPs constituting the transition stream have GOP length - 1 types for each GOP of the first bitrate stream, and are encoded so that the same decoding result as that of the (i - 1)-th (0 < i < GOP length) AU from the head AU to the (i - 1)-th AU of the corresponding GOP of the first bitrate stream can be obtained, and the AUs after the i-th AU are encoded at a bitrate closer to the second bitrate than the first bitrate.

[0014] Further, when the transmission stream selection unit of the stream transmission device performs switching starting from the i-th AU of the designated GOP of the first bitrate stream based on a bitrate change instruction, it is desirable to select a GOP corresponding to the designated GOP of the transition stream, which is encoded so that the same decoding result as that of the (i - 1)-th AU from the head AU to the (i - 1)-th AU of the designated GOP of the first bitrate stream can be obtained, and the AUs after the i-th AU are encoded at a bitrate closer to the second bitrate than the first bitrate. Then, transmit the first bitrate stream up to the (i - 1)-th AU of the designated GOP, and then transmit the AUs after the i-th AU of the selected GOP of the transition stream, and switch to the second bitrate stream starting from the next GOP of the designated GOP.

[0015] Further, it is desirable that the stream transmission device includes a storage unit that stores first to nth (n is an integer of 2 or more) encoded streams encoded at different bitrates and a transition stream used for switching from any one of the first to nth encoded streams to any other encoded stream.

[0016] Further, it is desirable that the stream transmission device includes a storage unit that stores first to nth (n is an integer of 2 or more) encoded streams encoded at different bitrates and a transition stream used for switching from any one of the first to (n - 1)th encoded streams to the nth encoded stream.

[0017] In order to solve the above problems, a stream generation device according to the present invention is a stream generation device that generates an encoded stream for switching a plurality of encoded streams encoded at different bitrates, and includes a first bitrate encoding unit that encodes an input video at a first bitrate and generates a first bitrate stream, a second bitrate encoding unit that encodes the input video at a second bitrate and generates a second bitrate stream having the same GOP structure as the first bitrate stream, and a first and second transition encoding unit that generates a first and second transition stream used for switching from the first bitrate stream to the second bitrate stream. The first and second transition encoding unit generates GOP lengths - 1 types of GOPs constituting the first and second transition stream for each GOP of the first bitrate stream, and encodes so that the same decoding result as the i - 1th AU (0 < i < GOP length) from the head AU to the i - 1th AU of the first bitrate stream can be obtained, and the AUs after the i - th AU are encoded at a bitrate closer to the second bitrate than the first bitrate.

[0018] The stream generation device further includes a second-to-first transition encoding unit that generates a second-to-first transition stream used for switching from the second bitrate stream to the first bitrate stream. The second-to-first transition encoding unit generates GOPs - one less than the GOP length for each GOP in the second bitrate stream - that make up the second-to-first transition stream, and encodes them such that the decoding result from the first AU to the (i - 1)-th AU (0 < i < GOP length) is the same as that of the corresponding GOP in the second bitrate stream. For the i-th and subsequent AUs, it is desirable to encode them at a bitrate closer to the first bitrate than the second bitrate.

[0019] In order to solve the above problems, the program according to the present invention causes a computer to function as the stream transmission device.

[0020] In order to solve the above problems, the program according to the present invention causes a computer to function as the stream generation device.

Advantages of the Invention

[0021] According to the stream transmission device, stream generation device, and program of the present invention, it is possible to switch between streams encoded at different bitrates at an arbitrary AU and transmit them without causing video disturbances on the receiving side.

Brief Description of the Drawings

[0022] [Figure 1] It is a conceptual diagram when switching the bitrate in the stream transmission device of one embodiment. [Diagram 2] It is a diagram showing a configuration example of the stream transmission device of one embodiment. [Diagram 3] It is a diagram showing a configuration example of the storage unit of the stream transmission device of one embodiment. [Figure 4] It is an image diagram of a high bitrate stream and a high-to-low transition stream. [Diagram 5]FIG. 2 illustrates a transition from a high bit rate stream to a low bit rate stream. [Figure 6] FIG. 1 illustrates an example of a configuration of a stream generating device according to an embodiment. [Figure 7] FIG. 1 illustrates an example of the configuration of a stream sending device that supports n (n>2) different bit rates. [Figure 8] FIG. 13 is a diagram showing another example of the configuration of a stream sending device that supports n (n>2) different bit rates. [Figure 9] 1 is a conceptual diagram of an encoded stream stored in a conventional stream transmission device. [Figure 10] FIG. 1 is a conceptual diagram showing how a bit rate is switched in a conventional stream transmission device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] Hereinafter, an embodiment of the present invention will be described.

[0024] (Embodiment 1) Fig. 1 is a conceptual diagram of bit rate switching in a stream sending device 10 according to one embodiment of the present invention. The stream sending device 10 in Fig. 1 can send two bit rate streams, a predetermined high bit rate and a predetermined low bit rate, and can also switch from a high bit rate stream to a low bit rate stream. The GOPs constituting the high bit rate stream are, from the beginning, GOP H[0], GOP H[1], GOP H[2], ..., and the GOPs constituting the low bit rate stream are, from the beginning, GOP L[0], GOP L[1], GOP L[2], ....

[0025] If it becomes necessary to switch to a low bit rate while transmitting a high bit rate stream (for example, when a bit rate change instruction is received while transmitting AU[f-1] of GOP H[1]), the transmission of the corresponding GOP for high / low transition (hereinafter referred to as high / low transition GOP, represented by GOP HL[1]) is immediately switched to from the AU immediately following the AU being transmitted in the high bit rate stream (GOP H[1]), and after transmission of the high / low transition GOP (GOP HL[1]) is completed, the transmission of the low bit rate stream is performed from GOP L[2].

[0026] Here, the high-low transition GOP (GOP HL[1]) has the same GOP structure as the GOP (GOP H[1]) of the high bit-rate stream at the time of switching, and when switching from the transmission of AU[f], AU[0] to AU[f-1] before switching are AUs that provide the same decoded results as AU[0] to AU[f-1] of GOP H[1] of the high bit-rate stream, and may be the same AUs as AU[0] to AU[f-1] of GOP H[1]. AU[f] to AU[len(GOP H[1])-1] of GOP HL[1] are AUs that are coded at a bit rate closer to the low bit rate than the high bit rate (preferably, a bit rate equivalent to a predetermined low bit rate).

[0027] In this way, by switching the coded stream using the transition GOP, the bit rate can be lowered immediately after a bit rate change instruction is issued even in the middle of a GOP.

[0028] Although the present embodiment describes switching from a high bit rate stream to a low bit rate stream, it is also possible to switch from a low bit rate stream to a high bit rate stream in the same way by using the corresponding GOP for low-high transition. That is, it is possible to switch between a first bit rate stream and a second bit rate stream coded at any different bit rates.

[0029] (Embodiment 2) Fig. 2 shows an example of the configuration of a stream sending device 10 according to one embodiment of the present invention. The stream sending device 10 in Fig. 2 can send out two bit rate streams, a high bit rate and a low bit rate, and can switch between the two. In other words, it supports switching from a high bit rate stream to a low bit rate stream, and switching from a low bit rate stream to a high bit rate stream. The stream sending device 10 comprises a storage unit 11 and a sending stream selection unit 12. An instruction to change the bit rate is input to the sending stream selection unit 12.

[0030] 3 shows an example of the configuration of the storage unit 11 of the stream transmission device 10. The storage unit 11 includes a database 111 for storing a stream coded at a high bit rate (high bit rate stream), a database 112 for storing a stream used when switching from a high bit rate to a low bit rate (high-low transition stream), a database 113 for storing a stream used when switching from a low bit rate to a high bit rate (low-high transition stream), and a database 114 for storing a stream coded at a low bit rate (low bit rate stream).

[0031] Here, the high bit rate stream is a stream encoded at a predetermined high bit rate. The GOPs constituting the high bit rate stream are GOP H[0], GOP H[1], GOP H[2], . . . from the beginning.

[0032] On the other hand, a low bit rate stream is a stream encoded at a predetermined low bit rate. The GOPs constituting the low bit rate stream are GOP L[0], GOP L[1], GOP L[2], ... from the beginning. Here, struct(GOP H[0]) = struct(GOP L[0]), and similarly, struct(GOP H[1]) = struct(GOP L[1]), struct(GOP H[2]) = struct(GOP L[2]), ... In other words, the GOP structures of corresponding GOPs are the same.

[0033] The high-low transition stream is a stream composed of multiple GOPs for high-low transition (transition from a high bit rate to a low bit rate). These GOPs are denoted as GOP HL[X][y]. X indicates the order from the beginning of the GOPs constituting the high-low transition stream. y indicates the position of the boundary between the AUs encoded at a high bit rate and the AUs encoded at a low bit rate in each GOP, and takes the range of 1<=y<len(GOP H[X]). And, struct(GOP HL[X][y]) = struct(GOP H[X]). Also, AU[0] to AU[y-1] in GOP HL[X][y] are encoded streams that provide the same decoded results as AU[0] to AU[y-1] in GOP H[X], respectively, and AU[y] to AU[len(GOP H[X])-1] in GOP HL[X][y] are streams encoded at a low bit rate (which may be a bit rate lower than a predetermined high bit rate). Note that the low bit rate AUs simply have a lower bit rate, and do not necessarily produce the same decoded result as AU[y] to AU[len(GOP H[X])-1] in GOP L[X].

[0034] The low-high transition stream is a stream consisting of multiple GOPs for low-high transition (transition from a low bit rate to a high bit rate). These GOPs are denoted as GOP LH[X][y]. X indicates the order of the GOPs constituting the low-high transition stream from the beginning. y indicates the position of the boundary between the AUs encoded at a low bit rate and the AUs encoded at a high bit rate in each GOP, and takes the range of 1<=y<len(GOP L[X]). And, struct(GOP LH[X][y]) = struct(GOP L[X]). Also, AU[0] to AU[y-1] in GOP LH[X][y] are encoded streams that provide the same decoded results as AU[0] to AU[y-1] in GOP L[X], and AU[y] to AU[len(GOP L[X])-1] in GOP LH[X][y] are streams encoded at a high bit rate (which may be a bit rate higher than a predetermined low bit rate). Note that a high bitrate AU simply has a high bitrate, and does not necessarily result in the same decoded result as AU[y] to AU[len(GOP H[X])-1] in GOP H[X].

[0035] Figure 4 shows an image of a high bit-rate stream and a high-low transition stream. The thickness (height) of each stream (GOP) corresponds to the bit rate, i.e., the amount of encoded bits. The GOPs that make up the high bit-rate stream are, from the beginning, GOP H[0], GOP H[1], GOP H[2], ... and each has a large amount of information.

[0036] GOP HL[0][1] in the upper left corner of the high-low transition stream is a GOP that corresponds to GOP H[0] and has the same GOP structure as GOP H[0], with the first AU[0] coded at a high bitrate (i.e., coded so that the decoding result is the same as that of AU[0] in GOP H[0]) and the AUs from AU[1] onwards coded at a low bitrate.

[0037] GOP HL[1][1] on the right side of GOP HL[0][1] is a GOP corresponding to GOP H[1], has the same GOP structure as GOP H[1], the first AU[0] is coded at a high bit rate (i.e., coded so as to obtain the same decoded result as AU[0] of GOP H[1]), and AUs after AU[1] are coded at a low bit rate. Similarly, GOP HL[2][1] on the right side of GOP HL[1][1] is a GOP corresponding to GOP H[2], has the same GOP structure as GOP H[2], has the first AU[0] coded at a high bit rate (i.e., coded so as to obtain the same decoded result as AU[0] of GOP H[2]), and AUs after AU[1] are coded at a low bit rate.

[0038] Also, looking vertically, GOP HL[0][2], which is one level below GOP HL[0][1], is a GOP corresponding to GOP H[0], has the same GOP structure as GOP H[0], AU[0] and AU[1] are encoded at a high bit rate (i.e., encoded so as to obtain the same decoded result as AU[0] and AU[1] of GOP H[0]), and AUs from AU[2] onwards are encoded at a low bit rate. Similarly, GOP HL[0][3], which is one level below GOP HL[0][2], is a GOP corresponding to GOP H[0], has the same GOP structure as GOP H[0], has AU[0], AU[1] and AU[2] are encoded at a high bit rate (i.e., encoded so as to obtain the same decoded result as AU[0], AU[1] and AU[2] of GOP H[0]), and AUs from AU[3] onwards are encoded at a low bit rate.

[0039] In this way, the GOP (GOP LH[x][y]) of the high-low transition stream is configured so that any AU[y] of any GOP H[x] of the high bit rate stream can be switched to a low bit rate stream. That is, a GOP corresponding to any switching point is prepared.

[0040] Returning to FIG. 2, the transmission stream selection unit 12 normally selects either the high bit rate stream or the low bit rate stream, and transmits them as stream output in order from the first GOP of each stream.

[0041] Here, suppose that an instruction to change the bit rate to a low bit rate is received at a certain timing while the transmission stream selection unit 12 is transmitting a high bit rate stream. Suppose that the timing is immediately before transmitting AU[f] of GOP H[G] (during transmission of AU[f-1], or during the period from the completion of transmission of AU[f-1] to the start of transmission of AU[f]). At this time, the transmission stream selection unit 12 selects GOP HL[G][f] from the storage unit 11, and transmits AUs of GOP HL[G][f] in order starting from AU[f] of GOP HL[G][f], instead of transmitting AU[f] of GOP H[G] after the completion of transmission of AU[f-1] of GOP H[G]. Then, after the completion of transmission of GOP HL[G][f], the transmission shifts to a low bit rate stream and transmits GOP L[G+1], and thereafter transmits GOPs of the low bit rate stream in order.

[0042] Also, if the transmission stream selection unit 12 receives a bit rate change instruction to a high bit rate at a certain timing while transmitting a low bit rate stream, the timing is assumed to be immediately before transmitting AU[e] of GOP L[S] (during transmission of AU[e-1], or during the period from the completion of transmission of AU[e-1] to the start of transmission of AU[e]). At this time, the transmission stream selection unit 12 selects GOP LH[S][e] from the storage unit 11, and transmits AUs of GOP LH[S][e] in order starting from AU[e] of GOP LH[S][e] after the completion of transmission of AU[e-1] of GOP H[S], instead of transmitting AU[e] of GOP L[S]. Then, after the completion of transmission of GOP LH[S][e], the transmission shifts to a high bit rate stream and transmits GOP H[S+1], and thereafter transmits GOPs of the high bit rate stream in order.

[0043] In addition, if the "certain timing" during the transmission of the above-mentioned high (or low) bitrate stream is immediately before the first AU of a GOP is transmitted, the high-low transition stream (or low-high transition stream) is not used, and the low bitstream (or high bitstream) can be transmitted from the first AU of the GOP as in the conventional manner.

[0044] In this embodiment, both switching from a high bit rate stream to a low bit rate stream and switching from a low bit rate stream to a high bit rate stream are possible, but when switching is performed in only one direction, it is sufficient to have only one transition stream, that is, it is sufficient to have a first bit rate stream encoded at a first bit rate, a second bit rate stream encoded at a second bit rate, and a transition stream used for switching from the first bit rate stream to the second bit rate stream.

[0045] The transition from a high bit rate stream to a low bit rate stream will be explained in more detail with reference to Fig. 5. Fig. 5 shows an example of a case where an instruction to change the bit rate to a low bit rate is received during transmission of AU[3] of GOP H[X] while a high bit rate stream is being transmitted. The height of the rectangle indicating each AU roughly indicates the bit amount of each AU. The AUs displayed in gray indicate the AUs transmitted according to the present invention.

[0046] When a bitrate change instruction arrives, GOP HL[X][4] is selected from the high-low transition stream. AU[0] to AU[3] are encoded in the same way, so they are the same AUs in GOP H[X] and GOP HL[X][4], or AUs that produce the same decoded results. After AU[3] of GOP H[X] of the high bitrate stream is sent, AU[4] to AU[N] are sent from GOP HL[X][4]. Here, for example, the sum of the bit amount from AU[4] onwards in GOP HL[X][4] is encoded to be approximately the same as the sum of the bit amount from AU[4] onwards in GOP L[X]. Then, from the next GOP, they are sent from GOP L[X+1].

[0047] In this embodiment, the sum of the bit amounts of AU[4] to AU[N] in GOP HL[X][4] is approximately equal to the sum of the bit amounts of AU[4] to AU[N] in GOP L[X], thereby achieving the same bitrate reduction effect as when AU[4] is immediately switched to transmitting GOP L[X].

[0048] In addition, AU[4] to AU[N] of GOP HL[X][4] may refer to AU[0] to AU[3] of GOP HL[X][4]. However, because AU[0] to AU[3] of GOP HL[X][4] will yield the same decoded results as AU[0] to AU[3] of GOP H[X][4], no distortion will occur in the video on the receiving side even if the stream is switched.

[0049] In this way, the stream sending device 10 of the present invention makes it possible to switch between streams coded at a plurality of bit rates at any AU and send them without causing any disturbance in the image on the receiving side. Furthermore, according to the present invention, transitions can be made without any problems even when inter-frame reference is performed, so there is no increase in the bit rate as occurs in the case of all intra coding.

[0050] A computer can be suitably used to function as the above-mentioned stream transmission device 10, and such a computer can be realized by storing in the storage unit of the computer a program describing the processing contents for realizing each function of the stream transmission device 10, and having the CPU of the computer read and execute this program. Note that this program can be recorded on a computer-readable recording medium.

[0051] (Embodiment 3) FIG. 6 is a configuration example of a stream generation device according to an embodiment of the present invention. The stream generation device 20 receives an instruction of content (video) and output bitrates (a predetermined high bitrate and a low bitrate), and outputs streams of respective bitrates and various transition streams. The stream generation device 20 includes a high bitrate encoding unit 21 that generates a high bitrate stream, a high-low transition encoding unit 22 that generates a high-low transition stream, a low-high transition encoding unit 23 that generates a low-high transition stream, and a low bitrate encoding unit 24 that generates a low bitrate stream.

[0052] Note that this embodiment corresponds to two types of bitrates, i.e., a high bitrate and a low bitrate. However, as will be described later, it may be configured to generate a large number of bitrates and generate transition streams between the large number of bitrates.

[0053] An example of the creation process of each stream in the stream generation device 20 is shown. First, the high bitrate encoding unit 21 encodes the input video to have a predetermined high bitrate as instructed, and creates a high bitrate stream. Also, the low bitrate encoding unit 24 encodes the input video to have a predetermined low bitrate as instructed, and creates a low bitrate stream.

[0054] Next, the high-low transition encoding unit 22 creates a high-low transition stream. A GOP HL[X][y] (0 <= y < len(GOP H[X])) that transitions from the GOP H[X] of the high bitrate stream to the GOP L[X] of the low bitrate stream is generated by performing encoding under the following conditions (a) and (b). (a) For i such that 0 <= i < y, the AU[i] of GOP HL[X][y] is encoded so that the same decoding result as the AU[i] of GOP H[X] is obtained. Alternatively, the encoded stream of AU[i] of GOP H[X] is diverted so that both are the same AU[i]. (b) For i such that i >= y, the AU[i] of GOP HL[X][y] is encoded so that its bit rate is lower than that of the AU[i] of GOP H[X].

[0055] Under the above conditions, for all y (0 <= y < len(GOP H[X])) and all X (0 <= X), generate GOP HL[X][y] and create a high-low transition stream.

[0056] Also, in the low-high transition encoding unit 23, a low-high transition stream is created in the same way. Specifically, GOP LH[X][y] (0 <= y < len(GOP L[X])) that transitions from the GOP L[X] of the low-bitrate stream to the GOP H[X] of the high-bitrate stream is generated by encoding under the following conditions (c) and (d). (c) For i such that 0 <= i < y, the AU[i] of GOP LH[X][y] is encoded so that the same decoding result as the AU[i] of GOP L[X] is obtained. Alternatively, the encoding stream of the AU[i] of GOP L[X] is diverted so that both are the same AU[i]. (d) For i such that i >= y, the AU[i] of GOP LH[X][y] is encoded so that its bit rate is higher than that of the AU[i] of GOP L[X].

[0057] Under the above conditions, for all y (0 <= y < len(GOP L[X])) and all X (0 <= X), generate GOP LH[X][y] and create a low-high transition stream.

[0058] Each stream generated by the stream generation device 20 can be output to and stored in the storage unit 11 of the stream transmission device 10.

[0059] In this embodiment, both a transition stream from a high bit rate stream to a low bit rate stream and a transition stream from a low bit rate stream to a high bit rate stream are created, but when switching in only one direction, it is sufficient to create only one transition stream. That is, it is sufficient to provide a first bit rate encoding unit that generates a first bit rate stream, a second bit rate encoding unit that generates a second bit rate stream, and a first-second transition encoding unit that generates a transition stream used for switching from the first bit rate stream to the second bit rate stream.

[0060] (Modification of the third embodiment) In this modification, a target amount of information after encoding (target code amount) is set more strictly than in the third embodiment, and encoding is performed to generate a transition stream.

[0061] In this modification, the high bit rate stream and the low bit rate stream are generated in the same manner as in the third embodiment, and the conditions for creating the high-low transition stream and the low-high transition stream are also the same.

[0062] When encoding AU[i] (i>=y) of GOP HL[X] of the high-low transition stream, AU[i] of GOP HL[X][y] is encoded at a lower bit rate than AU[i] of GOP H[X] for i>=y. At this time, a target amount of information is set and encoded to satisfy the following formula (1).

[0063]

number

[0064] Here, strlen() means the bit length of a certain AU, and Σ indicates the sum of the bit lengths of AU[i] in a given range of i.

[0065] In addition, when encoding AU[i] (i>=y) of GOP LH[X] of the low-high transition stream, AU[i] of GOP HL[X][y] is encoded at a higher bit rate than AU[i] of GOP L[X] for i>=y. In this case, a target amount of information is set and encoded to satisfy the following formula (2).

[0066]

number

[0067] That is, when generating a transition stream that transitions from the first bit rate to the second bit rate, the i-th and subsequent AUs are encoded at a bit rate closer to the second bit rate than the first bit rate.

[0068] (Another modification of the third embodiment) This modification is an embodiment of the present invention in which a target amount of information after encoding (target code amount) is set and encoding is performed to generate a transition stream so that a sufficient bit rate transition effect occurs even in the middle of a GOP.

[0069] When encoding AU[i] (i>=y) of GOP HL[X] of the high-low transition stream, AU[i] of GOP HL[X][y] is encoded at a lower bit rate than AU[i] of GOP H[X] for i>=y. At that time, the target amount of information is set and encoded to satisfy the following formula (3).

[0070]

number

[0071] According to formula (3), the sum of the bit amount of AU[y] and after in GOP HL[X] is coded to be equal to or less than the sum of the bit amount of AU[y] and after in GOP L[X]. Then, from the next GOP, GOP L[X+1] is sent. Therefore, even in the middle of a GOP, from AU[y] onwards, the bit rate reduction effect is the same as if the transmission of GOP L[X] was immediately switched to.

[0072] In addition, when encoding AU[i] (i>=y) of GOP LH[X] of the low-high transition stream, AU[i] of GOP HL[X][y] is encoded at a higher bit rate than AU[i] of GOP L[X] for i>=y. At that time, the target amount of information is set and encoded to satisfy the following formula (4).

[0073]

number

[0074] According to formula (4), the sum of the bit amount of AU[y] and after of GOP LH[X] is coded so as to be equal to or greater than the sum of the bit amount of AU[y] and after of GOP H[X]. Then, from the next GOP, GOP H[X+1] is transmitted. Therefore, even in the middle of a GOP, from AU[y] onwards, there is the same band expansion effect as if the transmission of GOP H[X] was immediately switched to.

[0075] A computer can be suitably used to function as the above-mentioned stream generating device 20, and such a computer can be realized by storing in a storage unit of the computer a program describing the processing contents for realizing each function of the stream generating device 20, and having the computer's CPU read and execute this program. Note that this program can be recorded on a computer-readable recording medium.

[0076] (Embodiment 4) In the embodiments described above, an example has been shown in which a high bitrate stream and a low bitrate stream are switched between, but in this embodiment, it is possible to switch between streams with even more bitrates, n types (n>2).

[0077] Fig. 7 shows a configuration example of a stream transmission device 10 that supports n different bit rates. The stream transmission device 10 in Fig. 7 includes a storage unit 13 and a transmission stream selection unit 12. Note that, although the explanation in Fig. 7 is given assuming n>2, when n=2, the same as in the second embodiment, so n can be an integer equal to or greater than 2.

[0078] The storage unit 13 has a first bit-rate stream, a second bit-rate stream, ..., an n-th bit-rate stream corresponding to n bit rates, respectively, from 1st to nth, and also stores transition streams for transitioning from each bit-rate stream to any other bit-rate stream.

[0079] That is, the video signal processing device includes a first second transition stream, a first third transition stream, ..., a first nth transition stream for transitioning from a first bit rate stream to a second to nth bit rate stream, a second first transition stream, a second third transition stream, ..., a second nth transition stream for transitioning from the second bit rate stream to the first, third to nth bit rate streams, ...and an nth first transition stream, an nth second transition stream, ..., an nth n-1th transition stream for transitioning from the nth bit rate stream to the first to n-1th bit rate streams.

[0080] In this way, in order to transition between any bit rates, a stream that transitions between all bit rates is prepared. The structure of each transition stream is the same as the transition stream explained in the second and third embodiments.

[0081] The transmission stream selection unit 12 selects a transition stream based on the bit rate change instruction, and switches the bit rate stream. Specifically, when a bit rate change instruction is issued to change to another specified bit rate while a certain bit rate stream is being transmitted, the transmission stream selection unit 12 selects a transition stream for transition between the two bit rates from among the stored ones, switches to the transition stream once, and transmits the GOP corresponding to the transition stream. After that, the stream with the specified bit rate after the change can be transmitted.

[0082] (Embodiment 5) Fig. 8 shows another example of the configuration of the stream transmission device 10 that supports n (n>2) different bit rates. The stream transmission device 10 in Fig. 8 includes a storage unit 14 and a transmission stream selection unit 12. Note that, although the explanation in Fig. 8 is given assuming n>2, when n=2, it is the same as part of the second embodiment, so n can be an integer equal to or greater than 2.

[0083] The storage unit 14 has a first bit rate stream, a second bit rate stream, ..., an nth bit rate stream corresponding to n bit rates, respectively. It also stores a transition stream for transitioning from each bit rate stream to a specific bit rate stream (here, the nth bit rate stream). This specific bit rate stream is preferably a bit rate stream corresponding to the lowest bit rate.

[0084] That is, it includes a 1st-nth transition stream for transitioning from a first bit-rate stream to an nth bit-rate stream, a 2nd-nth transition stream for transitioning from a second bit-rate stream to an nth bit-rate stream, ... and an n-1st-nth transition stream for transitioning from the n-1th bit-rate stream to the nth bit-rate stream.

[0085] In this way, a stream is prepared that transitions from all bit rates to a specific bit rate stream (e.g., corresponding to the lowest bit rate). The structure of each transition stream is the same as the transition stream described in the second and third embodiments.

[0086] The transmission stream selection unit 12 selects a transition stream based on a bit rate change instruction, and switches the bit rate stream. Specifically, when a bit rate change instruction is issued to change to another specified bit rate while a certain bit rate stream is being transmitted, the transmission stream selection unit 12 selects a transition stream for transitioning from the certain bit rate to the n-th (e.g., lowest) bit rate from among the stored ones, switches to the transition stream, and transmits the GOP corresponding to the transition stream. After that, it is sufficient to transmit the stream with the specified bit rate after the change.

[0087] In this embodiment, when switching, the bit rate transitions to a specific bit rate (corresponding to the lowest bit rate), so that no matter what bit rate is switched to, it is possible to switch to another bit rate stream without exceeding the bit rate tolerance. Also, the amount of streams stored in the storage unit 14 can be significantly reduced compared to the fourth embodiment.

[0088] In the above first, second, fourth and fifth embodiments, the configuration and operation of the stream transmission device 10 have been described, but the present invention is not limited to this, and may be configured as a stream transmission method for switching between bit rate streams encoded at different bit rates based on a bit rate change instruction. That is, the present invention may be configured as a stream transmission method including a step of transmitting a first bit rate stream, a step of transmitting a transition stream, and a step of transmitting a second bit rate stream according to the data flow in each figure.

[0089] Furthermore, in the above third embodiment, the configuration and operation of the stream generating device 20 have been described, but the present invention is not limited to this, and may be configured as a stream generating method for generating a bit rate stream and a transition stream encoded at different bit rates. That is, the present invention may be configured as a stream generating method including a step of generating a first bit rate stream, a step of generating a second bit rate stream, and a step of generating a transition stream according to the data flow of each figure.

[0090] Although the above-mentioned embodiment has been described as a representative example, it is obvious to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present invention. Therefore, the present invention should not be interpreted as being limited by the above-mentioned embodiment, and various modifications and changes are possible without departing from the scope of the claims. For example, it is possible to combine multiple building blocks described in the embodiment into one, or to divide one building block. [Explanation of symbols]

[0091] 1,10 Stream sending device 11 Storage section 111 High bitrate stream storage database 112 High-Low Transition Stream Storage Database 113 Low-High Transition Stream Storage Database 114 Low Bitrate Stream Storage Database 12. Output stream selection section 13 Storage section 14 Storage section 20 Stream Generator 21 High bit rate coding section 22 High-low transition encoder 23 Low-high transition encoder 24 Low bit rate coding section

Claims

1. A stream transmission device having a function of switching between and transmitting a plurality of encoded streams encoded at different bit rates, a first bit rate stream encoded at a first bit rate; and a second bit rate stream having the same GOP (Group of Pictures) structure as the first bit rate stream and encoded at a second bit rate, when switching is performed from the i-th AU (Access Unit) (0<i<GOP length) of the X-th GOP (X is arbitrary) of the first bit-rate stream, a transition GOP is used which has the same GOP structure as the X-th GOP, and from the first AU to the i-1-th AU, encoding is performed to obtain the same decoded result as that of the first AU to the i-1-th AU of the X-th GOP of the first bit-rate stream, and the i-th and subsequent AUs are encoded at a bit rate closer to the second bit rate than the first bit rate; Sending the first bit rate stream up to the i-1th AU of the Xth GOP; Next, transmit the i-th and subsequent AUs of the transition GOP; Switch to the second bitrate stream from the X+1th GOP 13. A stream sending device comprising:

2. A stream transmission device comprising: a storage unit that stores a plurality of coded streams coded at different bit rates; and a transmission stream selection unit that selects, switches, and transmits a coded stream stored in the storage unit, the storage unit includes a first bit rate stream encoded at a first bit rate, a second bit rate stream having the same GOP structure as the first bit rate stream and encoded at a second bit rate, and a transition stream used for switching from the first bit rate stream to the second bit rate stream; The GOPs constituting the transition stream have one type (GOP length minus one) for each GOP of the first bit-rate stream, and the first AU to the i-1th AU (0<i<GOP length) are encoded so as to obtain the same decoded result as the first AU to the i-1th AU of the corresponding GOP of the first bit-rate stream, and the i-th and subsequent AUs are encoded at a bit rate closer to the second bit rate than the first bit rate.

13. A stream sending device comprising:

3. 3. The stream sending device according to claim 2, When the delivery stream selection unit performs switching from the i-th AU of the instructed GOP of the first bit rate stream based on a bit rate change instruction, selecting a GOP corresponding to the indicated GOP of the transition stream, the GOP being encoded so that the first AU to the (i-1)th AU are encoded so as to obtain the same decoding result as the first AU to the (i-1)th AU of the indicated GOP of the first bit rate stream, and the i-th and subsequent AUs are encoded at a bit rate closer to a second bit rate than the first bit rate; Sending the first bit rate stream up to the i-1th AU of the indicated GOP; Then, sending the i-th and subsequent AUs of the selected GOP of the transition stream; Switching to the second bit rate stream from the next GOP after the specified GOP.

13. A stream sending device comprising:

4. 4. The stream sending device according to claim 2, The storage unit includes first to n-th (n is an integer equal to or greater than 2) coded streams coded at different bit rates, and a transition stream used for switching from any of the first to n-th coded streams to another coded stream.

13. A stream sending device comprising:

5. 4. The stream sending device according to claim 2, The storage unit includes first to n-th (n is an integer equal to or greater than 2) coded streams coded at different bit rates, and a transition stream used for switching from any of the first to n-1-th coded streams to the n-th coded stream.

13. A stream sending device comprising:

6. 1. A stream generating device for generating an encoded stream for switching between a plurality of encoded streams encoded at different bit rates, comprising: a first bit rate encoding unit that encodes an input video at a first bit rate to generate a first bit rate stream; a second bit rate encoding unit that encodes an input video at a second bit rate to generate a second bit rate stream having the same GOP structure as the first bit rate stream; a first / second transition encoding unit configured to generate a first / second transition stream used for switching from the first bit-rate stream to the second bit-rate stream, The first-second transition encoding unit generates GOPs constituting the first-second transition stream in a number of GOP length-1 types for each GOP of the first bit rate stream, encodes the first AU to the i-1th AU (0<i<GOP length) so as to obtain the same decoded result as the first AU to the i-1th AU of the corresponding GOP of the first bit rate stream, and encodes the i-th and subsequent AUs at a bit rate closer to the second bit rate than the first bit rate. A stream generating device comprising:

7. 7. The stream generating device according to claim 6, a second first transition encoding unit configured to generate a second first transition stream used for switching from the second bit-rate stream to the first bit-rate stream; The second first transition encoding unit generates GOPs constituting the second first transition stream in a number of GOP length-1 types for each GOP of the second bit rate stream, encodes the first AU to the i-1th AU (0<i<GOP length) so as to obtain the same decoded result as the first AU to the i-1th AU of the corresponding GOP of the second bit rate stream, and encodes the i-th and subsequent AUs at a bit rate closer to the first bit rate than the second bit rate. A stream generating device comprising:

8. A program causing a computer to function as the stream sending device according to any one of claims 1 to 5.

9. A program causing a computer to function as the stream generating device according to claim 6 or 7.

Citation Information

Patent Citations

  • Digital signal transmitter-receiver

    JP1998336606A

  • Video Streaming

    JP2011512767A

  • Stream distribution system, stream creation device, stream distribution method and stream creation method

    JP2015019329A

  • Encoder, decoder, streaming system and streaming method

    JP2016063481A

  • Method and device for streaming media content to client device

    JP2018085764A