The present technology relates to a transmission device, a transmission method, a reception device, and a reception method, and in particular relates to a transmission device and the like that transmit text information of a subtitle together with video data.
Conventionally, for example, in broadcasting of digital video broadcasting (DVB) and the like, operation has been performed of transmitting subtitle information as bitmap data. Recently, it has been devised to transmit the subtitle information as text character codes, that is, text-based transmission. As the text information, for example, Timed Text Markup Language (TTML) has been advocated by the World Wide Web Consortium (W3C) (see Patent document 1).
Conventionally, it has been known that a subtitle display position in subtitle display position information included in text information of a subtitle is specified, for example, as a relative position with respect to a video area. In this case, in a case where an aspect ratio of the video area does not coincide with an aspect ratio of a display area, a part of the subtitle sometimes sticks out of the display area and is not displayed depending on a display method. In addition, conventionally, it has been known that the text information of the subtitle is transmitted including font specification information.
Patent document 1: Japanese Patent Application Laid-Open No. 2012-169885
In order to avoid that a part of the subtitle sticks out of the display area and is not displayed as described above, for example, it is conceivable to perform processing, in the reception side, as not a relative position with respect to the video area but a relative position with respect to a video area (display video area) displayed on a monitor (display). In that case, in a case where the aspect ratio of the video area is different from an aspect ratio of the display video area, for example, the subtitle display position is compressed only in the horizontal direction, and there is a possibility that subtitle display is made giving a viewer a sense of discomfort. In addition, in a case where the text information of the subtitle is transmitted including the font specification information as described above, in a case where a file of a font specified is not mounted in the reception side, subtitle display is not possible with the font specified, and there is a possibility that subtitle display is not made as intended by a creator.
An object of the present technology is to make it possible to satisfactorily perform subtitle display in the reception side.
A concept of the present technology is in
a transmission device including:
a transmission unit that transmits a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including subtitle display position information for specifying a subtitle display position as a relative position with respect to a subtitle display range; and
an information insertion unit that inserts, into a container of the subtitle stream, auxiliary information to be used when the subtitle is displayed by using the subtitle position information.
In the present technology, the transmission unit transmits the container of the predetermined format including the video stream including the video data and the subtitle stream including the text information of the subtitle. The text information of the subtitle includes the subtitle display position information for specifying the subtitle display position as the relative position with respect to the subtitle display range.
The information insertion unit inserts the auxiliary information to be used when the subtitle is displayed by using the subtitle position information into the container of the subtitle stream. It is preferable that, for example, the auxiliary information is inserted into a PES packet and/or a program map table.
It is preferable that, for example, the auxiliary information includes information regarding resizing processing of the subtitle display position determined on the basis of the subtitle display position information, the resizing processing being performed in the reception side in a case where an aspect ratio of a video area is different from an aspect ratio of a display video area. In this case, it is preferable that, for example, the information regarding the resizing processing is information indicating a line position to be set as a fixed position in a case where a size in a vertical direction is compressed in the resizing processing of the subtitle display position.
In addition, it is preferable that, for example, the auxiliary information includes information for determining the subtitle display range. In this case, it is preferable that, for example, the information for determining the subtitle display range is reference point information and aspect ratio information of the subtitle display range.
As described above, in the present technology, the auxiliary information to be used when the subtitle is displayed by using the subtitle position information is inserted into the container of the subtitle stream. For that reason, in the reception side, by using the auxiliary information together with the subtitle position information, it becomes possible to appropriately acquire the subtitle display position and satisfactorily perform subtitle display.
In addition, another concept of the present technology is in
a reception device including:
a reception unit that receives a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including subtitle display position information for specifying a subtitle display position as a relative position with respect to a subtitle display range; and
a control unit that controls processing of decoding the video stream to obtain the video data, processing of performing decoding processing on the subtitle stream to obtain bitmap data of the subtitle, processing of performing display position control on the bitmap data of the subtitle on the basis of the subtitle display position acquired by using the subtitle display position information and auxiliary information to be used when the subtitle is displayed by using the subtitle position information inserted into a container of the subtitle stream, and processing of superimposing the bitmap data of the subtitle subjected to the display position control on the video data.
In the present technology, the reception unit receives the container of the predetermined format including the video stream including the video data and the subtitle stream including the text information of the subtitle. The text information of the subtitle includes the subtitle display position information for specifying the subtitle display position as the relative position with respect to the subtitle display range. The auxiliary information to be used when the subtitle is displayed by using the subtitle position information is inserted into the container of the subtitle stream.
The control unit controls the processing of decoding the video stream to obtain the video data, the processing of performing decoding processing on the subtitle stream to obtain the bitmap data of the subtitle, the processing of performing the display position control on the bitmap data of the subtitle on the basis of the subtitle display position acquired by using the subtitle display position information and the auxiliary information, and the processing of superimposing the bitmap data of the subtitle subjected to the display position control on the video data.
For example, it is preferable that the auxiliary information includes information regarding resizing processing of the subtitle display position determined on the basis of the subtitle display position information, the resizing processing being performed in the reception side in a case where an aspect ratio of a video area is different from an aspect ratio of a display video area, and in the processing of performing the display position control, in the case where the aspect ratio of the video area is different from the aspect ratio of the display video area, the display video area is set as the subtitle display range and the subtitle display position is determined on the basis of the subtitle display position information, the resizing processing is performed by using the information regarding the resizing processing on the subtitle display position determined, and the display position control is performed on the bitmap data of the subtitle on the basis of the subtitle display position subjected to the resizing processing.
In addition, for example, it is preferable that the auxiliary information includes information for determining the subtitle display range, and in the processing of performing the display position control, in the case where the aspect ratio of the video area is different from the aspect ratio of the display video area, the subtitle display range is set in the display video area on the basis of the information for determining the subtitle display range, the subtitle display position is determined on the basis of the subtitle display position information, and the display position control is performed on the bitmap data of the subtitle on the basis of the subtitle display position determined.
As described above, in the present technology, the auxiliary information to be used when the subtitle is displayed by using the subtitle position information is inserted into the container of the subtitle stream, and the display position control is performed on the bitmap data of the subtitle on the basis of the subtitle display position acquired by using the subtitle display position information and the auxiliary information. For that reason, it becomes possible to satisfactorily perform subtitle display.
In addition, another concept of the present technology is in
a transmission device including:
a transmission unit that transmits a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including font specification information; and
an information insertion unit that inserts download information for downloading a file of a font specified by at least the font specification information into a container of the subtitle stream.
In the present technology, the transmission unit transmits the container of the predetermined format including the video stream including the video data and the subtitle stream including the text information of the subtitle. The text information of the subtitle includes the font specification information.
The information insertion unit inserts the download information for downloading the file of the font specified by at least the font specification information into the container of the subtitle stream. It is preferable that, for example, the auxiliary information is inserted into a PES packet and/or a program map table. It is preferable that, for example, the download information is information for acquiring the file of the font from a broadcast signal, or is information for acquiring the file of the font from a server on a network.
As described above, in the present technology, the download information for downloading the file of the font specified by at least the font specification information is inserted into the container of the subtitle stream. For that reason, in the reception side, in a case where the file of the font specified by the font specification information is not included, it becomes possible to acquire the file of the font specified by the font specification information on the basis of the download information, and to satisfactorily perform subtitle display.
In addition, another concept of the present technology is in
a reception device including:
a reception unit that receives a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including font specification information; and
a control unit that controls processing of decoding the video stream to obtain the video data, processing of acquiring a font file of a font specified by the font specification information on the basis of download information for downloading a file of the font specified by at least the font specification information inserted into a container of the subtitle stream, processing of decoding the subtitle stream and obtaining bitmap data of the subtitle on the basis of the font file acquired, and processing of superimposing the bitmap data of the subtitle on the video data.
In the present technology, the reception unit receives the container of the predetermined format including the video stream including the video data and the subtitle stream including the text information of the subtitle. The text information of the subtitle includes the font specification information. The download information for downloading the file of the font specified by at least the font specification information is inserted into the container of the subtitle stream.
The control unit controls the processing of decoding the video stream to obtain the video data, the processing of acquiring the font file of the font specified by the font specification information on the basis of the download information, the processing of decoding the subtitle stream and obtaining the bitmap data of the subtitle on the basis of the font file acquired, and the processing of superimposing the bitmap data of the subtitle on the video data.
As described above, in the present technology, the download information for downloading the file of the font specified by at least the font specification information is inserted into the container of the subtitle stream, and the font file of the font specified by the font specification information is acquired on the basis of the download information, and is used when the bitmap data of the subtitle is obtained. For that reason, even in a case where the file of the font specified by the font specification information is not included, it becomes possible to satisfactorily perform subtitle display.
In addition, another concept of the present technology is in
a transmission device including:
a section table insertion unit that sequentially and repeatedly inserts a constant number of section tables respectively including different font files into a transport stream; and
a transmission unit that transmits the transport stream into which the section tables are inserted.
In the present technology, the section table insertion unit sequentially and repeatedly inserts the predetermined number of section tables respectively including different font files into the transport stream. The transmission unit transmits the transport stream into which the section tables are inserted. In this case, the predetermined number of section tables are sequentially and repeatedly transmitted by a data carousel.
As described above, in the present technology, the predetermined number of section tables respectively including different font files are sequentially and repeatedly inserted into the transport stream. For that reason, in the reception side, it becomes possible to easily acquire the font file of the font specified by, for example, the font specification information included in the text information of the subtitle, from the transport stream.
According to the present technology, it becomes possible to satisfactorily perform subtitle display in the reception side. Note that, the advantageous effects described in this specification are merely examples, and the advantageous effects of the present technology are not limited to them and may include additional effects.
The following is a description of a mode for carrying out the invention (the mode will be hereinafter referred to as the “embodiment”). Note that, explanation will be made in the following order.
1. Embodiment
2. Modifications
[Example Configuration of Transmission/Reception System]
The transport stream TS includes a video stream including video data, and a subtitle stream including text information of a subtitle. Here, as the text information of the subtitle, for example, TTML, a derived format of the TTML, or the like can be considered; however, in the embodiment, it is assumed to be the TTML. The TTML includes subtitle display position information, and the subtitle display position information specifies a subtitle display position (region) as a relative position (proportional value) with respect to a subtitle display range. In addition, the TTML includes font specification information.
The broadcast transmission system 100 inserts auxiliary information to be used when the subtitle is displayed by using the subtitle display position information, into the container of the TTML and/or the subtitle stream. In the embodiment, the broadcast transmission system 100 includes the auxiliary information in the TTML, and also inserts the auxiliary information into a Packetized Elementary Stream (PES) packet and a Program Map Table (PMT).
The auxiliary information includes information regarding resizing processing of the subtitle display position determined on the basis of the subtitle display position information, the resizing processing being performed in the reception side in a case where an aspect ratio of a video area is different from an aspect ratio of a display video area. The information regarding the resizing processing is, for example, information indicating a line position to be set as a fixed position in a case where the size in the vertical direction is compressed in the resizing processing of the subtitle display position. In addition, the auxiliary information includes information for determining the subtitle display range. For example, the information for determining the subtitle display range is reference point information and aspect ratio information of the subtitle display range.
In addition, the broadcast transmission system 100 inserts download information for downloading a file of a font specified by at least the font specification information into the container of the subtitle stream. The download information is information for acquiring the font file from a broadcast signal (transport stream TS), information for acquiring the font file from a server on a network, or the like. In the embodiment, the broadcast transmission system 100 inserts the download information into the Packetized Elementary Stream (PES) packet and the Program Map Table (PMT).
In addition, the broadcast transmission system 100 sequentially and repeatedly inserts a predetermined number of section tables respectively including different font files into the transport stream TS as the broadcast signal. That is, the broadcast transmission system 100 repeatedly transmits the predetermined number of section tables by a data carousel. Note that, the transport stream TS into which the section tables each including the font file are inserted is not necessarily the same as the above-described transport stream TS including the subtitle stream, and may be the transport stream TS of another service.
The television receiver 200 receives the transport stream TS transmitted from the broadcast transmission system 100. The television receiver 200 performs decoding processing on the video stream including the video data to obtain the video data, and performs decoding processing on the subtitle streams including the TTML as the text information of the subtitle to obtain bitmap data of the subtitle.
The television receiver 200 uses the file of the font specified by the font specification information included in the TTML when obtaining the bitmap data of the subtitle. As described above, the download information for downloading the file of the font specified by at least the font specification information is inserted into the PES packet and the Program Map Table (PMT). When the file of the font specified by the font specification information is not mounted, the television receiver 200 downloads and uses the font file on the basis of the download information.
As described above, in the subtitle display position information included in the TTML, the subtitle display position is specified as the relative position with respect to the subtitle display range. In addition, as described above, the auxiliary information to be used when the subtitle is displayed by using the subtitle display position information is included in the TTML, and is also inserted into the PES packet and the PMT.
The television receiver 200 uses the subtitle display position information and the auxiliary information to acquire the subtitle display position, and performs display position control on the bitmap data of the subtitle on the basis of the subtitle display position acquired. The television receiver 200 superimposes the bitmap data of the subtitle subjected to the display position control on the video data, to obtain the video data for display.
In a case where the aspect ratio of the video area is different from the aspect ratio of the display video area (the video area displayed on a monitor), the television receiver 200 selectively performs a first method or a second method below, as the display position control for the bitmap data of the subtitle.
In the first method, in the case where the aspect ratio of the video area is different from the aspect ratio of the display video area, the television receiver 200 sets the display video area as the subtitle display range and determines the subtitle display position on the basis of the subtitle display position information, and then performs resizing processing on the subtitle display position determined, to acquire the final subtitle display position. The television receiver 200 performs display position control on the bitmap data of the subtitle on the basis of the subtitle display position thus acquired.
The resizing processing is processing for restoring an original shape as the subtitle display position, and for example, in a case where the subtitle display position determined is compressed only in the horizontal direction, compression is also performed in the vertical direction with the same proportion. For example, in a case where the size in the vertical direction is compressed in the resizing processing, compression is performed in a state where a predetermined line position is fixed such as a top line (upper line), a bottom line (lower line), or a middle line (intermediate line).
By appropriately selecting the predetermined line position, for example, in a case where there are two subtitle display positions, it becomes possible to maintain an interval in the vertical direction between the two subtitle display positions even if the resizing processing is performed. When information indicating the line position to be set as the fixed position is inserted, as the information regarding the resizing processing, into the TTML, PES packet, PMT, or the like, the television receiver 200 can use the information.
In the second method, in a case where the aspect ratio of the video area is different from the aspect ratio of the display video area, the television receiver 200 sets the subtitle display range in the display video area, determines the subtitle display position on the basis of the subtitle display position information, and acquires the final subtitle display position. The television receiver 200 performs display position control on the bitmap data of the subtitle on the basis of the subtitle display position thus acquired.
When the information is inserted for determining the subtitle display range inserted into the TTML, PES packet, PMT, or the like, the television receiver 200 can use the information to appropriately set the subtitle display range. For example, the television receiver 200 selects the second method when the information for determining the subtitle display range is included in the TTML, PES packet, PMT, or the like, and selects the first method when the information is not included.
“xmlns=http://www.w3.org/ns/ttml”, “xmlns:ttp=http://www.w3.org/ns/ttml#parameter”, and “xmlns:tts=http://www.w3.org/ns/ttml#styling” are namespaces such as a parameter, styling, and the like that are secured as attribute classifications of the TTML in W3C in advance, although detailed descriptions are omitted.
“xmlns:dto=http://www.example.org/ns/displaytextoverlay” is a newly defined namespace. The namespace is for inserting information on the subtitle display range. Then, “dto:dispasp=“16:9”” and “dto:RPoffset=“Ax %, By %”” indicate the information on the subtitle display range.
The “dto:dispasp=“16:9”” indicates the aspect ratio information of the subtitle display range, and indicates that the subtitle display range is an area of the aspect ratio of 16:9. In the illustrated example, it is illustrated that the aspect ratio of the subtitle display range is 16:9; however, as the aspect ratio of the subtitle display range, it is also possible to specify 4:3, 21:9, or the like, as illustrated in
An element of the layout exists in the head. The region ID is indicated by “r1”, and as the subtitle display position information, the origin of the subtitle display position and the area (extent) are indicated as relative positions. That is, the “origin=“OH % OV %”” indicates the origin of the subtitle display position, and indicates that the origin is at OH from the left and OV % from the top. In addition, the “extent=“EH % EV %”” indicates the area of the subtitle display position, and indicates that the horizontal width is EH % and the vertical width is EV %.
In addition, an element of the style exists in the head. “fontFamily=“proportionalSansSerif”” is the font specification information. Here, the “proportionalSansSerif” indicates a generic family (generic name) of the font.
In the body, the XML ID is indicated by “p1”, the region ID is indicated by “r1”, font specification is made, and text data of the subtitle is described. Here, the text data is set as “ABCDE”. “Font-family: ‘Arial’, ‘Tahoma’, sans-serif” is the font specification information specifying the font of the p element. Here, the “Arial” and the “Tahoma” indicate individual font names and the “sans-serif” indicates a generic family (generic name) of the font.
“dto:scalingjustify=top” constitutes information regarding the resizing processing, and indicates the line position to be set as the fixed position in the case where the size in the vertical direction is compressed by the resizing processing of the subtitle display position. In the illustrated example, it is illustrated that the line position to be set as the fixed position is the top line (upper line); however, it is also possible to specify the bottom line (lower line), the middle line (intermediate line), or the like, as illustrated in
An element of the layout exists in the head. The region ID of a first subtitle display position is indicated by “r1”, and as the subtitle display position information, the origin of the subtitle display position and the area (extent) are indicated as relative positions. That is, “origin=“OH1% OV1%”” indicates that the origin is at OH1% from the left and OV1% from the top. In addition, “extent=“EH1% EV1%”” indicates that the horizontal width of the area is EH1% and the vertical width of the area is EV1%.
In addition, the region ID of a second subtitle display position is indicated by “r2”, and as the subtitle display position information, the origin of the subtitle display position and the area (extent) are indicated as relative positions. That is, “origin=“OH2% OV2%”” indicates that the origin is at OH2% from the left and OV2% from the top. In addition, “extent=“EH2% EV2%”” indicates that the horizontal width of the area is EH2% and the vertical width of the area is EV2%.
In addition, an element of the style exists in the head. “fontFamily=“proportionalSansSerif”” is the font specification information. Here, the “proportionalSansSerif” indicates a generic family (generic name) of the font.
In the body, in association with the first subtitle position, the XML ID is indicated by “p1”, the region ID is indicated by “r1”, font specification is made, and text data of the subtitle is described. Here, the text data is set as “ABODE”. “Font-family: ‘Arial’, ‘Tahoma’, sans-serif” is the font specification information specifying the font of the p element. Here, the “Arial” and the “Tahoma” indicate individual font names and the “sans-serif” indicates a generic family (generic name) of the font.
“Dto:scalingjustify=bottom” constitutes information regarding the resizing processing, and indicates the line position to be set as the fixed position in the case where the size in the vertical direction is compressed by the resizing processing of the subtitle display position. In the illustrated example, it is illustrated that the line position to be set as the fixed position is the bottom line (lower line).
In addition, in the body, in association with the second subtitle position, the XML ID is indicated by “p2”, the region ID is indicated by “r2”, and text data of the subtitle is described. Here, the text data is set as “FGH”. “font-family=“monospaceSerif”” is the font specification information specifying the font of the p element. Here, the “monospaceSerif” indicates a generic family (generic name) of the font.
“dto:scalingjustify=top” constitutes information regarding the resizing processing, and indicates the line position to be set as the fixed position in the case where the size in the vertical direction is compressed by the resizing processing of the subtitle display position. In the illustrated example, it is illustrated that the line position to be set as the fixed position is the top line (upper line).
In the illustrated example, the video area is indicated by the broken line frame and the monitor area is indicated by the solid line frame. In this case, as indicated by the one-dot chain line frame, the display video area is set as the subtitle display range, and the subtitle display position (region) is determined on the basis of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative positions with respect to the subtitle display range. “RP” indicates a reference point (Reference Pont) that is the top-left of the subtitle display range.
The subtitle “ABCDE” by the text data is displayed at the subtitle display position thus determined. Note that, in the illustrated example, the frames indicating the video area, the monitor area, and the subtitle display range are mutually displaced and displayed, but this is a procedure for clearly displaying each of the frames, and in reality, the frames overlap each other.
Although the description is omitted, similar display is made in the following figures.
In the illustrated example, the video area is indicated by the broken line frame and the monitor area is indicated by the solid line frame. In this case, as indicated by the one-dot chain line frame, the display video area is set as the subtitle display range, and the first and second subtitle display positions (regions) are determined on the basis of the subtitle display position information (“origin=“OH1% OV1%””, “extent=“EH1% EV1%””, “origin=“OH2% OV2%””, “extent=“EH2% EV2%””) specified as the relative positions with respect to the subtitle display range.
Then, the subtitle “ABODE” by the text data is displayed in the first subtitle display position (first region), and the subtitle “FGH” by the text data is displayed in the second subtitle display position (second region). In this case, the interval between the two subtitle display positions (regions) is, for example, 10 lines.
In the illustrated example, the video area is indicated by the broken line frame and the monitor area is indicated by the solid line frame. In this case, as indicated by the one-dot chain line frame, the display video area is set as the subtitle display range, and the subtitle display position (region) is determined on the basis of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative positions with respect to the subtitle display range. Then, the subtitle “ABODE” by the text data is displayed in the subtitle display position.
In this case, as compared with the case of
In view of the above, in the first method, as described above, the resizing processing is performed on the subtitle display position determined, and the relationship is made to be in a matched state between the subtitle display position and the subtitle displayed on the subtitle display position not only in the horizontal direction but also in the vertical direction.
In a case where the resizing processing is performed in this way, compression of the width in the vertical direction is performed in a state where the predetermined line position is fixed. The illustrated example is a case where the predetermined line position is set as the top line (upper line) on the basis of the information of the “dto:scalingjustify=top” included in the TTML. Note that, in the illustrated example, the broken line frame indicates the subtitle display position before the compression is performed of the width in the vertical direction.
In the illustrated example, the video area is indicated by the broken line frame and the monitor area is indicated by the solid line frame. In this case, as indicated by the one-dot chain line frame, the display video area is set as the subtitle display range, and the first and second subtitle display positions (regions) are determined on the basis of the subtitle display position information (“origin=“OH1% OV1%””, “extent=“EH1% EV1%””, “origin=“OH2% OV2%””, “extent=“EH2% EV2%””) specified as the relative positions with respect to the subtitle display range, and then the resizing processing is further performed.
In this case, the first subtitle display position (first region) is determined by the subtitle display position information (“origin=“OH1% OV1%””, “extent=“EH1% EV1u %””), as a result. In this case, EV1u=¾ *EV1. Similarly, in this case, the second subtitle display position (second region) is determined by the subtitle display position information (“origin=“OH2% OV2%””, “extent=“EH2% EV2u %””), as a result. In this case, EV2u=¾ *EV2.
Then, the subtitle “ABCDE” by the text data is displayed in the first subtitle display position (first region), and the subtitle “FGH” by the text data is displayed in the second subtitle display position (second region). In this case, depending on the compression of the subtitle display position (region), the font size of the subtitle is adjusted so as to be matched with the subtitle display position compressed.
In a case where the resizing processing is performed, the compression of the width in the vertical direction is performed in a state where the predetermined line position is fixed. The illustrated example is a case where the predetermined line position is set as the bottom line (lower line) in the first subtitle display position (first region) on the basis of the information of the “dto:scalingjustify=bottom” included in the TTML. In addition, the example is a case where the predetermined line position is set as the top line (upper line) in the second subtitle display position (second region) on the basis of the information of the “dto:scalingjustify=top” included in the TTML.
The predetermined line positions are selected in the first and second subtitle display positions in this way, whereby, for example, 10 lines are maintained as the interval between the first and second subtitle display positions, similarly to the case in the display example of
In the illustrated example, the video area is indicated by the broken line frame and the monitor area is indicated by the solid line frame. In this case, as indicated by the one-dot chain line frame, the subtitle display range is set in the display video area, and the subtitle display position (region) is determined on the basis of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative positions with respect to the subtitle display range. Then, the subtitle “ABCDE” by the text data is displayed in the subtitle display position. In this case, depending on the compression of the subtitle display position (region), the font size of the subtitle is adjusted so as to be matched with the subtitle display position compressed.
In this case, for example, in the display video area, the subtitle display range is set having the same aspect ratio as the aspect ratio of the video area. The illustrated example is a case where the subtitle display range with aspect ratio of 16:9 is set in the display video area on the basis of the information on the subtitle display range included in the TTML, that is, the reference point information of the subtitle display range (“dto:RPoffset=“Ax %, By %””) and the aspect ratio information of the subtitle display range (“dto:dispasp=“16:9””).
In this case, the width of the subtitle display position is compressed in both the vertical direction and the horizontal direction, the shape of the subtitle display position is the same as in the case of
In the illustrated example, the video area is indicated by the broken line frame and the monitor area is indicated by the solid line frame. In this case, as indicated by the one-dot chain line frame, the display video area is set as the subtitle display range, and the first and second subtitle display positions (regions) are determined on the basis of the subtitle display position information (“origin=“OH1% OV1%””, “extent=“EH1% EV1%””, “origin=“OH2% OV2%””, “extent=“EH2% EV2%””) specified as the relative positions with respect to the subtitle display range. Then, the subtitle “ABCDE” by the text data is displayed in the first subtitle display position (first region), and the subtitle “FGH” by the text data is displayed in the second subtitle display position (second region).
[Example Configuration of Stream Generation Unit of Broadcast Transmission System]
The control unit 111 is made to have a configuration including, for example, a Central Processing Unit (CPU), and controls operation of each unit of the stream generation unit 110. The video encoder 112 inputs video data DV, and performs encoding on the video data DV, to generate a video stream (PES stream) configured by a video PES packet including encoded video data in a payload. The audio encoder 113 inputs audio data DA, and performs encoding on the audio data DA, to generate an audio stream (PES_stream) configured by an audio PES packet including encoded audio data.
The text format conversion unit 114 inputs text data (character code) DT and obtains the Timed Text Markup Language (TTML) as the subtitle information (see
In addition, the TTML includes the information regarding the resizing processing of the subtitle display position performed in the reception side in the case where the aspect ratio of the video area is different from the aspect ratio of the display video area, for example, the information indicating the line position to be set as the fixed position in the case where the size in the vertical direction is compressed in the resizing processing of the subtitle display position. In addition, the TTML includes the information for determining the subtitle display range (reference point information and aspect ratio information of the subtitle display range).
The subtitle encoder 115 converts the TTML obtained by the text format conversion unit 114 into various segments, and generates a subtitle stream (PES_stream) configured by a subtitle PES packet in which those segments are arranged in the payload.
In this case, the subtitle encoder 115 inserts, into the PES packet, the information regarding the resizing processing and the information for determining the subtitle display range that are similar to those included in the TTML. Specifically, a newly defined TTML display segment (TTML_display_segment) including those pieces of information is generated and the segment is inserted into the PES packet.
In addition, the subtitle encoder 115 inserts, into the PES packet, the download information for downloading the file of the font specified by at least the font specification information of the TTML. Specifically, a newly defined font download segment (Font_download_segment) including information for downloading from the broadcast signal (transport stream TS) and a newly defined URL signaling segment (URL_signaling_segment) including information for downloading from the server on the network are generated, and those segments are inserted into the PES packet.
After the “PES_packet_length”, a field exists of “Optional_PES_header( )”. In the field, time stamps of PTS and DTS, and the like are arranged. After the field, a field exists of “PES_packet_data_byte”. The field corresponds to a PES payload. In the field, “PES_data_byte_field( )” for containing data is arranged.
An 8-bit field of “subtitle_stream_id” indicates an identifier for identifying the type of the subtitle stream. In the case of a subtitle stream that transmits text information, a new value is set, for example, “0x01”, and it is possible to distinguish the value from the conventional subtitle stream “0x00” that transmits the bitmap.
After the field of the “subtitle_stream_id”, a field exists of “TimedTextSubtitling_segments( )” following the pattern of “00001111”. A segment packet is arranged in the field. After the field, an 8-bit field exists of “end_of_PES_data_field_marker”. The field is a marker indicating the end of the PES packet.
A 4-bit field of “tds_version_number” indicates updating of the TTML display segment. In a case where there is a change in the element, the value is increased by one. An 8-bit field of “display_aspect_type” indicates the aspect ratio of the subtitle display range. For example, “0x01” indicates 16:9, “0x02” indicates 4:3, and “0x03” indicates 21:9. Information of the field corresponds to the information of the “dto:dispasp” in the TTML (see
An 8-bit field of “reference_point_offset_v” indicates a vertical position of the reference point of the subtitle display range of when each of the vertical and horizontal ranges of the display video area is set to 100%, as a ratio of an offset from the top-left of the display video area. An 8-bit field of “reference_point_offset_h” indicates a horizontal position of the reference point of the subtitle display range of when each of the vertical and horizontal ranges of the display video area is set to 100%, as a ratio of an offset from the top-left of the display video area. The information of these fields corresponds to information of the“dto:RPoffset” in the TTML (see
A 1-bit field of “scaling_justify_flag” indicates whether or not to specify a reference point of scaling in a case where scaling of the region is performed. “1” indicates that the reference point is specified, and “0” indicates that no reference point is specified. In a case where the reference point is specified, when there is a plurality of regions, for a region at the uppermost position, the lower part of the region is set as a reference (bottom_line_justified), and for a region at the lowermost position, the upper part of the region is set as a reference (top_line_justified). Information of the field corresponds to the information of the “dto:scalingjustify” in the TTML (see
A 16-bit field of “original_network_id” indicates identification information of the network through which the download data is transmitted. A 16-bit field of “transport_stream_id” indicates identification information of an individual transport stream. A 16-bit field of “service_id” indicates identification information of the service to be downloaded. In the case of a common download target between distribution media, the font file may be transmitted not in its own transport stream but in another transport stream, and as information for specifying a private section to be referenced in that case, information can be specified of these “original_network_id”, “transport_stream_id”, and “service_id”.
An 8-bit field of “font_file_id” indicates an identification number assigned to the font file. A 24-bit field of “ISO_639_language_code” indicates a code including three characters for identifying the language. For example, “jpn” indicates Japanese and “eng” indicates English. An 8-bit field of “font_group_id” indicates identification information of a font group and corresponds to the generic family of the TTML. An 8-bit field of “font_name_id” indicates the individual font name.
An 8-bit field of “text_length” indicates the length (size) of the subsequent character code portion in bytes. The character code is arranged in the field of “char”. For example, it is possible to arrange a character code indicating the individual font name or the like as the character code.
Note that, in the example of
A 24-bit field of “ISO_639_language_code” indicates a code including three characters for identifying the language. For example, “jpn” indicates Japanese and “eng” indicates English. An 8-bit field of “font_group_id” indicates identification information of a font group and corresponds to the generic family of the TTML. An 8-bit field of “font_name_id” indicates the individual font name.
An 8-bit field of “url_type” indicates the type of the server. For example, “0x01” indicates a font server (uncompressed URL), “0x02” indicates a general server (uncompressed URL), “0x11” indicates a font server (compressed URL), and “0x12” indicates a general server (compressed URL). An 8-bit field of “url_string_length” indicates the length (size) of the character code portion indicating the character string of the subsequent URL in bytes. The character code is arranged in the field of “char”.
Note that, in the example of
Referring back to
In this case, the TS formatter 116 inserts, into the Program Map Table (PMT), the information regarding the resizing processing and the information for determining the subtitle display range that are similar to those included in the TTML. Specifically, a newly defined TTML display descriptor (TTML_display_descriptor) including those pieces of information is generated and the descriptor is inserted into the PMT.
In addition, the TS formatter 116 inserts, into the PMT, the download information for downloading the file of the font specified by at least the font specification information of the TTML. Specifically, a newly defined font download descriptor (Font_download_descriptor) including information for downloading from the broadcast signal (transport stream TS) and a newly defined URL signaling descriptor (URL_signaling_descriptor) including information for downloading from the server on the network are generated, and those descriptors are inserted into the PMT.
An 8-bit field of “display_aspect_type” indicates the aspect ratio of the subtitle display range. Information of the field corresponds to the information of the “dto:dispasp” in the TTML (see
An 8-bit field of “reference_point_offset_v” indicates a vertical position of the reference point of the subtitle display range of when each of the vertical and horizontal ranges of the display video area is set to 100%, as a ratio of an offset from the top-left of the display video area. An 8-bit field of “reference_point_offset_h” indicates a horizontal position of the reference point of the subtitle display range of when each of the vertical and horizontal ranges of the display video area is set to 100%, as a ratio of an offset from the top-left of the display video area.
The information of these fields corresponds to information of the “dto:RPoffset” in the TTML (see
A 1-bit field of “scaling_justify_flag” indicates whether or not to specify a reference point of scaling in a case where scaling of the region is performed. “1” indicates that the reference point is specified, and “0” indicates that no reference point is specified. Information of the field corresponds to the information of the “dto:scalingjustify” in the TTML (see
An 8-bit field of “text_length” indicates the length (size) of the subsequent character code portion in bytes. The character code is arranged in the field of “char”. For example, it is possible to arrange a character code indicating the aspect ratio or the like as the character code.
A 16-bit field of “original_network_id” indicates identification information of the network through which the download data is transmitted. A 16-bit field of “transport_stream_id” indicates identification information of an individual transport stream. A 16-bit field of “service_id” indicates identification information of the service to be downloaded. In the case of a common download target between distribution media, the font file may be transmitted not in its own transport stream but in another transport stream, and as information for specifying a private section to be referenced in that case, information can be specified of these “original_network_id”, “transport_stream_id”, and “service_id”.
An 8-bit field of “font_file_id” indicates an identification number assigned to the font file. A 24-bit field of “ISO_639_language_code” indicates a code including three characters for identifying the language. An 8-bit field of “font_group_id” indicates identification information of a font group and corresponds to the generic family of the TTML. An 8-bit field of “font_name_id” indicates the individual font name.
An 8-bit field of “text_length” indicates the length (size) of the subsequent character code portion in bytes. The character code is arranged in the field of “char”. For example, it is possible to arrange a character code indicating the individual font name or the like as the character code.
Note that, in the example of
A 24-bit field of “ISO_639_language_code” indicates a code including three characters for identifying the language. An 8-bit field of “font_group_id” indicates identification information of a font group and corresponds to the generic family of the TTML. An 8-bit field of “font_name_id” indicates the individual font name. An 8-bit field of “url_type” indicates the type of the server. An 8-bit field of “url_string_length” indicates the length (size) of the character code portion indicating the character string of the subsequent URL in bytes. The character code is arranged in the field of “char”.
Note that, in the example of
As described above, on the basis of the information included in the font download segment (see
In addition, as described above, on the basis of the information included in the URL signaling segment (see
Referring back to
Here, as the section table including the font file and the font table, a font downloading section table (FDT) (Font_downloading_section table) is newly defined as a private section table. In the font downloading section table, although the table structure is described later, fields exist such as “data_downloading_id”, “section_number”, and “last_section_number”.
As illustrated in
The receiver 200 can recognize a positional relationship during circular supply with the values of the fields of the “section_number” and “last_section_number” of the font downloading section table received. That is, the receiver 200 recognizes a position of the current section table with the value of the field of the “section_number”, recognizes the last section table circulating when the value of the field of the “section_number” coincides with the value of the field of the “last_section_number”, and can use the values to acquire all the section tables in one circulation.
An 8-bit field of “table_id” indicates table identification information. A value indicating the font downloading section table is specified as the table identification information. A 16-bit field of “data_downloading_id” is identification information of the download data and indicates a unique value defined for each “original_network_id”. For example, “0x00” indicates that it is font table information, and other than “0x00” indicates that it is font file information. A 5-bit field “version_number” indicates updating of the font downloading section table. In a case where there is a change in the element, the value is increased by one.
A 16-bit field of “original_network_id” indicates identification information of the network through which the download data is transmitted. A 16-bit field of “transport_stream_id” indicates identification information of an individual transport stream. A 16-bit field of “service_id” indicates identification information of the service to be downloaded. By using these three pieces of identification information together, it becomes possible to make it a common download target between distribution media.
In a field of “descriptor( )”, a font table descriptor (Font_table_descriptor) is arranged when the “data_downloading_id” is “0x00”, and a font file descriptor (Font_file_descriptor) is arranged when the “data_downloading_id” is other than “0x00”. In addition, when the “data_downloading_id” is other than “0x00”, a font file (Font file) is arranged in the field of “data_byte”.
In the font table descriptor, information is described on a predetermined number of font files to be circularly transmitted. As the information on the font file, pieces of information are included such as “Font_file_id”, “ISO_639_language_code”, “font_group_id”, and “font_name_id”. The “Font_file_id” indicates an identification number assigned to the font file. The “ISO_639_language_code” indicates an identification code of the language. The “font_group_id” indicates identification information of a font group. The “font_name_id” indicates an individual font name.
An 8-bit field of “number of font files” indicates the number of font files. There are 8-bit fields of “font_file_id”, 24-bit fields of “ISO_639_language_code”, 8-bit fields of “font_group_id”, and 8-bit fields of “font_name_id”, as many as the number of font files.
An 8-bit field of “text_length” indicates the length (size) of the subsequent character code portion in bytes. The character code is arranged in the field of “char”. For example, it is possible to arrange a character code indicating the individual font name or the like as the character code.
Information on the font file to be transmitted is described in the font file descriptor. As the information on the font file, pieces of information are included such as “Font_file_id”, “ISO_639_language_code”, “font_group_id”, and “font_name_id”. The “Font_file_id” indicates an identification number assigned to the font file. The “ISO_639_language_code” indicates an identification code of the language. The “font_group_id” indicates identification information of a font group. The “font_name_id” indicates an individual font name.
There are an 8-bit field of “Font_file_id”, a 24-bit field of “ISO_639_language_code”, an 8-bit field of “font_group_id”, and an 8-bit field of “font_name_id” indicating the information on the font file to be transmitted. An 8-bit field of “text_length” indicates the length (size) of the subsequent character code portion in bytes. The character code is arranged in the field of “char”. For example, it is possible to arrange a character code indicating the individual font name or the like as the character code.
Operation of the stream generation unit 110 illustrated in
In addition, the audio data DA is supplied to the audio encoder 113. The audio encoder 113 performs encoding on the audio data DA to generate the audio stream (PES_stream) including the audio PES packet including the encoded audio data. The audio stream is supplied to the TS formatter 116.
In addition, the text data (character code) DT is supplied to the text format conversion unit 114. In the text format conversion unit 114, the TTML as the subtitle information is obtained (see
The TTML is supplied to the subtitle encoder 115. The subtitle encoder 115 converts the TTML into various segments to generate the subtitle stream configured by the subtitle PES packet in which those segments are arranged in the payload. The subtitle stream is supplied to the TS formatter 116.
In this case, the subtitle encoder 115 inserts, into the PES packet, auxiliary information (information regarding the resizing processing, information for determining the subtitle display range) to be used when the subtitle is displayed by using the subtitle display position information, the auxiliary information being similar to that included in the TTML. Specifically, the TTML display segment (see
In addition, the subtitle encoder 115 inserts, into the PES packet, the download information for downloading the file of the font specified by at least the font specification information of the TTML. Specifically, the font download segment (see
The TS formatter 116 makes the video stream generated by the video encoder 112, the audio stream generated by the audio encoder 113, and the subtitle stream generated by the subtitle encoder 115 into a transport packet to multiplex them, to generate the transport stream TS as the container (multiplexed stream)
In this case, the TS formatter 116 inserts, into the PMT, auxiliary information (information regarding the resizing processing, information for determining the subtitle display range) to be used when the subtitle is displayed by using the subtitle display position information, the auxiliary information being similar to that included in the TTML. Specifically, the TTML display descriptor (see
In addition, the TS formatter 116 inserts, into the PMT, the download information for downloading the file of the font specified by at least the font specification information of the TTML. Specifically, the font download descriptor (see
[Example Configuration of Transport Stream TS]
In the subtitle PES packet, the time stamp of the PTS is inserted into the PES header, and the entire TTML document or segments (timed text subtitling segments: TimedText subtitle segments) including divided portions of the TTML document are inserted into the PES payload. The segments include the information regarding the resizing processing (“dto:scalingjustify”), and the information for determining the subtitle display range (“dto:dispasp”, “dto:RPoffset”).
In addition, the segments include the font specification information (“fontFamily”). Note that, as described later, it is also conceivable to include, in the segments, the download information (“fontdlurl=http://www.w3.org/ns/fontdlservice”, “fontdlurl:iso639languagecode=“value””, “fontdlurl:fontgroupid=“value””, “fontdlurl:fontnameid=“value””, “fontdlurl:fontname=“value””.
In addition, the TTML display segment (TTML_display_segment) (see
In addition, the font download segment (Font_download_segment) (see
In addition, the URL signaling segment (URL_signalin_segment) (see
In addition, the transport stream TS includes the Program Map Table (PMT) as Program Specific Information (PSI). The PSI is information describing which program each elementary stream included in the transport stream TS belongs to. In the PMT, a subtitle elementary stream loop (Subtitle ES loop) exists including information associated with the subtitle stream.
In the subtitle elementary stream loop, information such as a packet identifier (PID) is arranged corresponding to the subtitle stream, and a descriptor is also arranged describing information associated with the subtitle stream. As the descriptor, the TTML display descriptor (TTML_display_descriptor) (see
Into the TTML_display_descriptor, the information regarding the resizing processing (“scaling_justify_flag”), and the information for determining the subtitle display range (“display_aspect_type”, “reference_point_offset_v, reference_point_offset_h”) are inserted. Into the font download descriptor, the download information (“font_file_id”, “ISO_639_language_code”, “font_group_id”, “font_name_id”, and the like) is inserted similar to that of the font download segment. Into the URL signaling descriptor, the download information (“ISO_639_language_code”, “font_group_id”, “font_name_id”, “url_type”, “URL”, and the like) is inserted similar to that of the URL signaling segment.
Note that, the font download descriptor and the URL signaling descriptor may be arranged under an Event Information Table (EIT) of the transport stream TS. This makes it possible to describe the download information for each program.
In addition, the transport stream TS includes the FDT (Font_downloading_section table) (see
[Example Configuration of Television Receiver]
The CPU 221 controls operation of each unit of the television receiver 200. The flash ROM 222 stores control software and keeps data. The DRAM 223 configures a work area of the CPU 221. The CPU 221 deploys the software and the data read from the flash ROM 222 on the DRAM 223 to start the software, and controls each unit of the television receiver 200.
The remote control reception unit 225 receives a remote control signal (remote control code) transmitted from the remote control transmitter 226, and supplies the signal to the CPU 221. The CPU 221 controls each unit of the television receiver 200 on the basis of the remote control code. The CPU 221, the flash ROM 222, and the DRAM 223 are connected to the internal bus 224.
Under the control of the CPU 221, the communication interface 227 communicates with a server existing on a network such as the Internet. The communication interface 227 is connected to the internal bus 224.
The reception unit 201 receives the transport stream TS on the broadcast wave transmitted from the broadcast transmission system 100. The transport stream TS includes the video stream, the audio stream, and the subtitle stream, as described above. The TS analysis unit 202 extracts the PES packet of each of the video, audio, and subtitle streams, from the transport stream TS.
In this case, the TS analysis unit 202 analyzes various types of information inserted into the header of each TS packet, selectively extracts the TS packet including data of video, audio, and subtitle PES packets on the basis of “PID”, to obtain the video, audio, and subtitle PES packets.
In addition, the TS analysis unit 202 analyzes various types of information inserted into the header of each TS packet, extracts various types of information inserted into the transport stream TS on the basis of the “PID”, and transmits the information to the CPU 221. The information also includes the TTML display descriptor (TTML_display_descriptor) (see
The CPU 221 acquires, from the TTML display descriptor, the information regarding the resizing processing (“scaling_justify_flag”) and the information for determining the subtitle display range (“display_aspect_type”, “reference_point_offset_v, reference_point_offset_h”) as the auxiliary information to be used when the subtitle is displayed by using the subtitle display position information of the TTML included in the subtitle stream.
In addition, the CPU 221 acquires, from the font download descriptor, the information (“font_file_id”, “ISO_639_language_code”, “font_group_id”, “font_name_id”, and the like) for downloading, from the broadcast signal (transport stream TS), the file of the font specified by the font specification information included in the TTML included in the subtitle stream.
In addition, the CPU 221 acquires, from the URL signaling descriptor, the information (“ISO_639_language_code”, “font_group_id”, “font_name_id”, “url_type”, “URL”, and the like) for downloading, from the server on the network, the file of the font specified by the font specification information included in the TTML included in the subtitle stream.
In addition, the information extracted by the TS analysis unit 202 also includes the FDT (Font_downloading_section table) (see
The audio decoder 207 performs decoding processing on the audio PES packet obtained by the TS analysis unit 202, to obtain audio data. The audio output circuit 208 performs, on the audio data, necessary processing such as D/A conversion or amplification, and supplies the data to the speaker 209. The video decoder 203 performs decoding processing on the video PES packet obtained by the TS analysis unit 202 to obtain video data. Note that, the video decoder 203 also performs resolution conversion of the video data as appropriate depending on a display mode or the like. For example, in a case where the aspect ratio of the video area is 16:9 and the aspect ratio of the monitor (display) is 4:3, and the display mode is Letter box, the resolution conversion of the video data is performed.
The subtitle decoder 210 performs decoding processing on the subtitle PES packet obtained by the TS analysis unit 202 to obtain the TTML from the timed text subtitling segments (TimedText subtitle segments), and transmits the TTML to the CPU 221. The CPU 221 acquires, from the TTML, the subtitle display position information for specifying the subtitle display position (region) as the relative position (proportional value) with respect to the subtitle display range, and further the information regarding the resizing processing (“dto:scalingjustify”) and the information for determining the subtitle display range (“dto:dispasp”, “dto:RPoffset”) as the auxiliary information to be used when the subtitle is displayed by using the subtitle display position information, and the like.
In addition, the subtitle decoder 210 extracts the TTML display segment (TTML_display_segment) (see
The CPU 221 acquires, from the TTML_display_segment, the information regarding the resizing processing (“scaling_justify_flag”) and the information for determining the subtitle display range (“display_aspect_type”, “reference_point_offset_v, reference_point_offset_h”) as the auxiliary information to be used when the subtitle is displayed by using the subtitle display position information of the TTML included in the subtitle stream.
In addition, the CPU 221 acquires, from the font download segment, the information (“font_file_id”, “ISO_639_language_code”, “font_group_id”, “font_name_id”, and the like) for downloading, from the broadcast signal (transport stream TS), the file of the font specified by the font specification information included in the TTML included in the subtitle stream.
In addition, the CPU 221 acquires, from the URL signaling segment, the information (“ISO_639_language_code”, “font_group_id”, “font_name_id”, “url_type”, “URL”, and the like) for downloading, from the server on the network, the file of the font specified by the font specification information included in the TTML included in the subtitle stream.
In addition, under the control of the CPU 221, the subtitle decoder 210 converts the text data (font data) of the subtitle of each subtitle display position (region) included in the TTML into bitmap data (binary image information). In this case, under the control of the CPU 221, the font size of the subtitle is appropriately adjusted from the font size specified in the TTML depending on the size of the subtitle display position determined by subtitle display position information or obtained by being subjected to further resizing processing.
The CPU 221 determines the subtitle display position on the basis of the subtitle display position information, and further performs resizing processing on the subtitle display position determined, as necessary. At this time, the CPU 221 appropriately uses the auxiliary information (information regarding the resizing processing, information for determining the subtitle display range) inserted into the TTML, the PES packet, the PMT, or the like as described above. Details will be described later of a procedure of determination and resizing processing of the subtitle display position in the CPU 221.
In addition, under the control of the CPU 221, the subtitle decoder 210 uses the file of the font specified by the font specification information included in the TTML when obtaining the bitmap data of the subtitle.
When the television receiver 200 does not mount the file of the font specified by the font specification information, the CPU 221 appropriately downloads and uses the font file from the broadcast signal (transport stream TS) or the server on the network on the basis of the download information inserted into the PES packet, the PMT, or the like as described above. Note that, when the file cannot be downloaded, a substitute font file (for example, a default font file) is used. Details will be further described later of a procedure of determination processing of the font file to be used in the CPU 221.
Under the control of the CPU 221, the video superimposition unit 204 superimposes the bitmap data of the subtitle at each subtitle display position obtained by the subtitle decoder 210 on the video data obtained by the video decoder 203, to obtain the video data for display. In this case, the CPU 221 performs control so that the superimposed position of the subtitle bitmap data becomes the subtitle display position, on the basis of the subtitle display position determined by the subtitle display position information or obtained by being subjected to further resizing processing as described above.
The panel drive circuit 205 drives the display panel 206 on the basis of the video data for display obtained by the video superimposition unit 204. The display panel 206 is configured by, for example, a Liquid Crystal Display (LCD), an organic electroluminescence (EL) display, and the like.
Operation of the television receiver 200 illustrated in
In addition, the TS analysis unit 202 extracts various types of information inserted into the transport stream TS, and transmits the information to the CPU 221. The information also includes the TTML display descriptor), the font download descriptor, and the URL signaling descriptor.
Thus, the CPU 221 acquires the auxiliary information (information regarding the sizing processing, information for determining the subtitle display range to be used when the subtitle is displayed by using the subtitle display position information of the TTML included in the subtitle stream. In addition, the CPU 221 acquires the download information for downloading the file of the font specified by the font specification information included in the TTML included in the subtitle stream from the broadcast signal (transport stream TS) or the server on the network.
In addition, when downloading the file of the font specified by the font specification information included in the TTML included in the subtitle stream from the broadcast signal (transport stream TS), the TS analysis unit 202 extracts the FDT from the transport stream TS and transmits the FDT to the CPU 221. Thus, the CPU 221 acquires the file of the font specified by the font specification information included in the TTML included in the subtitle stream.
The video PES packet extracted by the TS analysis unit 202 is supplied to the video decoder 203. The video decoder 203 performs decoding processing on the video PES packet to obtain the video data. In this case, the video decoder 203 also performs resolution conversion of the video data as appropriate depending on the display mode or the like.
In addition, the subtitle PES packet extracted by the TS analysis unit 202 is supplied to the subtitle decoder 210. The subtitle decoder 210 performs decoding processing on the subtitle PES packet obtained by the TS analysis unit 202 to obtain the TTML. The TTML is transmitted to the CPU 221. From the TTML, the CPU 221 acquires the subtitle display position information for specifying the subtitle display position (region) as the relative position (proportional value) with respect to the subtitle display range, and further the auxiliary information (information regarding the resizing processing, information for determining the subtitle display range) to be used when the subtitle is displayed by using the subtitle display position information, and the like.
In addition, the subtitle decoder 210 extracts the TTML display segment, the font download segment, and the URL signaling segment from the subtitle PES packet obtained by the TS analysis unit 202, and transmits the segments to the CPU 221.
Thus, the CPU 221 acquires the auxiliary information (information regarding the sizing processing, information for determining the subtitle display range to be used when the subtitle is displayed by using the subtitle display position information of the TTML included in the subtitle stream. In addition, the CPU 221 acquires the download information for downloading the file of the font specified by the font specification information included in the TTML included in the subtitle stream from the broadcast signal (transport stream TS) or the server on the network.
Under the control of the CPU 221, the subtitle decoder 210 converts the text data (font data) of the subtitle of each subtitle display position (region) included in the TTML into the bitmap data (binary image information). In this case, under the control of the CPU 221, the font size of the subtitle is appropriately adjusted from the font size specified in the TTML depending on the size of the subtitle display position determined by subtitle display position information or obtained by being subjected to further resizing processing.
In addition, in this case, when the bitmap data of the subtitle is obtained, basically, the file is used of the font specified by the font specification information included in the TTML. When the television receiver 200 does not mount the file of the font specified by the font specification information, the font file is downloaded and used from the broadcast signal (transport stream TS) or the server on the network on the basis of the download information inserted into the PES packet, the PMT, or the like. At this time, when the font file cannot be downloaded, a substitute font file is used.
The CPU 221 determines the subtitle display position on the basis of the subtitle display position information, and further performs resizing processing on the subtitle display position determined, as necessary. At this time, the CPU 221 appropriately uses the auxiliary information (information regarding the resizing processing, information for determining the subtitle display range) inserted into the TTML, the PES packet, the PMT, or the like as described above.
The bitmap data of each subtitle display position output from the subtitle decoder 210 is supplied to the video superimposition unit 204. The video superimposition unit 204 superimposes the bitmap data of the subtitle at each subtitle display position obtained by the subtitle decoder 210 on the video data obtained by the video decoder 203, to obtain the video data for display. In this case, the CPU 221 performs control so that the superimposed position of the subtitle bitmap data becomes the subtitle display position, on the basis of the subtitle display position determined by the subtitle display position information or obtained by being subjected to further resizing processing.
The video data for display obtained by the video superimposition unit 204 is supplied to the panel drive circuit 205. In the panel drive circuit 205, the display panel 206 is driven on the basis of the video data for display. Thus, the display panel 206 displays an image in which the subtitle is superimposed on each subtitle display position (region).
In addition, the audio PES packet extracted by the TS analysis unit 202 is supplied to the audio decoder 207. The audio decoder 207 performs decoding processing on the audio PES packet to obtain audio data. The audio data is supplied to the audio output circuit 208. The audio output circuit 208 performs, on the audio data, necessary processing such as D/A conversion or amplification. Then, the audio data after the processing is supplied to the speaker 209. Thus, audio output corresponding to the display image on the display panel 206 is obtained from the speaker 209.
“Procedure of Determination and Resizing Processing of Subtitle Display Position”
The details will be described of the procedure of determination and resizing processing of the subtitle display position in the CPU 221. The flowchart of
In the example, it is assumed that the aspect ratio of the video area is 16:9. Then, it is assumed that there are both cases where the subtitle display range is not specified in the TTML as illustrated in
The CPU 221 starts processing in step ST1, and then proceeds to processing in step ST2. In step ST2, the CPU 221 determines whether or not the receiver display is in a mode for displaying the entire video area. For example, in a case where the aspect ratio of the monitor is 16:9 (see
When determining that the display is in the mode for displaying the entire video area, the CPU 221 proceeds to processing in step ST3. In step ST3, the CPU 221 determines whether or not the subtitle display range is specified. For example, in a case where reference point information (RPoffset) and aspect ratio information (dispasp) of the subtitle display range exist in the tt root container of the TTML, it is determined that the subtitle display range is specified.
When the subtitle display range is not specified, the CPU 221 proceeds to processing in step ST4. In step ST4, the CPU 221 sets the display video area as the subtitle display range, and determines the subtitle display position (region). At this time, the CPU 221 sets the top-left of the display video area as a reference point RP, and determines the subtitle display position (region) in accordance with an instruction of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative position with respect to the subtitle display range.
After the processing in step ST4, the CPU 221 ends the processing, in step ST5.
When the subtitle display range is specified in step ST3 described above, the CPU 221 proceeds to processing in step ST6. In step ST6, the CPU 221 determines the subtitle display position (region) in the subtitle display range specified. At this time, the CPU 221 uses only the aspect ratio information (dispasp) as the information on the subtitle display range, and sets the subtitle display range on the display video area. Then, the CPU 221 sets the top-left of the subtitle display range as the reference point RP, and determines the subtitle display position (region) in accordance with the instruction of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative position with respect to the subtitle display range.
Note that, in a case where the aspect ratio indicated by the aspect ratio information (dispasp) is different from the aspect ratio of the monitor as described above, the CPU 221 sets, at the center of the display video area, the subtitle display range whose vertical direction width or horizontal direction width coincides and that has the aspect ratio indicated by the aspect ratio information (dispasp). In the illustrated example, since the aspect ratio of the monitor is 16:9 and the aspect ratio information (dispasp) is 4:3, the vertical direction widths coincide with each other.
After the processing in step ST6, the CPU 221 ends the processing, in step ST5.
When it is determined that the display is in the mode for not displaying the entire video area in step ST2 described above, the processing proceeds to step ST7. In step ST7, the CPU 221 determines whether or not the subtitle display range is specified. For example, in a case where reference point information (RPoffset) and aspect ratio information (dispasp) of the subtitle display range exist in the tt root container of the TTML, it is determined that the subtitle display range is specified.
When the subtitle display range is not specified, the CPU 221 proceeds to processing in step ST8. In step ST8, the CPU 221 sets the display video area as the subtitle display range, and determines the subtitle display position (region). At this time, the CPU 221 sets the top-left of the display video area as a reference point RP, and determines the subtitle display position (region) in accordance with an instruction of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative position with respect to the subtitle display range.
In the subtitle display position thus determined, the width is compressed only in the horizontal direction. For that reason, the CPU 221 further performs resizing processing on the subtitle display position determined, to compress also the width in the vertical direction, and obtains the final subtitle display position. In this case, the CPU 221 compresses the width in the vertical direction in a state where the predetermined line position is fixed on the basis of the information of the “dto:scalingjustify=top” included in the TTML, for example.
After the processing in step ST8, the CPU 221 ends the processing, in step ST5.
When the subtitle display range is specified in step ST7 described above, the CPU 221 proceeds to processing in step ST9. In step ST9, the CPU 221 determines the subtitle display position (region) in the subtitle display range specified. At this time, the CPU 221 uses the information on the subtitle display range (reference point information (RPoffset), aspect ratio information (dispasp)) to set the subtitle display range on the display video area.
In this case, the CPU 221 sets, as the top-left of the subtitle display range, a position shifted from the top-left of the display video area by the reference point information (RPoffset), and sets a range corresponding to the aspect ratio indicated by the aspect ratio information (dispasp) in the subtitle display range. In this case, the horizontal direction width of the subtitle display range coincides with the horizontal direction width of the display video area.
Then, the CPU 221 sets, as the reference point RP, the top-left of the subtitle display range set as described above, and determines the subtitle display position (region) in accordance with the instruction of the subtitle display position information (“origin=“OH % OV %””, “extent=“EH % EV %””) specified as the relative position with respect to the subtitle display range.
After the processing in step ST9, the CPU 221 ends the processing, in step ST5.
“Procedure of Determination Processing of Font File to be Used”
The details will be described of the procedure of determination processing of the font file to be used in the CPU 221. The flowchart of
The CPU 221 starts processing in step ST11, and then proceeds to processing in step ST12. In step ST12, the CPU 221 receives the font specification in the TTML. That is, the CPU 221 receives the TTML including the font specification information from the subtitle decoder 210.
Next, in step ST13, the CPU 221 determines whether or not the television receiver 200 mounts a specified font file, a font file specified by the font specification information of the TTML. When determining that the specified font file is mounted, the CPU 221 determines to use the specified font file mounted in step ST14, and then ends the processing in step ST15.
When determining that the specified font file is not mounted in step ST13, the CPU 221 determines whether or not the specified font fill is supplied in the private section table, that is, the FDT (Font_downloading_section table) in step ST16. In this case, in a case where the font download segment (Font_download_segment) (see
When determining that the specified font file is supplied in the FDT, in step ST17, the CPU 221 determines whether or not the specified font file can be downloaded from the carousel transmission. When the specified font file can be downloaded, the CPU 221 determines to use the specified font file downloaded in step ST14, and then ends the processing in step ST15.
When the specified font file cannot be downloaded in step ST17, the CPU 221 proceeds to processing in step ST18. When determining that the specified font file is not supplied in the FDT in step ST16, the CPU 221 also proceeds to the processing in step ST18.
In step ST18, the CPU 221 determines whether or not there is URL information for downloading the specified font file. In this case, in a case where the URL signaling segment (URL_signalin_segment) (see
When determining that there is the URL information for downloading the specified font file, in step ST19, the CPU 221 determines whether or not the specified font file can be downloaded from the server on the network. When the specified font file can be downloaded, the CPU 221 determines to use the specified font file downloaded in step ST14, and then ends the processing in step ST15.
When the specified font file cannot be downloaded in step ST19, the CPU 221 proceeds to processing in step ST20. When determining that there is no URL information for downloading the specified font file in step ST18, the CPU 221 also proceeds to the processing in step ST20.
In step ST20, the CPU 221 determines not to use the specified font file but to use a substitute font file, for example, a file of a font set as default, and then ends the processing in step ST15.
As described above, in the transmission/reception system 10 illustrated in
In addition, in the transmission/reception system 10 illustrated in
In addition, in the transmission/reception system 10 illustrated in
In addition, in the transmission/reception system 10 illustrated in
In the above embodiment, an example has been described in which font download information is not inserted into TTML (see
Each piece of information of the “fontdlurl=http://www.w3.org/ns/fontdlservice”, “fontdlurl:iso639languagecode=“value””, ““fontdlurl:fontgroupid=“value””, “fontdlurl:fontnameid=“value””, and “fontdlurl:fontname=“value”” constitutes download information. Note that, specifications of ‘Arial’ and ‘Tahoma’ are reflected as they are in the “value” of the “fontdlurl:fontname”.
In addition, in the above-described embodiment, an example has been described in which the TTML is used as the text information of the subtitle of a predetermined format. However, the present technology is not limited thereto, and it is also conceivable to use another text information including information equivalent to the TTML. For example, a derived format of the TTML may be used.
In addition, in the above embodiment, the transmission/reception system 10 configured by the broadcast transmission system 100 and the television receiver 200 has been described; however, the configuration of the transmission/reception system to which the present technology can be applied is not limited thereto. For example, the television receiver 200 may have a configuration of a set top box and a monitor connected together via a digital interface such as High-Definition Multimedia Interface (HDMI). Incidentally, “HDMI” is a registered trademark.
In addition, in the above-described embodiment, an example has been described in which the container is the transport stream of MPEG-2 TS. Needless to say, the present technology can be similarly applied to a case where the container is a transport stream of MMT, a DASH/ISOBMFF stream, or the like.
In addition, the present technology may also be embodied in the configurations described below.
(1) A transmission device including:
a transmission unit that transmits a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including subtitle display position information for specifying a subtitle display position as a relative position with respect to a subtitle display range; and
an information insertion unit that inserts, into a container of the subtitle stream, auxiliary information to be used when the subtitle is displayed by using the subtitle position information.
(2) The transmission device according to (1), in which
the auxiliary information includes
information regarding resizing processing of the subtitle display position determined on the basis of the subtitle display position information, the resizing processing being performed in the reception side in a case where an aspect ratio of a video area is different from an aspect ratio of a display video area.
(3) The transmission device according to (2), in which
the information regarding the resizing processing is information indicating a line position to be set as a fixed position in a case where a size in a vertical direction is compressed in the resizing processing of the subtitle display position.
(4) The transmission device according to any of (1) to (3), in which
the auxiliary information includes
information for determining the subtitle display range.
(5) The transmission device according to (4), in which
the information for determining the subtitle display range is reference point information and aspect ratio information of the subtitle display range.
(6) The transmission device according to any of (1) to (5), in which
the information insertion unit
inserts the auxiliary information into a PES packet and/or a program map table.
(7) A transmission method including:
a transmission step, by a transmission unit, of transmitting a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including subtitle display position information for specifying a subtitle display position as a relative position with respect to a subtitle display range; and
an information insertion step of inserting, into a container of the subtitle stream, auxiliary information to be used when the subtitle is displayed by using the subtitle position information.
(8) The reception device including:
a reception unit that receives a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including subtitle display position information for specifying a subtitle display position as a relative position with respect to a subtitle display range;
a video decoding unit that performs decoding processing on the video stream to obtain the video data; and
a subtitle decoding unit that performs decoding processing on the subtitle stream to obtain bitmap data of the subtitle, in which
auxiliary information to be used when the subtitle is displayed by using the subtitle position information is inserted into a container of the subtitle stream, and
the reception device further includes:
a display control unit that performs display position control on the bitmap data of the subtitle on the basis of the subtitle display position acquired by using the subtitle display position information and the auxiliary information; and
a video superimposition unit that superimposes the bitmap data of the subtitle subjected to the display position control on the video data.
(9) The reception device according to (8), in which
the auxiliary information includes information regarding resizing processing of the subtitle display position determined on the basis of the subtitle display position information, the resizing processing being performed in the reception side in a case where an aspect ratio of a video area is different from an aspect ratio of a display video area, and
the display control unit,
in the case where the aspect ratio of the video area is different from the aspect ratio of the display video area, sets the display video area as the subtitle display range and determines the subtitle display position on the basis of the subtitle display position information, performs the resizing processing by using the information regarding the resizing processing on the subtitle display position determined, and performs the display position control on the bitmap data of the subtitle on the basis of the subtitle display position subjected to the resizing processing.
(10) The reception device according to (8), in which
the auxiliary information includes information for determining the subtitle display range, and
the display control unit,
in the case where the aspect ratio of the video area is different from the aspect ratio of the display video area, sets the subtitle display range in the display video area on the basis of the information for determining the subtitle display range, determines the subtitle display position on the basis of the subtitle display position information, and performs the display position control on the bitmap data of the subtitle on the basis of the subtitle display position determined.
(11) A reception method including:
a reception step, by a reception unit, of receiving a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including subtitle display position information for specifying a subtitle display position as a relative position with respect to a subtitle display range;
a video decoding step of performing decoding processing on the video stream to obtain the video data; and
a subtitle decoding step of performing decoding processing on the subtitle stream to obtain bitmap data of the subtitle, in which
auxiliary information to be used when the subtitle is displayed by using the subtitle position information is inserted into a container of the subtitle stream, and
the reception method further includes:
a display control step of performing display position control on the bitmap data of the subtitle on the basis of the subtitle display position acquired by using the subtitle display position information and the auxiliary information; and
a video superimposition step of superimposing the bitmap data of the subtitle subjected to the display position control on the video data.
(12) A transmission device including:
a transmission unit that transmits a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including font specification information; and
an information insertion unit that inserts download information for downloading a file of a font specified by at least the font specification information into a container of the subtitle stream.
(13) The transmission device according to (12), in which
the download information is information for acquiring a file of the font from a broadcast signal.
(14) The transmission device according to (12) or (13), in which
the download information is information for acquiring a file of the font from a server on a network.
(15) The transmission device according to any of (12) to (14), in which
the information insertion unit
inserts the download information into a PES packet and/or a program map table.
(16) A transmission method including:
a transmission step, by a transmission unit, of transmitting a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including font specification information; and
an information insertion step of inserting download information for downloading a file of a font specified by at least the font specification information into a container of the subtitle stream.
(17) A reception device including:
a reception unit that receives a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including font specification information; and
a video decoding unit that performs decoding processing on the video stream to obtain the video data, in which
download information is inserted for downloading a file of a font specified by at least the font specification information into a container of the subtitle stream, and
the reception unit further includes:
a font file downloading unit that acquires a font file of the font specified by the font specification information on the basis of the download information;
a subtitle decoding unit that performs decoding processing on the subtitle stream and obtains bitmap data of the subtitle on the basis of the font file acquired;
a display control unit that performs display position control on the bitmap data of the subtitle on the basis of a subtitle display position obtained by using the subtitle display position information; and
a video superimposition unit that superimposes the bitmap data of the subtitle subjected to the display position control on the video data.
(18) A reception method including:
a reception step, by a reception unit, of receiving a container of a predetermined format, the container including a video stream including video data and a subtitle stream including text information of a subtitle, the text information including font specification information; and
a video decoding step of decoding the video stream to obtain the video data, in which
download information is inserted for downloading a file of a font specified by at least the font specification information into a container of the subtitle stream, and
the reception method further includes:
a font file downloading step of acquiring a font file of the font specified by the font specification information on the basis of the download information;
a subtitle decoding step of performing decoding processing on the subtitle stream and obtaining bitmap data of the subtitle on the basis of the font file acquired;
a display control step of performing display position control on the bitmap data of the subtitle on the basis of a subtitle display position obtained by using the subtitle display position information; and
a video superimposition step of superimposing the bitmap data of the subtitle subjected to the display position control on the video data.
(19) A transmission device including:
a section table insertion unit that sequentially and repeatedly inserts a predetermined number of section tables respectively including different font files into a transport stream; and
a transmission unit that transmits the transport stream into which the section tables are inserted.
(20) A transmission method including:
a section table insertion step of sequentially and repeatedly inserting a predetermined number of section tables respectively including different font files into a transport stream; and
a transmission step, by a transmission unit, of transmitting the transport stream into which the section tables are inserted.
The main feature of the present technology is that, by inserting, into the container of the subtitle stream (for example, PES packet, PMT), the auxiliary information (information regarding the resizing processing, information for determining the subtitle display range) to be used when the subtitle is displayed by using the subtitle position information, in the reception side, it becomes possible to appropriately acquire the subtitle display position by using the auxiliary information together with the subtitle position information and to satisfactorily perform the subtitle display (see
In addition, the main feature of the present technology is that, by inserting, into the container (for example, PES packet, PMT) of the subtitle stream, the download information for downloading the file of the font specified by at least the font specification information of the TTML, in a case where the file is not included of the file specified by the font specification information, it becomes possible to acquire the file of the font specified by the font specification information on the basis of the download information, and to satisfactorily perform the subtitle display (See
Number | Date | Country | Kind |
---|---|---|---|
2016-051657 | Mar 2016 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2017/009182 | 3/8/2017 | WO | 00 |