I&#39;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 &quot;rtmp://<a href="http://212.175.65.69:1935/live/BQWERTM">212.175.65.69:1935/live/BQWERTM</a> live=1&quot; -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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_result&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>1.00&gt;</div>
<div>Property: &lt;Name:           no-name., OBJECT&gt;</div><div>(object begin)</div><div>Property: &lt;Name:             fmsVer, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>FMS/3,0,0,1157&gt;</div>
<div>Property: &lt;Name:       capabilities, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>31.00&gt;</div><div>(object end)</div><div>Property: &lt;Name:           no-name., OBJECT&gt;</div><div>(object begin)</div>
<div>Property: &lt;Name:              level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>status&gt;</div><div>Property: &lt;Name:               code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetConnection.Connect.Success&gt;</div>
<div>Property: &lt;Name:        description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Connection succeeded.&gt;</div><div>Property: &lt;Name:     objectEncoding, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking &lt;_result&gt;</div><div>HandleInvoke, received result for method call &lt;connect&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onBWDone&gt;</div>
<div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div><div>Property: NULL</div><div>(object end)</div><div>HandleInvoke, server invoking &lt;onBWDone&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_result&gt;</div>
<div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>2.00&gt;</div><div>Property: NULL</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>1.00&gt;</div>
<div>(object end)</div><div>HandleInvoke, server invoking &lt;_result&gt;</div><div>HandleInvoke, received result for method call &lt;createStream&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_error&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>3.00&gt;</div>
<div>Property: NULL</div><div>Property: &lt;Name:           no-name., OBJECT&gt;</div><div>(object begin)</div><div>Property: &lt;Name:              level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>error&gt;</div>
<div>Property: &lt;Name:               code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetConnection.Call.Failed&gt;</div><div>Property: &lt;Name:        description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Method not found (FCSubscribe).&gt;</div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking &lt;_error&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_onbwcheck&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>2147513207.00&gt;</div>
<div>Property: NULL</div><div>Property: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>(object end)</div><div>HandleInvoke, server invoking &lt;_onbwcheck&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onStatus&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>Property: NULL</div><div>Property: &lt;Name:           no-name., OBJECT&gt;</div><div>(object begin)</div><div>Property: &lt;Name:              level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>status&gt;</div>
<div>Property: &lt;Name:               code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetStream.Play.Reset&gt;</div><div>Property: &lt;Name:        description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Playing and resetting BQWERTM.&gt;</div>
<div>Property: &lt;Name:            details, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>BQWERTM&gt;</div><div>Property: &lt;Name:           clientid, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>z8NQcfOJ&gt;</div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking &lt;onStatus&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onStatus&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>Property: NULL</div><div>Property: &lt;Name:           no-name., OBJECT&gt;</div><div>(object begin)</div><div>Property: &lt;Name:              level, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>status&gt;</div>
<div>Property: &lt;Name:               code, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>NetStream.Play.Start&gt;</div><div>Property: &lt;Name:        description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Started playing BQWERTM.&gt;</div>
<div>Property: &lt;Name:            details, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>BQWERTM&gt;</div><div>Property: &lt;Name:           clientid, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>z8NQcfOJ&gt;</div>
<div>(object end)</div><div>(object end)</div><div>HandleInvoke, server invoking &lt;onStatus&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>|RtmpSampleAccess&gt;</div><div>Property: &lt;Name:           no-name., BOOLEAN:<span class="Apple-tab-span" style="white-space:pre">        </span>FALSE&gt;</div>
<div>Property: &lt;Name:           no-name., BOOLEAN:<span class="Apple-tab-span" style="white-space:pre">        </span>FALSE&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onMetaData&gt;</div><div>Property: &lt;Name:           no-name., OBJECT&gt;</div><div>
(object begin)</div><div>Property: &lt;Name:             author, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div><div>Property: &lt;Name:          copyright, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div>
<div>Property: &lt;Name:        description, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div><div>Property: &lt;Name:           keywords, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div>
<div>Property: &lt;Name:             rating, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div><div>Property: &lt;Name:              title, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>&gt;</div>
<div>Property: &lt;Name:         presetname, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Medium Bandwidth (300 Kbps) - VP6&gt;</div><div>Property: &lt;Name:       creationdate, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>Mon Nov 29 13:34:50 2010</div>
<div>&gt;</div><div>Property: &lt;Name:        videodevice, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>SplitCam Capture&gt;</div><div>Property: &lt;Name:          framerate, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>15.00&gt;</div>
<div>Property: &lt;Name:              width, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>320.00&gt;</div><div>Property: &lt;Name:             height, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>240.00&gt;</div>
<div>Property: &lt;Name:       videocodecid, STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>VP62&gt;</div><div>Property: &lt;Name:      videodatarate, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>200.00&gt;</div>
<div>Property: &lt;Name: videokeyframe_freq, NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>5.00&gt;</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: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>onBWDone&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>Property: NULL</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div><div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div>
<div>(object end)</div><div>HandleInvoke, server invoking &lt;onBWDone&gt;</div><div>RTMP_ReadPacket: fd=7</div><div>RTMP_ClientPacket, received: invoke 20 bytes</div><div>(object begin)</div><div>Property: &lt;Name:           no-name., STRING:<span class="Apple-tab-span" style="white-space:pre">        </span>_result&gt;</div>
<div>Property: &lt;Name:           no-name., NUMBER:<span class="Apple-tab-span" style="white-space:pre">        </span>0.00&gt;</div><div>Property: NULL</div><div>(object end)</div><div>HandleInvoke, server invoking &lt;_result&gt;</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>