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 flvlib

How to install flvlib

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install flvlib
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.12 Available View build log
0.1.11 Available View build log
Windows (64-bit)
0.1.12 Available View build log
0.1.11 Available View build log
Mac OS X (10.5+)
0.1.12 Available View build log
0.1.11 Available View build log
Linux (32-bit)
0.1.12 Available View build log
0.1.11 Available View build log
Linux (64-bit)
0.1.12 Available View build log
0.1.11 Available View build log
 
Author
License
MIT
Lastest release
version 0.1.12 on May 10th, 2011

A library for manipulating, parsing and verifying FLV files.

It includes three example scripts, debug-flv, index-flv and retimestamp-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 files 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'}

Retimestamping an FLV file

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

$ retimestamp-flv -U file.flv
$ 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>

Subscribe to package updates

Last updated May 10th, 2011

Download Stats

Last month:6

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.