Skip to content

MPEG-TS with H.263 video stream #1603

@hetoan2

Description

@hetoan2

I am attempting to play back a live MPEG-TS stream over UDP (yes I know it has been stated before that this is not a supported feature) using the UdpDataSource. The MPEG-TS container has sample frames in h264 format.

I went about following the suggestions here: #90

The method I tried was to create a TsChunkSource/TsSampleSource modified from the HlsChunkSource/HlsSampleSource varieties in attempt to get playback to work. So far I have been unable to play the stream, despite the UdpDataSource receiving the packets. This leaves the player in a continuous "preparing" state.

My question is, do I need to implement my own renderer to play this type of stream?

I am unsure as to why my implementation is not sufficient, I am supplying the TsChunk/Sample Sources with the udp URI, which is using the HlsExtractorWrapper (which I am pretty sure is a mistake). The result is that the SampleSourceTrackRenderer is constantly stuck calling doPrepare(). This is because of HlsExtractorWrapper (and the resulting extractor) failing on it's own prepare() because the TsExtractor has never called output.endTracks() to signal the tracks built in the Extractor wrapper.

Should I be using a different extractor? Should I make my own extractor? I am unsure of the best way to go about solving this problem. Will there ever be support for this kind of use-case, where there is a single track without end? I know there are some major revisions going on in 2.x, but as of now on the dev branch, this issue still exists.

If I have omitted any important data, please let me know.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions