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
  #241  
Old 08-28-2014, 01:09 PM
RedPenguin RedPenguin is offline
Member
 
Join Date: Feb 2012
Posts: 85
RedPenguin is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by denobis View Post
I've added the site 3dbuzz.com to the c-sources. If you want to make a pacth to update the rtmpdump here the notes:

1- the site uses tea-decryption to make a secure response but not in the usual way. The token is received under name "r2"

2- before derypting it you must calculate it through a trivial conversions to make it a hex number.

So the code were something like

1- getting r2 property and calculating it, something like (text=r2 property)

Code:
dbufft(char *text)
		{		  		  		  		  		 
		  int local8,local3,r2size;		  
	 	  char *chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMabcdefghijklmnopqrstuvwxyzabcdefghijklm";	 	  
		  char *local6 = text;
		  r2size = strlen(local6);		  
		  char local2[r2size];	
		  
		  local3 = 0; 
		 
	 	 while (local3 < r2size) 
	 	    {		     
	 	    local8 = local6[local3];
		    							     				     
		    char *b = strchr (chars, local8);
		    int pos = pos ? b - chars : -1; 
		    		    		   		    		    
	 	    if (pos>-1) 
		      {local8=chars[pos + 13];}
		      
		    char local52[2];
		    memcpy( local52, &local8, 1 );
		    local2[local3]=local52[0];
						    
	 	    local3++;
	 	   } 
		    
		memcpy(text, local2, r2size);
                }
2- apply it the DecodeTea algorithm and send the response

Code:
       
else 	if (strstr(host, "3dbuzz.com") || strstr(pageUrl, "3dbuzz.com"))
	         {
                   AVal av_rr = AVC("rr");
		   AVal av_re = AVC(decrypted);
		   SAVC(av_rr);
		   
		   enc = pbuf;                 
                   enc = AMF_EncodeString(enc, pend, &av_rr);
		   enc = AMF_EncodeNumber(enc, pend, 0);
                   *enc++ = AMF_NULL;
                   enc = AMF_EncodeString(enc, pend, &av_re);
                   av_Command.av_val = pbuf;
                   av_Command.av_len = enc - pbuf;
 		   SendInvoke(r, &av_Command, FALSE);      
		   RTMP_SendCreateStream(r);
                  }
i don't know how to make patches, so you're invited.
I could make a patch but not being a programmer, I'm not completely sure where to place those in the code and in which file.

I know how make a patch though.
Reply With Quote
  #242  
Old 08-31-2014, 07:40 AM
msdos msdos is offline
Junior Member
 
Join Date: Aug 2014
Posts: 3
msdos is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by RedPenguin View Post
I could make a patch but not being a programmer, I'm not completely sure where to place those in the code and in which file.

I know how make a patch though.
hello can share the source code to compile thanks
Reply With Quote
  #243  
Old 09-02-2014, 05:32 AM
mckv mckv is offline
Senior Member
 
Join Date: Mar 2011
Posts: 104
mckv is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Code:
--- src/rtmpdump-ksv/librtmp/rtmp.c	2014-09-02 13:28:09.918373926 +0300
+++ src/rtmpdump-ksv/librtmp/rtmp.c.new	2014-09-02 13:28:54.201460552 +0300
@@ -3162,7 +3162,7 @@
             }
           else if (strstr(pageUrl, "ezcast.tv"))
             {
-              SendCommand(r, "jaSakamCarevataKerka", TRUE);
+              SendCommand(r, "iUsteJaSakamCarevataKerka", TRUE);
               RTMP_SendCreateStream(r);
             }
           else if (strstr(pageUrl, "liveflash.tv"))
Reply With Quote
  #244  
Old 09-03-2014, 06:41 PM
jhb50 jhb50 is offline
Member
 
Join Date: Nov 2011
Posts: 54
jhb50 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


@KSV

Would it be possible for you to add the folllowing to your next compile along with that for zenex as provided by Red Penguin?

I am a major user of your moded rtmpdump in my Serviio Web site plugins where I have a script for each source, so a better solution would be to have an rtmpdump parameter that accepts a "Create" string just like I use the "Conn" string when required.

Any chance of adding that parameter support to your mods as well so we can stop bugging you?

Without this mod I am DOA when playing news channels such as http://www.zahipedia.net/2009/07/02/...e-news-online/

+ else if (strstr(pageUrl, "janjua.tv"))
+ {
+ SendCommand(r, "soLagaDaSeStoriAga", TRUE);
+ RTMP_SendCreateStream(r);
+ }

