Skip to main content

Quicktime atom positioning in Python for fast streaming.

Project description

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 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 qt-faststart.py --help for more info! If outfile is not present then the infile is overwritten.

$ qtfaststart.py infile [outfile]

History

  • 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 - 2009 Daniel G. Taylor <dan@programmer-art.org>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

qtfaststart-1.7.tar.gz (6.4 kB view details)

Uploaded Source

qtfaststart-1.5.tar.gz (17.6 kB view details)

Uploaded Source

File details

Details for the file qtfaststart-1.7.tar.gz.

File metadata

  • Download URL: qtfaststart-1.7.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for qtfaststart-1.7.tar.gz
Algorithm Hash digest
SHA256 53023db70ab7f6f0a59e4692ef537f0b45cd8e154dbdd10dbede82071b90800a
MD5 ef8da3d4ebffe24b00639ac2d6d324f5
BLAKE2b-256 b30887ef1ad4c9b2f96a517800916d09bb009ec54a4851684b7bb733b24ec625

See more details on using hashes here.

File details

Details for the file qtfaststart-1.5.tar.gz.

File metadata

  • Download URL: qtfaststart-1.5.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for qtfaststart-1.5.tar.gz
Algorithm Hash digest
SHA256 00e95292702acd18ba7e8c7a1766a3da5824950767f91bcec74ad4607570d308
MD5 efb48e8306600a8ed6d51cf6941ad1c2
BLAKE2b-256 f109ddc34076e77eb3a8103ab61b315f7445b53ca9f74f5230c84c9f4a59a7b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page