Packet generation device and program

The packet generation device stabilizes packet counts per frame by adjusting slices and adding/removing packets to meet a target value, addressing variable transmission rates in video complexity and adhering to the SMPTE ST2110-22 standard.

JP7570877B2Active Publication Date: 2024-10-22NIPPON HOSO KYOKAI
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing methods for packetizing compressed video signals in the SMPTE ST2110-22 standard face challenges in maintaining a constant number of packets per video frame, leading to variable transmission rates due to changes in video complexity, which complicates bandwidth management.

Method used

A packet generation device and program that adjusts the number of adjustment packets for each video frame to maintain a constant total number of packets by dividing the video frame into slices, compressing each slice, and adding or removing adjustment packets to meet a predetermined target value, ensuring consistent packet generation across frames.

Benefits of technology

This approach stabilizes the number of packets per frame, adhering to the SMPTE ST2110-22 standard, reduces unnecessary increases in transmission rate, and allows for consistent bandwidth management regardless of video complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007570877000001
    Figure 0007570877000001
  • Figure 0007570877000002
    Figure 0007570877000002
  • Figure 0007570877000003
    Figure 0007570877000003
Patent Text Reader

Abstract

To keep data volume and the number of packets generated for each video frame constant and suppress an unnecessary increase in transmission rate in a slice mapping method.SOLUTION: A compressed signal generation unit 10 of a packet generation device 1 generates a picture header for each video frame and generates a slice header and a compressed signal for each slice. A packet generation unit 11 obtains a generated packet standard number Np by dividing Lcod, an amount of compressed signal data per video frame, by RTPlen, an RTP payload length, obtains a target value of the total number of packets, Npacket_target, by adding an adjustment packet standard number, Adj, which is the number of slices in a video frame, to the generated packet standard number, Np, and increases or decreases the number of packets for adjustment to make the total number of packets Npacket equal to the total number of packets target value Npacket_target for each video frame.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a packet generation device and a program for compressing a video signal of a video frame and packetizing the compressed signal. [Background technology]

[0002] Conventionally, the Society of Motion Picture and Television Engineers (SMPTE) has been making progress in standardizing an IP program production system in which a video signal is converted into IP packets and transmitted over a general-purpose Ethernet (registered trademark) network.

[0003] In the IP packetization standard for video signals standardized by SMPTE, a standard for IP packetizing and transmitting compressed video signals is known (see, for example, Non-Patent Document 1). In addition, an international standard for a video signal compression method adapted to IP program production systems has been standardized (see, for example, Non-Patent Document 2).

[0004] Fig. 9 is a diagram for explaining packetization processing using the JPEG-XS standard of Non-Patent Document 2. As shown in Fig. 9, the Nth video frame is divided into a picture header and an area (hereinafter referred to as "slice") in which a plurality of video lines (hereinafter referred to as "lines") are used as a compression unit, and compression processing is performed. N is an integer of 1 or more.

[0005] The picture header and the compressed signal are then packetized and converted into a data sequence called a packet. Specifically, the picture header and the compressed signal are mapped into the payload of an RTP packet.

[0006] The SMPTE ST2110-22 standard in the aforementioned Non-Patent Document 1 imposes restrictions on compression and packetization so that the amount of data of the compressed signal and packets generated from one video frame, as well as the number of packets (number of RTP packets), are constant. To satisfy this restriction, the packetization process allows the amount of data (and the number of packets) to be adjusted by adding padding.

[0007] In the SMPTE ST2110-22 standard of the aforementioned Non-Patent Document 1, the number of packets generated from the Nth video frame must be the same as the number of packets generated from the N+1th video frame.

[0008] However, the SMPTE ST2110-22 standard does not prescribe any specific method for making the number of packets generated from different video frames the same.

[0009] Therefore, a method has been proposed to keep the number of packets generated for each video frame constant (see Patent Document 1). This method is called slice mapping, and it maps compressed data into the RTP payload in units of slices of video frames. [Prior art documents] [Patent documents]

[0010] [Patent Document 1] JP 2020-22087 A [Non-patent literature]

[0011] [Non-Patent Document 1] SMPTE ST2110-22 [Non-Patent Document 2] JPEG-XS Summary of the Invention [Problem to be solved by the invention]

[0012] However, in the method of Patent Document 1, when compressed data is treated as a unit of slice, the amount of data may vary for each slice. In the slice mapping method, since packetization is performed for each slice, if the amount of data varies for each slice, it is necessary to appropriately adjust the amount of data by adding padding to satisfy the SMPTE ST2110-22 standard of Non-Patent Document 1 described above.

[0013] Therefore, as a method of adjusting the amount of data by adding padding, a method has been proposed in Patent Application Publication No. 2019-219809, which was made by the same applicant as the present patent application and was unpublished at the time of filing the present patent application.

[0014] This method adjusts the number of packets for each video frame based on the number of packets after packetization of slice data generated from the first video frame to be transmitted, in order to adjust the amount of data and the number of packets for each video frame to be constant. Specifically, this method sets a target value (Npacket_first) obtained by adding a certain adjustment value to the number of packets for the first video frame, and adjusts the number of packets for the second and subsequent video frames using adjustment packets so that the number of packets matches the target value.

