# autotranscript.app package

## Submodules

## autotranscript.app.qtfaststart module

This file contains a modified version of qtfaststart by qtfaststart https://github.com/danielgtaylor/qtfaststart/tree/master

All credit goes to the original author. 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.

class Atom(name, position, size)

  Bases: `tuple`

  __repr__()

    Return a nicely formatted representation string

  name

    Alias for field number 0

  position

    Alias for field number 1

  size

    Alias for field number 2

exception FastStartException

  Bases: `Exception`

  Raised when something bad happens during processing.

exception FastStartSetupError

  Bases: `FastStartException`

  Rasised when asked to process a file that does not need processing

exception MalformedFileError

  Bases: `FastStartException`

  Raised when the input file is setup in an unexpected way

exception UnsupportedFormatError

  Bases: `FastStartException`

  Raised when a movie file is recognized as a format not supported.

find_atoms(size, datastream)

  Compatibilty interface for _find_atoms_ex

get_chunks(stream, chunk_size, limit)

get_index(datastream)

  Return an index of top level atoms, their absolute byte-position in the file and their size in a list:

  index = [

    (“ftyp”, 0, 24), (“moov”, 25, 2658), (“free”, 2683, 8), …

  ]

  The tuple elements will be in the order that they appear in the file.

process(infilename, limit=inf)

  Convert a Quicktime/MP4 file for streaming by moving the metadata to the front of the file. This method writes a new file.

  If limit is set to something other than zero it will be used as the number of bytes to write of the atoms following the moov atom. This is very useful to create a small sample of a file with full headers, which can then be used in bug reports and such.

read_atom(datastream)

  Read an atom and return a tuple of (size, type) where size is the size in bytes (including the 8 bytes already read) and type is a “fourcc” like “ftyp” or “moov”.

## Module contents