akanchi / mpegts Goto Github PK
View Code? Open in Web Editor NEWA simple implementation of mpegts(including muxer and demuxer)
License: MIT License
A simple implementation of mpegts(including muxer and demuxer)
License: MIT License
The 'Multi TS-Packet demux-bug fixed' ae8b73a
Should be cherrypicked and verified.
Originally posted by @andersc in #6 (comment)
Just want to let you know that I fixed a bunch of errors in the multiplexer and demux in my fork if you want to fix in your project.
In general..
Using std::string to work with binary (non string) data is a bad idea
The PES Header is destroyed in some cases
The data is corrupt when building some size PES frames..
If you run the unit tests I made you will catch all of the errors that I found so far..
I also added mBroken to indicate broken PES frames.
You can close this at any time.. This is the only way for me to make you aware of the errors since we decided not to merge my fork earlier I can't create pull requests.
/Anders
hi,您好,
使用main.cpp,传递一个使用ffmpeg生成的test.ts文件,执行完程序后,输出的test.tsout.ts只有音频流,还请帮助,谢谢。
When appending bytes
void SimpleBuffer::append(const char* bytes, int size)
{
if (size <= 0)
return;
_data.insert(_data.end(), bytes, bytes + size);
_pos += size;
}
pos will be size if pos is 0
That means that ->
bool SimpleBuffer::empty()
{
return _pos >= (int)_data.size();
}
Empty will be true (but it should not be) .. Or am I missing something?
Currently the PCR is not extracted from the stream. Would be great if the PCR is extracted (Even the case where the PCR PID is not associated with the video PID).
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.