PDA

View Full Version : GPAC TTXT formatting issues; help!


audiovizual
23rd May 2008, 01:01
I have a TTXT file muxed into an MP4 using MP4Box, but its not displaying correctly. Some lines display fine, but others have 1 or more characters missing from the end of the line, while still others display all the characters, but align the text as if a few characters at the end of the line aren't there.

Let me see if I can give an example with some text that has been center aligned.
This is text correctly displayed:

|_____This is the line of text_____|

But this is where it sometimes goes funny:
|______This is the line of te______| So the 'xt' has been cut off, and the text aligned accordingly
or
|_______This is the line of text___| So the 'xt' is there as it should be, but the line has been aligned as if they are missing.

I have gone through the TTXT file before muxing and all the tags are consistent throughout the file as below e.g.
<TextSample sampleTime="00:01:28.076" text="'This is the line of text'">
</TextSample>

Am I missing something really obvious or something? This is really doing my nut in at the moment. Help!!