[0015] This allows the number of packets generated from each video frame after packetization to match a target value, making the number of packets constant for each video frame. However, the target value, which is a constant number of packets per video frame, varies depending on the first video frame.

[0016] The number of packets per slice generated by applying the slice mapping method varies depending on the amount of data in each slice. The amount of data in a slice also varies depending on the content of the video to be compressed. In general, the amount of data tends to be large when the video is complex, and small when the video is monotonous.

[0017] Therefore, in this method, the target number of packets per video frame changes depending on the type of video the first video frame is. In other words, the target value is the target transmission rate, but even if the compression rate for the video frames is the same, the transmission rate changes depending on whether the video is complex or monotonous.

[0018] If the target value changes depending on the image, it becomes difficult to determine the necessary transmission rate in advance when operating in an environment with limited transmission bandwidth. Also, for example, if the first image frame is complex, the target value becomes large, and the number of adjustment packets increases when transmitting a subsequent monotonous image frame, resulting in an unnecessary increase in the transmission rate.

[0019] Therefore, the present invention has been made to solve the above-mentioned problems, and its object is to provide a packet generation device and program that can suppress unnecessary increases in transmission rate by keeping the amount of data and number of packets generated for each video frame constant in the slice mapping method, and by keeping the target value for the number of packets per video frame constant regardless of the first video frame. [Means for solving the problem]

[0020] In order to solve the above problem, a packet generation device of claim 1 is a packet generation device that packetizes a compressed signal obtained by compressing a video frame, the packet generation device comprising: a compression signal generation unit that compresses the video frame for each slice and generates the compressed signal for each slice; and a packet generation unit that packetizes the compressed signal for each slice generated by the compression signal generation unit for each video frame to generate generated packets, and generates adjustment packets of a predetermined adjustment packet reference number Adj, and increases or decreases the number of the adjustment packets so that the total number of the generated packets and the adjustment packets for the video frame is equal to a predetermined total packet number target value Npacket_target, wherein the packet generation unit determines a data amount Lcod of the compressed signal per video frame, where the number of generated packets per video frame obtained from the data amount Lcod that is constant between the video frames is a generated packet reference number Np, determines the number of slices per video frame as the adjustment packet reference number Adj, and calculates the total packet number target value Npacket_target by adding the adjustment packet reference number Adj to the generated packet reference number Np.

[0021] Further, the packet generating device of claim 2 is characterized in that, in the packet generating device of claim 1, the packet generating unit obtains the reference number of packets to be generated Np by dividing the data amount Lcod of the compressed signal per video frame by a preset payload length of the generated packets, obtains the reference number of adjustment packets Adj by dividing the number of vertical lines Hf of the video frame by the number of lines Hsl of the slice, and obtains the target total number of packets Npacket_target by adding the reference number of adjustment packets Adj to the reference number of generated packets Np.

[0022] Further, the packet generating device of claim 3 is the packet generating device of claim 1, wherein the compressed signal generating unit generates a picture header including a data amount Lcod of the compressed signal per video frame, a vertical line number Hf of the video frame, and a line number Hsl of the slice from the video frame for each of the video frames, and generates a slice header and the compressed signal for each of the slices of the video frame, and the packet generating unit obtains the data amount Lcod of the compressed signal per video frame, the vertical line number Hf of the video frame, and the line number Hsl of the slice from the picture header generated by the compressed signal generating unit, and divides the data amount Lcod of the compressed signal per video frame by a payload length of the generated packet that is set in advance, thereby the reference number of generated packets Np is calculated, the reference number of adjustment packets Adj is calculated by dividing the number of vertical lines Hf of the video frame by the number of lines Hsl of the slice, the reference number of adjustment packets Adj is calculated, the target value for the total number of packets Npacket_target is calculated by adding the reference number of adjustment packets Adj to the reference number of generated packets Np, the picture header generated by the compressed signal generation unit, and the slice header and the compressed signal for each slice are packetized to generate the generated packets, and the adjustment packets of the reference number of adjustment packets Adj are generated, and the number of the adjustment packets is increased or decreased so that the total number of the generated packets and the adjustment packets for the video frame becomes the same as the target value for the total number of packets Npacket_target.

[0023] Furthermore, a program according to a fourth aspect of the present invention is characterized in that it causes a computer to function as the packet generating device according to any one of the first to third aspects of the present invention. Effect of the Invention

[0024] As described above, according to the present invention, in the slice mapping method, the amount of data and number of packets generated for each video frame can be made constant, and the target value for the number of packets per video frame can be made constant independently of the first video frame. [Brief description of the drawings]

