In this tutorial, I'm giving you another powerful, FREE tool for your automation toolkit: a self-hosted PHP API endpoint that instantly extracts detailed information from any video or audio file!
Stop guessing file properties! With this simple script, you can programmatically get:
✅ Exact duration (in seconds)
✅ Video dimensions (width & height)
✅ File size
✅ Format details (MP4, MP3, MOV, etc.)
✅ Video codec (h264, etc.) & frame rate (FPS)
✅ Audio codec, sample rate, channels
...and more!
Perfect for pre-flight checks in your workflows, deciding processing steps based on media properties, or just quickly analyzing files.
🛠️ How to Get & Set Up:
Download: Grab the free PHP script from our Automation Tribe Skool communities (links below!). Available in both free and paid sections.
Upload: Use cPanel or your hosting file manager to upload the single PHP file to your server (e.g., public_html/api/).
Visit URL: Go to the script's URL in your browser (e.g., yourdomain.com/api/media_info.php).
Check Requirements: The page automatically checks for necessary components (like FFprobe, PHP cURL) and folder permissions. Fix any errors shown (install modules or ask your host).
🚀 Demo:
I'll walk you through the setup and then show you exactly how to use it with n8n (works similarly in Make.com or other tools) using the easy "Import cURL" feature. See how quickly you can get detailed info for both audio and video files!
🔗 Links:
Download the FREE PHP Script:
Join the Automation Tribe FREE Skool Community:
https://dub.sh/free-community
Join the Automation Tribe PRO Skool Community:
https://dub.sh/automation-tribe
( in the paid community you can get all my automations )
This API is essential for anyone building workflows that involve media processing, like our Video Merger API. Knowing the exact duration or dimensions beforehand can save a lot of headaches!
🔔 Subscribe for more! I'm releasing another powerful media API endpoint very soon that lets you extract specific audio/video segments!
Let me know in the comments if you find this useful or if you have ideas for other API tools! Like the video if it helped!
#AutomationTribe #PHPAPI #MediaMetadata #n8n #MakeCom #Automation #FreeTool #VideoAPI #AudioAPI #DeveloperTools
📌 📌 📌 The host I recommend: https://dub.sh/n8n-host 📌 📌 📌 The host I recommend: https://dub.sh/n8n-host