I'm trying to use ffmpeg with librtmp to play a live cam with no luck. It keeps logging <i>RTMP_ReadPacket: fd=7</i> on the console. However, rtmpdump works fine with the same url.<div>Am I missing anyting when using librtmp?</div>
<div><br></div><div>For rtmpdump, I use the following which works fine:</div><div>rtmpdump -r rtmp://<a href="http://212.175.65.69/live">212.175.65.69/live</a> -a live -y BQWERTM -v -o output.flv</div><div><br></div><div>
For ffmpeg with librtmp (v2.3):</div><div>ffplay "rtmp://<a href="http://212.175.65.69:1935/live/BQWERTM">212.175.65.69:1935/live/BQWERTM</a> live=1" -debug 5</div><div>and got the following on the console:</div>
<div><br></div><div><div>FFplay version SVN-r25775, Copyright (c) 2003-2010 the FFmpeg developers</div><div> built on Nov 21 2010 08:30:21 with gcc 4.2.1 (Apple Inc. build 5664)</div><div> configuration: --enable-librtmp --disable-encoders --disable-yasm --arch=x86_64</div>
<div> libavutil 50.33. 0 / 50.33. 0</div><div> libavcore 0.13. 0 / 0.13. 0</div><div> libavcodec 52.96. 0 / 52.96. 0</div><div> libavformat 52.84. 0 / 52.84. 0</div><div> libavdevice 52. 2. 2 / 52. 2. 2</div>
<div> libavfilter 1.62. 0 / 1.62. 0</div><div> libswscale 0.12. 0 / 0.12. 0</div><div>Parsing...</div><div>Parsed protocol: 0</div><div>Parsed host : 212.175.65.69</div><div>Parsed app : live</div><div>RTMP_Connect1, ... connected, handshaking</div>
<div>HandShake: Type Answer : 03</div><div>HandShake: Server Uptime : 98148230</div><div>HandShake: FMS Version : 0.0.0.0</div><div>HandShake: Handshaking finished....</div><div>RTMP_Connect1, handshaked</div><div>RTMP_SendPacket: fd=7, size=174</div>
<div>Invoking connect</div><div>RTMP_ReadPacket: fd=7</div><div>HandleServerBW: server BW = 2500000</div><div>RTMP_ReadPacket: fd=7</div><div>HandleClientBW: client BW = 2500000 2</div><div>RTMP_ReadPacket: fd=7</div><div>
HandleCtrl, received ctrl. type: 0, len: 6</div><div>HandleCtrl, Stream Begin 0</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 191 bytes</div><div>(object begin)</div>
<div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_result></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>1.00></div>
<div>Property: <Name: no-name., OBJECT></div><div>(object begin)</div><div>Property: <Name: fmsVer, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>FMS/3,0,0,1157></div>
<div>Property: <Name: capabilities, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>31.00></div><div>(object end)</div><div>Property: <Name: no-name., OBJECT></div><div>(object begin)</div>
<div>Property: <Name: level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>status></div><div>Property: <Name: code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetConnection.Connect.Success></div>
<div>Property: <Name: description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Connection succeeded.></div><div>Property: <Name: objectEncoding, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking <_result></div><div>HandleInvoke, received result for method call <connect></div><div>RTMP_SendPacket: fd=7, size=4</div><div>sending ctrl. type: 0x0003</div>
<div>RTMP_SendPacket: fd=7, size=10</div><div>RTMP_SendPacket: fd=7, size=25</div><div>Invoking createStream</div><div>FCSubscribe: BQWERTM</div><div>RTMP_SendPacket: fd=7, size=34</div><div>Invoking FCSubscribe</div><div>
RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 21 bytes</div><div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onBWDone></div>
<div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div><div>Property: NULL</div><div>(object end)</div><div>HandleInvoke, server invoking <onBWDone></div>
<div>RTMP_SendPacket: fd=7, size=21</div><div>Invoking _checkbw</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 29 bytes</div><div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_result></div>
<div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>2.00></div><div>Property: NULL</div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>1.00></div>
<div>(object end)</div><div>HandleInvoke, server invoking <_result></div><div>HandleInvoke, received result for method call <createStream></div><div>SendPlay, seekTime=0, stopTime=0, sending play: BQWERTM</div>
<div>RTMP_SendPacket: fd=7, size=36</div><div>Invoking play</div><div>sending ctrl. type: 0x0003</div><div>RTMP_SendPacket: fd=7, size=10</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 119 bytes</div>
<div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_error></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>3.00></div>
<div>Property: NULL</div><div>Property: <Name: no-name., OBJECT></div><div>(object begin)</div><div>Property: <Name: level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>error></div>
<div>Property: <Name: code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetConnection.Call.Failed></div><div>Property: <Name: description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Method not found (FCSubscribe).></div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking <_error></div><div>rtmp server sent error</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 35 bytes</div>
<div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_onbwcheck></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>2147513207.00></div>
<div>Property: NULL</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>(object end)</div><div>HandleInvoke, server invoking <_onbwcheck></div><div>RTMP_SendPacket: fd=7, size=29</div><div>Invoking _result</div><div>RTMP_ReadPacket: fd=7</div><div>HandleChangeChunkSize, received: chunk size change to 4096</div>
<div>RTMP_ReadPacket: fd=7</div><div>HandleCtrl, received ctrl. type: 0, len: 6</div><div>HandleCtrl, Stream Begin 1</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 156 bytes</div><div>(object begin)</div>
<div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onStatus></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>Property: NULL</div><div>Property: <Name: no-name., OBJECT></div><div>(object begin)</div><div>Property: <Name: level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>status></div>
<div>Property: <Name: code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetStream.Play.Reset></div><div>Property: <Name: description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Playing and resetting BQWERTM.></div>
<div>Property: <Name: details, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>BQWERTM></div><div>Property: <Name: clientid, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>z8NQcfOJ></div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking <onStatus></div><div>HandleInvoke, onStatus: NetStream.Play.Reset</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 150 bytes</div>
<div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onStatus></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>Property: NULL</div><div>Property: <Name: no-name., OBJECT></div><div>(object begin)</div><div>Property: <Name: level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>status></div>
<div>Property: <Name: code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetStream.Play.Start></div><div>Property: <Name: description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Started playing BQWERTM.></div>
<div>Property: <Name: details, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>BQWERTM></div><div>Property: <Name: clientid, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>z8NQcfOJ></div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking <onStatus></div><div>HandleInvoke, onStatus: NetStream.Play.Start</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: notify 24 bytes</div>
<div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>|RtmpSampleAccess></div><div>Property: <Name: no-name., BOOLEAN:<span class="Apple-tab-span" style="white-space:pre">        </span>FALSE></div>
<div>Property: <Name: no-name., BOOLEAN:<span class="Apple-tab-span" style="white-space:pre">        </span>FALSE></div><div>(object end)</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: notify 346 bytes</div>
<div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onMetaData></div><div>Property: <Name: no-name., OBJECT></div><div>
(object begin)</div><div>Property: <Name: author, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div><div>Property: <Name: copyright, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div>
<div>Property: <Name: description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div><div>Property: <Name: keywords, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div>
<div>Property: <Name: rating, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div><div>Property: <Name: title, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>></div>
<div>Property: <Name: presetname, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Medium Bandwidth (300 Kbps) - VP6></div><div>Property: <Name: creationdate, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Mon Nov 29 13:34:50 2010</div>
<div>></div><div>Property: <Name: videodevice, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>SplitCam Capture></div><div>Property: <Name: framerate, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>15.00></div>
<div>Property: <Name: width, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>320.00></div><div>Property: <Name: height, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>240.00></div>
<div>Property: <Name: videocodecid, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>VP62></div><div>Property: <Name: videodatarate, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>200.00></div>
<div>Property: <Name: videokeyframe_freq, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>5.00></div><div>(object end)</div><div>(object end)</div><div>Metadata:</div><div> author </div>
<div> copyright </div><div> description </div><div> keywords </div><div> rating </div><div> title </div><div> presetname Medium Bandwidth (300 Kbps) - VP6</div>
<div> creationdate Mon Nov 29 13:34:50 2010</div><div> videodevice SplitCam Capture</div><div> framerate 15.00</div><div> width 320.00</div><div> height 240.00</div>
<div> videocodecid VP62</div><div> videodatarate 200.00</div><div> videokeyframe_frequency5.00</div><div>RTMP_ReadPacket: fd=7</div><div>ignoring too small video packet: size: 2</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>ignoring too small video packet: size: 2</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ClientPacket, received: invoke 57 bytes</div><div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onBWDone></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>Property: NULL</div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div><div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div>
<div>(object end)</div><div>HandleInvoke, server invoking <onBWDone></div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 20 bytes</div><div>(object begin)</div><div>Property: <Name: no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_result></div>
<div>Property: <Name: no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00></div><div>Property: NULL</div><div>(object end)</div><div>HandleInvoke, server invoking <_result></div>
<div>HandleInvoke, received result id 0 without matching request</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>[NULL @ 0x101068e00] Probed with size=2048 and score=100</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div>
<div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ReadPacket: fd=7</div></div><div><br></div>