[0025] [Figure 1] 1 is a block diagram showing a configuration of a packet generating device according to an embodiment of the present invention. [Diagram 2] 10 is a flowchart illustrating an example of processing by a compressed signal generating unit. [Diagram 3] FIG. 13 is a diagram showing the structure of a picture header. [Figure 4] 4 is a block diagram showing an example of the configuration of a packet generating unit; FIG. [Diagram 5] 13 is a flowchart showing an example of processing by a packet generating unit; [Figure 6] 13 is a flowchart showing adjustment packet increase / decrease processing (step S519). [Figure 7] (1) is a diagram for explaining the total packet number target value Npacket_target. (2) is a diagram for explaining a case where the total packet number Npacket is smaller than the total packet number target value Npacket_target. (3) is a diagram for explaining a case where the total packet number Npacket is larger than the total packet number target value Npacket_target. [Figure 8] FIG. 13 is a diagram showing a simulation result. [Figure 9] FIG. 1 is a diagram for explaining a packetization process using the conventional JPEG-XS standard. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] The present invention focuses on the fact that the amount of data Lcod of the compressed signal per video frame is constant (the same) between video frames, regardless of whether the video is complex or monotonous, as long as the compression parameters (compression rate, number of video pixels, etc.) are not changed.

[0027] The present invention is characterized in that it calculates a target number of packets per video frame (total packet number target value Npacket_target) by adding the number of slices per video frame (number of adjustment packets) to the data amount Lcod of the compressed signal per video frame, and increases or decreases the number of adjustment packets so that the number of packets per video frame is the same as the total packet number target value Npacket_target.

[0028] As a result, even when a complex image changes to a monotonous image, or vice versa, the target value of the total number of packets, Npacket_target, remains constant.

[0029] Therefore, in the slice mapping method, the data amount and number of packets generated for each video frame can be made constant, and the target value of the total number of packets Npacket_target can be made constant independently of the first video frame.

[0030] [Packet Generation Device] 1 is a block diagram showing the configuration of a packet generating device according to an embodiment of the present invention. The packet generating device 1 includes a compressed signal generating unit 10 and a packet generating unit 11.

[0031] The compressed signal generator 10 inputs video data in units of video frames from, for example, a camera. The compressed signal generator 10 then generates a picture header for each video frame based on the video frame, and divides the video frame into video data for each slice (hereinafter referred to as "slice data").

[0032] The compressed signal generation unit 10 compresses the slice data for each slice in accordance with the JPEG-XS standard, generates a slice header based on the slice data of the slice, and generates a compressed signal based on the slice data of the slice.

[0033] The compressed signal generator 10 outputs a picture header, a slice header for each slice, and a compressed signal to a packet generator 11 for each video frame.

[0034] The packet generator 11 inputs a picture header and a slice header and compressed signal for each video frame from the compressed signal generator 10. Then, the packet generator 11 packetizes the picture header for each video frame, and packetizes the slice header and compressed signal for each slice in the video frame to generate packets (generated packets). The packet generator 11 also packetizes predetermined adjustment data to generate adjustment packets.

[0035] Here, the packet generator 11 monitors the processing of the packet generator 11 so as to comply with the constraints of the SMPTE ST2110-22 standard. That is, the packet generator 11 monitors for each video frame whether the number of packets generated from the video frame is the same. If the packet generator 11 determines that the number of packets is not the same, it adjusts the number of adjustment packets for the video frame, which corresponds to the difference, so that the number of packets becomes the same.

[0036] Specifically, the packet generator 11 calculates the number of RTP packets corresponding to the compressed signal per video frame based on predetermined data included in the picture header, as the reference number of packets to be generated in the video frame (reference number of packets to be generated Np), and calculates the number of slices in the video frame as the reference number of adjustment packets in the video frame (reference number of adjustment packets Adj).The packet generator 11 then calculates the target total number of packets Npacket_target by adding the reference number of adjustment packets Adj to the reference number of packets to be generated Np.

[0037] The packet generation unit 11 increases or decreases the number of adjustment packets for each video frame so that the sum of the number of generated packets and adjustment packets generated from that video frame (total number of packets Npacket) is equal to the target total number of packets Npacket_target.

[0038] By making the total number of packets per video frame Npacket the same as the target value for the total number of packets Npacket_target, it is possible to comply with the constraints of the SMPTE ST2110-22 standard.

[0039] In addition, the number of generated packets including picture headers is the same for all video frames, and is therefore excluded from the calculation here. The packet generator 11 may increase or decrease the number of adjustment packets so that the total number of generated packets including picture headers, generated packets including slice headers and compressed signals, packets including compressed signals, and adjustment packets is equal to the total packet number target value Npacket_target for each video frame.

[0040] The packet generator 11 transmits generated packets and adjustment packets for each video frame. There are three types of generated packets: a packet including a picture header, a packet including a slice header and a compressed signal, and a packet including a compressed signal.

[0041] (Compressed signal generator 10) Next, a detailed description will be given of the compressed signal generator 10 shown in Fig. 1. Fig. 2 is a flowchart illustrating an example of processing performed by the compressed signal generator 10.

[0042] The compressed signal generator 10 sequentially receives video data constituting a video frame (step S201), and performs the following steps S202 to S208 for each video frame.

[0043] The compressed signal generator 10 determines whether the video data of the sequentially input video frames is the head of the video frames (step S202).

[0044] If it is determined in step S202 that the video data is not the head of a video frame (step S202: N), the compressed signal generator 10 ends the process and waits until the head video data of the next video frame is input.

[0045] If the compressed signal generator 10 determines in step S202 that the video data is the beginning of a video frame (step S202: Y), it determines that the beginning of the video frame has been detected and generates a picture header based on the video frame. The compressed signal generator 10 then outputs the picture header to the packet generator 11 (step S203).

