How do I install qt-faststart on Wamp? - php

I have installed FFMPEG on WAMP 2. However I believe I also need qt-faststart in order to quickly load the meta data in MP4 files. How do I go about this?

You need qt-faststart to make MP4 files streamable. Here is a Windows build of qt-faststart.exe: http://notboring.org/downloads/video/qt-faststart.zip
Will that work for you?

An alternative to qt-faststart is MP4Creator.
http://mp4creator.sourceforge.net/
Commandline: mp4creator -optimize videofile.mp4
I found it to be much faster than qt-faststart on slow disks (like an SD card)
Sorry, Mike ;)

Related

How to install php on windows xp

every time I try to install php on windows I get a file called php-5.4.8.tar.bz2 I dont know how to install this kind of file can someone help me?
If you are new to PHP, then I would suggest you to use WAMP Server. Link below:
http://www.wampserver.com/en/
Install it, execute it, start working. Real fast and easy. It comes pre-configured with Apache, MySQL and PHP.
You're using the wrong file, you're on Windows not Unix!
This should help:
http://www.php.net/manual/en/install.php
yet, use a wamp server, it's simple and easy to use. enjoy your PHP trip ! :)
In case you're looking for a place to start learning PHP, I highly suggest this simple tutorial:
http://www.w3schools.com/php/
It's a very straight forward tutorial that'll get you started with PHP in no time!
You have downloaded the installation package for Unix based systems. You want to download the Windows Version. Note that you will also need to download an install Apache with this.
You may find it easier to install a full development package. I recommend WAMP or XAMPP. These contain all the tools you need to get started, including Apache, PHP, and MySQL.
Compressed archive created by bzip2, a file compression program often found on Unix-based systems; incorporates the Burrows-Wheeler compression algorithm as well as Run-Length Encoding (RLE) for high levels of compression; often used for Linux software package distributions.
Info about .bz2
You can unrar it using winrar

What's the best way to migrate large amounts of data to another server?

I'm currently migrating a Magento installation to a new, separate server and I was wondering whether there's any method I could use apart from an FTP program like FileZilla. The backup size is around 4GB - so this would take hours to download and upload to the new location.
Is there any way of copying/moving files between servers? I looked at PHP's FTP functionality, but I'm unsure if this is the right way to go. I tried searching for previous questions, but all I found was Python and C++ solutions which I'm not that comfortable using...
tar cfz - /path/to/your/data|ssh user#newserver.com echo > oldserver.tar.gz
Yes, with SSH and scp
Assuming that you have ssh access (on both servers) and are working on linux machines, you can login to the old server via ssh and then use scp:
scp /path/to/backup.tar.gz username#new-server.com:/path/on/new/server
is posibbly between servers, but you need
tar and if you want, compress it.
you could use native php extensions, or pear extensions.
So you need to uncompres
Make a compress file of backup in the source server
In the destiny server do a script what writes tar, here could be 2 scenarios.
Can connect directly to http $tar = new Archive_Tar('http://my-old-host.tld/archive.tar');
You need to download first. With curl http://www.webdigity.com/index.php?action=tutorial;code=45 or with pear http://pear.php.net/manual/en/package.http.http-download.php
then you unpack with pear Archive_tar (if you add compression, you need to add here too)
$tar = new Archive_Tar('http://my-old-host.tld/archive.tar');
$tar->extract(dirname(FILE).'/backup_from_server/');
The most easy HTTP compatible way that i think.
have a nice day.
with ssh is much more simplier
tar -jcvf - /backup-directory | ssh user#destiny-server sh -c 'mkdir backup; cd backup; tar -jxvf -'
this sent compressed the stream in the network to make it more faster.

Hosting PHP website that uses unix command "convert" on IIS

