Get Video/Audio Duration & Dimensions INSTANTLY! Free PHP Media Info API
In this tutorial, Iâm giving you another powerful free tool for your automation toolkit â a self-hosted PHP API endpoint that extracts detailed information from any video or audio file in seconds. No more guessing file properties! With this simple script, you can programmatically retrieve: - â
Exact duration (in seconds) - â
Video dimensions (width & height) - â
File size - â
Format details (MP4, MP3, MOV, etc.) - â
Video codec (e.g., h264) & frame rate (FPS) - â
Audio codec, sample rate, and channel info - âŠand much more! Perfect for: - Pre-flight checks in your automation workflows - Deciding processing steps based on media attributes - Quickly analyzing media files before handling them đ ïž Setup Instructions: 1. Download 2. Upload 3. Visit the URL 4. Check Requirements đ Live Demo Walkthrough https://youtu.be/CAcje9b5AXA Iâll guide you through: - Setting up the script step-by-step - Using it with n8n via the âImport cURLâ feature (works with Make.com and other tools too) - Extracting detailed info from both audio and video files â instantly This API is essential if your workflows involve media processing, such as using our Video Merger API. Knowing the exact duration, dimensions, or format upfront can save time and prevent errors.