| I will start by stating what is required for this to | | | | If you have any problems with this login to your |
| work for you. Any website containing videos in a | | | | webhosting account/control panel and look for an |
| flash format (typically ending in .flv) that can be | | | | FTP option there. Info for connecting via FTP client |
| accessed via FTP (file transfer protocol) hosted on a | | | | should be there somewhere. This info will include |
| machine with PHP scripting capability. This covers the | | | | server name, something like ftp.your-host-name.com, |
| majority of the linux/unix webhosting out there that | | | | port number 21 and username and password. |
| let you install or add on a pre-made video script such | | | | Once that the FTP connection is working select both |
| as PHP-motion. The second prerequisite a desktop | | | | radio buttons labeled 'Remote Directory via FTP' |
| computer running windows XP or Vista that has a | | | | under 'Get files to convert from:' and 'Put converted |
| cable / DSL internet connection. | | | | files into:' The textbox below the radio buttons |
| If you are using windows hosting I don't know if this | | | | should both contain a forword slash '/' indicating the |
| will work. If it is windows hosting that also has PHP it | | | | root directory of your ftp account. Then, find the |
| might work but that has never been tested. | | | | directory the original video files are located in, for my |
| The primary focus of this article will deal with how I | | | | installation of PHPmotion script the location of the |
| did this on my site and hopefully it will get you | | | | original video files is in /public_html/uploads. To move |
| started if you wish to do the same. | | | | up and down in the directories on the server |
| A basic overview of how it will work is this: | | | | double-click on the directory names shown in the |
| 1) The original videos in FLV format reside on the | | | | listbox. The names in bold are directory names and |
| server in whatever directory the video script uploads | | | | the non-bold are the files in the current directory. Use |
| them into when they are added to your site. DCU | | | | the double dots '..' to move back up a directory. Once |
| (Download, Upload, Convert) software connects to | | | | you find the directory the original files are located in |
| the server via FTP and compares the files on the | | | | and you have choosen the output directory I |
| server to determine which of the original videos in | | | | recommend using the same directory in which the |
| FLV format have a file of the same name in MP4 | | | | original files are stored. |
| format. For example if the video filename is 1.flv it | | | | The listbox in the lower-left shows the files that |
| checks to see if 1.mp4 exists. | | | | need to be downloaded, converted, and uploaded. |
| 2) If 1.mp4 does not exist download a copy of the | | | | And, the listbox on the lower-right is a log of |
| original 1.flv file and convert it into 1.mp4 | | | | converted files. |
| 3) Upload the newly converted 1.mp4 back up to the | | | | All that is left is to click the 'Convert Files' button to |
| server. | | | | get the converting of files underway. |
| To make this happen the first thing to do is get DCU | | | | Ok, one more thing is needed for this to work out |
| (Download, Convert, Upload) software for free from | | | | well. In the template folder edit the play.php file but |
| FVG software by right-clicking then choosing 'Save | | | | by adding this code to the code. |
| Link As' on the following link | | | | $download_url = "Sorry, No MP4 is available for |
| Once, the file has finished downloading double click it | | | | this video." ; |
| or right-click then choose install to install it. | | | | $newname = 'uploads/' . |
| When installation has completed start DCU from the | | | | $result["video_id"] . '.mp4' ;if |
| start menu or the icon on your desktop. Enter your | | | | (file_exists($newname)) { $download_url = |
| ftp server info into the boxes at the top and click | | | | "Right-click to download this in MP4 |
| the TEST button to check if the connection is | | | | format" ;and put it in just before this bit of |
| working. | | | | code. |