• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

1stplugins

FileMaker plug-ins and Reverse Engineering

  • Plugins
    • MediaManager
  • Services
    • Reverse Engineering
    • FileMaker Plug-Ins
  • About
    • About Us
    • Contact Us
    • Terms of Use of the Website and Privacy Policy
  • Store
    • Terms and Conditions
    • Warranty Claim Guidelines
    • Contract Withdrawal Form
    • Warranty Claim Report

Media_ConvertSound

Media_ConvertSound ( container ; filename ; soundType { ; parameters } )

Media_ConvertSound converts a sound file to different sound format.

Parameter Description
container Location of the sound to be converted.
filename Output file name.
soundType Output sound file format (hex code from Media_ListSoundOutputFormats).
parameters Optional parameter. Convert settings in XML.

The available list of sound formats can be obtained using the Media_ListSoundOutputFormats function. Media_ConvertSound can use either the full line description returned by Media_ListSoundOutputFormats or simply the 8-digit hex code at the beginning of the line.

The optional format settings parameter is an XML value that is obtained using the Media_SoundFormatDialog function. If this parameter is left empty “” the user is shown a format settings dialog. The XML format is new in MediaManager 18.

AAC License and MPEG-4 Sound Files

Most sound format codecs, like WAV and AIFF, are automatically loaded, registered, and available through QuickTime. The AAC encoder format includes MPEG-4 audio and video (“.mp4”, “.m4a”, etc.) files. On Windows, AAC/MPEG-4 encoding requires a special registration. You can purchase an inexpensive AAC license from 1stplugins https://www.1stplugins.com/. Macintosh users can convert to AAC/MPEG-4 format without an AAC license.

MP3 Audio Format

MediaManager is able to handle MP3 audio files. If you want to convert to MP3 format, however, you must first install a third-party MP3 encoder, such as LAME (see https://en.wikipedia.org/wiki/LAME for explanation and links). Once you’ve installed the MP3 encoder and rebooted your system, you should see MP3 as one of the options listed by the Media_ListSoundOutputFormats function and incorporate it into the Media_ConvertSound function.

Examples

To convert a sound to WAV format, giving the user the option to set the convert settings when the script runs:

Set Field [ MyTable::Sound Converted ;
Media_ConvertSound (
MyTable::Sound Original ;
"soundConverted.wav" ;
"57415645"
) ]

To convert a sound using the type format stored in a field (which uses the result of a Media_ListSoundOutputFormats calc as the value list):

Set Field [ MyTable::Sound Converted ;
Media_ConvertSound (
MyTable::Sound Original ;
"soundConverted" ;
MyTable::Sound Formats
) ]

To convert a sound to WAV format, with the optional settings preset with Media_SoundFormatDialog in a preference field:

Set Field [ MyTable::Sound Converted ;
Media_ConvertSound (
MyTable::Sound Original ;
"soundConverted.wav" ;
"57415645" ;
MyTable::WAV Settings
) ]

Primary Sidebar

Document Functions

Media_CopyItem
Media_CreateAlias
Media_CreateFolder
Media_DeleteItem
Media_ExportField
Media_ExtractInfo
Media_GetDefaultFolder
Media_GetItemInfo
Media_GetName
Media_GetPath
Media_InsertFile
Media_ListDisks
Media_ListFolder
Media_MoveItem
Media_OpenItem
Media_RenameItem
Media_SetDefaultFolder

General and Registration Functions

Media_Get
Media_GetLastError
Media_GetMouseUp
Media_JSONPath
Media_Register
Media_RegisterLicensedEncoder
Media_Set
Media_Version

Image Functions

Media_TApply
Media_TClear
Media_TCrop
Media_TQuad
Media_TResize
Media_TRotate
Media_TScale
Media_TSkew
Media_EffectApply
Media_EffectDialog
Media_ConvertImage
Media_GetImageInfo
Media_GetMetadata
Media_InsertImage
Media_ListImageOutputTypes
Media_SetImageDefaults

Script Steps

Copy Item
Create Alias
Create Folder
Delete Item
Export Field
Get Default Folder
Get Item Property
Move Item
Open Item
Rename Item
Set Default Folder

Sound Functions

Media_Amplify
Media_AppendSound
Media_ConvertSound
Media_CreateSound
Media_DrawWaveform
Media_ExtractSound
Media_FadeSound
Media_GetMetadata
Media_GetSoundInfo
Media_InsertQuickTime
Media_ListSoundOutputFormats
Media_MixSounds
Media_Normalize
Media_PlayPause
Media_PlaySound
Media_RecordSoundFormatDialog
Media_RecordSoundStart
Media_RecordSoundPause
Media_RecordSoundStop
Media_SetMetadata
Media_SoundFormatDialog
Media_StopSound

Video Functions

Media_GetVideoInfo

Footer

Let’s get started on your project.

Get in touch

  • Plugins
  • Services
  • About
  • Store

Copyright ©2006-2020 by 1stplugins, s.r.o. All rights reserved.