Re: How can I config rtmpd to auto reconnect to Rtsp Source or Ignore video packet error.

416 views
Skip to first unread message

任也

unread,
Jul 17, 2012, 6:03:30 AM7/17/12
to c-rtmp...@googlegroups.com
I add a line "keepAlive=true" to "externalStreams" area, it works ok for about half an hour now and still ok
I will going to test it for one night

在 2012年7月17日星期二UTC+8上午11时17分27秒,任也写道:
Hello,
       I have an IPCamra which support rtsp protocol, I use rtmpd to transform the rtsp stream to rtmp so that web browsers can play the stream. I config a externalstream like this:
       It works, but just works for a short while. Every time a message like "Missing video packet. Wanted: XXXX; got: 21328 on stream: haikangteststream" appears in rtmpd log, rtmpd will disconnect to IPCamra and never reconnect to it again. Every time the packets Wanted are different, but the packets Got are same(21328). May be there are something wrong with the RTP packet from IPCamra, but when I use VLC to connect to IPCamra directly, it works fine all the time. VLC will never disconnect to the IPCamra.
       Here is the log from rtmpd start up to packet missing happends: http://pastebin.com/5gbbpcr1

       Who can tell me, how can I config rtmpd to auto reconnect to IPCamra, or just ignore the video packet error,

       Thx

C++ RTMP Server

unread,
Jul 17, 2012, 6:06:26 AM7/17/12
to c-rtmp...@googlegroups.com
The problem is "rtspprotocol.cpp:585:ParseNormalHeaders:Headers section too long"

So, the camera is doing something wrong. If VLC is working, that doesn't mean is 100% ok. Read my prev. posts regarding this statement.
I think you should give me a private email with the link for that camera. I can debug it better

Best regards,
Andrei
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

------
C++ RTMP Server
Web: http://www.rtmpd.com




任也

unread,
Jul 17, 2012, 6:10:25 AM7/17/12
to c-rtmp...@googlegroups.com
Thx, Andrei, 
My camera is in local subnet, I will let company's admin to make a port mapping on the router and then I will email you an url

Thx

2012/7/17 C++ RTMP Server <crtmp...@gmail.com>

任也

unread,
Jul 17, 2012, 6:26:30 AM7/17/12
to c-rtmp...@googlegroups.com
is there any solutions to make rtmpd to reconncet to my IPCamera?
I have read the prev. post, and I find i need a patch to fix this problem, but the patch is for revision 717. I can't find revision 717, what a pitty.

I think reconnect function is very import for robustness.

在 2012年7月17日星期二UTC+8下午6时06分26秒,Eugen-Andrei Gavriloaie写道:

C++ RTMP Server

unread,
Jul 17, 2012, 7:25:25 AM7/17/12
to c-rtmp...@googlegroups.com
Yes, is very important. And people are free to implement it. We already have it implemented in the commercial version (EvoStream). See http://www.evostream.com for details.
If you still want to use 717, than do "svn -r717 up" on your working copy, apply the patch than do "svn up" again (no rev number this time) to go back on the head. Hopefully, this will not generate any conflicts and you end up with the head version and the patch applied

Best regards,
Andrei
> > c-rtmp-serve...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/c-rtmp-server?hl=en
>
> ------
> C++ RTMP Server
> Web: http://www.rtmpd.com
>
>
>
>
>
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com

任也

unread,
Jul 17, 2012, 8:36:47 AM7/17/12
to c-rtmp...@googlegroups.com
Thx for your advise, 
I found a binary patch, haha

2012/7/17 C++ RTMP Server <crtmp...@gmail.com>
Yes, is very important. And people are free to implement it. We already have it implemented in the commercial version (EvoStream). See http://www.evostream.com for details.

任也

unread,
Jul 17, 2012, 11:00:36 PM7/17/12
to c-rtmp...@googlegroups.com
Evo Stream Server is Good, But it seems like that I need to pay for it if I want to use it to setup up my service, haha.


在 2012年7月17日星期二UTC+8下午7时25分25秒,Eugen-Andrei Gavriloaie写道:
> > For more options, visit this group at
> > http://groups.google.com/group/c-rtmp-server?hl=en
>
> ------
> C++ RTMP Server
> Web: http://www.rtmpd.com
>
>
>
>
>
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
Reply all
Reply to author
Forward
0 new messages