[rtmpdump] Having problem when playing a live cam with librtmp

Mahmut Akcay mahakcay at gmail.com
Thu Dec 2 18:46:54 CET 2010


I'm trying to use ffmpeg with librtmp to play a live cam with no luck. It
keeps logging *RTMP_ReadPacket: fd=7* on the console. However, rtmpdump
works fine with the same url.
Am I missing anyting when using librtmp?

For rtmpdump, I use the following which works fine:
rtmpdump -r rtmp://212.175.65.69/live -a live -y BQWERTM -v  -o output.flv

For ffmpeg with librtmp (v2.3):
ffplay "rtmp://212.175.65.69:1935/live/BQWERTM live=1" -debug 5
and got the following on the console:

FFplay version SVN-r25775, Copyright (c) 2003-2010 the FFmpeg developers
  built on Nov 21 2010 08:30:21 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: --enable-librtmp --disable-encoders --disable-yasm
--arch=x86_64
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.13. 0 /  0.13. 0
  libavcodec    52.96. 0 / 52.96. 0
  libavformat   52.84. 0 / 52.84. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.62. 0 /  1.62. 0
  libswscale     0.12. 0 /  0.12. 0
Parsing...
Parsed protocol: 0
Parsed host    : 212.175.65.69
Parsed app     : live
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer   : 03
HandShake: Server Uptime : 98148230
HandShake: FMS Version   : 0.0.0.0
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
RTMP_SendPacket: fd=7, size=174
Invoking connect
RTMP_ReadPacket: fd=7
HandleServerBW: server BW = 2500000
RTMP_ReadPacket: fd=7
HandleClientBW: client BW = 2500000 2
RTMP_ReadPacket: fd=7
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 0
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 191 bytes
(object begin)
Property: <Name:           no-name., STRING: _result>
Property: <Name:           no-name., NUMBER: 1.00>
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:             fmsVer, STRING: FMS/3,0,0,1157>
Property: <Name:       capabilities, NUMBER: 31.00>
(object end)
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING: status>
Property: <Name:               code, STRING: NetConnection.Connect.Success>
Property: <Name:        description, STRING: Connection succeeded.>
Property: <Name:     objectEncoding, NUMBER: 0.00>
(object end)
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <connect>
RTMP_SendPacket: fd=7, size=4
sending ctrl. type: 0x0003
RTMP_SendPacket: fd=7, size=10
RTMP_SendPacket: fd=7, size=25
Invoking createStream
FCSubscribe: BQWERTM
RTMP_SendPacket: fd=7, size=34
Invoking FCSubscribe
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 21 bytes
(object begin)
Property: <Name:           no-name., STRING: onBWDone>
Property: <Name:           no-name., NUMBER: 0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <onBWDone>
RTMP_SendPacket: fd=7, size=21
Invoking _checkbw
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 29 bytes
(object begin)
Property: <Name:           no-name., STRING: _result>
Property: <Name:           no-name., NUMBER: 2.00>
Property: NULL
Property: <Name:           no-name., NUMBER: 1.00>
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <createStream>
SendPlay, seekTime=0, stopTime=0, sending play: BQWERTM
RTMP_SendPacket: fd=7, size=36
Invoking play
sending ctrl. type: 0x0003
RTMP_SendPacket: fd=7, size=10
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 119 bytes
(object begin)
Property: <Name:           no-name., STRING: _error>
Property: <Name:           no-name., NUMBER: 3.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING: error>
Property: <Name:               code, STRING: NetConnection.Call.Failed>
Property: <Name:        description, STRING: Method not found
(FCSubscribe).>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 35 bytes
(object begin)
Property: <Name:           no-name., STRING: _onbwcheck>
Property: <Name:           no-name., NUMBER: 2147513207.00>
Property: NULL
Property: <Name:           no-name., STRING: >
Property: <Name:           no-name., NUMBER: 0.00>
(object end)
HandleInvoke, server invoking <_onbwcheck>
RTMP_SendPacket: fd=7, size=29
Invoking _result
RTMP_ReadPacket: fd=7
HandleChangeChunkSize, received: chunk size change to 4096
RTMP_ReadPacket: fd=7
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 1
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 156 bytes
(object begin)
Property: <Name:           no-name., STRING: onStatus>
Property: <Name:           no-name., NUMBER: 0.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING: status>
Property: <Name:               code, STRING: NetStream.Play.Reset>
Property: <Name:        description, STRING: Playing and resetting BQWERTM.>
Property: <Name:            details, STRING: BQWERTM>
Property: <Name:           clientid, STRING: z8NQcfOJ>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Play.Reset
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 150 bytes
(object begin)
Property: <Name:           no-name., STRING: onStatus>
Property: <Name:           no-name., NUMBER: 0.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING: status>
Property: <Name:               code, STRING: NetStream.Play.Start>
Property: <Name:        description, STRING: Started playing BQWERTM.>
Property: <Name:            details, STRING: BQWERTM>
Property: <Name:           clientid, STRING: z8NQcfOJ>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Play.Start
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: notify 24 bytes
(object begin)
Property: <Name:           no-name., STRING: |RtmpSampleAccess>
Property: <Name:           no-name., BOOLEAN: FALSE>
Property: <Name:           no-name., BOOLEAN: FALSE>
(object end)
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: notify 346 bytes
(object begin)
Property: <Name:           no-name., STRING: onMetaData>
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:             author, STRING: >
Property: <Name:          copyright, STRING: >
Property: <Name:        description, STRING: >
Property: <Name:           keywords, STRING: >
Property: <Name:             rating, STRING: >
Property: <Name:              title, STRING: >
Property: <Name:         presetname, STRING: Medium Bandwidth (300 Kbps) -
VP6>
Property: <Name:       creationdate, STRING: Mon Nov 29 13:34:50 2010
>
Property: <Name:        videodevice, STRING: SplitCam Capture>
Property: <Name:          framerate, NUMBER: 15.00>
Property: <Name:              width, NUMBER: 320.00>
Property: <Name:             height, NUMBER: 240.00>
Property: <Name:       videocodecid, STRING: VP62>
Property: <Name:      videodatarate, NUMBER: 200.00>
Property: <Name: videokeyframe_freq, NUMBER: 5.00>
(object end)
(object end)
Metadata:
  author
  copyright
  description
  keywords
  rating
  title
  presetname            Medium Bandwidth (300 Kbps) - VP6
  creationdate          Mon Nov 29 13:34:50 2010
  videodevice           SplitCam Capture
  framerate             15.00
  width                 320.00
  height                240.00
  videocodecid          VP62
  videodatarate         200.00
  videokeyframe_frequency5.00
RTMP_ReadPacket: fd=7
ignoring too small video packet: size: 2
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
ignoring too small video packet: size: 2
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 57 bytes
(object begin)
Property: <Name:           no-name., STRING: onBWDone>
Property: <Name:           no-name., NUMBER: 0.00>
Property: NULL
Property: <Name:           no-name., NUMBER: 0.00>
Property: <Name:           no-name., NUMBER: 0.00>
Property: <Name:           no-name., NUMBER: 0.00>
Property: <Name:           no-name., NUMBER: 0.00>
(object end)
HandleInvoke, server invoking <onBWDone>
RTMP_ReadPacket: fd=7
RTMP_ClientPacket, received: invoke 20 bytes
(object begin)
Property: <Name:           no-name., STRING: _result>
Property: <Name:           no-name., NUMBER: 0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result id 0 without matching request
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
[NULL @ 0x101068e00] Probed with size=2048 and score=100
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
RTMP_ReadPacket: fd=7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20101202/3ee2618d/attachment-0001.htm>


More information about the rtmpdump mailing list