Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-14-2012, 02:51 PM
Sk1px Sk1px is offline
Junior Member
 
Join Date: Feb 2012
Posts: 7
Sk1px is on a distinguished road
Lightbulb

Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


Hi!
I want to record a rtmpstream which has geo restrictions. I want to use a simple HTTP-Proxy and configure rtmpdump to use it(I don't want to use additional software). Unfortunately rtmpdump only supports Socks4. But I found a patch which adds HTTP-Proxy support for rtmpdump 2.3: http://web.archiveorange.com/archive...cEnozCqzM5eoX7
I tried that patch on linux and it seems that it works. Now I want to compile a rtmpdump-binary for windows with this patch. But I have some problems because I have not much experience with linux and compiling binaries. It would be great if someone would compile rtmpdump with http-proxy support for windows. I couldn't find anywhere a binary. I think some other people with this issue would appreciate it too.
Reply With Quote
  #2  
Old 02-14-2012, 06:43 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


That patch is over a year old. I tried to hand patch the files, but I cant get it to compile, and I dont know enough C to fix it.

Code:
$ make SHARED= SYS=mingw CRYPTO=POLARSSL XLDFLAGS=-static
make[1]: Entering directory `/c/home/Steven/Desktop/test/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_POLARSSL  -O2    -c -o rtmp.o rtmp.c
In file included from rtmp.c:132:0:
handshake.h: In function 'InitRC4Encryption':
handshake.h:116:16: warning: variable 'digestLen' set but not used [-Wunused-but-set-variable]
rtmp.c: In function 'HandleInvoke':
rtmp.c:2396:23: error: 'RTMP_LNK' has no member named 'hostname'
rtmp.c:2396:49: error: 'RTMP_LNK' has no member named 'hostname'
rtmp.c: In function 'RTMP_ReadPacket':
rtmp.c:3155:7: warning: variable 'didAlloc' set but not used [-Wunused-but-set-variable]
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/c/home/Steven/Desktop/test/librtmp'
make: *** [librtmp/librtmp.a] Error 2

.
I put my efforts at
github.com/downloads/svnpenn/rtmpdump/rtmpdump-HTTP-proxy.7z

if you want to check it out.
Reply With Quote
  #3  
Old 02-15-2012, 11:09 AM
Sk1px Sk1px is offline
Junior Member
 
Join Date: Feb 2012
Posts: 7
Sk1px is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


It seems that you used the source from RTMPdump 2.4. But I think that patch should work with an older version. Can you try to apply the patch on rtmpdump 2.3? A big thanks for your efforts
Reply With Quote
  #4  
Old 02-15-2012, 11:17 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


There have been significant changes since 2.3

I am not going to do that.
Reply With Quote
  #5  
Old 02-15-2012, 11:20 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


if you change the hostname to server.host on the erring line then it should compile properly.
Reply With Quote
  #6  
Old 02-15-2012, 11:29 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


You can put rtmpdump2.4 compiled with support for HTTP-Proxy?
thanks
Reply With Quote
  #7  
Old 02-15-2012, 12:07 PM
Sk1px Sk1px is offline
Junior Member
 
Join Date: Feb 2012
Posts: 7
Sk1px is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


I found an other way: I managed to create a local Socks Proxy and to chain it with a HTTP-Proxy, works fine too
Reply With Quote
  #8  
Old 02-15-2012, 12:40 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


Quote:
Originally Posted by Sk1px View Post
I found an other way: I managed to create a local Socks Proxy and to chain it with a HTTP-Proxy, works fine too
you mentioned in your first post that you don't wanna use additional software otherwise i would have suggested chaining proxies earlier. anyway which software your are using currently?
Reply With Quote
  #9  
Old 02-15-2012, 01:58 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


Quote:
Originally Posted by chap
You can put rtmpdump2.4 compiled with support for HTTP-Proxy?
I created a branch at

github.com/svnpenn/rtmpdump/tree/http-proxy

It compiles, but I dont have time to upload a build right now.
Reply With Quote
  #10  
Old 02-15-2012, 06:20 PM
Sk1px Sk1px is offline
Junior Member
 
Join Date: Feb 2012
Posts: 7
Sk1px is on a distinguished road
Default

Re: Compile RTMPdump for Windows with HTTP-Proxy support by applying a patch


Yes, I want still manage it without additional software otherwise I wouldn't ask. But I'm also satisfied with this way. I managed it by using Charles Webdebugging proxy. It's very userfriendly but it is not freeware. Somehow it should be also possible with 'Socks via Http' but it's more complicated.
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:32 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons