Re: [rtmpd:6116] VLC --> Crtmpserver with sony rz25n mpeg4 as source

357 views
Skip to first unread message

C++ RTMP Server

unread,
Apr 19, 2013, 8:42:36 PM4/19/13
to c-rtmp...@googlegroups.com
Hi,

Please attach the full log or copy-paste it using http://pastebin.com

Also, I think you are on an old revision. Use this to build your own from sources:
http://wiki.rtmpd.com/quickbuild

Best regards,
Andrei
------
C++ RTMP Server
Web: http://www.rtmpd.com

On Apr 19, 2013, at 11:20 PM, Rodrigo Zilli <rzi...@gmail.com> wrote:

> Hi,
> after I got some clue from Andrei to make crtmpserver work with vlc, now I can stream a mp4 file from vlc rtsp to crtmpserver without transcoding.
> My final goal is make a connection with a sony ipela rz25n and stream through rtsp to crtmpserver. That camera desnt support rstp and I can only play through address "http/m4v://myip:8080/mpeg4".
> As I said, a simple mp4 file without transcode its ok, but if I make some transcode like this:
>
> #vlc -vvv file.mp4 --sout '#transcode{vcodec=mp4v,vb=300}:rtp{sdp=rtsp://:5544/stream}'
>
> crtmpserver log said:
> 1366401921:2:/build/buildd/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1966:
> TryLinkToFileStream:No file streams found: camera5
>
> but the config file (applications/flvplayback.lua) that works without transcode is:
> {
> uri="rtsp://serverIP:5544/stream",
> localStreamName="camera5",
> forceTcp=false
> },
>
>
> What can I doing wrong?
>
> thanks for any 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
>
> ---
> You received this message because you are subscribed to the Google Groups "C++ RTMP Server" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to c-rtmp-serve...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Rodrigo Zilli

unread,
Apr 20, 2013, 8:57:03 AM4/20/13
to c-rtmp...@googlegroups.com
Andrei, 
I have installed from apt-get,
here is the log - http://pastebin.com/5zQH6J9W

C++ RTMP Server

unread,
Apr 22, 2013, 6:06:38 AM4/22/13
to c-rtmp...@googlegroups.com
Hi,

You are using a very old version of crtmpserver. Please always compile it from sources.
Second, SDP parser has some (I admit) badly coded constraints. You should just go inside the ParseSDPLineB and replace all its contents with "return true;" statement.

Best regards,
Andrei

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

Rodrigo Zilli

unread,
Apr 22, 2013, 11:03:46 AM4/22/13
to c-rtmp...@googlegroups.com
Andrei,
forgive me but I´m a newbie on that. When I installed the crtmpserver from "apt-get install", it was installed as a service, from the quickbuild instructions I have fetched the latest version. The question is - the ./run command is that for start the service? Isn´t it a way to start like a background service, like the old way I did?

C++ RTMP Server

unread,
Apr 22, 2013, 1:35:08 PM4/22/13
to c-rtmp...@googlegroups.com
If you like that service script, than you just have to compile it from sources and replace the binary on the machine you used apt-get

Best regards,
Andrei
------
C++ RTMP Server
Web: http://www.rtmpd.com

Rodrigo Zilli

unread,
May 20, 2013, 10:30:15 AM5/20/13
to c-rtmp...@googlegroups.com
Hi Andrei, 
I have the latest repo version at /tmp/crtmpserver, how can I compile it? Do I have to overwrite the /usr/sbin/crtmpserver daemon?

C++ RTMP Server

unread,
May 20, 2013, 10:47:46 AM5/20/13
to c-rtmp...@googlegroups.com
Hi,

Here i how:
http://wiki.rtmpd.com/quickbuild

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

Rodrigo Zilli

unread,
May 20, 2013, 3:38:07 PM5/20/13
to c-rtmp...@googlegroups.com
OK
I´ve done that, but when buiding gets 100%, I´ve got this:

[100%] Built target tests
crtmpserver(903): operation not allowed
crtmpserver: any process located
/crtmpserver/src/crtmpserver.cpp:210 C++ RTMP Media Server (www.rtmpd.com) version 1.1_beta build 794 - Gladiator - (built on 2013-05-20T19:14:20.000)
/crtmpserver/src/crtmpserver.cpp:212 Initialize I/O handlers manager: epoll without timerfd_XXXX support
/crtmpserver/src/crtmpserver.cpp:215 Configure modules
/crtmpserver/src/crtmpserver.cpp:221 Plug in the default protocol factory
/crtmpserver/src/crtmpserver.cpp:228 Configure factories
/thelib/src/configuration/module.cpp:97 Loaded factory from application samplefactory
/crtmpserver/src/crtmpserver.cpp:234 Configure acceptors
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 0->1 IOHT_ACCEPTOR
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 1->2 IOHT_ACCEPTOR
/thelib/src/netio/epoll/tcpacceptor.cpp:75 Unable to bind on address: tcp://0.0.0.0:1935; Error was: (98) Address already in use
/thelib/src/configuration/module.cpp:130 Unable to fire up acceptor from this config node: <MAP name="" isArray="false">
    <STR name="ip">0.0.0.0</STR>
    <UINT16 name="port">1935</UINT16>
    <STR name="protocol">inboundRtmp</STR>
    <STR name="sslCert"></STR>
    <STR name="sslKey"></STR>
</MAP>
/thelib/src/configuration/module.cpp:107 Unable to configure acceptor:
<MAP name="" isArray="false">
    <STR name="ip">0.0.0.0</STR>
    <UINT16 name="port">1935</UINT16>
    <STR name="protocol">inboundRtmp</STR>
    <STR name="sslCert"></STR>
    <STR name="sslKey"></STR>
</MAP>
/thelib/src/configuration/configfile.cpp:137 Unable to configure acceptors
/crtmpserver/src/crtmpserver.cpp:236 Unable to configure acceptors
/crtmpserver/src/crtmpserver.cpp:275 Shutting down protocols manager
/crtmpserver/src/crtmpserver.cpp:279 Shutting down I/O handlers manager
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 2->1 IOHT_ACCEPTOR
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 1->0 IOHT_ACCEPTOR
/crtmpserver/src/crtmpserver.cpp:284 Unregister and delete default protocol handler
/crtmpserver/src/crtmpserver.cpp:289 Shutting down applications
/crtmpserver/src/crtmpserver.cpp:292 Delete the configuration
/crtmpserver/src/crtmpserver.cpp:296 Doing final OpenSSL cleanup
/crtmpserver/src/crtmpserver.cpp:299 Shutting down the logger leaving you in the dark. Bye bye... :(



How can I overwrite the libraries and the daemon as I mencioned before with that latest version?
Thanks anyway.

C++ RTMP Server

unread,
May 20, 2013, 4:04:41 PM5/20/13
to c-rtmp...@googlegroups.com
Hi,

The error is self explanatory:
Unable to bind on address: tcp://0.0.0.0:1935; Error was: (98) Address already in use

Something else is running on that port (another instance of crtmpserver?)

Best regards,
Andrei
------
C++ RTMP Server
Web: http://www.rtmpd.com

Reply all
Reply to author
Forward
0 new messages