[0046] 3 is a diagram showing the structure of a picture header. The structure of this picture header is described in Table A.6 (pages 18 and 19) of the following document: [Non-patent document] INTERNATIONAL STANDARD ISO / IEC21122-1, Information technology-JPEG XS low-latency lightweight image coding system-Part1:Core coding system, Reference number ISO / IEC21122-1:2019(E)

[0047] The picture header is composed of (1) the amount of compressed signal data per video frame (Lcod), (2) the number of lines in the vertical direction of the video frame (Hf), (3) the number of lines in a slice (Hsl), etc. The amount of compressed signal data per video frame Lcod, the number of lines in the vertical direction of the video frame Hf, and the number of lines in a slice Hsl are the same values ​​regardless of whether the video is complex or monotonous, as long as the compression parameters are not changed. The same is true for other data that make up the picture header.

[0048] A receiving device that receives the packets transmitted from the packet generator 1 reconstructs the video frames based on the various data that constitute the picture header.

[0049] Returning to Fig. 2, the compressed signal generator 10 proceeds from step S203 to slice the video data for each predetermined number of lines in the video frame (step S204). That is, the compressed signal generator 10 treats each predetermined number of lines as one slice and performs the processes of steps S204 to S208 for each slice. The sliced ​​video data for the predetermined number of lines is treated as slice data.

[0050] The compressed signal generating unit 10 compresses the slice data for each slice in accordance with the JPEG-XS standard (step S205). Then, the compressed signal generating unit 10 generates a slice header based on the slice data of the slice, and generates a compressed signal based on the slice data of the slice (step S206).

[0051] The compressed signal generator 10 outputs the slice header and the compressed signal to the packet generator 11 (step S207).

[0052] The compressed signal generator 10 determines whether or not the processing of all slices of the input video frame has been completed (step S208). If the compressed signal generator 10 determines in step S208 that the processing of all slices has not been completed (step S208: N), the compressed signal generator 10 proceeds to step S204 and performs the processing of steps S204 to S208 on the next slice.

[0053] On the other hand, if it is determined in step S208 that the processing of all slices has been completed (step S208: Y), the compressed signal generator 10 ends the processing of the video frame. Then, the compressed signal generator 10 processes the next video frame.

[0054] In this way, the process of steps S201 to S208 is performed for each video frame, and the process of steps S204 to S208 is performed for each slice. Furthermore, the compression process is performed for each slice, and a compressed signal is generated. Then, within one video frame, the picture header, slice headers for each slice (for all slices), and compressed signals are output to the packet generator 11.

[0055] (Packet Generation Unit 11) Next, a description will be given of the details of the packet generator 11 shown in Fig. 1. Fig. 4 is a block diagram showing an example of the configuration of the packet generator 11, and Fig. 5 is a flowchart showing an example of the processing performed by the packet generator 11.

[0056] The packet generator 11 includes a picture header processor 20, a slice header and data processor 21, and an adjuster 22. The adjuster 22 includes an adjustment packet processor 23 and an adjustment packet increase / decrease unit 24.

[0057] As described above, the packet generator 11 monitors its processing so as to comply with the constraints of the SMPTE ST2110-22 standard. The compressed signal generator 10 compresses slice data for each slice of a video frame to generate a compressed signal. In this case, the amount of data in the compressed signal may differ for each slice. This results in a change in the number of packets for each video frame, and in order to comply with the constraints of the SMPTE ST2110-22 standard, it is necessary to adjust the number of packets between video frames.

[0058] Therefore, the packet generator 11 adjusts the number of adjustment packets so as to keep the number of packets generated by the slice mapping method constant for each video frame. Specifically, the packet generator 11 increases or decreases the number of adjustment packets for each video frame based on the number of adjustment packets common between video frames.

[0059] The packet generator 11 receives the picture header, slice header, and compressed signal from the compressed signal generator 10 (step S501). The packet generator 11 determines whether the data received in step S501 is a picture header (step S502).

[0060] If the packet generator 11 determines in step S502 that the input data is a picture header (step S502: Y), the process proceeds to step S503, and the picture header processor 20 performs the processes of steps S503 to S510.

[0061] On the other hand, if the packet generation unit 11 determines in step S502 that the input data is not a picture header (step S502: N), it proceeds to step S511, where the slice header and data processing unit 21 performs processing of steps S511 to S515, and the adjustment unit 22 performs processing of steps S516 to S520.

[0062] Moving on from step S502(Y), the picture header processing unit 20 obtains the number of lines Hf in the vertical direction of the video frame, the number of lines Hsl of the slice, and the data amount Lcod of the compressed signal per video frame from the picture header (step S503).

[0063] The picture header processing unit 20 obtains the number of slices in the video frame by dividing the number of lines Hf in the vertical direction of the video frame by the number of lines Hsl of the slice using the following formula, and sets this as the adjustment packet reference number Adj (step S504). [Number 1] Adj = ceil(Hf / Hsl) (1)

[0064] Using this reference number Adj of adjustment packets as a reference, adjustment packetization processing is performed in step S518, which will be described later, and the number of adjustment packets transmitted in the video frame is increased or decreased in step S519, which will be described later.