Thank you for all your support!
Reply With Quote
  #245  
Old 09-04-2014, 02:46 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Customized rtmpdump binaries with patch file


i haven't looked into rtmpdump for quite sometime. if somebody could provide all the required fixes from last few pages in one post i can try to incorporate them in next binary release.
Reply With Quote
  #246  
Old 09-04-2014, 06:10 AM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Hi,

for all the sites which send special commands there is no need recompile every time with the new parameters. In general, the sites supported with only this instructions

Code:
SendCommand(r, "something", TRUE);
		      SendGetStreamLength(r);
	              RTMP_SendCreateStream(r);
can go together. More, you don't need to specify the site but only the presence of the command line option related, for example

Code:
	  else if (r->Link.tcomm.av_len)  
	  	{
		param_count = strsplit(r->Link.tcomm.av_val, FALSE, ';', &params); 
                SendCommand(r, params[0], params[1]);
	        SendGetStreamLength(r);
                RTMP_SendCreateStream(r); 		  
		}
where tcomm is the command-line option passed to rtmpdump with -K option in the form "command,bool". For ucaster,

-K "vujkoMiLazarBarakovOdMonospitovo;TRUE"

so the rtmpdump command would be

Code:
rtmpdump -r "rtmp://212.7.209.16/live/tvccomp?id=72042" -a "live" -f "WIN 14,0,0,179" -p "http://www.ucaster.eu/embedded/tvccomp/1/620/382" -W 

"http://www.ucaster.eu/static/scripts/fplayer.swf" -K "vujkoMiLazarBarakovOdMonospitovo;TRUE" -y "tvccomp?id=72042" -m "5000" -o "tvcpuebla1.flv" -C S:OK
this applies to

TRUE
// pc3oot.us.to "StreamPiraten"
// ezcast.tv "iUsteJaSakamCarevataKerka"
// liveflash.tv "kaskatija"
// mips.tv "gaolVanus"
// ucaster.eu "vujkoMiLazarBarakovOdMonospitovo"
// yukons.net "trxuwaaLahRKnaechb"
// yycast.com "trajkoProkopiev"
// "streamify.tv") || strstr(pageUrl, "zenex.tv" "trajkoProkopiev" keGoVidishStambolSoseBardovci
// janjua.tv "soLagaDaSeStoriAga"

FALSE

// strstr(host, "streamscene.cc") || strstr(pageUrl, "streamscene.cc")
|| strstr(host, "tsboard.tv") || strstr(pageUrl, "teamstream.in")
|| strstr(host, "hdstreams.tv") || strstr(pageUrl, "teamstream.to")
|| strstr(pageUrl, "istreams.to") || strstr(pageUrl, "axcast.com")
|| strstr(pageUrl, "dhmediahosting.com") "r"
// axcast.com "requestData"
// dhmediahosting.com "netStreamEnable"

The advantages seem obvious cause you can change the command parameter and support new sites automatically.

I've just compiled this version

http://www.mediafire.com/download/xu...d/rtmpdump.exe
Reply With Quote
  #247  
Old 09-04-2014, 07:02 AM
mckv mckv is offline
Senior Member
 
Join Date: Mar 2011
Posts: 104
mckv is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


mips.tv is gaolVanusPobeleVoKosata
Reply With Quote
  #248  
Old 09-04-2014, 09:33 AM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Testing site

Code:
rtmpdump -r "rtmp://77.92.76.182/live" -a "live" -f "WIN 11,5,502,146" -W "http://www.janjua.tv/resources/scripts/eplayer.swf" -p "http://www.janjua.tv/embedplayer/disney2021/1/600/385" -C S:OK  -y "disney2021?id=15838" -K "soLagaDaSeStoriAga;TRUE" -o "disney.flv"
with the compiled rtmpdump
Reply With Quote
  #249  
Old 09-04-2014, 09:43 AM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by mckv View Post
mips.tv is gaolVanusPobeleVoKosata
Could you test mips.tv with the -K option?
Reply With Quote
  #250  
Old 09-04-2014, 11:21 AM
jhb50 jhb50 is offline
Member
 
Join Date: Nov 2011
Posts: 54
jhb50 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Outstanding! Confirmed mips and janjua work with -K
Have you left old code for compat purposes if -K is not specified?
Also is the base code rtmpdump 2.4?
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 05:04 PM.


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