> The issue I was trying to convey is that I have a rolling file buffer of .ts
> files that seem filled with corrupted data even though the rolling file
> buffer of QuickTime files work perfectly fine.
>
> Do I need to add more filters to the h264 stream? I was expecting TS headers
> with the 0
Hi Ross,
My apologies, that was a bad attempt at trying to minimize the code
snippet. I actually do have it all in separate functions and scheduled
tasks, I was just trying to keep this email short but descriptive.
The issue I was trying to convey is that I have a rolling file buffer of
.ts files
> while(true) {
> TS_Sink = FileSink::createNew(*env, uniqueFileName);
> TS_Sink->startPlaying(*streamTS, NULL, NULL);
> sleep(2) // Continuous output of files with 2 seconds of video each
> TS_Sink->stopPlaying()
> Medium::close(TS_Sink)
> }
You MUST NOT call “sleep()” within a LIVE555
Hi Ross,
I now have 2 file sinks, one QuickTime (using MP4 format) and one MPEG2-TS,
working with the source of both being the video subsession of my
MediaSession object. The QuickTime files are playing on VLC just fine, but
the MPEG2-TS files seem to be missing the TS header, especially the sync
Hi Ross,
It turns out I was copying the stream before it was fully initialized.
Thanks for pointing out the differences from the sample code too!
Chris
On Fri, Feb 22, 2019 at 5:16 PM Ross Finlayson
wrote:
> You seem to be on the right track (though I can’t address whatever
> specific problems
You seem to be on the right track (though I can’t address whatever specific
problems you are having, because the word “issues” isn’t very descriptive :-)
It’s important to do things in the right order, specifically:
1/ Call “initiate()” on your “MediaSubsession” object (to create RTP source
obje
Hi,
I have existing code that sends the RTP stream from a camera to a QuickTime
file sink. I want to add a new feature that also writes the stream to
MPEG2-TS files. I followed testReplicator.cpp and
testH264VideoToTransportStream.cpp and my .ts files are being created as
expected, but now I'm hav