YouTube-to-Mp3 Converter :: PHP Script for Win32 Systems
This software does the following for you:
. Converts YouTube, Dailymotion, Vimeo, Facebook, Metacafe, VK, SoundCloud, Instagram, AOL, RedTube, XVideos, Pornhub, Vevo, Google Drive, and Twitter content (15 of the most popular video/audio hosting sites in the world)
. Outputs converted files to mp3, aac, m4a, mp4, webm, f4v, and/or 3gp formats
. Enables volume adjustment prior to conversion via jQuery slider control
. Displays download AND conversion progress via corresponding progress bars
. Leverages the power of FFmpeg (http://ffmpeg.org) to create crisp, clean, quality conversions of audio/video files.
. Reduces server load by skipping FFmpeg conversion for video/audio file types (i.e., mp4 or mp3) that are already available from the video/audio hosting sites
. Further reduces server load by providing users with a conversion "cancel" button that aborts ongoing conversions and subsequently kills unnecessary FFmpeg processes
. Minimizes bandwidth required for YouTube video conversion to audio formats (like mp3, aac, and m4a) by directly downloading audio from YouTube if it is available!
. Provides options to cache converted files, drastically and even further reducing the consumption of server resources (primarily CPU and bandwidth).
. Includes a tool that crops converted audio AND video files (with live preview of converted media during cropping process!)
. Provides an editor for converted mp3/aac/m4a file meta data (ID3 tags), to control track information displayed on some audio players.
. Automatically adds (album) cover art to MP3 files following post-conversion file cropping and/or editing.
. Integrates Dropbox and OneDrive "Saver" buttons that enable converted files to be saved to site users' accounts in the "cloud" -- in addition to regular file download.
. Features a completely "responsive" default design (leveraging the Bootstrap framework) to provide optimal viewing for ALL device types and sizes!
. Enables multi-language support via a corresponding drop down menu and XML translation files
. Dynamically changes HTML title and meta tag content to reflect information about the currently converting video/audio (i.e., the song title)
. Allows a user to share a "direct-to-conversion" URL and post it on a variety of social networking sites following download/conversion, so that the user's friends can automatically download/convert the same video/audio by simply clicking on the posted link! This feature is triggered when the user clicks to download his/her converted file, and the frequency that the share option appears is adjustable.
. Enables the easy integration of "interstitial" ads (e.g., http://adf.ly) to generate additional website income! When this feature is activated and a user clicks to download his/her converted file, an interstitial ad opens in a new browser tab where the user is prompted to download the file after a brief waiting period.
. Provides the ability to easily incorporate static pages (i.e., About, FAQ, and Contact pages) as well as rudimentary "templating" support for (primarily) static pages via common header/footer files
. Initiates conversions via form submission (POST request) as well as URL query string (GET request)
. Automatically updates the code required to decipher changing, encrypted, YouTube video signatures
. Optionally rotates between multiple outgoing IPs for YouTube downloads/conversions to avoid temporary IP bans and/or CAPTCHAs imposed by YouTube.
. Validates video/audio URLs prior to conversion
. Facilitates the addition of more video hosting sites as well as converted file types (by editing the code)
. Expanded Config file for a more customizable interface (i.e., easy access to FFmpeg commands for different converted file types and the ability to configure default video/audio qualities, default volume, and maximum allowed length of video/audio content)
. Secures access to the server so that FFmpeg commands can only be run if a unique token is present
. Includes script that can be run as a scheduled task on the server, that regularly deletes old converted files
This software requires the following server configuration:
. Linux, Windows, or XAMPP/WAMP server
. For commercial servers: Shared, Dedicated, and VPS hosting supported
. Apache or IIS
. PHP 5.3+
. сURL and PHP сURL extension enabled
. ffmpeg.exe (executable file, provided in Win32 distribution of this software!) for Windows & XAMPP/WAMP; FFmpeg and codecs packages (libvorbis, libvpx, libmp3lame, libx264, and/or aac codecs) installed on Linux
. MySQL, PHP MySQLi extension enabled, and additional IPs configured as outgoing network interfaces (only required IF using IP rotation feature)
. id3.exe (executable file, provided in Win32 distribution of this software!) for Windows & XAMPP/WAMP; 'id3v2' package installed on Linux
. That's it!
. Unpack/Unzip the distribution file and upload the contents to a new directory on your web server via FTP
- On Linux systems, this directory should be set to chmod 0755 permissions or lower
. On Linux systems, review the test results in the opening "config check" utility and correct any errors per the corresponding, provided instructions
. Ensure that the 'store' folder (in your new directory) has write permissions
- On Linux systems, this means setting folder permissions to chmod 0777
. Set the location of FFmpeg in Config.class.php via the _FFMPEG constant
- On Windows systems, this is something like '/YourDirectory/ffmpeg.exe'
- On Linux, this will usually be '/usr/bin/ffmpeg' or '/usr/local/bin/ffmpeg'. However, if you've performed a one-click installation via the software's "config check" utility, then this will generally be something like '/home/user/public_html/store/bin/ffmpeg'
. Configure additional constants/variables in Config.class.php as needed
. Set up schedule.php as a scheduled task (or cron job on Linux systems) if you require old, converted files to be deleted on a regular basis
- The age of files marked for deletion is configurable via the _MAX_AGE_FILES constant value in Config.class.php
- It is recommended that the scheduled task run daily (at least)
. IF you want to rotate outgoing IPs for YouTube downloads/conversions:
- Set the corresponding constant values in Config.class.php
- Configure additional IPs as outgoing network interfaces
- Use the SQL in 'docs/ips.sql' to build the required database table
. Navigate to index.php of your new directory, and start converting videos!
. 100 perᴄent Free support for life!
- Ask me a question, and I'll answer it!
- Working directly on your server is not free.
. Regular updates/fixes to the software are FREE!
- Follow us on Facebook and/or subscribe to the support forum thread to be notified of new versions.
- If you purchased the software via Tinypass, then you can login to your Tinypass account and download the latest version at any time.
. See The Official FAQ (https://secure.rajwebconsulting.com/VideoConverterFAQ/faq.html) for ways to troubleshoot common issues.
. Instructions for server configuration included in the 'docs' folder
. Human support for this script is provided via:
- Codingforums forum thread (http://www.codingforums.com/showthread.php?t=205066)
- Facebook fan page (https://www.facebook.com/Youtube-to-Mp3-Conversion-Script-Free-Commercial-PHP-Software-128039504063914)
. Custom templates and "extras" are available: https://rajwebconsulting.com/#addons
. [new!] Live demo site, maintained by the developer, demonstrating the most recent version of the software, can be accessed via the following forum post: http://www.codingforums.com/showpost.php?p=1217444&postcount=321
. YouTube video conversion to MP4 format (http://rajwebconsulting.com/VideoConverterDemos/YouTube-video-to-MP4.html)
. Dailymotion video conversion to FLV format (http://rajwebconsulting.com/VideoConverterDemos/Dailymotion-video-to-FLV.html)
. YouTube video conversion to MP3 format and ringtone (http://rajwebconsulting.com/VideoConverterDemos/YouTube-video-to-MP3-and-ringtone.html)
. Volume slider control (http://rajwebconsulting.com/VideoConverterDemos/Volume-slider-control.html)
. Conversion bookmarklet/browser plugin (https://www.facebook.com/photo.php?v=231835720350958)
. Multi-language support and a sexy, new default design (https://www.facebook.com/photo.php?v=172572936283601)
. MP3 meta data (ID3 tags) editor (https://www.facebook.com/photo.php?v=189863621214835)
. Video cropping with live preview (https://www.facebook.com/photo.php?v=204105429790654)
. Conversion cancel button and improved design (https://www.facebook.com/photo.php?v=222450067956190)
. Linux Installation - Part #1 (https://vimeo.com/user44562287/convert-youtube-to-mp3-free-php-script-installation-tutorial-1)
. Linux Installation - Part #2 (https://vimeo.com/user44562287/convert-youtube-to-mp3-free-php-script-installation-tutorial-2)
. Linux Installation - Part #3 (https://vimeo.com/user44562287/convert-youtube-to-mp3-free-php-script-installation-tutorial-3)
. If you plan to load this software on multiple websites and/or repackage all or some of the software code in your own application that is redistributed and/or sold for profit, then you MUST buy an extended license. An extended license costs $409.50 (the cost of 10 individual licenses). There are no exceptions to this rule, and violators will be prosecuted. Please contact me at chump2877 [at] yahoo [dot] com to arrange the purchase of an extended license.