[0065] Here, in the compression process using the JPEG-XS standard by the compressed signal generator 10, the compression process is performed for each slice, so the length of the compressed signal differs for each slice, but the difference is one packet. In other words, the difference in the number of packets generated for each video frame is at most the number of slices in the video frame, i.e., the adjustment packet reference number Adj.

[0066] Therefore, in the processing of steps S518 and S519 described later, the number of adjustment packets is increased or decreased based on the reference number Adj of adjustment packets, and it is possible to increase or decrease the number of adjustment packets up to the reference number Adj of adjustment packets, which is the number of slices of a video frame.

[0067] In this way, in step S504, the reference number Adj of adjustment packets indicating the number of slices in a video frame is calculated, and the reference number Adj of adjustment packets is used as a reference for increasing or decreasing the number of adjustment packets. This allows the generation, adjustment, and transmission of the minimum number of adjustment packets to satisfy the constraints of the SMPTE ST2110-22 standard. In other words, the efficiency of the processing and transmission by the packet generation device 1 can be improved.

[0068] The above formula (1) is a formula using the ceil function, but the floor function may be used, or another function may be used.

[0069] After the process of step S504, the picture header processing unit 20 inputs the preset RTP payload length RTPlen (step S505). Then, the picture header processing unit 20 obtains the number of RTP packets corresponding to the compressed video signal per video frame by dividing the data amount Lcod of the compressed signal per video frame by the RTP payload length RTPlen using the following formula, and sets this as the reference number of packets to be generated Np (step S506). Here, the data amount Lcod of the compressed signal per video frame is constant between video frames. [Number 2] Np=ceil(Lcod / RTPlen) ···(2)

[0070] The above formula (2) is a formula using the ceil function, but the floor function may be used, or another function may be used.

[0071] The picture header processing unit 20 calculates a total packet number target value Npacket_target indicating a target value for the total number of packets to be generated in one video frame by adding the adjustment packet reference number Adj calculated in step S504 to the generated packet reference number Np calculated in step S506 using the following formula (step S507). [Number 3] Npacket_target=Np+Adj ···(3)

[0072] This target value of the total number of packets, Npacket_target, is used as the target value of the number of packets in all video frames.

[0073] In step S506, the amount of data Lcod of the compressed signal per video frame and the RTP payload length RTPlen used in calculating the reference number of packets to be generated Np are values ​​that do not change unless the compression parameters are changed. Similarly, in step S504, the number of vertical lines Hf and the number of lines Hsl of a slice used in calculating the reference number of adjustment packets Adj are values ​​that do not change unless the compression parameters are changed. Therefore, the target value Npacket_target of the total number of packets calculated in step S507 is also a value that does not change unless the compression parameters are changed.

[0074] In other words, the total packet number target value Npacket_target is a constant value that does not change unless the compression parameters are changed, regardless of the degree of complexity, whether the video is complex or monotonous. By using the total packet number target value Npacket_target, the required transmission rate can be considered in advance, and the conventional problem can be solved.

[0075] The picture header processing unit 20 maps the picture header to an RTP payload (step S508), and performs packetization processing using UDP, IP, and MAC processing to generate a packet (step S509). The picture header processing unit 20 transmits the generated packet as a generated packet (step S510), and proceeds to step S502.

[0076] Here, the picture header processing unit 20 calculates the reference number of adjustment packets Adj, the reference number of packets to be generated Np, and the target value of the total number of packets Npacket_target for each video frame in the processes of steps S504, S506, and S507. That is, the reference number of adjustment packets Adj, the reference number of packets to be generated Np, and the target value of the total number of packets Npacket_target are calculated for each video frame regardless of whether the compression parameters of the video frame have been changed or not. This allows the packet generating device 1 to realize continuous processing without interrupting the packet generation process even if the compression parameters of the video frame have been changed.

[0077] If the input data is not a picture header, the slice header and data processing unit 21 proceeds from step S502(N) and maps the slice header and compressed signal of the slice to the RTP payload (step S511). Then, the slice header and data processing unit 21 performs packetization processing by UDP, IP, and MAC processing to generate a packet (step S512). The slice header and data processing unit 21 transmits the generated packet as a generated packet (step S513).

[0078] The slice header and data processing unit 21 determines whether or not the processing of all slices for the video frame has been completed (step S514). If the slice header and data processing unit 21 determines in step S514 that the processing of all slices has not been completed (step S514: N), it performs the processes of steps S511 to S514 for the next slice (step S515).

[0079] On the other hand, if the slice header and data processing unit 21 determines that the processing of all slices for the video frame has been completed (step S514: Y), the process proceeds to step S516.

[0080] The adjustment packet processing unit 23 of the adjustment unit 22 proceeds from step S514 (Y) and acquires the number of generated packets Npacket_tmp indicating the number of slice headers and compressed signal packets generated for the video frame in step S512 (step S516).

[0081] The adjustment packet processing unit 23 calculates the total number of packets Npacket indicating the total number of packets generated in one video frame (the total number of generated packets and adjustment packets) by adding the reference number of adjustment packets Adj calculated in step S504 to the number of generated packets Npacket_tmp obtained in step S516 using the following formula (step S517). [Number 4] Npacket=Npacket_tmp+Adj ···(4)

