如何使用applescript将音频文件从mp4转换为mp3?

时间:2017-12-15 19:43:00

标签: ffmpeg applescript

有人可以帮我理解如何使用AppleScript将音频文件从mp4转换为mp3吗?

我已经尝试过编写VLC或Sound Studio的脚本,但命令似乎并没有接近这样做。我下载并安装了ffmpeg,但我不知道要使用的语法。

我用ffmpeg尝试了类似的东西:

 tell application "Finder"
set CurrentPath to container of (path to me) as alias
set OriginalFile to CurrentPath & "ASProcessing:SoundToProcess.mp4" as string
set NewFile to CurrentPath & "ASProcessing:NewFile.mp3" as string

end tell


 set outputFile to POSIX path of OriginalFile
 set inputFile to POSIX path of NewFile
 do shell script ffmpeg something, something

但显然我错过了大部分脚本语法。最后,我会做一个重复循环来浏览一组文件。

很抱歉,我不能更具体。我很失落。我所知道的是我不想使用Automator。我需要像AppleScript这样的东西。

感谢。

mbust

0 个答案:

没有答案
相关问题