Package: crtmpserver
Version: 1.0~dfsg-3

        I'm loosely following an example in [1], trying to set up
        crtmpserver to relay a live stream.

        The stream is fed via avconv(1), like:

$ avconv \
      -f x11grab -s cif -r 5 -i :0 \
      -f flv -metadata streamName=livestream tcp://127.0.0.1:6666/ 

        Which is apparently accepted by crtmpserver.

        However, when I try to use VLC to retrieve this stream, the
        latter fails:

$ cvlc rtmp://127.0.0.1/live/livestream 
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x1e201f8] dummy interface: using the dummy interface module...
Using network protocols without global network initialization. Please use 
avformat_network_init(), this will become mandatory later.
HandShake: client signature does not match!
rtmp server sent error
RTMP_ReadPacket, failed to read RTMP packet header
[0x1e3ba38] access_avio access error: Failed to open 
rtmp://127.0.0.1/live/livestream: Operation not permitted
[0x202c5d8] main input error: open of `rtmp://127.0.0.1/live/livestream' failed
[0x202c5d8] main input error: Your input can't be opened
[0x202c5d8] main input error: VLC is unable to open the MRL 
'rtmp://127.0.0.1/live/livestream'. Check the log for details.

        The relevant crtmpserver log fragments are MIME'd.  (Somehow,
        I'd expect that TryLinkToLiveStream to be mentioned there just
        as well, but only TryLinkToFileStream actually shows up.)

        Any suggestions?

        TIA.

[1] 
http://howtoforge.com/streaming-your-desktop-with-audio-and-webcam-overlay-in-a-browser-using-ffmpeg-crtmpserver-and-flowplayer

-- 
FSF associate member #7257      http://sfd.am-1.org/
1347330779:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/netio/epoll/tcpacceptor.cpp:154:Accept:Client
 connected: 127.0.0.1:50850 -> 0.0.0.0:6666
1347330779:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/liveflv/inboundliveflvprotocol.cpp:46:Initialize:parameters:
<MAP name="" isArray="false">
    <STR name="ip">0.0.0.0</STR>
    <UINT16 name="port">6666</UINT16>
    <STR name="protocol">inboundLiveFlv</STR>
    <STR name="sslCert"></STR>
    <STR name="sslKey"></STR>
    <BOOL name="waitForMetadata">true</BOOL>
</MAP>
1347330779:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/liveflv/inboundliveflvprotocol.cpp:51:Initialize:_waitForMetadata:
 1
1347330779:4:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/netio/epoll/iohandlermanager.cpp:100:RegisterIOHandler:Handlers
 count changed: 6->7 IOHT_TCP_CARRIER
1347330779:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/liveflv/baseliveflvappprotocolhandler.cpp:45:RegisterProtocol:protocol
 CTCP(10) <-> TCP(30) <-> [ILFL(31)] registered to app flvplayback
1347330780:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:227:SignalStreamRegistered:Stream
 INLFLV(10) with name `livestream` registered to application `flvplayback` from 
protocol ILFL(31)
1347330780:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/liveflv/inboundliveflvprotocol.cpp:184:SignalInputData:Stream
 metadata:
<MAP name="" isArray="true">
    <MAP name="__index__value__0" isArray="true">
        <DOUBLE name="duration">0.000</DOUBLE>
        <STR name="encoder">Lavf53.21.0</STR>
        <DOUBLE name="filesize">0.000</DOUBLE>
        <DOUBLE name="framerate">5.000</DOUBLE>
        <DOUBLE name="height">288.000</DOUBLE>
        <STR name="streamName">livestream</STR>
        <DOUBLE name="videocodecid">2.000</DOUBLE>
        <DOUBLE name="videodatarate">195.312</DOUBLE>
        <DOUBLE name="width">352.000</DOUBLE>
    </MAP>
</MAP>
1347330894:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/netio/epoll/tcpacceptor.cpp:154:Accept:Client
 connected: 127.0.0.1:39834 -> 0.0.0.0:1935
1347330894:4:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/netio/epoll/iohandlermanager.cpp:100:RegisterIOHandler:Handlers
 count changed: 7->8 IOHT_TCP_CARRIER
1347330894:2:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/inboundrtmpprotocol.cpp:123:ValidateClient:This
 version of player doesn't support validation
1347330894:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/applications/appselector/src/rtmpappprotocolhandler.cpp:83:ProcessInvokeConnect:Selected
 application: flvplayback (live)
1347330894:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:216:UnRegisterProtocol:Protocol
 CTCP(11) <-> TCP(34) <-> [IR(35)] unregistered from application: appselector
1347330894:2:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:507:ProcessUsrCtrl:User
 control message type: RM_USRCTRL_TYPE_STREAM_SET_BUFFER_LENGTH
1347330894:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:227:SignalStreamRegistered:Stream
 NR(13) with name `` registered to application `flvplayback` from protocol 
IR(35)
1347330894:2:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1241:ProcessInvokeGeneric:Default
 implementation of ProcessInvokeGeneric: Request: _checkbw
1347330894:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:238:SignalStreamUnRegistered:Stream
 NR(13) with name `` unregistered from application `flvplayback` from protocol 
IR(35)
1347330894:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:227:SignalStreamRegistered:Stream
 NR(14) with name `` registered to application `flvplayback` from protocol 
IR(35)
1347330894:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:892:ProcessInvokePlay:Play
 request for stream name `livestream`. Start: 0; length: -1
1347330894:0:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/streaming/infilertmpstream.cpp:262:GetInstance:File
 not found. fullPath: ``
1347330894:0:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpprotocol.cpp:505:CreateIFS:Unable
 to get file stream. Metadata:
<MAP name="" isArray="false">
    <INT32 name="clientSideBuffer">12</INT32>
    <BOOL name="externSeekGenerator">false</BOOL>
    <STR name="fileName">livestream.flv</STR>
    <STR name="fullPath"></STR>
    <BOOL name="keyframeSeek">true</BOOL>
    <STR name="mediaDir">/var/lib/crtmpserver/mediaFolder/</STR>
    <BOOL name="renameBadFiles">false</BOOL>
    <STR name="requestedStreamName">livestream</STR>
    <MAP name="rtmpMeta" isArray="false">
        <STR name="Server">C++ RTMP Server (http://www.rtmpd.com)</STR>
    </MAP>
    <UINT32 name="seekGranularity">1000</UINT32>
    <STR name="streamType">flv</STR>
</MAP>
1347330894:2:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1966:TryLinkToFileStream:No
 file streams found: livestream
1347330894:0:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/rtmp/basertmpprotocol.cpp:799:ProcessBytes:Unable
 to send rtmp message to application
1347330894:0:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/netio/epoll/tcpcarrier.cpp:88:OnEvent:Unable
 to signal data available
1347330894:4:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/netio/epoll/iohandlermanager.cpp:109:UnRegisterIOHandler:Handlers
 count changed: 8->7 IOHT_TCP_CARRIER
1347330894:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/protocols/protocolmanager.cpp:44:EnqueueForDelete:Enqueue
 for delete for protocol [IR(35)]
1347330894:3:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:238:SignalStreamUnRegistered:Stream
 NR(14) with name `` unregistered from application `flvplayback` from protocol 
IR(35)
1347330894:6:/build/crtmpserver-cg4puE/crtmpserver-1.0~dfsg/thelib/src/application/baseclientapplication.cpp:216:UnRegisterProtocol:Protocol
 [IR(35)] unregistered from application: flvplayback

Reply via email to