• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MovieExportToFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MovieExportToFile


  • Subject: MovieExportToFile
  • From: "Nugen" <email@hidden>
  • Date: Sat, 10 Dec 2005 14:38:48 +0100

Hi everybody,
 
I'm trying to export a movie (loaded from mp3 file) to mp3 file.
Is the right way to use MovieExportToFile?
 
I'm using this code but the result isn't a mp3 file.... what i did wrong?
 
For the component:

ComponentDescription cd;

Component c=NULL;

ComponentInstance qtExport =NULL;

cd.componentType = MovieExportType;

cd.componentSubType = 0;

cd.componentManufacturer = SoundMediaType;

cd.componentFlags = 0;

cd.componentFlagsMask = 0;

if (c) qtExport =OpenComponent (c);

//then to export my movie settings:

SoundDescriptionHandle hSoundDescription = (SoundDescriptionHandle)NewHandle(0);

Track track = GetMovieIndTrackType(movie_, 1, SoundMediaType, movieTrackMediaType);

Media media = GetTrackMedia(track);

GetMediaSampleDescription(media, 1, (SampleDescriptionHandle)hSoundDescription);

err = MovieExportSetSampleDescription(qtvrExport,

(SampleDescriptionHandle)hSoundDescription, SoundMediaType);

if (hSoundDescription) DisposeHandle((Handle)hSoundDescription);

err = MovieExportToFile (qtExport, &fsspec, movie_, NULL, 0, GetMediaDuration(media));

Also i tried to use QTMetaDataSetItem for settings new values to metadatas but can see any change...

Thanks for your help!

Cheers

emilie

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: More on: Error in AudioUnitRender()
  • Next by Date: AUSoundFilePlayer: Changing Loop Points on the Fly
  • Previous by thread: Re: afconvert
  • Next by thread: AUSoundFilePlayer: Changing Loop Points on the Fly
  • Index(es):
    • Date
    • Thread