quicktime-java

[Prev] Thread [Next]  |  [Prev] Date [Next]

RE: Arabic TextMedia in Movie? Joshua Foster Thu Aug 28 12:02:03 2008

Thanks Andre; I was not able to find Quicktime/Java equivalents to some of the 
C functions in the reference you provided (particularly 
TextMediaSetTextSampleData), but I rewrote the application in C and it works 
great.

Would be happy to provide my code if anyone is running into the same problem.  
It reads Unicode text from a file and inserts it into a movie as a scrolling 
caption.

Thanks,
  Josh

________________________________

        Joshua Foster
Sr. Computer Programmer
2721 X-Ray Drive
Gastonia, NC 28054
(704) 824-0199 x217
(704) 824-0241 Fax

[EMAIL PROTECTED]
www.dtiweb.net


-----Original Message-----
From: Andre-John Mas [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 15, 2008 10:24 AM
To: Joshua Foster
Cc: [EMAIL PROTECTED]
Subject: Re: Arabic TextMedia in Movie?




On 7-Aug-08, at 10:23 , Joshua Foster wrote:

> Hi,
> I need to display an Arabic caption over a movie.  I've got the  
> basics of creating a text track and adding it to a movie:
>
<snip>
>
> But thus far I have been unable to show an Arabic string, it comes  
> out as a bunch of question marks.  I've tried running the string  
> through CharsetEncoder with different charsets: UTF-16, UTF-16BE,  
> etc., and they just give me different combinations of unprintable- 
> character squares and question marks.
>
> I've read about two other possibilities... storing the Arabic text  
> in a file and reading it into a Track using MediaImporter, and  
> somehow specifying the movie and caption both in an XML file (??)  
> but I've been unable to find examples for either.
>
> Can anybody give me a hint or point me to any code or documentation?  
> Keep in mind that I know nothing about Quicktime and I was only  
> introduced to QTJava two days ago, so talk to me like a five-year- 
> old...

Hi,

I thought I would do a bit of hunting myself and I came across this  
technical note:

http://developer.apple.com/qa/qa2005/qa1400.html

The technical note is target towards the C API, but hopefully this  
should give you
the starting point for solving your problem.

André

keywords: charset, utf-16, character set, encoding
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]