GithubHelp home page GithubHelp logo

isabella232 / libvideo-metadata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from parrot-developers/libvideo-metadata

0.0 0.0 0.0 52 KB

Parrot Drones video metadata library

License: Other

Makefile 0.66% C 99.34%

libvideo-metadata's Introduction

libvideo-metadata - Parrot Drones video metadata library

libvideo-metadata is a C library that handles the serialization and de-serialization of video metadata in both streaming and recording.

Features

  • serializing/de-serializing of frame (timed) metadata
  • serializing/de-serializing of session (untimed) metadata
  • metadata conversion to CSV or JSON formats
  • various helper functions

Dependencies

The library depends on the following Alchemy modules:

  • libfutils
  • libulog
  • json (optional)

Building

Building is activated by enabling libvideo-metadata in the Alchemy build configuration.

Operation

Threading model

The API functions are not thread safe and should always be called from the same thread, or it is the caller's resposibility to synchronize calls if multiple threads are used.

Writer

Frame metadata

As a writer the library takes as input vmeta_frame structures and serializes the data as vmeta_buffer objects, ready to use in a stream sender (see libvideo-streaming) or in a MP4 muxer.

Session metadata

As a writer the library takes as input a vmeta_session structure and serializes the data as either data for a stream sender (SDES RTCP packets - see libvideo-streaming - and/or SDP attributes - see libsdp) or for a MP4 muxer (in meta or udta boxes).

Reader

Frame metadata

As a reader the library takes as input vmeta_buffer objects coming either from a stream receiver (see libvideo-streaming) or a MP4 demuxer (see libmp4) and de-serializes the data as vmeta_frame structures.

Session metadata

As a writer the library takes as input data coming either from a stream receiver (SDES RTCP packets - see libvideo-streaming - and/or SDP attributes - see libsdp) or a MP4 demuxer (values from meta or udta boxes - see libmp4) and de-serializes the data as a vmeta_session structure.

Testing

The library can be tested using the provided vmeta-extract command-line tool which takes as input a MP4 video file or a *.pcap packet capture and optionally outputs CSV, JSON and KML files.

To build the tool, enable vmeta-extract in the Alchemy build configuration. To use with mp4 files as input, libmp4 must be enabled in the build configuration. To use with *.pcap files, the libpcap-dev package must be installed on the system. For JSON output json must be enabled in the build configuration.

For a list of available options, run

$ vmeta-extract -h

libvideo-metadata's People

Contributors

akaaba avatar n-bz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.