Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Jan 29, 2020 10:43 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: trimming audio files with Quicktime MBS
PostPosted: Tue Oct 05, 2010 6:52 pm 
Offline

Joined: Fri Jan 08, 2010 9:59 am
Posts: 315
Hi there,
Can anybody help me with the following (maybe Christian or somebody who doe this...)

I want to take a movie file

dim f as FolderItem
dim i as integer
dim m as movie
dim s,d as Double
dim a as Integer

dim q as QTMovieExporterMBS


f=GetOpenFolderItem("")
m=f.OpenAsMovieMBS

m.SetActiveSegmentMBS 30,30 // 30 seconds starting at the 30th second
MoviePlayer1.Movie=m

I know that this sets the active segment of the movie, according to the monkeybread site...

I would like to take that segment and make a new movie out of it (and use it in another part of my app)

= when I play this movie play, it starts from the 30 second mark but doesn't stop after the 30th second (!)

if I used one slider for the start time (and it was say 14 seconds)
and one slider for the end time (and it was 18 seconds)

what slice of code would save that segment as a new movie for me to make use of?

can I cut away the other parts outside of the segment so that the movie then starts now at the 14th second and finished 6 seconds later?

I'd love some help with this!
Cheers,
Sean


Top
 Profile  
Reply with quote  
 Post subject: Re: trimming audio files with Quicktime MBS
PostPosted: Wed Oct 06, 2010 3:57 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well, if you use QTMovieExporterMBS class, you can specify the exported range.

http://www.monkeybreadsoftware.net/class-qtmovieexportermbs.shtml

see the example code here:
http://www.monkeybreadsoftware.net/quicktime-qtmovieexportermbs.shtml#8

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group