Help
---
quicktime-api-bounces+andyboi84=yahoo.co.uk lists.apple.com
<quicktime-api-request lists.apple.com> wrote:
> Send QuickTime-API mailing list submissions to
> quicktime-api lists.apple.com
>
> To subscribe or unsubscribe via the World Wide Web,
visit
>
http://lists.apple.com/mailman/listinfo/quicktime-api
> or, via email, send a message with subject or body
'help' to
> quicktime-api-request lists.apple.com
>
> You can reach the person managing the list at
> quicktime-api-owner lists.apple.com
>
> When replying, please edit your Subject line so it
is more specific
> than "Re: Contents of QuickTime-API
digest..."
>
>
> Today's Topics:
>
> 1. QTKit framework issue: converting an AIFF to
MP4 (CocoaDev)
> 2. Re: How to tell that a QTMovie was loaded from
a WMV (via
> Flip4Mac)? (Dan Wood)
> 3. Re: QTKit framework issue: converting an AIFF
to MP4 (CocoaDev)
> 4. Re: How to tell that a QTMovie was loaded from
a WMV (via
> Flip4Mac)? (Mark Munte)
> 5. Re: QTKit framework issue: converting an AIFF
to MP4 (Henry Mason)
> 6. Re: h263 RTP RFC2190 (Ross Finlayson)
> 7. Re: How to tell that a QTMovie was loaded from
a WMV (via
> Flip4Mac)? (Derrick Bass)
> 8. Re: h263 RTP RFC2190 (Kevin Packard)
> 9. program changes (frank quinn)
> 10. Render Movies in RGBA (Palit)
> 11. Key frame in Sequence Grabber/Whacked TV
> (Armando de Oliveira Fortuna)
> 12. Re: Render Movies in RGBA (Palit)
>
>
>
------------------------------------------------------------
----------
>
> Message: 1
> Date: Sun, 25 Feb 2007 14:19:30 -0800
> From: CocoaDev <cocoa trufsoft.com>
> Subject: QTKit framework issue: converting an AIFF
to MP4
> To: quicktime-api lists.apple.com
> Message-ID:
<E8FD88B6-904E-4426-8AC9-EFADC47C0942 trufsoft.com>
> Content-Type: text/plain; charset=US-ASCII;
delsp=yes; format=flowed
>
> Hello list
>
> I am trying to convert an AIFF file to a more
compact type like an
> MP4 using the QTKit framework -the final goal is to
get the AIFF file
> as a valid file for an iTunes audio podcast... My
first attempt to do
> such conversion failed with the following code:
> NSURL *url = [NSURL
URLWithString: "file:///..../somePath/For/
> aFile.aiff"];
> NSError *error;
> NSLog( "Can load:%dn", [QTMovie
canInitWithURL:url]);
> NSDictionary *loadAttributes = [NSDictionary
> dictionaryWithObjectsAndKeys:url,
QTMovieURLAttribute, [NSNumber
> numberWithBool:NO], QTMovieOpenAsyncOKAttribute,
nil];
> QTMovie *movie = [QTMovie
movieWithAttributes:loadAttributes
> error:&error];
> // Movie here is loaded and checking the attribute
> QTMovieLoadStateAttribute everything is OK
> // Now prepare the attributes for saving
that to a MP4
> NSDictionary *attributes = [NSDictionary
> dictionaryWithObjectsAndKeys:[NSNumber
numberWithBool:YES],
> QTMovieExport,
> [NSNumber numberWithLong:kQTFileTypeMP4],
QTMovieExportType,
> [NSNumber numberWithLong:SoundMediaType],
QTMovieExportManufacturer,
> nil];
> if ([movie writeToFile: "file:///tmp/Output.mp4"
> withAttributes:attributes]) {
> NSLog( ">>>> [convertToMp4]
Success creating
MP4:% n", attributes);
> } else {
> NSLog( ">>>> [convertToMp4]
Failure creating
MP4:% n", attributes);
> }
>
> The code above always fail, aka
[writeToFile:withAttributes:] always
> return NO, and no file is creaed in /tmp/.
>
> I then googled to find out if I need to provide more
attributes while
=== Message Truncated ===
____________________________________________________________
________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/feat
ures_spam.html
_______________________________________________
Do not post admin requests to the list. They will be
ignored.
QuickTime-API mailing list (QuickTime-API lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quic
ktime-api/bond%40yahoo.com
This email sent to bond yahoo.com
|