[rtmpdump] Librtmp connection problem
chucky at wrutschkow.org
Thu Oct 13 10:55:50 CEST 2011
That was my first thought to but as I wrote rtmpdump.exe worked as
expected on my install so that sort of narrowed it down to being a
matter of how I was using librtmp.
But I actually figured it out my self just yesterday. In Windows
(Winsock2) you have to call WSAStartup bofore using socket functions.
Librtmp doesn't do this. Rtmpdump (in rtmpdump.c) does it before calling
After adding these lines into my project it works:
version = MAKEWORD(1, 1);
return (WSAStartup(version, &wsaData) == 0);
On Wed, 12 Oct 2011 23:24:12 -0400, Kirill Zorin wrote:
> If this had been a problem with librtmp, it would have been reported
> long ago. Most likely something is off with DNS lookups on your
> windows install. Try to ping the host or something, and make sure you
> can connect to it at all, never mind librtmp. In other words dig
> around, considering it's highly unlikely that this is a problem with
> On 2011-10-07, at 7:18 AM, chucky <chucky at wrutschkow.org> wrote:
>> I'm using librtmp in a project of mine. In Linux everything works
>> just fine. When i compile (with QT Creator and mingw) and run my
>> program in Windows however I get:
>>> ERROR: RTMP_HashSWF: connection lost while downloading swfurl
>>> ERROR: Problem accessing the DNS. (addr:
>> from librtmp.
>> Rtmpdump.exe works as expected on the same URL, but in my program
>> librtmp doesn't seem to connect at all. Is it a problem with socket
>> library? I'm totally lost here, don't know where to start.
>> rtmpdump mailing list
>> rtmpdump at mplayerhq.hu
> rtmpdump mailing list
> rtmpdump at mplayerhq.hu
More information about the rtmpdump