Basic, simple RTSP to RTMP streaming

7,487 views
Skip to first unread message

Timothy Vermeiren

unread,
Dec 22, 2011, 12:17:52 PM12/22/11
to c-rtmp...@googlegroups.com
Hello all,

I am trying to set up crtmpserver to perform the following task:

IP Cam ---(RTSP)---> crtmpserver ---(RTMP)---> Anything

In other words, a very simple RTSP to RTMP stream conversion... However, I can't seem to figure out what to change in the config file. Here is what I have modified: http://pastebin.com/577CcrFi (just the flvplayback part)...

When trying to connect through VLC, I always get an unable to connect error. This happens when using any connection string I can think of... rtmp://<server_ip>:1935/flvplayback - rtmp://<server_ip>:1935/flvplayback/ip_cam - rtsp://<server_ip>:5544/flvplayback - rtsp://<server_ip>:5544/flvplayback/ip_cam; neither RTSP or RTMP work.

What am I doing wrong with this config? Or does this have to do with something else than the crtmpserver config? I suggest someone could post a sample .lua file, with the most basic, rudimentary configuration as to handle rtsp to rtmp, and we could see if that works? Or else, what's wrong in my .lua file?

Thanks in advance for the help!

Timothy Vermeiren

unread,
Jan 9, 2012, 1:45:44 PM1/9/12
to C++ RTMP Server
Anyone? I'm guessing this is a relatively simple problem...

On Dec 22 2011, 6:17 pm, Timothy Vermeiren <timo...@gmail.com> wrote:
> Hello all,
>
> I am trying to set up crtmpserver to perform the following task:
>
> IP Cam ---(RTSP)---> crtmpserver ---(RTMP)---> Anything
>
> In other words, a very simple RTSP to RTMP stream conversion... However, I
> can't seem to figure out what to change in the config file. Here is what I
> have modified:http://pastebin.com/577CcrFi(just the flvplayback part)...

C++ RTMP Server

unread,
Jan 9, 2012, 1:58:45 PM1/9/12
to c-rtmp...@googlegroups.com
I'm going to take a look at it and come back with a response today. It would be nice if you could give me a link to your RTSP camera to test it. Do that by private email if necessary.

Cheers,
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

Timothy Vermeiren

unread,
Jan 12, 2012, 11:10:03 AM1/12/12
to C++ RTMP Server
Clarification:

I manage to stream flv files through crtmp without a problem. For
instance, when I put "test.flv" in the applications/flvplayback/media"
folder, I can access it through a flash application, using an
FLVPlayback component and setting its source to "rtmp://
<ip_of_crtmp_server>/flvplayback/test". The only problem is, how do I
access the rtsp stream? Using "live" or "ip_cam" (the localStreamName
in the config) in the url gives me an error ("no live streams found",
etc).

Does this help on resolving the matter?

Cheers

On Jan 9, 7:58 pm, C++ RTMP Server <crtmpser...@gmail.com> wrote:
> I'm going to take a look at it and come back with a response today. It would be nice if you could give me a link to your RTSP camera to test it. Do that by private email if necessary.
>
> Cheers,
> Andrei
>
> On Jan 9, 2012, at 8:45 PM, Timothy Vermeiren wrote:
>
> > Anyone? I'm guessing this is a relatively simple problem...
>
> > On Dec 22 2011, 6:17 pm, Timothy Vermeiren <timo...@gmail.com> wrote:
> >> Hello all,
>
> >> I am trying to set up crtmpserver to perform the following task:
>
> >> IP Cam ---(RTSP)---> crtmpserver ---(RTMP)---> Anything
>
> >> In other words, a very simple RTSP to RTMP stream conversion... However, I
> >> can't seem to figure out what to change in the config file. Here is what I
> >> have modified:http://pastebin.com/577CcrFi(justthe flvplayback part)...
>
> >> When trying to connect through VLC, I always get an unable to connect
> >> error. This happens when using any connection string I can think of...
> >> rtmp://<server_ip>:1935/flvplayback -
> >> rtmp://<server_ip>:1935/flvplayback/ip_cam -
> >> rtsp://<server_ip>:5544/flvplayback -
> >> rtsp://<server_ip>:5544/flvplayback/ip_cam; neither RTSP or RTMP work.
>
> >> What am I doing wrong with this config? Or does this have to do with
> >> something else than the crtmpserver config? I suggest someone could post a
> >> sample .lua file, with the most basic, rudimentary configuration as to
> >> handle rtsp to rtmp, and we could see if that works? Or else, what's wrong
> >> in my .lua file?
>
> >> Thanks in advance for the help!
>
> > 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
>
>
>
>  smime.p7s
> 6KViewDownload
Message has been deleted
Message has been deleted
Message has been deleted