[0082] The adjustment packet processing unit 23 maps the preset adjustment data to the RTP payload. Then, the adjustment packet processing unit 23 performs packetization processing for the reference number Adj of adjustment packets calculated in step S504 by UDP, IP, and MAC processing, and generates adjustment packets for the reference number Adj of adjustment packets (step S518).

[0083] The preset adjustment data is a set of padding data (padding data group) with a value of 0 as specified in the RFC 3550 standard. When generating an adjustment packet, the adjustment packet processing unit 23 sets a padding flag P in the RTP header to 1 to indicate that the RTP packet, which is the adjustment packet, contains padding data.

[0084] Furthermore, when an embodiment of the present invention is applied to the technology of the above-mentioned Patent Document 1, there are two types of packets for which the padding flag P is set to 1: packets that contain a compressed signal and padding data in the same packet, and adjustment packets that contain only padding data.

[0085] In this case, in order for the receiving device to be able to distinguish between these two types of packets, the number of pieces of padding data is set at the end of the padding data group.

[0086] If the number set at the end of the padding data matches the total number of padding data mapped to the RTP payload (a preset number), the receiving device identifies the received packet as a correction packet. On the other hand, if the numbers do not match, the receiving device identifies the received packet as a packet containing a compressed signal and padding data.

[0087] The adjustment packet increasing / decreasing unit 24 of the adjustment unit 22 moves from step S518 to perform adjustment packet increasing / decreasing processing (step S519). The adjustment packet increasing / decreasing processing in step S519 will be described later in detail.

[0088] After performing the adjustment packet increase / decrease process, the adjustment packet increase / decrease unit 24 transmits the adjustment packets after the increase / decrease (step S520).

[0089] (Adjustment packet increase / decrease processing / step S519) 6 is a flowchart showing the adjustment packet increase / decrease process (step S519). The adjustment packet increase / decrease unit 24 compares the total number of packets Npacket calculated in step S517 with the target value Npacket_target of the total number of packets calculated in step S507 (step S601).

[0090] When it is determined in step S601 that the total number of packets Npacket is smaller than the target total number of packets Npacket_target (step S601: Npacket < Npacket_target), the adjustment packet increase / decrease unit 24 performs processing to increase the adjustment packet in steps S602 and S603.

[0091] Specifically, the adjustment packet increase / decrease unit 24 maps preset adjustment data to the RTP payload, performs packetization processing for one packet through UDP, IP, and MAC processing, and adds one adjustment packet to the generated adjustment packet (step S602). The adjustment packet increase / decrease unit 24 increments the total number of packets Npacket by one (step S603) and transfers to step S601. As a result, the number of adjustment packets transmitted in step S520 of FIG. 5 increases.

[0092] On the other hand, when it is determined in step S601 that the total number of packets Npacket is larger than the target total number of packets Npacket_target (step S601: Npacket > Npacket_target), the adjustment packet increase / decrease unit 24 performs processing to decrease the adjustment packet in steps S604 and S605.

[0093] Specifically, the adjustment packet increase / decrease unit 24 reduces one adjustment packet from the generated adjustment packets (step S604), decrements the total number of packets Npacket by one (step S605), and transfers to step S601. As a result, the number of adjustment packets transmitted in step S520 of FIG. 5 decreases.

[0094] On the other hand, when it is determined in step S601 that the total number of packets Npacket and the target total number of packets Npacket_target are equal (step S601: Npacket_target = Npacket), the process ends.

[0095] In this manner, the adjustment packets are increased or decreased until it is determined that the total number of packets Npacket and the target value Npacket_target of the total number of packets are equal, based on the adjustment packets for the reference number Adj of adjustment packets already generated in step S518 of Fig. 5. Then, the adjustment packets in the number after the increase or decrease process when it is determined that the total number of packets Npacket and the target value Npacket_target of the total number of packets are equal are transmitted in step S520 of Fig. 5.

[0096] Next, the total packet number target value Npacket_target, the total packet number Npacket, the adjustment packet reference number Adj, and the number of adjustment packets actually transmitted in the adjustment packet increase / decrease process shown in Fig. 6 will be explained. Fig. 7(1) is a diagram explaining the total packet number target value Npacket_target, (2) is a diagram explaining a case where the total packet number Npacket is smaller than the total packet number target value Npacket_target, and (3) is a diagram explaining a case where the total packet number Npacket is larger than the total packet number target value Npacket_target.

[0097] Referring to (1), the target value of the total number of packets Npacket_target is made up of a reference number of packets to be generated Np corresponding to the number of packets to be generated, and a reference number of adjustment packets Adj corresponding to the number of adjustment packets.

[0098] As described above, the compressed signal generation unit 10 shown in FIG. 1 divides a video frame into slice data for each slice, and compresses the slice data for each slice in accordance with the JPEG-XS standard of the aforementioned non-patent document 2 to generate a compressed signal.

[0099] Here, according to the JPEG-XS standard, the slice data amount, which is the data amount of the compressed signal for each slice, is variable for each slice, but the frame data amount, which is the total amount of the compressed signals for each slice in one video frame, is constant between video frames. That is, the data amount Lcod of the compressed signal per video frame is constant between video frames. Therefore, the generated packet reference number Np and the total packet target value Npacket_target calculated using the data amount Lcod of the compressed signal per video frame, etc. are also constant between video frames.

