Skip to main content

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>

Metadata

Release files for flvlib 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flvlib 0.1.13
File Size Uploaded
flvlib-0.1.13.tar.bz2 23.0 kB Details

Release files / flvlib-0.1.13.tar.bz2

Download URL flvlib-0.1.13.tar.bz2
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
963f32e50e92b57d98a2893db58396a1288d01b72ca70874c0e4f0ebd4c71eef
BLAKE2b-256 checksum
How to use checksums
d97fe0d55d3262a6ec04f77352d5a879fe2360ef4bc47d2cb433fda61f87ec01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.13 This release

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page