It doesn't seem to work correctly.
I've looked through the formats/ts and formats/ts/tsio packages: the clue is, that TSReadPacket wants to have the pure sequence of MPEG-TS packets in the stream.
But when you join multicast stream, you never know which part of it you have started to receive. I mean, you can join in the middle of the packet. In this case, TS parser should read the stream until it encounters a valid beginning of the new MPEG-TS packet.
I could try to implement it by myself, but some piece of advice from the author how to do it properly will be really appreciated.
I'm trying to demux MPEG-TS over UDP.
Code is something like that:
It doesn't seem to work correctly. I've looked through the formats/ts and formats/ts/tsio packages: the clue is, that TSReadPacket wants to have the pure sequence of MPEG-TS packets in the stream.
But when you join multicast stream, you never know which part of it you have started to receive. I mean, you can join in the middle of the packet. In this case, TS parser should read the stream until it encounters a valid beginning of the new MPEG-TS packet.
I could try to implement it by myself, but some piece of advice from the author how to do it properly will be really appreciated.