8000 GitHub - Joel-eGarcia/mts: library for parsing mpegts files and streams
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Joel-eGarcia/mts

 
 

Repository files navigation

mts

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

mts is a library for parsing mpegts files and streams.

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

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

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

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

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.

About

library for parsing mpegts files and streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.3%
  • Python 2.0%
  • CMake 1.7%
0