Timothy Vermeiren

unread,
Jan 12, 2012, 12:52:42 PM1/12/12
to C++ RTMP Server
Okay, yet more progress on the issue... I can now connect to
rtmp://<server_ip>/live/cam! I had forgotten a pair of paranthesis in
the config file. One problem left... there is no video! I see just a
black canvas (while the test flv video did work with video and
audio)...

I do get to red error messages when starting crtmp:
"Video doesn't have sprop-parameter-sets" and "video track index 0 not
found"
Then, the console constantly gives warnings saying "Missing audio
packet. Wanted x; got: y on stream: cam".

The same happens when using the standard test application (http://
dl.dropbox.com/u/2918563/flvplayback.swf).

Sooo... Are we coming closer? :)

On Jan 12, 6:20 pm, Timothy Vermeiren <timo...@gmail.com> wrote:
> For instance, I am not able to access "rtmp://<server_ip>/flvplayback/
> cam" (the localStreamName of the external stream) through Flash. It
> just gives me an error ("no live stream found")...
>
> Any ideas?

Timothy Vermeiren

unread,
Jan 16, 2012, 3:01:22 PM1/16/12
to C++ RTMP Server
Oh, and it also warns (in yellow): "sdp.cpp:413 Invalid codec: MP4V-
ES"...

Greetings

Timothy Vermeiren

unread,
Jan 17, 2012, 3:20:25 PM1/17/12
to C++ RTMP Server
So obviously, that last message means that the stream coming from the
camera is in the wrong format... It works when I take the stream from
the camera into VLC, and transcode it into h264 + aac (mp4)...

Now all I am waiting for is to find the binaries for Windows... I'm
working on a project in which I can't use Linux, but the Windows
binaries seem to have vanished from the website, and I can't get it to
compile, as I don't have enough experience with that.

Cheers, at least I got something now :)

chettai

unread,
Jan 13, 2012, 2:44:18 AM1/13/12
to C++ RTMP Server
hi ,

am very intrested in CRTMP server .. its workd well n installed simply
than RED5.. so i prefer CRTMP server
here is an example which am doing streaming with CRTMP server . its
successfully working now..

live cam source --->laptop--->CRTMP server----> player(web player in
site )

first of all i installed and run crtmp server in my server.and run it
like

#root@chettai's:/# ./crtmpserver/crtmpserver crtmpserver/
crtmpserver_live.lua

(src: http://trac.rtmpd.com/browser/trunk/builders/cmake/crtmpserver/crtmpserver.lua?rev=349
)

and keep my terminal open ..

then i installed adobe live encoder for live stream feeding purpose.
and gave

rtmp://<server-ip>/flvplayback

livestream name as:somelive

then connected

after that i connected live output from live cam source and selected
in adobe live encoder and started streaming.

then installed jwplayer and got the code for streaming player
from :http://www.longtailvideo.com/support/jw-player-setup-wizard

my stream is rtmp://<server ip>/flvplayback
and file': 'somelive.flv'

then the stream will play directly ... perfectly..

let me know if its helped ... :)


Stream it ,Dream it..

tmganza allan

unread,
Nov 3, 2015, 4:30:21 PM11/3/15
to C++ RTMP Server
yeah let met try cause i used red 5 but i cante see the video on other conected machine:

i installed red 5 on local machine bu when i try to ping (ask access to the published video) via an other machine ,but no success but on the local machine i can easyly whatch it


now i think it s a  turn for 

 CRTMP server

thank u


but if somme body has an enswer to my blem plz reply
Reply all
Reply to author
Forward
0 new messages