[Live-devel] [Mirasys] Live555 RTSP server questions
Victor Vitkovskiy
victor.vitkovskiy at mirasys.com
Fri Jan 14 05:42:56 PST 2022
Hello Ross,
I was able to create H.264 / 265 streams from my sources, it works fine now even for several URI's and clients.
Could you please advise me how to stream xml metadata?
What RTPSink and Framer I should use for this?
I look forward to your answer
Best regards,
-----------------------------------------
Victor Vitkovskiy
Senior software developer
mailto: victor.vitkovskiy at mirasys.com
www.mirasys.com
-----Original Message-----
From: live-devel <live-devel-bounces at us.live555.com> On Behalf Of Victor Vitkovskiy
Sent: Wednesday, 12 January 2022 13:20
To: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
Subject: Re: [Live-devel] [Mirasys] Live555 RTSP server questions
EXTERNAL
Hello Ross,
Yes, that was the case, now it works, thank you for your help.
I will continue with this, still we have opened question with metadata streaming.
Best regards,
-----------------------------------------
Victor Vitkovskiy
Senior software developer
mailto: victor.vitkovskiy at mirasys.com
www.mirasys.com
-----Original Message-----
From: live-devel <live-devel-bounces at us.live555.com> On Behalf Of Ross Finlayson
Sent: Wednesday, 12 January 2022 12:57
To: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
Subject: Re: [Live-devel] [Mirasys] Live555 RTSP server questions
EXTERNAL
Your "H264ServerMediaSubsession::createNewStreamSource()” function needs to create a *new* “H264FramedSource” object each time it’s called. You can’t create just one of those objects in advance, and try to reuse it. So this code is wrong:
> H264ServerMediaSubsession::H264ServerMediaSubsession(UsageEnvironment& env, Boolean reuseFirstSource) :
> OnDemandServerMediaSubsession(env, reuseFirstSource) {
> mFramedSource = H264FramedSource::createNew(env); }
>
> H264ServerMediaSubsession::~H264ServerMediaSubsession() {
> Medium::close(mFramedSource);
> }
>
> FramedSource* H264ServerMediaSubsession::createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate) {
> estBitrate = 500; // kbps, estimate
>
> // Create a framer for the Video Elementary Stream:
> return H264VideoStreamDiscreteFramer::createNew(envir(),
> mFramedSource); }
You should not be creating (or destroying) “H264FramedSource” objects in your “H264ServerMediaSubsession” constructor (or destructor). Instead, you create a "H264FramedSource” object in your "H264ServerMediaSubsession::createNewStreamSource()” function. (It will get destroyed automatically when it’s no longer needed.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list