MPEG2-TS decoding/encoding library for Rust.
- ISO/IEC 13818-1
- ITU-T Rec. H.222.0
MPEG2-TS decoding/encoding library for Rust
License: MIT License
MPEG2-TS decoding/encoding library for Rust.
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
For the new Apple Low latency HLS, requires the .ts file(Partial segment file) should be around 200ms.
Could you advise how to implement this? Or just implement it :-)
I am using Javelin that using mpeg2ts in Rust.
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).
Download BigBuckBunny_320x180.mp4.
Transmux it into TS format:
ffmpeg -i BigBuckBunny_320x180.mp4 -t 20 -c copy -bsf:v h264_mp4toannexb bbb.ts
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.