Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install qtfaststart

How to install qtfaststart

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install qtfaststart
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.5
1.8Never BuiltWhy not?
1.5 Available View build log
Windows (64-bit)
1.5
1.8Never BuiltWhy not?
1.5 Available View build log
Mac OS X (10.5+)
1.5
1.8Never BuiltWhy not?
1.5 Available View build log
Linux (32-bit)
1.8 Available View build log
1.5 Available View build log
Linux (64-bit)
1.8 Available View build log
1.5 Available View build log
 
License
MIT License
Imports
Lastest release
version 1.8 on Aug 21st, 2013

Quicktime/MP4 Fast Start

Enable streaming and pseudo-streaming of Quicktime and MP4 files by moving metadata and offset information to the front of the file.

This program is based on qt-faststart.c from the ffmpeg project, which is released into the public domain, as well as ISO 14496-12:2005 (the official spec for MP4), which can be obtained from the ISO or found online.

The goals of this project are to run anywhere without compilation (in particular, many Windows and Mac OS X users have trouble getting qt-faststart.c compiled), to run about as fast as the C version, to be more user friendly, and to use less actual lines of code doing so.

Features

  • Works everywhere Python (2.6+) can be installed
  • Handles both 32-bit (stco) and 64-bit (co64) atoms
  • Handles any file where the mdat atom is before the moov atom
  • Preserves the order of other atoms
  • Can replace the original file (if given no output file)

Installing from PyPi

To install from PyPi, you may use easy_install or pip:

easy_install qtfaststart

Installing from source

Download a copy of the source, cd into the top-level qtfaststart directory, and run:

python setup.py install

If you are installing to your system Python (instead of a virtualenv), you may need root access (via sudo or su).

Usage

See qtfaststart --help for more info! If outfile is not present then the infile is overwritten:

$ qtfaststart infile [outfile]

To run without installing you can use:

$ bin/qtfaststart infile [outfile]

To see a list of top-level atoms and their order in the file:

$ bin/qtfaststart --list infile

If on Windows, the qtfaststart script will not execute, so use:

> python -m qtfaststart ...

History

  • 2013-08-07: Copy input file permissions to output file.
  • 2013-08-06: Fix a bug producing 8kb mdat output.
  • 2013-07-05: Introduced Python 3 support.
  • 2013-07-05: Added launcher via 'python -m qtfaststart'.
  • 2013-07-05: Internal refactoring for clarity and robustness. Functions now work with named tuples. Backward compatability is maintained. Expect a future, backward-incompatible release to replace other functions.
  • 2013-07-05: Created an Atom namedtuple to represent a fourcc atom (name, stream position, and size).
  • 2013-01-28: Support strange zero-name, zero-length atoms, re-license under the MIT license, version bump to 1.7
  • 2011-11-01: Fix long-standing os.SEEK_CUR bug, version bump to 1.6
  • 2011-10-11: Packaged and published to PyPi by Greg Taylor <gtaylor AT duointeractive DOT com>, version bump to 1.5.
  • 2010-02-21: Add support for final mdat atom with zero size, patch by Dmitry Simakov <basilio AT j-vista DOT ru>, version bump to 1.4.
  • 2009-11-05: Added --sample option. Version bump to 1.3
  • 2009-03-13: Update to be more library-friendly by using logging module, rename fast_start => process, version bump to 1.2
  • 2008-10-04: Bug fixes, support multiple atoms of the same type, version bump to 1.1
  • 2008-09-02: Initial release

License

Copyright (C) 2008 - 2013 Daniel G. Taylor <dan@programmer-art.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Subscribe to package updates

Last updated Aug 21st, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.