Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems creating a mov file from a wav file...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I need to "convert" a wav file into a mov file. It would be sufficient to put it into the mov container without compression for now.

What I'm using now is:

    FSSpec from,to;
    FSRef fref,tref;

// init fsspecs
FSPathMakeRef ((UInt8 *)[meetingAudioFilePath fileSystemRepresentation],&tref, nil);
FSGetCatalogInfo (&tref,kFSCatInfoNone,nil,nil,&to,nil);


FSPathMakeRef ((UInt8 *)[filename fileSystemRepresentation],&fref,nil);
FSGetCatalogInfo (&fref,kFSCatInfoNone,nil,nil,&from,nil);


    // init QT
    EnterMovies();

    // convert the file into movie...
    OSErr err=ConvertFileToMovieFile (
        &from,
        &to,
        'TVOD',
        smSystemScript,
        nil,
        createMovieFileDeleteCurFile,
        0,
        (void *)-1, // display standard dialog
        0);

    NSLog(@"QT converter status: %d",err);


It converts a .mov file, so far so good. The problem is, it just embeds a link to the wav file into the mov, so it can be played locally, but does not really contain the wave data. This is not helpfull, because I need to transfer the file to a distant location.


Can someone point a documentation that describes a conversion process *simply* and especially *without* using the configuration windows, because this process has to be run in the background without user interaction.

Being able to select a compression for the imported audio data would be very nice, but is optional for now.

thanks & best regards,
  Lars

- --
Lars Grunewaldt
* software development
* multimedia design
skills: C/C++/Java/PHP/(X)HTML/Flash/audio/video
web: http://www.dark-reality.de
mail: email@hidden


-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDDa1BISCS20rPIYsRAvXmAJ46xd7Z4TZgIvgD5HQ2AtEaPV9bDgCcC6FA
S6U5DkiKrJbbr7R66tM1aa8=
=TtYR
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.