https://github.com/steinwurf/mts
library for parsing mpegts files and streams
https://github.com/steinwurf/mts
mpegts
Last synced: 9 months ago
JSON representation
library for parsing mpegts files and streams
- Host: GitHub
- URL: https://github.com/steinwurf/mts
- Owner: steinwurf
- License: bsd-3-clause
- Created: 2017-10-23T12:25:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T09:59:11.000Z (over 4 years ago)
- Last Synced: 2025-03-21T00:25:59.364Z (10 months ago)
- Topics: mpegts
- Language: C++
- Homepage:
- Size: 647 KB
- Stars: 2
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
===
mts
===
.. image:: https://travis-ci.org/steinwurf/mts.svg?branch=master
:target: https://travis-ci.org/steinwurf/mts
mts is a library for parsing mpegts files and streams.
.. contents:: Table of Contents:
:local:
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( steinwurf::mts)
Where ```` is replaced by your target.