[Live-devel] RTSP Server suddenly stops streaming
Tiago Fonseca
Tiago.Fonseca at vision-box.com
Fri Oct 16 08:46:39 PDT 2015
I did the tests you suggested and it seems that the problem is on my Server, specifically when streaming h264.
When I run my Server with testRTSPClient, no matter which encoder, after a minute or so it freezes indefinitely.
When I run my Server streaming in FMPG4 and vlc, I'm able to stream forever.
If I change my encoder to h264, the stream shuts down after a while.
(in this case, using wire shark I got a TEARDOWN message...)
I'm receiving my frames from ffmpeg and depending on the encoder used, I use H264VideoStreamFramer/MPEG4VideoStreamFramer and H264VideoRTPSink/MPEG4ESVideoRTPSink.
My FramedSource::deliverFrame() is like this:
void FramedSource::deliverFrame()
{
if (!isCurrentlyAwaitingData())
return;
// Pop frame from Queue
//...
// TimeStamp
gettimeofday(&fPresentationTime, NULL);
assert(mediaSample->PayloadSize != NULL);
unsigned int trancate = 0;
// Frame size and truncate
if (myFrameSize> fMaxSize) {
fFrameSize = fMaxSize;
fNumTruncatedBytes = myFrameSize - fMaxSize;
}
else {
fFrameSize = myFrameSize;
fNumTruncatedBytes = 0;
}
// Deliver the data
pin_ptr<Byte> d = &myFrame;
memmove(fTo, d, fFrameSize);
nextTask() = envir().taskScheduler().scheduleDelayedTask(50000, (TaskFunc*)FramedSource::afterGetting, this);
return;
}
Best Regards,
Tiago Fonseca
----------------------------------------------------------------------
Message: 1
Date: Wed, 14 Oct 2015 09:33:37 +0000
From: Tiago Fonseca <Tiago.Fonseca at vision-box.com>
To: "live-devel at lists.live555.com" <live-devel at ns.live555.com>
Subject: [Live-devel] RTSP Server suddenly stops streaming
Message-ID:
<37e71b1e9a974ddaab0f88817c3d1201 at EXCMBX1BOX.VISIONBOX.DOMAIN>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
For the last month, I have been reading about live555 and going through as much examples as I can.
With all the information I was able to get, I manage to make my own RTSP Server and Client.
My RTSP Client runs perfectly and non-stop days and days but there's something about my RTSP Server.
My server starts streaming and everything runs smoothly but sooner or later stops streaming, sometimes after 2 hours or 2 minutes.
Is there anything that I might be doing wrong or missing that may be cause this behavior?
At this point any tips or pointers are a huge help because I really don't know where to look.
Best Regards,
Tiago Fonseca
AVISO DE CONFIDENCIALIDADE: Este e-mail e quaisquer ficheiros inform?ticos com ele transmitidos s?o confidenciais e destinados ao conhecimento e uso exclusivo do respectivo destinat?rio, n?o podendo o conte?do dos mesmos ser alterado. Caso tenha recebido este e-mail indevidamente, queira informar de imediato o remetente e proceder ? destrui??o da mensagem.
CONFIDENTIALITY WARNING: This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Their contents may not be altered. If you have received this e-mail in error please notify the sender and destroy it immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20151014/f4c559c2/attachment-0001.html>
------------------------------
Message: 2
Date: Wed, 14 Oct 2015 02:50:07 -0700
From: Ross Finlayson <finlayson at live555.com>
To: LIVE555 Streaming Media - development & use
<live-devel at ns.live555.com>
Subject: Re: [Live-devel] RTSP Server suddenly stops streaming
Message-ID: <5BAC90D7-3731-43F5-8041-BE17A3EA04D2 at live555.com>
Content-Type: text/plain; charset="windows-1252"
> For the last month, I have been reading about live555 and going through as much examples as I can.
> With all the information I was able to get, I manage to make my own RTSP Server and Client.
>
> My RTSP Client runs perfectly and non-stop days and days but there?s something about my RTSP Server.
> My server starts streaming and everything runs smoothly but sooner or later stops streaming, sometimes after 2 hours or 2 minutes.
>
> Is there anything that I might be doing wrong or missing that may be cause this behavior?
I don?t know, because you haven?t said very much about your client and (especially) your server.
However, I suggest that you test against the supplied ?testRTSPClient? and ?LIVE555 Media Server? applications; i.e.:
1/ Check whether ?testRTSPClient? works OK with ?LIVE555 Media Server?
2/ Check whether your client works with ?LIVE555 Media Server?
3/ Check whether ?testRTSPClient? works OK with your server.
These tests should tell you where your problem lies:
- With your network (if 1/ fails)
- With your client (if 2/ fails)
- With your server (if 3/ fails).
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
AVISO DE CONFIDENCIALIDADE: Este e-mail e quaisquer ficheiros informáticos com ele transmitidos são confidenciais e destinados ao conhecimento e uso exclusivo do respectivo destinatário, não podendo o conteúdo dos mesmos ser alterado. Caso tenha recebido este e-mail indevidamente, queira informar de imediato o remetente e proceder à destruição da mensagem.
CONFIDENTIALITY WARNING: This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Their contents may not be altered. If you have received this e-mail in error please notify the sender and destroy it immediately.
More information about the live-devel
mailing list