Skip to main content

Parsing, manipulating and indexing FLV files

Project description

A library for manipulating, parsing and verifying FLV files.

It includes two example scripts, debug-flv and index-flv, which demonstrate the possible applications of the library.

Provides an easy and extensible way of writing applications that parse and transforming FLV files. Checks file correctness based on the official specification released by Adobe.

Can be used as a drop-in replacement for FLVTool2, from which it is typically much faster. Unlike FLVTool2 it works on audio-only file and does not overwrite any previous metadata the file might have.

Example usage

Printing FLV file information

$ debug-flv file.flv | head -5
=== `file.flv' ===
#00001 <AudioTag at offset 0x0000000D, time 0, size 162, MP3>
#00002 <AudioTag at offset 0x000000BE, time 0, size 105, MP3>
#00003 <VideoTag at offset 0x00000136, time 0, size 33903, VP6 (keyframe)>
#00004 <AudioTag at offset 0x000085B4, time 26, size 105, MP3>

Indexing and FLV file

$ index-flv -U file.flv
$ debug-flv --metadata file.flv
=== `file.flv' ===
#00001 <ScriptTag onMetaData at offset 0x0000000D, time 0, size 259>
{'duration': 9.979000000000001,
 'keyframes': {'filepositions': [407.0], 'times': [0.0]},
 'metadatacreator': 'flvlib 0.x.x'}

Project details

Download files

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

Source Distribution

flvlib-0.1.4.tar.bz2 (13.6 kB view hashes)

Uploaded source

Supported by

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