Coder Social home page Coder Social logo

mts's Introduction

mts

https://travis-ci.org/steinwurf/mts.svg?branch=master

mts is a library for parsing mpegts files and streams.

Usage

For an example of how to use this library please look in the example folder.

Inspection

For an example of how to use mts for inspecting the content of a mpegts file please see examples/mpegts_inspect.cpp.

You can test this example like so:

python waf configure
> ...
python waf build
> ...
python waf install --install_path ./bin
> ...
./bin/mpegts_inspect test/test.ts
> ISO/IEC 13818-7 Audio with ADTS transport syntax: 33
> AVC video stream: 165

H.264 Extraction

For an example of how to use mts for extracting H.264 data from a mpegts file please see examples/mpegts_to_h264.cpp.

You can test this example like so:

python waf configure
> ...
python waf build
> ...
python waf install --install_path ./bin
> ...
./bin/mpegts_to_h264 test/test.ts out.h264

Playback the extracted h264 data with vlc like so:

cvlc out.h264 -v --no-loop --play-and-exit

AAC Extraction

For an example of how to use mts for extracting aac data from a mpegts file please see examples/mpegts_to_aac.cpp.

You can test this example like so:

python waf configure
> ...
python waf build
> ...
python waf install --install_path ./bin
> ...
./bin/mpegts_to_aac test/test.ts out.aac

Playback the extracted aac data with vlc like so:

cvlc out.aac -v --no-loop --play-and-exit

Use as Dependency in CMake

To depend on this project when using the CMake build system, add the following in your CMake build script:

add_subdirectory("/path/to/mts" mts)
target_link_libraries(<my_target> steinwurf::mts)

Where <my_target> is replaced by your target.

mts's People

Contributors

jpihl avatar petya2164 avatar

Watchers

 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.