MXPROCESS
API : Extract audio from MP4 video and get a MP3 or WAV audio file from your video using this free
This API is simple to use. You just have to follow these steps
This API is also available in synchronous mode : Developer API : ExtractAudio
- Create a free account
- Click on the link you receive by email to confirm your address
- Generate a token with credentials
- Use the token to start the process asynchronously
- So to follow the progress, you do a simple GET(you can make this http call every 10 seconds):
You can use any language to make this CURL call. (Python, PHP, Java, JavaScript...) Need help ?
If your credentials are correct, our server will provide you with a token as a response :
YOUR_TOKEN is valid for one hour, its duration can be extended using YOUR_REFRESH_TOKEN
In this example we extract the first 10 seconds of the video (from 00:00:00 to 00:00:10). Replace both startTime and endTime parameters with the interval you want
If your file is accessible by URL, you can ignore the "file=@.." field and directly use the URL of your file in the "fileUrl" field
The API sends you a Json response to confirm that the process has started. take note of the "trackingUrl" field, it is the one that allows you to follow the process that you have launched. In this answer you also find the ID of your process, here in our example the ID is 643 :
If the process is not yet completed, you will receive this type of response with "accomplished": false
If the process is completed, you will receive this type of response with "accomplished": true and an actionResults field that contains the results:
The most important field in this Json is: actionResults, and therefore to download the result:
The format of the download URL is always as follows :
http://mxprocess.com/api/actions/download-action-result/{id}/{fileName}
For example, in our case : id = 643 and fileName = 35084b44a841ec597be3048df44145e8.txt.log
This documentation is not clear? (Python, PHP, Java, JavaScript...) Need help ?
This API is also available in synchronous mode : Developer API : ExtractAudio