[0100] Thus, since the frame data amount is constant between video frames but the slice data amount is variable for each slice, the number of generated packets Npacket_tmp generated from all slice data in a video frame is variable for each video frame.

[0101] That is, as shown in (2), there may be a case where the number of generated packets Npacket_tmp is smaller than the generated packet reference number Np, and as shown in (3), there may also be a case where the number of generated packets Npacket_tmp is larger than the generated packet reference number Np.

[0102] Referring to (2), when the total number of packets Npacket is smaller than the total packet target value Npacket_target (step S601: Npacket < Npacket_target), the adjustment packets increase by an amount corresponding to the difference. As a result, the number of adjustment packets transmitted in the video frame becomes the number obtained by adding the difference to the adjustment packet reference number Adj.

[0103] Referring to (3), when the total number of packets Npacket is larger than the total packet target value Npacket_target (step S601: Npacket > Npacket_target), the adjustment packets decrease by an amount corresponding to the difference. As a result, the number of adjustment packets transmitted in the video frame becomes the number obtained by subtracting the difference from the adjustment packet reference number Adj.

[0104] [Simulation results] Next, the results of a computer simulation will be described. Fig. 8 is a diagram showing the results of the simulation, which shows the results of the method described in Patent Application Publication No. 2019-219809 (a method for determining a target value in the first video frame), which was unpublished at the time of filing this patent application, and the results of the embodiment of the present invention.

[0105] In the graph on the lower left of Figure 8, the horizontal axis shows the frame number, and the vertical axis shows the difference between the target value Npacket_first for the total number of packets and the number of generated packets Npacket_first_tmp when using the method described in Patent Application No. 2019-219809, i.e., the number of adjustment packets.

[0106] In addition, in the graph on the lower right side of Figure 8, the horizontal axis indicates the frame number, and the vertical axis indicates the difference between the target value Npacket_target for the total number of packets and the number of generated packets Npacket_tmp when an embodiment of the present invention is used, i.e., the number of control packets.

[0107] 8 shows the characteristics when the RTP payload length RTPlen is 64 bytes, the target value Npacket_first of the method described in Japanese Patent Application No. 2019-219809 is 16303, and the total number of packets target value Npacket_target of the embodiment of the present invention is 16267. b, c, and d show the characteristics when the RTP payload length RTPlen, the target value Npacket_first of the method described in Japanese Patent Application No. 2019-219809, and the total number of packets target value Npacket_target of the embodiment of the present invention are 16267, as shown in the table at the top of FIG.

[0108] From Figure 8, it can be seen that for all characteristics a, b, c, and d, the difference between the total packet number target value Npacket_target and the number of generated packets Npacket_tmp in an embodiment of the present invention is smaller than the difference between the target value Npacket_first and the number of generated packets Npacket_first_tmp in the method described in Patent Application No. 2019-219809.

[0109] Since these differences correspond to the number of adjustment packets generated, the number of adjustment packets generated for each video frame is smaller in the embodiment of the present invention than in the technique described in Japanese Patent Application No. 2019-219809. As a result, the embodiment of the present invention can transmit generated packets and adjustment packets at a lower transmission rate than the technique described in Japanese Patent Application No. 2019-219809. Therefore, the embodiment of the present invention can suppress unnecessary increases in transmission rate compared to the technique described in Japanese Patent Application No. 2019-219809.

[0110] As described above, according to the packet generation device 1 of the embodiment of the present invention, the compressed signal generation unit 10 generates a picture header for each video frame based on the video frame. The compressed signal generation unit 10 also divides the video frame into slice data for each slice, compresses the slice data according to the JPEG-XS standard, and generates a slice header and a compressed signal based on the slice data of the slice.

[0111] The packet generation unit 11 obtains an adjustment packet reference number Adj indicating the number of slices in a video frame by dividing the number of vertical lines Hf of the video frame included in the picture header by the number of lines Hsl of the slice, obtains a generated packet reference number Np by dividing the data amount Lcod of the compressed signal per video frame included in the picture header by a predetermined RTP payload length RTPlen, and obtains a total packet number target value Npacket_target by adding the adjustment packet reference number Adj to the generated packet reference number Np.

[0112] The packet generation unit 11 increases or decreases the number of adjustment packets for each video frame so that the sum of the number of generated packets and adjustment packets generated from that video frame (total number of packets Npacket) is equal to the target total number of packets Npacket_target.

[0113] As a result, even if a complex image changes to a monotonous image or vice versa, the target value Npacket_target of the total number of packets does not change unless the compression parameters are changed. In other words, in the slice mapping method, the amount and number of packets generated for each video frame can be kept constant, and the target value of the number of packets per video frame can be kept constant independently of the first video frame.

[0114] Furthermore, since the number of packets generated for each video frame in the slice mapping method is constant, it is possible to realize packet transmission of a compressed signal that satisfies the constraints of the SMPTE ST2110-22 standard in the aforementioned Non-Patent Document 1. Furthermore, since the data amount and number of packets are constant for each video frame regardless of the degree of complexity of the video, the transmission rate can be fixed and the transmission rate can be considered in advance.

