Git Product home page Git Product logo

mpeg2ts's Introduction

mpeg2ts's People

Contributors

jensenn avatar sile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mpeg2ts's Issues

Insert a stream

Hey, thanks for the package I was able to parse the stream, is there a way I can insert a new stream to file. My use case is to insert a timed_metadataID3 stream inside the file.
Thanks

Unable to parse TS files transmuxed by FFmpeg

When running the parse example on a TS movie transmuxed by FFmpeg, it fails to read the first TS packet which comes with unknown PID 0x11. It might be related to DVB's Service Description Table (SDT).

Steps to reproduce

  1. Download BigBuckBunny_320x180.mp4.

  2. Transmux it into TS format:

    ffmpeg -i BigBuckBunny_320x180.mp4 -t 20 -c copy -bsf:v h264_mp4toannexb bbb.ts
  3. Run the parse example:

    cat bbb.ts | cargo run --example parse

    mpeg2ts will fail with the following output:

    thread 'main' panicked at '
    EXPRESSION: reader.read_ts_packet()
    ERROR: InvalidInput (cause; assertion failed: `self.pids.get(&pid).cloned().is_some()`; Unknown PID: header=TsHeader { transport_error_indicator: false, transport_priority: false, pid: Pid(17), transport_scrambling_control: NotScrambled, continuity_counter: ContinuityCounter(0) })
    HISTORY:
    [0] at src/ts/reader.rs:73
    [1] at examples/parse.rs:32
    
    ', examples/parse.rs:32:38
    

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.