Skip to content

rosealexander/kvsparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kvsparser

A Python module for parsing real-time AWS Kinesis Video Streams.

Usage

from kvsparser import Parser
...
for fragment in Parser(media):
  print(fragment.__class__, "Frames", len(fragment.images), "Tags", fragment.tags)

kvsparser.Parser(media)

Parameters

Returns

  • Iterator[kvsparser.Fragment]

kvsparser.Fragment

  • tags (Dict) SimpleTag elements from ebmlite.MatroskaDocument.
    • AWS_KINESISVIDEO_FRAGMENT_NUMBER
      • Number ID of the segmented video fragment.
    • AWS_KINESISVIDEO_SERVER_TIMESTAMP
      • Server timestamp of the segmented video fragment.
    • AWS_KINESISVIDEO_PRODUCER_TIMESTAMP
      • Producer timestamp of the segmented video fragment.
  • images (List[numpy.ndarray]) Frames from the segmented video fragment as a ndimage.

License

See the LICENSE file.

This package is licensed under the MIT No Attribution License and is a derivative of "Amazon Kinesis Video Streams Consumer Library For Python" by Dean Colcott, used under MIT-0.

About

AWS Kinesis Video Streams Consumer and Real-Time Video Parser for Python

Topics

Resources

License

Stars

Watchers

Forks

Languages