[0115] For example, in the method described in Japanese Patent Application No. 2019-219809 (method of determining a target value in the first video frame), when the first video is complex, the target value becomes large, and when a monotonous video is transmitted later, the number of adjustment packets increases, resulting in an unnecessary increase in the transmission rate. In the embodiment of the present invention, the number of packets generated for each video frame is constant regardless of the degree of complexity of the video, so the number of unnecessary adjustment packets does not increase, and the transmission rate does not increase.

[0116] Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above-described embodiments and can be modified in various ways without departing from the technical concept thereof.

[0117] A normal computer can be used as the hardware configuration of the packet generating device 1 according to the embodiment of the present invention. The packet generating device 1 is configured by a computer including a CPU, a volatile storage medium such as a RAM, a non-volatile storage medium such as a ROM, an interface, etc.

[0118] Each function of the compressed signal generation unit 10 and packet generation unit 11 (picture header processing unit 20, slice header and data processing unit 21, and adjustment unit 22) provided in the packet generation device 1 is realized by having a CPU execute a program that describes these functions.

[0119] These programs are stored in the storage medium and are read and executed by the CPU. These programs can also be distributed by storing them in a storage medium such as a magnetic disk (floppy disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.), or a semiconductor memory, and can also be transmitted and received via a network. [Explanation of symbols]

[0120] 1 Packet Generator 10 Compressed signal generator 11 Packet Generation Unit 20 Picture header processing section 21 Slice Header and Data Processing Section 22 Adjustment section 23 Adjustment packet processing unit 24 Adjustment packet increase / decrease unit Lcod Data volume of compressed signal per video frame Hf The number of vertical lines in a video frame Number of lines in the Hsl slice RTPlen RTP payload length Np: Reference number of packets generated (number of RTP packets corresponding to the compressed signal per video frame) Adj: Adjustment packet reference number (number of slices in a video frame) Npacket_target Total number of packets target value Npacket_tmp Number of packets generated Npacket Total number of packets

Claims

1. A packet generation device for packetizing a compressed signal obtained by compressing a video frame, comprising: a compressed signal generating unit that compresses the video frame for each slice and generates the compressed signal for each slice; packetizing the compressed signal for each slice generated by the compressed signal generating unit for each video frame to generate generated packets, and generating adjustment packets of a predetermined adjustment packet reference number Adj; a packet generation unit that increases or decreases the number of the adjustment packets so that a total number of the generated packets and the adjustment packets for the video frame becomes equal to a predetermined total packet number target value Npacket_target, The packet generation unit The data amount Lcod of the compressed signal per video frame is a constant data amount Lcod between the video frames, and the number of generated packets per video frame obtained from the data amount Lcod is a generated packet reference number Np, and the number of slices per video frame is the adjustment packet reference number Adj, A packet generating device, comprising: a packet generating unit for generating a packet from a packet source, the packet generating unit generating a packet from a packet source, the packet generating unit generating a packet from a packet source, and a packet generating unit generating a packet from the packet source.

2. 2. The packet generating device according to claim 1, The packet generation unit obtain the generated packet reference number Np by dividing the data amount Lcod of the compressed signal per video frame by a preset payload length of the generated packets; The adjustment packet reference number Adj is obtained by dividing the number of lines Hf in the vertical direction of the video frame by the number of lines Hsl of the slice; A packet generating device, comprising: a packet generating unit for generating a packet from a packet source, the packet generating unit generating a packet from a packet source, the packet generating unit generating a packet from a packet source, and a packet generating unit generating a packet from the packet source.

3. 2. The packet generating device according to claim 1, The compressed signal generation unit generating a picture header from the video frame, the picture header including a data amount Lcod of the compressed signal per video frame, a vertical line number Hf of the video frame, and a line number Hsl of the slice, and generating a slice header and the compressed signal for each slice of the video frame; The packet generation unit obtain, from the picture header generated by the compressed signal generation unit, a data amount Lcod of the compressed signal per video frame, a vertical line number Hf of the video frame, and a line number Hsl of the slice; obtain the generated packet reference number Np by dividing the data amount Lcod of the compressed signal per video frame by a preset payload length of the generated packets; The adjustment packet reference number Adj is obtained by dividing the number of lines Hf in the vertical direction of the video frame by the number of lines Hsl of the slice; The total packet number target value Npacket_target is calculated by adding the adjustment packet reference number Adj to the generated packet reference number Np; packetizing the picture header generated by the compressed signal generating unit, and the slice header and the compressed signal for each slice, to generate the generated packets, and generating the adjustment packets of the adjustment packet reference number Adj; A packet generating device, comprising: a packet generating unit configured to increase or decrease the number of the adjustment packets so that the total number of the generated packets and the adjustment packets for the video frame becomes equal to the total packet number target value Npacket_target.

4. A program for causing a computer to function as the packet generating device according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Communication terminal device, communication volume control method, and integrated circuit

    JP2010136220A

  • Transmission method, reception method, transmission device and reception device

    JP2017034664A

  • Information distribution device, relay device, information distribution program, relay program, information distribution method, relay method, and information distribution system

    JP2018050242A

  • Video / packet converter, packet / video converter, and program

    JP2020022087A

  • Packet generating device and program

    JP2021090150A