PDA

View Full Version : TTXT italic and VSFilter problem


pcjco04
9th September 2005, 13:43
I have a problem with a TTXT file embedded inside a MP4 container (MP4Box 0.4.1DEV).
The subtitles have normal and italics styles.

I use Haali Splitter as the MP4 Splitter and MPC to play the file.
VSFilter 2.36 is launched to render the subs.
The subs in normal style use the DEFAULT style that is set in VSFilter Options UI. But the italics subs appear in Times New Roman at a very big size.

If I look at the TTXT xml file used, I see that by default it should be display at font size 18 but it's not.

<TextSample sampleTime="01:04:54.613" text="'- How? They&apos;re in New York.''- Well, at the airport...'">
<Style fromChar="30" toChar="53" styles="Italic " fontSize="18" color="ff ff ff ff"/>
</TextSample>


In this sub, the second part is displayed in italic, and the first one in regular. But both are very big and in the wrong font type.

Anybody know where the problem comes from ? VSFilter, MP4Box or something else ?

hubereevez
2nd April 2006, 00:16
Message from 09/09/2205 :scared:

Same pb here with mpc (not with videolan), font set to 18.

suspect the conversion from srt to be problematic

bond
2nd April 2006, 02:28
try gabests mp4 splitter with vsfilter, it should show the subs as they are set up to be shown (haali doesnt support most of the stuff)

hubereevez
2nd April 2006, 02:32
it should show the subs as they are set up to be shown

but when I convert srt to ttxt with mp4box (yamb), isn't it strange that the font is set to 18 in the ttxt text for italic ? SO it is shown as it should be, imo. The pb is that it should not convert with such a strange size....

bond
2nd April 2006, 10:18
i am not sure if haali's splitter tells vsfilter to display it as 18, which is why i told you to try gabests mp4 splitter

hubereevez
2nd April 2006, 15:38
The point is why mp4box (when converting srt) specify a font size and font type ?
<TextSample sampleTime="00:08:38.918" text="'Here I am.'">
<Style fromChar="18" toChar="28" styles="Italic " fontID="1" fontSize="18" color="ff ff ff ff"/>
</TextSample>

With internal mpc splitter, font is at the right size, but not in italic anymore :confused:

Thanks

Hubert

bond
2nd April 2006, 15:48
With internal mpc splitter, font is at the right size, but not in italic anymore :confused: post the whole .ttxt file plz

hubereevez
2nd April 2006, 16:59
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.0">
<TextStreamHeader width="400" height="60" layer="0" translation_x="0" translation_y="0">
<TextSampleDescription horizontalJustification="center" verticalJustification="bottom" backColor="0 0 0 0" verticalText="no" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="1"/>
</FontTable>
<TextBox top="0" left="0" bottom="60" right="400"/>
<Style styles="Normal" fontID="1" fontSize="18" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" text="">
</TextSample>
<TextSample sampleTime="00:01:05.331" text="'HI'">
</TextSample>
<TextSample sampleTime="00:08:33.346" text="'SHÉRIF'">
</TextSample>
<TextSample sampleTime="00:08:34.472" text="">
</TextSample>
<TextSample sampleTime="00:08:38.918" text="'New York, 2545'">
<Style fromChar="18" toChar="28" styles="Italic " fontID="1" fontSize="18" color="ff ff ff ff"/>
</TextSample>
</TextStream>

bond
3rd April 2006, 18:08
looks like this ttxt is setup so only the last line will be shown in italic

Kurtnoise
3rd April 2006, 20:06
Note that fromChar="18" toChar="28" means that italic begins to 18th characters. However, the text New York, 2545 has 15 characters...Maybe hubert has deleted the next line.

hubereevez
9th April 2006, 22:29
yep, deleted the next line.....

Have uninstalled haali's media splitter. With internal mp4 splitter from mpc, italic is not shown (do not find "plian text" option :( ) .....

hubereevez
9th April 2006, 22:47
(Deleted] sorry