[rtmpdump] Yet another "Received FLV packet before play()!"

Олег Г verdrehung at gmail.com
Thu Apr 7 19:10:52 CEST 2011


After some research I created more correct patch (I hope).
That's what I found:
With wireshark I could see that this broadcast server doesn't send
NetStream.Play.Start after play request. But it sends
NetStream.Play.PublishNotify. I don't know is such a server response is
correct, but with attached patch rtmpdump seems to work ok.

Now my questions is: could it be librtmp bug?
> This ugly patch solved the problem for me (video downloaded and played
> correctly):
> $ svn diff
> Index: librtmp/rtmp.c
> ===================================================================
> --- librtmp/rtmp.c      (revision 565)
> +++ librtmp/rtmp.c      (working copy)
> @@ -995,6 +995,7 @@
>               (packet.m_packetType == RTMP_PACKET_TYPE_VIDEO) ||
>               (packet.m_packetType == RTMP_PACKET_TYPE_INFO))
>             {
> +             r->m_bPlaying = TRUE;
>               RTMP_Log(RTMP_LOGWARNING, "Received FLV packet before play()!
> Ignoring.");
>               RTMPPacket_Free(&packet);
>               continue;
>
>
> Hi
>> I am trying to download video steam from live broadcast on this site:
>> http://smotri.com/broadcast/list/
>> But all that I get is this warning message:
>> WARNING: Received FLV packet before play()! Ignoring.
>>
>> I can't understand where is a problem. So, I made some script which
>> generates
>> rtmpdump command line for this site: http://paste.kde.org/8762/
>> On my PC output looks like this: http://paste.kde.org/8763/
>>
>> Can anyone execute my test script and tell me where is a problem?
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20110408/872a729c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: librtmp_sm.patch
Type: text/x-diff
Size: 988 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20110408/872a729c/attachment.patch>


More information about the rtmpdump mailing list