[MEncoder-users] Add Timed text into mp4 with mp4box

野村亮之 aki-nomura at sus4.co.jp
Sat Dec 16 04:07:02 CET 2006


Hi, I'm trying to add timed text into mp4 with mp4box.
If I shold post problem with mp4box to other mailinglist, Please let me
know.

I could put it by running command like this,

/usr/bin/mp4box -lang jpn
-add ./publish.3g2
-add ./3GP_test_01.ttxt
-new ./publish1.3g2

But I have a problem that I could not put Japanese text(utf-8) onto
movie. Timed Text (XML) is like this,

==
<?xml version="1.0" encoding="utf-8" ?>
<!-- GPAC 3GPP Text Stream -->
<TextStream version="1.0">
<TextStreamHeader width="176" height="30" layer="65535"
translation_x="0" translation_y="144">
<TextSampleDescription horizontalJustification="left"
verticalJustification="top" backColor="00 00 00 ff" verticalText="no"
fillTextRegion="yes" continuousKaraoke="no" scroll="None">
<FontTable>
<FontTableEntry fontName="Serif" fontID="0"/>
</FontTable>
<TextBox top="0" left="0" bottom="30" right="176"/>
<Style styles="Normal" fontSize="12" color="ff ff ff ff"/>
</TextSampleDescription>
</TextStreamHeader>
<TextSample sampleTime="00:00:00.000" text="'編集'">
</TextSample>
<TextSample sampleTime="00:00:03.000" text="'This text is shown ''for 5s.'">
</TextSample>
<TextSample sampleTime="00:00:08.000" text="'This text is shown ''for 3s.'">
</TextSample>
<TextSample sampleTime="00:00:11.000" text="'This text is shown ''for 6s.'">
</TextSample>
<TextSample sampleTime="00:00:17.000" text="'End of demonstration No1'">
</TextSample>
</TextStream>
==

Does anyone experience those things before?

Akiyuki



More information about the MEncoder-users mailing list