<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I would like to give more information to nginx-rtmp-module maintainer, so I used wireshark to capture the communication: </div><div><br></div><div>$ rtmpdump -B 0.01 -r <a href="rtmp://video2.tercermilenio.tv/vod/mp4:449-1.250-360.mp4">rtmp://video2.tercermilenio.tv/vod/mp4:449-1.250-360.mp4</a></div><div><br><div>103<span class="Apple-tab-span" style="white-space:pre"> </span>1.577491000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>163<span class="Apple-tab-span" style="white-space:pre"> </span>Handshake C0+C1</div><div>128<span class="Apple-tab-span" style="white-space:pre"> </span>1.812334000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>162<span class="Apple-tab-span" style="white-space:pre"> </span>Handshake C2</div><div><br></div><div>145<span class="Apple-tab-span" style="white-space:pre"> </span>2.022642000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>162<span class="Apple-tab-span" style="white-space:pre"> </span>Handshake S0+S1+S2</div><div><br></div><div>148<span class="Apple-tab-span" style="white-space:pre"> </span>2.022976000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>148<span class="Apple-tab-span" style="white-space:pre"> </span>connect('vod')</div><div><br></div><div>163<span class="Apple-tab-span" style="white-space:pre"> </span>2.266173000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>82<span class="Apple-tab-span" style="white-space:pre"> </span>Window Acknowledgement Size 5000000</div><div>181<span class="Apple-tab-span" style="white-space:pre"> </span>2.474262000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>301<span class="Apple-tab-span" style="white-space:pre"> </span>Set Peer Bandwidth 5000000,Dynamic | Set Chunk Size 4096 | _result('NetConnection.Connect.Success')</div><div><br></div><div>183<span class="Apple-tab-span" style="white-space:pre"> </span>2.474912000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>82<span class="Apple-tab-span" style="white-space:pre"> </span>Window Acknowledgement Size 5000000</div><div>184<span class="Apple-tab-span" style="white-space:pre"> </span>2.474914000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>84<span class="Apple-tab-span" style="white-space:pre"> </span>Set Buffer Length 0,300ms</div><div>185<span class="Apple-tab-span" style="white-space:pre"> </span>2.474915000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>99<span class="Apple-tab-span" style="white-space:pre"> </span>createStream()</div><div><br></div><div>199<span class="Apple-tab-span" style="white-space:pre"> </span>2.709950000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>107<span class="Apple-tab-span" style="white-space:pre"> </span>_result()</div><div><br></div><div>201<span class="Apple-tab-span" style="white-space:pre"> </span>2.710364000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>137<span class="Apple-tab-span" style="white-space:pre"> </span>play('mp4:449-1.250-360.mp4')</div><div>202<span class="Apple-tab-span" style="white-space:pre"> </span>2.710389000<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>77<span class="Apple-tab-span" style="white-space:pre"> </span>Set Buffer Length 1,36000000ms</div><div><br></div><div>215<span class="Apple-tab-span" style="white-space:pre"> </span>2.920354000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>84<span class="Apple-tab-span" style="white-space:pre"> </span>Stream Begin 1</div><div>217<span class="Apple-tab-span" style="white-space:pre"> </span>2.945028000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>1506<span class="Apple-tab-span" style="white-space:pre"> </span>onStatus('NetStream.Play.Start') | Stream Is Recorded 1 | onMetaData() | Video Data | Audio Data</div><div>228<span class="Apple-tab-span" style="white-space:pre"> </span>2.954073000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>1506<span class="Apple-tab-span" style="white-space:pre"> </span>Video Data</div><div>230<span class="Apple-tab-span" style="white-space:pre"> </span>2.955202000<span class="Apple-tab-span" style="white-space:pre"> </span>SERVER<span class="Apple-tab-span" style="white-space:pre"> </span>192.168.1.90<span class="Apple-tab-span" style="white-space:pre"> </span>RTMP<span class="Apple-tab-span" style="white-space:pre"> </span>1506<span class="Apple-tab-span" style="white-space:pre"> </span>Audio Data | Video Data | Audio Data | Video Data | Audio Data | Video Data | Audio Data | Video Data | Audio Data | Video Data</div><div>…</div><div><br></div><div>Where does rtmpdump indicate the duration parameter?</div><div><br></div><div>Thank you,</div><div><br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><b>Francis Yáñez</b></div>
</div>
<div><br></div><div><div>El 26/03/2013, a las 02:07, NhJm <<a href="mailto:nhjm449@gmail.com">nhjm449@gmail.com</a>> escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">It looks like nginx-rtmp-module does not honor the duration parameter of play().<br><br>You should probably talk to the maintainer of nginx-rtmp-module about this. :)<br><br>On Tue, Mar 19, 2013 at 2:31 PM, Francis Yáñez <<a href="mailto:fjyaniez@gmail.com">fjyaniez@gmail.com</a>> wrote:<br><blockquote type="cite">Hello,<br><br>I'm triying to partially download a mp4 file though a rtmp stream<br>(server by nginx-rtmp-module) so I can generate a thumbnail without<br>downloading the entire file.<br><br>This is my test:<br><br>$ rtmpdump -B 0.01 -r <a href="rtmp://video2.tercermilenio.tv/vod/mp4:449-1.mp4">rtmp://video2.tercermilenio.tv/vod/mp4:449-1.mp4</a><br>-o test.flv<br><br>When I run the previous command, rtmpdump output includes:<br><br>"For duration: 0.010 sec"<br><br>But it never stops, always downloads 100% of the file. I also tried<br>using the "-v" switch and another stop values, running version 2.3 or<br>current 2.4... with no success. What could be the problem?<br><br>Thank you.<br>_______________________________________________<br>rtmpdump mailing list<br><a href="mailto:rtmpdump@mplayerhq.hu">rtmpdump@mplayerhq.hu</a><br>https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump<br></blockquote>_______________________________________________<br>rtmpdump mailing list<br><a href="mailto:rtmpdump@mplayerhq.hu">rtmpdump@mplayerhq.hu</a><br>https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump<br></blockquote></div><br></div></div></body></html>