OS X :: Apple Script For Converting Audio Files Using FFMPEG
Sep 26, 2010
I have installed ffmpeg using MacPorts and am trying to work out a script that will convert audio files in a specified folder to mp3 files, outputting the converted files as mp3 files in another folder. So far the script looks like this:
code:set convertPath to "Macintosh HD:opt:local:bin:ffmpeg"
set convertCommand to quoted form of POSIX path of convertPath & " -i {infile} -f mp3 -ar 44100 -ab 128 -acodec mp3 - "
tell application "Finder"
set inPath to "Macintosh HD:Users:nick:Desktop:new:"
set outPath to "Macintosh HD:Users:nick:Desktop:new2:"
set myFiles to (files of entire contents of inPath whose name ends with ".m4a") as alias list
repeat with i from 1 to count of myFiles
do shell script convertCommand
end repeat
end tell
With this script I am getting the error : "Can't make every file of "class ects" of "Macintosh HD: Users:nick:Desktop:new:" whose name ends with ".m4a" into type alias list." I am not sure how to define the do shell script command so that it outputs an MP3 file in the output directory.
I used fink to install ffmpeg so I could convert some flvs I have to MP3s. Wasted at least 2+ hours to compile all the dependencies only to run into some problem where ffmpeg to throw out an error about flv being an unsupported video codec. I know it should have worked as I have done this on *nix systems before. I after fighting with it for an hour or so I broke down and am now using Audacity to rip the audio out (works too).
So I go to uninstall ffmpeg from fink, expecting all the dependencies to go along with it. Except only ffmpeg is removed. dkpg and/or fink will automatically remove/uninstall the dependencies. ATM I am too frustrated to want to waste more time on this, so I come here asking for help. Is there something I am doing wrong for fink and dpkg not to auto-remove the dependencies?
I was able to output all the dependencies to a text file (yay redirect output). IF worse comes to worse, can anyone help me throw together a bash or perl script to go through the text file and "fink purge <dependency>" for me?
Again I normally wouldn't be asking for help without working on the problem myself, but after wasting all that time for the dependencies and ffmpeg to compile, I'm just too angry to think straight.
Well, I just got a new cell phone and while I was under the assumption that it played mp3s it turns out it's actually only plays WMA audio files. Does anybody know if there's a way to convert some songs to .wma on my mac?
I'm trying to convert wmv to mp4 for my ipod touch, I've tried isquint and handbrake and I cannot seem to get the audio to work, after the conversion only the video works, but no audio..
I'm not entirely sure which might be the correct forum for this question, not sure if i have the right spot but,..here goes..If someone can't be of help, please direct me to the correct forum.
I do a lot of media conversion from various formats using QT, VLC Player, Video Converter for Mac, Cleaner, Mpeg Streamclip, Sorenson Squeeze, Visual Hub, etc
Quite often i still run into (PC created) .avi clips that simply WILL NOT export/convert with SOUND, they will only PLAY with sound on the VLC Player but cannot seem to be converted into any kind of format WITH sound. I'm assuming this is some kind of codec issue but since i only know the clip as an .avi (and some AVI's convert fine including Divx and Xvid, others don't) and have no known way of analyzing the clip i don't know how to convert it.
I need to transcribe audio files and need an application that will play audio files at double their rate (and half their rate) so that I can quickly go through audio files and then concentrate on the pertinent portions. Any applications for Mac OS X? Free is always good!
After converting avi files to dvd I lose audio on more than half the files. The audio works fine on the avi file. However once its converted the movie plays with no sound.
I'm currently using a free trial version of divX convertor. Then I use iDVD to burn the movie. However the problem isn't with iDVD because when I just try to play the converted movie through the divX player or quicktime there is no sound. Obviously the same holds true when I send the converted file to iDVD.
1. What is the reason for this happening?
2. Do I need to use a different convertor? Or do I need to install additional programs?
3. I'm not the most computer savvy person so please try to give a simple explanation and instruction.
I would like to scan some documents of printed text with my HP Photosmart All-in-One, convert the image to a text file and then convert the text file to audio and load that into my iPhone so that I can listen to it while I'm doing other things. The question is, are there any apps that do all of this or some set of apps to do this.
Seem to have a problem with a particular .avi file. I'm using VisualHub and when converting an .avi file to dvd the audio is out of sync. avi file works fine on mac in quicktime but when it gets burnt to dvd so I can watch it on tv that's where the problem lies. Other avi files I have burnt to dvd have been fine so why this particular one? would anyone know the work around for this?
Even though the file extension says .mp3, this song won't play in my iPod Touch. I got a "Get info" on the file and found out that it is a MPEG-1 audio file type, unlike all other of my songs that are mp3's. What I need is an application that will open this file, convert it and let me save it as an mp3. QT will not even open this file.
I have OS 10.6.8 on my MacBook Pro and I am trying to install ffmpeg and openCV. I have both of them in my computer ... and both works well. The problem is ... I need to connect openCV with ffmpeg to make the videos work in openCV library.
I want to convert some video files (specifically swf in this case) to audio files so I can listen on my iPod. I looked everywhere and can't find some free software that does that. There are tons that have trial periods with lots of limitations (like it won't convert anything larger than a 5k size file) so I don't want those because I won't know if the thing works well unless I pay for it. I'm not opposed to paying for a converter IF I know it works awesome on a Mac.
I am wondering if there is a built in pdf converter in Appleworks that I can't find, or do I have to download a converter? If so, I would like the link to a free one.
That can convert avi xvid (ETC) and raw dvds. Right now I have Handbrake is this my best option? Also is there an app that can add the info and dvd cover when I put it into iTunes so it will look organized?
After converting my mod file to mp4 then uploading it to final cut pro the quality is really bad and jumpy. I used MPEG streamclip... The quality is good after the mod - mp4 conversion it's only after i import it to final cut pro that the quality becomes really bad.
I don't have this problem when i am importing other files just the mod-mp4 converted ones.
I've got some .ra files which I can't get to play. RealPlayer no longer supports .ra files, and while there are a few threads saying to use MPlayerOSX, that doesn't recognise them either.
The files are available online at the Lost Cosmonauts website. I've no reason to believe the files provided are corrupt or broken in any way.
I've got a couple hundred bmp files in iPhoto that I'd like to convert into jpegs or tiffs. Any way that I can do it easily?Is there any software available that would facilitate the process?
I'm sure a few of us in this forum own a 360, have any of you managed to play any REAL HD content without purchasing the HD-DVD player or converting your .mkv's to .wmv's. I've noticed that if I download a 1080p trailer from apple.com/trailers in .mov format it works flawlessly, perfect image and audio. Is there a (quick) way to convert a .mkv to .mov and have it play perfectly with no hitch, on the 360. If trailers off apple.com can play there must be a workaround. Below I've posted a screen of the downloaded trailers info that I got off of apple tv.
I had a quick question. I have a DVD audio disk that was "imaged", a .iso file. When I open it in OSX, it mounts the image as a drive and I can access the files inside. Using VLC I can play the .VOB audio files.I would like to convert the files to either FLAC or MP3 so I can archive them on my computer and also burn them to CD-R as I can't play the DVD-A outside my computer. So I was curious were there are programs/freeware to convert these files.
I just got my first Apple computer three days ago, an iMAC. My question is: I need a recommendation for a 3rd party file conversion software program that will enable me to convert WAV (song) files (that I will export into the iMAC) into MP3 files. On my PC I used "dBPoweramp" but it is only a windows-based program.
I have searched everywhere and can not get a good answer. I just bought myself a new imac and this is my first mac. I used to use convertxtodvd on my pc.
I read that toast titanium does a good job of converting any video file to dvd but you can not download it to try it out, you just have to buy it. I do not want to waste my money if it does not turn out to be the quality I am looking for.
Any suggestions of any programs that does this task and performs well?
I was wondering if there was an easy way to take a very long image, and convert it to a several page PDF file. I have Dragoman, which converts PNG files to PDFs, although it keeps it as one page. I would like it to automatically split the long image into several pages. Is there any way of doing this short of editing the image and exporting each page length section separately? If there isn't a Mac program, is there a Windows program that can do it? I have Parallels too, but either way I would like to know.