SPi-V can not play back Quicktime VR files. SPi-V is based on Shockwave, and Shockwave can not 'parse' Quicktime files. At least, not without the Quicktime Xtra (a plugin for Shockwave), but this Xtra relies on Quicktime being available on the target machine. So the Quicktime Xtra is not an option.
The Quicktime Parser script is an alternative solutions to having native support in SPi-V. The script 'digests' the quicktime file as it is stored on your webserver, and converts it to a SPi-V xml file on the fly.
The Quicktime Parser script is provided as open source, in hopes it will be improved upon by and for the SPi-V community.
Quicktime parser script 1.0.1 (795 Kb)
This page explains how to install, test and use the initial version of the script.
Requirements and limitations
The quicktime parser script has a number of requirements for your webserver:
- Apache webserver
with Mod Rewrite supportor
IIS with ISAPI_Rewrite (see below)
- PHP 4 (PHP 5 untested)
Future versions may be ported to other server side scripting environments than PHP, suchs as ASP. When used on a webserver running IIS (the native Windows based server), the script requires a rewrite rule to work, which is described below. See bvogl's tips below to find out your server configuration.
The current script imposes a number of limitations on the Quicktime file. In time some of these limitations may be lifted.
- Cubic only. Cylindrical may be added later
- JPEG compressed panos only. Future support for codecs is higly unlikely.
- Only the first node in a multinode qtvr is parsed for now.
- The script cannot parse 'compressed headers'.
Note that the parser script should readily accept any number of tiles in any order.
Starting with version 0.9.5, the parser script caches the xml output file to disk. This means the Quicktime file is only parsed the first time it is opened, reducing the server CPU load. If a cached version of the xml file is found, all the parser script does when serving the file is seeking through the file to serve up individual tiles. This is done in a very efficient manner.
You can edit the cached file to add SPi-V specific features to the scene, such as those offered by scriptlets. Once created, the xml file will not be rewritten by the parser script unless you specifically tell it to (see below), or upload a newer version of the qtparser script or quicktime file.
Installation and testing
First of all, have a look at this quicktime file:
Parsing the quicktime file gives you this XML file:
And finally, loading this into SPi-V gets you here:
Start off by just uploading the qtparser.php script and the cathedral.mov file to your webserver. Then try something like:
You should get the same xml file as you got above. If not, please post a link. Pay close attention to the hfov and vfov values in the panoelement nodes; they should be 90. If they are some odd floating point number, please post the type of server you are using.
Try the same with a number of quicktime files on the server. Just replace the cathedral.mov part with a relative url to a quicktimevr file on your server. See if you can get any of them not to return you an XML file, keeping in mind the limitations of the current script mentioned above.
If you find files that conform to the above but don't produce a valid XML file, please post a link and state what program(s) you used to produce the Quicktime file.
After parsing a Quicktime file, you will see an XML file is created in the same directory as the quicktime file. On consequent calls to the quicktime parser script, this XML file will be served instead of parsing the quicktime file again. If you change your quicktime file, you have to manually reset the xml cache. This can be done using the following syntax:
Alternatively you can just remove the XML file and it will be recreated the next time the script parses the file.
If you do not want to use the caching feature, use the following syntax when calling the script:
After you have confirmed the parsing process works, it's time for step two: loading the xml into SPi-V. The qtparser script not only converts the quicktime vr headers into a SPi-V XML file, it also serves each of the JPEG encoded tiles in the Quicktime file as seperate JPEG files. In order for this to work need to fool SPi-V into thinking the PHP file is a JPG file.
The parser script uses a trick to make the SPi-V engine think the php script is actually an image file. Thanks to Joost Nieuwenhuijse, this trick works without a hitch if you use Apache.
If your website is hosted on an IIS server the server needs a bit of configuration using eg ISAPI Rewrite. If you have permissions to install software on the webserver, the free version of ISAPI Rewrite will do for our needs. After installing the free version of ISAPI Rewrite, replace the httpd.ini file in the installation directory with the httpd.ini file supplied in the qtparser archive.
Upload the show.php and SPi-V.dcr to the same location as the qtparser script.
Now we're finally ready to load the xml file into SPi-V. I have provided show.php to do this easily:
If this works, try it with a couple of the quicktime vr files on your webserver that you confirmed result in valid XML files. You can use relative paths to the quicktime movie, eg:
If you want to supply the qtparser script with additional attributes while using show.php, like the cache parameter, you will need to use the following syntax:
Instead of feeding the results of the qtparser script straight into SPi-V, you could also save it to disk, and edit it to add SPi-V specific features to your quicktime files, eg through the use of xml scriptlets. You then supply the show.php script with the path to your edited SPi-V xml file, but the JPEG tiles are still read from the Quicktime file.
- 13 Jan 06 (1.0.1): fixes for Pano2QTVR (Ingemar Bergmark) and preview track improvements (Thomas Rauscher)
- 09 Jan 06 (1.0): preview tracks are now displayed
- 09 Jan 06 (0.9.7): removed mod_rewrite hack for Apache, changed sample scene, caching fixes
- 16 Mar 05 (0.9.5): added XML file caching
- 24 Feb 05 (0.9.1): added information about IIS
- 22 Feb 05 (0.9): initial public version
Future versions / TODO
- cylindircal panorama support
- maps (Cubic Navigator can do it, so should we ;-)
- support for other scripting environments (ASP, ...)