I thought I had checked so that everything would work when hosting this website on IIS but I missed a tiny detail.
Apparantly an image upload form on the website requires a unix command or program called "convert" (usr/bin/convert) to resize, set quality and generate a thumbnail for the images. I think it's called ImageMagick.
What would be the best approach to fix this? Is there perhaps a "convert" version for Windows or equivalent? I want to avoid rewriting the upload system too much. All suggestions except moving to a unix system are greatly appreciated.
There is a Windows version of ImageMagick:
ftp://mirror.aarnet.edu.au/pub/imagemagick/windows/ (or use any one of the other mirrors)
You will need administrator access to install it, though.
You can install ImageMagick on Windows
ImageMagick is available for windows as well: Link
What would be the best approach to fix this? Is there perhaps a "convert" version for Windows or equivalent? I want to avoid rewriting the upload system too much. All suggestions except moving to a unix system are greatly appreciated.
Wouldn't you be able to simply install convert on Windows? ImageMagick (where the convert binary comes from) has a Windows version too.
That is indeed ImageMagick, they have windows binaries available on their website here: Link

FFMPEG install php. Anyone know any good guides?

I would like to be able to convert videos to flv through the use of php and FFMPEG.
I was just wondering if anyone knew any good guides to setting up FFMPEG in a linux environment. I have found scripts showing how to use ffmpeg through exec() with php but I would like to know how to set everything up.
Also, I believe other software also needs to be installed in order for FFMPEG to work (ex. mp3 codecs?). If anyone could point me in the right direction, I would really appreciate it. I have been trying to search for ways to do this, but a lot of guides are outdated and some of the wget commands do not even work. Thanks in advance.
If you are looking for specific guides, would be useful to know which linux distribution you are using. As far as what else you need apart from ffmpeg, depends on what exactly you wish to be encoding. For example, if you wish to be able to encode xvid videos into flv, you'll need the Xvid codec.
I would recommend getting at least:
FAAD2
FAAC
LAME
yasm
x264
xvid
If you intend to encode mp4 videos with h264, you'd need qt-faststart as well, to move the meta data to allow immediate streaming.
(and personally prefer mencoder over ffmpeg)
Try this: http://wiki.collectiveaccess.org/index.php?title=Compiling_ffmpeg
I am a CollectiveAccess user, which uses ffmpeg for video processing. Those instructions were pretty much spot on when installed a new CA system on a fresh CentOS.
ffmepeg, and its dependencies, work best when compiled from latest source since the yum repositories lag a bit.
sudo apt-get install php5-ffmpeg
sudo apt-get install ffmpeg
That's should do the job (on ubuntu/debian at least)

Converting uploaded audio files to mp3 using PHP/ffmpeg

I have limited experience of using PHP, but having done some searching around it would seem that it is possible to convert audio files that are uploaded through a web page to mp3 using ffmpeg. The audio files would be uploaded using the Uploadify script to subfolders that are named according to the user's login.
I would need the PHP script to be able to process all audio files that are either not in MP3 format, or are in MP3 format but greater than 192kbps, deleting the original file after the conversion. Am I right in thinking that this could be achieved using PHP, and if so, can anyone get me started with some code, or a link to a webpage with some code?
Also, I am currently using Hostpapa for hosting my website, and I understand that they don't include ffmpeg, and also don't allow ssh. I read on one website that I could still install a compiled version of ffmpeg on a shared server, but I am not sure if this means that it would work on Hostpapa, or whether I would need to change my host to get ffmpeg working.
Any advice on any of this would be welcome!
Thanks,
Nick
You would basically run ffmpeg from PHP or use an PHP-API for ffmpeg like this.
If you cannot access the server via ssh and they do not have ffmpeg installed, it might be possible to use a precompiled binary, but you might also not be allowed to run commands from PHP or install software.
Your best bet is to contact the host. If they cannot support ffmpeg you will need a new host. When choosing the host, ask them before you sign up if they can support ffmpeg and provide you with SSH access or a jail shell.
You have to install FFMpeg in your server, so that everyone can make avail of it. If you are about to install in your local, it's quite doubtful that the process works finer or not. Instead, you can move with the hosting provider. Rely on the web hosting provider who can support FFMpeg and provide you with SSH access.

Categories