Hi Folks,
I’ve been using the QTKitMovieMBS.addImage method forever to create movies from
individual pictures and that works great. I want to be able to add chapters to
the output now and I’m having trouble. I’m not getting any errors, but the
quicktime player doesn’t claim that the movie has any chapters.
Just for a test I’m recording 20 seconds of movie at about 8fps so there is
data and a video track and the video plays fine. The rest of the movie creation
in the program is almost identical to the movie from pictures example in the
examples folder.
for testing today I’m just creating an array of three test chapters to try to
pass to the addChapters like this:
dim chapterDates() as QTKitTimeMBS
dim chapterNames() as string
chapterDates.Append( new QTKitTimeMBS( 600 * 2, 600))
chapterNames.Append "one"
chapterDates.Append( new QTKitTimeMBS( 600 * 7, 600))
chapterNames.Append "two"
chapterDates.Append( new QTKitTimeMBS( 600 * 12, 600))
chapterNames.Append “three"
dim err as NSErrorMBS
dim workTracks() as QTKitTrackMBS = MyMovie.tracks
dim myVideoTrack as QTKitTrackMBS = workTracks(0)
if not MyMovie.addChapters( chapterNames, chapterDates, myVideoTrack,
err) then
msgbox( "there was an error from addChapters " + err.Description)
end if
yes, I’ve verified that track 0 is the video track ;) At least it returns a
mediaType of “vide” and there are no other tracks in the movie.
After this I call the updateMovieFile on my Movie and it becomes a valid movie
for loading from the finder, but there are no chapters in it. I’ve also tried
passing just nil to the track parameter of addChapters as the documentation
says that is an optional parameter, but it doesn’t make any difference.
Am i getting the QTKitTimeMBS stuff right? Or is that were my misunderstanding
is? I am thinking that I should be creating 3 chapters at 2 seconds, 7 seconds
and 12 seconds into the 15 second clip I”m experimenting with. When I look at
the .string output for those it looks right. all zeros but with 2 seconds and /
600.
Thanks,
James
James Sentman http://www.PlanetaryGear.org
http://MacHomeAutomation.com
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info