GithubHelp home page GithubHelp logo

tsanalyze's Introduction

TS Analyze

A TS packet start with 4 bytes header, total length could be 188, 192 or 204 bytes which are specified in standard DVB/ATSC/ISDB.

Construct TS packets we will get PES/PSI packets.
PSI is structured for search and other auxiliary functions. 
PES contains ES packets which could be audio or vedio streams.

With this understanding, you can start decoding a TS stream or file now.

  • Use basic rules from ISO 13818 and ETSI EN 300 468 to decode MPEG2 TS
  • Use EN 300 743 to decode subtitle
  • Use ETS 300 706 to decode teletext

Print descriptors for DVB/ATSC/ISDB standard. Print PSI tables infomation and some other subsystem infomation

Compile

We could install pybind11 to build package for python.

for Linux & Macos

git clone https://github.com/junka/tsanalyze.git
cd tsanalyze
mkdir build
cd build
cmake ..
make

for Windows with MSVC

git clone https://github.com/junka/tsanalyze.git
cd tsanalyze
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
cmake --build .

Usage

  • Most simple way
./tsanalyze tsfile
  • Support file and udp stream analyze
./tsanalyze -f udp udp://url_of_stream

Ctrl + C to stop and show received ts information

  • Print table selected
./tsanalyze tsfile -s pat -s cat 
  • Print stats about ts streams
./tsanalyze tsfile -S

descriptor

Not all descriptor implemented now, see doc/descriptor.md to add new descriptors

tsanalyze's People

Contributors

junka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tsanalyze's Issues

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.