![]() |
|
Help! Mac script: first 10 sec of audio - Printable Version +- kanji koohii FORUM (http://forum.koohii.com) +-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html) +--- Forum: Off topic (http://forum.koohii.com/forum-13.html) +--- Thread: Help! Mac script: first 10 sec of audio (/thread-8794.html) |
Help! Mac script: first 10 sec of audio - Mesqueeb - 2011-12-16 So I need to make a script that will be able to easily extract the first 10 seconds of audio from an audio file. I found this on the web, after looking for "extract first 10 seconds of audio" but it doesn't work, since it's for Ti.Media (whatever that is): Quote:var sound = Ti.Media.createSound({→ error: couldn't write the class name after this identifier. I want to extract the first 10 seconds of classical songs, and be able to recognize the composer and title in Anki. ^^ Anyone has any knowledge about scripts? Cheers! -Mesqueeb Help! Mac script: first 10 sec of audio - cangy - 2011-12-16 sox trim (seems to be in mac ports and fink) Help! Mac script: first 10 sec of audio - Mesqueeb - 2011-12-16 Hello, I downloaded Sox and it is a certain folder. However even after I have the folder on my computer I cannot use the command. The command I need I found here: http://billposer.org/Linguistics/Computation/SoxTutorial.html#extract sox Input.wav Half1.wav trim 0 30:00 in my case: sox Input.mp3 output.mp3 trim 0 10 However. "sox" is not recognized by Terminal. >< Could you help me out a little bit in how to make sox active? Thanks! Help! Mac script: first 10 sec of audio - Mesqueeb - 2011-12-16 Went into the sox folder and I got a bit closer I think. Mesqueebiator ox-14.3.2 Mesqueeb$ ./sox 1.mp3 2.mp3 trim 0 10./sox FAIL util: Unable to load MAD decoder library (libmad). ./sox FAIL formats: can't open input file `1.mp3': meaning I need to install MAD decoder? I'll google it and come report back in a second. But do I really need to copy the mp3 file in the sox folder each time? =.= Help! Mac script: first 10 sec of audio - Mesqueeb - 2011-12-16 It's all a big hassle, I need to install mac dev tools and such... Is there a really easy way to extract the first 10 seconds of audio? Help! Mac script: first 10 sec of audio - cangy - 2011-12-19 you'll want to install it using mac ports or fink Help! Mac script: first 10 sec of audio - Mesqueeb - 2011-12-20 But I need to install xCode, which is like 2 gb and I only have 60 gb on my Mac... >< Contstantly fighting against my limit. Truth is, I have no idea how to open up another 2gb... >< Maybe I'll just use the mic and record the first few seconds... Is there like a program that records desktop, and sound output? (not including sound input like mic.) If that would exist I could record 10 seconds my desktop, and afterwards convert it to mp3. ^^ Help! Mac script: first 10 sec of audio - Blahah - 2011-12-24 I use a program called Fission by Rogue Amoeba to do this. You have to pay but there's a free trial, so if you only need to do it a couple of times it will work. Alternatively you could do it with python. If you have a mac python should be installed. You could try PyMP3Cut. Help! Mac script: first 10 sec of audio - bombpersons - 2011-12-24 I've never used a mac in my life, but, is there not a mac version of FFMPEG? Is there no package manager at all for installing stuff like that? Help! Mac script: first 10 sec of audio - Mesqueeb - 2011-12-25 when i did an update of a mac app called all2mp3 they asked me to install ffmpeg, and like practically did it for me! ^^ Is there a command I would be able to use now? To like easily cut the first 10 seconds of a piece of audio? Help! Mac script: first 10 sec of audio - bombpersons - 2011-12-25 try this Code: ffmpeg -i MyInputFile -ss 00:00:00 -t 00:00:10 MyOutputFile.mp3I tested this on a random mkv file and it worked fine. Help! Mac script: first 10 sec of audio - Mesqueeb - 2012-01-05 bombpersons Wrote:try this-bash: ffmpeg: command not found Help! Mac script: first 10 sec of audio - Mesqueeb - 2012-01-05 It's ok! I have found the perfect solution! 'Adapter' for mac! You can drag a whole folder into it and batch convert to ten seconds each! Muhahahaha! |