Media Processing Service
A Flask web service that processes variable numbers of media files from n8n payloads, stitching multiple files together or transcoding singles to MP4.
Service Health
Checking service health...
API Documentation
POST
/api/process
Main endpoint for processing media files from n8n payloads.
Supported Payload Formats:
Multiple Files Format
{
"files": [
{
"url": "https://example.com/video1.mp4",
"filename": "video1.mp4"
},
{
"url": "https://example.com/audio1.mp3",
"filename": "audio1.mp3"
}
]
}
Media Array Format
{
"media": [
{
"url": "https://example.com/video.mov",
"name": "video.mov"
}
]
}
Simple URLs Format
{
"urls": [
"https://example.com/video1.mp4",
"https://example.com/video2.avi"
]
}
Single File Format
{
"url": "https://example.com/audio.wav",
"filename": "audio.wav"
}
Response Format:
{
"success": true,
"output_url": "https://your-domain.com/output/processed_file.mp4",
"files_processed": 2
}
GET
/api/health
Health check endpoint to verify service status and dependencies.
POST
/api/cleanup
Clean up temporary and old output files.
GET
/output/<filename>
Serve processed output files.
API Testing Interface
Dynamic Stitching
Automatically combines any number of media files into a single MP4 output.
Format Conversion
Converts single files from various formats (MP4, AVI, MOV, MP3, WAV) to MP4.
n8n Integration
Designed specifically for seamless integration with n8n workflows.