Problem with ConvertMovieToFile
Problem with ConvertMovieToFile
- Subject: Problem with ConvertMovieToFile
- From: "Sandeep Chandna" <email@hidden>
- Date: Tue, 21 Nov 2006 18:11:54 +0530
Posted it on Quicktime mailing list, thought will post here too.
Hi,
I am trying to create a hinted Movie for Streaming but my ConvertMovieToFile is failing for some settings.
This is the flow of my code:
//Encode Video/Audio
AddMediaSample
EndMediaEdits
---
InsertMediaIntoTrack
---
create a componentDescription with following
CompDesc.componentType = MovieExportType;
CompDesc.componentSubType = MovieFileType;
CompDesc.componentManufacturer = FOUR_CHAR_CODE('hint');
//and setting flags, flagsMask
exporter = OpenComponent (FindNextComponent(...)...);
Move the original file to temp_file
openMovieFile //from temp_file
NewMovieFromFile(&movie,...);
CloseMovieFile
CreateHintExporterAtom(atom,movie,hintProps...)
MovieExportSetSettingsFromAtomContainer(exporter, atom)
ConvertMovieToFile(movie, NULL, , MovieFileType, FOUR_CHAR_CODE('TVOD'), smSystemScript, NULL, flags /*set to createMovieFileDeleteCurFile | movieFileSpecValid */ , exporter);
None of the QTSDK functions return any error codes till now.
Now when I am trying to encode a file of widthxheight 160x120 or above that like 192x144 (till 320x240), ConvertMovieToFile throws an exception saying
Unhandled exception at 0xsomelocation.Access violation reading location 0xsomelocation.
The same code works fine for other video sizes like 320x240, 640x480 etc while creating hintedMovie.
Moreover, this is happening only on Windows and not on MAC. Also, the temp_file which is left out plays as a proper Quicktime Movie.
Can someone suggest what could be going wrong inside ConvertMovieToFile? Is there a way using which I can verify if the parameters (Movie, exporterComp etc)I am passing as argument to ConvertMovieToFile is proper ?
Thanks
Sandeep
_______________________________________________
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