Total Video Converter Command Line Demo Guide
1. Install IIS(Windows XP)/Apache(Linux) and PHP and configure them, you can see the following pages for guide:
2. Install E.M. Total Video Converter Command Line, Copy the folder TVCCDemo to your web root and set file/directory permissions
On windows, you should set the permission of the file list.txt in the folder TVCCDemo\upload-convert and log.txt in TVCC install directory to let the IIS user have Reading and Writing permission of the files.
On Linux, open terminal and type:(suppose the web root is /html)
chown -v myuser:myuser /html/TVCCDemo/upload-convert/uploaded (directory to save uploaded files)
chown -v myuser:myuser /html/TVCCDemo/upload-convert/converted (directory to save converted files)
chown -v myuser:myuser /html/TVCCDemo/upload-convert/tmp (directory to save TVCC output text)
chown -v myuser:myuser /html/TVCCDemo/select-convert/converted (directory to save converted files)
chown -v myuser:myuser /html/TVCCDemo/select-convert/tmp (directory to save TVCC output text)
chmod 744 /html/TVCCDemo/upload-convert
chmod 744 /html/TVCCDemo/upload-convert/uploaded
chmod 744 /html/TVCCDemo/upload-convert/converted
chmod 744 /html/TVCCDemo/upload-convert/tmp
chmod 746 /html/TVCCDemo/upload-convert/list.txt
chmod 744 /html/TVCCDemo/select-convert
chmod 744 /html/TVCCDemo/select-convert/converted
chmod 744 /html/TVCCDemo/select-convert/tmp
chmod 746 /my/cmdvc/log.txt(supposed the path of TVCC.exe's parent folder is /my/cmdvc)
3. edit php files
find "E:/cmdvc/TVCC.exe" in ctvc.php, change it to the path of the executable file TVCC.exe.
find "E:/cmdvc/pscount.exe"(on Windows) in ctvc.php, change it to the path of the executable file pscount.exe
4. Open the following urls to run them.
http://localhost/TVCCDemo/upload-convert
http://localhost/TVCCDemo/select-convert
|