Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Customized rtmpdump binaries with patch file

(http://stream-recorder.com/forum/showthread.php?t=16103)

Darby_Crash 12-18-2014 03:09 PM

Re: Customized rtmpdump binaries with patch file


 
Hi to all. Zenex.tv don't work anymore.

biezom 12-18-2014 05:42 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by Darby_Crash (Post 72726)
Hi to all. Zenex.tv don't work anymore.

they changed the -K command
the old, contained in the latest KSV's version does not work -K "keGoVidishStambolSoseBardovci;TRUE"

so you need manually write the new command -K "goVideStambolSoseBardovci;TRUE"

Darby_Crash 12-19-2014 08:49 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by biezom (Post 72727)
they changed the -K command
the old, contained in the latest KSV's version does not work -K "keGoVidishStambolSoseBardovci;TRUE"

so you need manually write the new command -K "goVideStambolSoseBardovci;TRUE"


Thanks biezem. I have solved this yesterday changing the string in the Patch.diff file.
I have used wireshark for retrieve the token.
I didn't knew the K option.
Many thanks to KSV.

mkz1978 12-19-2014 02:56 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by gorilla.maguila (Post 72304)
I've been looking into this issue:

http://stream-recorder.com/forum/hel...te-t19008.html

And I've come to this conclusion:

It seems that when the app is explicitly specified in the command:

Code:

rtmpdump -r "rtmp://185.39.10.134:1735/redirect/" -a "redirect/?token=play@141591954001747" -f "WIN 14,0,0,179" -W "http://www.spasswitz.com/jwplayer5/addplayer/jwplayer.flash.swf" -p "http://www.sitenow.me/embedfr.php?c=1872&width=640&height=360&autostart=true&tk1=6iCVreJJok9hNAu5pszYQ6U0Hq1%2FQQmmVh7x%2FXmsQUrsGyHMPRzN01hTpVpu6A8Ee5J538KCXzWtOYWdt2iL9A%3D%3D&tk2=xk1UrvQ3lZBdhysbnwOqS1qoOA7%2FvG3%2BFYMtZtJ65PU%3D&tk3=QTZ5%2Bx8UqV9oY9WGF1OwCOnvuhBStwHv4DixCuxFg7c%3D" -y "footpluusss_7x1xktw" -o "2014-11-13_05-03-10_footpluusss_7x1xktw.flv" -T "@@stop-stole@@"
And the servers answer with a redirect:

Code:

redirect, STRING:    rtmp://185.39.9.162:1735/vod?token=play@141598783902787
The tcUrl is freed due to the RTMP_LF_FTCU flag being set:

Code:

  if ((r->Link.lFlags & RTMP_LF_FTCU) && !reconnect)
    {
      free(r->Link.tcUrl.av_val);
      r->Link.tcUrl.av_val = NULL;
      r->Link.lFlags ^= RTMP_LF_FTCU;
    }

Thus fails to connect.

To solve it I have modified a couple of lines in rtmp.c and parseurl.c:

Code:

  if ((r->Link.lFlags & RTMP_LF_FTCU) && !reconnect && !r->Link.redirected)
    {
      free(r->Link.tcUrl.av_val);
      r->Link.tcUrl.av_val = NULL;
      r->Link.lFlags ^= RTMP_LF_FTCU;
    }



Code:

  else if (AVMATCH(&method, &av_close))
    {
      if (r->Link.redirected)
        {
          r->Link.redirected = FALSE;
          RTMP_Close(r);
          r->Link.redirected = FALSE;
          RTMP_Log(RTMP_LOGINFO, "trying to connect with redirected url");
          RTMP_Connect(r, NULL);
        }


And in parseUrl.c instead of:

Code:

if ((!ques) && doubleSlash)
          applen -= 1;

to


Code:

if (doubleSlash)
          applen -= 1;


With changes from above, everything seems to work but I'm not sure if these changes are safe.

Maybe @KSV can help.

hi gorilla.maguila I have not found this code
Code:

  if ((r->Link.lFlags & RTMP_LF_FTCU) && !reconnect)
    {
      free(r->Link.tcUrl.av_val);
      r->Link.tcUrl.av_val = NULL;
      r->Link.lFlags ^= RTMP_LF_FTCU;
    }

in rtmp.c

biezom 12-20-2014 06:58 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by mkz1978 (Post 72742)
hi gorilla.maguila I have not found this code
Code:

  if ((r->Link.lFlags & RTMP_LF_FTCU) && !reconnect)
    {
      free(r->Link.tcUrl.av_val);
      r->Link.tcUrl.av_val = NULL;
      r->Link.lFlags ^= RTMP_LF_FTCU;
    }

in rtmp.c

because the original code is not
Code:

if ((r->Link.lFlags & RTMP_LF_FTCU) && !reconnect)
but

Code:

if (r->Link.lFlags & RTMP_LF_FTCU && !reconnect)

cthulhufhtagn 12-31-2014 06:39 AM

Re: Customized rtmpdump binaries with patch file


 
I have a suggestion for a feature in case you find it interesting to add.

Check for the following commands in controlServerThread in rtmpsuck:

l - list the ongoing streams being recorded
s - stop saving a certain stream to a file. It would display a list like the L command, from which you would choose a number for the stream you want to stop saving.

pegerton1 01-12-2015 03:16 PM

Re: Customized rtmpdump binaries with patch file


 
Some noob help please...im using an mx2 with kodi 14 android 4.2.2 and cant play rtmp files...have been looking around and think I need to update my librtemp.so but havent got a clue where to start..help would be greatly appreciated. Getting frustrated...thanks

biezom 01-12-2015 03:23 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by pegerton1 (Post 73239)
Some noob help please...im using an mx2 with kodi 14 android 4.2.2 and cant play rtmp files...have been looking around and think I need to update my librtemp.so but havent got a clue where to start..help would be greatly appreciated. Getting frustrated...thanks

you can try whith this link
http://www.mediafire.com/?x4cvp5hl4m9xr#myfiles

pegerton1 01-12-2015 03:33 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by biezom (Post 73240)

Thanks have been there before but have no clue what to do..is the new librtemp already inthe android apk so just install gotham instead of kodi which i hace now
Thanks

void 01-18-2015 04:35 AM

Re: Customized rtmpdump binaries with patch file


 
the zenex.tv command doesn't work anymore. Someone got the new one?

freez 01-20-2015 03:24 AM

Re: Customized rtmpdump binaries with patch file


 
@ksv & experts , plez latest rtmpdump needs a -k command? , what is -k command for latest sites such ucaster,janjua,ezcast,liveflash..etc & all same clones coz none of them playing only keeps connecting only & no incoming streaming start ?!!! plez help:confused:

nomi 01-20-2015 01:20 PM

Re: Customized rtmpdump binaries with patch file


 
can you help me to found the rtmpdump command for following

http://www.streamer247.com/ptvsports.php

TEOL 01-30-2015 06:57 AM

Re: Customized rtmpdump binaries with patch file


 
At the moment there is a bug in the 2015 version where the same file starts dumping a million times at once for example on ROH Wrestling TV their free show when you rapidly switch from the auto to high quality tab to get the highest quality version.

It dumps the auto and high versions at the same time which is expected but a million files of the high version isn't expected and it slows the downloading down only for all those multiple versions to dump over each other and merge into the one file at the end of downloading anyway.

Yeah, it's a multiplying bug where when they are all finished they merge together anyway as they are the same file name.

Will this be fixed next version so it only grabs the one stream with the same file name at once like the older versions of your RTMPDump where this didn't happen?

There is also this bug where mp3s and m4as from stuff like spotify free (which does work) and deezer free (although this doesn't work yet) ect. saves into a flv when it should save in it's own format but thats just me being picky but RTMPDump should have support for dumping stuff in it's native file extensions rather than flv only as it does have support for downloading some non flv stuff already so it should download to the right name as downloading to the right extension should be a proity for the future of this software as it does catch other stuff so it should put the correct name at the end rather than flv for stuff that isn't.

It's probably not a bug that one but it does bug me as I have to change extensions and everything if I download a Spotify music from flv to mp3.

Other than those and the lack of support for every YouTube format flv, mp4, webm, split audio/video mp4 ect I'm very happy using the RTMPDump and RTMPDumpHelper software and think that when progress improves getting all the setups and real file extensions included and starts dumping without the clone downloading and merging thing then I think rtmpdump would be the best thing going although it's already the best for FLV already it just needs to move forward and include the other major flv style streaming formats rather than having support for them but having to change file extensions yourself.

FLV style streaming media isn't only with the FLV extension anymore rtmpdump is great but it needs the other extensions for streams as well. What you are seeing is still a Flash Video File on these websites but the extensions of the video themselves now are often MP4 dispite being embedded within a FLV Player cleverlly now because the way flash embedded media is done has changed and allows even webm to display in a flash player window.

This probably has been talked about before but just wanted to put my thoughts out there. KSV keep up the good work as this is a great software which can grab most streams already from the flv players and with support for the other file types that get embedded into a flv player now with the real extension being the dumped file I can see this flv player ripper being bigger and better.

This is everything I could find which could help get the Network running in it as well seeing as loads of people are interested including myself in it running.

https://app.box.com/s/25mcdan13eea9w6f3d6egb3hw1hqvj4f

KSV 02-09-2015 09:33 AM

Re: Customized rtmpdump binaries with patch file


 
first post is updated with new release.

troller12 02-10-2015 09:12 AM

Re: Customized rtmpdump binaries with patch file


 
Thank you KSV for the new compiled Windows set. :)

greetz

invisibleuser30 02-15-2015 11:43 PM

Re: Customized rtmpdump binaries with patch file


 
1- Thank you for the latest libtmp files

2- I have Kodi on my PC and iPhone. I downloaded the librtmp for my PC from this site and all the channels that I want to watch are working fine. As for my iphone, I have searched all over google and couldn't find a librtmp that was uploaded or updated 2015 for iphone. So I downloaded the librtmp provided in this link http://kodi.wiki/view/HOW-TO:Update_librtmp BUT the channels that work on my PC don't work on my iphone!!

So, I need help with updating my librtmp file on my iphone to the latest one so that the channels that work on my PC work on my iphone as well. If the one provided on here can be coded for iphone then can someone do it for me and give me a link to download?
I would really appreciate any help, thank you!

freez 02-19-2015 07:32 AM

Re: Customized rtmpdump binaries with patch file


 
@KSV what is the use of latest patched rtmp mips clone unless it do open & clear those mips clone server (ucaster,mips,liveflash,janjua,ezcast ...etc) , i cannot get any of these stream links server working with VLC player & it i just keep connected , do we have to enter a -k command & what is it? or what
the hill is wrong with playing these links of mips shit clone server:D

Velcro 02-22-2015 09:06 AM

Re: Customized rtmpdump binaries with patch file


 
Hi KSV,

I came across a problem in resume feature. I'm using last version of librtmp.dll with my own C# program which can download rtmp stream the same way rtmpdump.exe does.

So, to resume a stream, I search last keyframe in the already downloaded file and when it's found, I update m_read (timestamp, nResumeTS, flags, and so on) in Rtmp structure, and "Checked keyframe successfully!" appears in log.

I understand that I should also read "Found keyframe with resume-keyframe timestamp!" when the resume phase is completed, but sometimes I don't get it (librtmp don't find the right RTMP_PACKET_TYPE_FLASH_VIDEO). Instead of that others packets are received like the ones on this post: http://lists.mplayerhq.hu/pipermail/...il/001382.html

In reality there are onMetaData packet (~500 bytes) and notification packet, and librtmp loops on every following packets until the end of the stream.

If I try to force RTMP_ConnectStream to play from previous keyframe or even from 200 or 500 millisecond back from last found keyframe, librtmp catches the good RTMP_PACKET_TYPE_FLASH_VIDEO and resume works.

How can you explain this?

Resume timestamp: 21292 ms
http://pastebin.com/uvS5LtXz

Resume timestamp: 21292 ms (with Rtmp seekTime=20792)
http://pastebin.com/TWuU5T5Y

Thanks

TEOL 02-24-2015 11:06 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 74010)
first post is updated with new release.

Is bambastic one of the new players for this revision?

TEOL 03-09-2015 05:09 AM

Re: Customized rtmpdump binaries with patch file


 
Heres a couple of handshake bugs coming out of a Hula/Hola combination which it says in the bug text that a patch could be made and is welcome.

Serv



Suck


drivetheory 03-12-2015 06:43 PM

Re: Customized rtmpdump binaries with patch file


 
updated from
rtmpdump-2.4 (Update 2014-09-11)
to
rtmpdump-2.4 (Update 2015-02-09)

since updating to the 02-09 release i get crashes occasionally (weekly?) where as the previous version didn't exhibit this issue

Code:

Log Name:      Application
Source:        Application Error
Date:          2015-03-12 20:27:28
Event ID:      1000
Task Category: (100)
Level:        Error
Keywords:      Classic
User:          N/A
Computer:      SLAVE
Description:
Faulting application name: rtmpsuck.exe, version: 0.0.0.0, time stamp: 0x00000000
Faulting module name: rtmpsuck.exe, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x00003c2b

each time rtmpsuck crashes the "Exception code" and "Fault offset" values are always the same as the event listed above

troller12 03-13-2015 12:54 PM

Re: Customized rtmpdump binaries with patch file


 
Hi,

normaly you shouldn't get a access violation at this offset in the latest rtmpsuck so at this address is no command to execute which get access on normaly way by rtmpsuck itself.
Code:

$ ==>    00449A2B    FFC7                INC EDI      ; <--- offset 3c2b
$+2      00449A2D    44                  INC ESP
$+3      00449A2E    24 38                AND AL,0x38
$+5      00449A30    FFFF                ???                                 
$+7      00449A32    FFFF                ???           



$-9      00449A22    E8 79E2FFFF          CALL 00447CA0
$-4      00449A27    E9 64F7FFFF          JMP 00449190                             
$+1      00449A2C    C74424 38 FFFFFFFF  MOV DWORD PTR SS:[ESP+0x38],-0x1

PS: If you do use rtmpsuck + rtmpdumphelper then rtmpsuck can also close (without to get exception info message in my case) in some rarly cases if you access any site.Also your message that it happens "weekly" sounds also strange.So I think you did try to do the same steps after the error too and then you got not the problem anymore or?

greetz

drivetheory 03-13-2015 01:30 PM

Re: Customized rtmpdump binaries with patch file


 
what i meant by 'weekly' was that since I don't use the program that often it doesn't crash every time (maybe 15% of the time).

yes, I am using Nirsoft's RTMDumpHelper.

snuky 03-17-2015 08:11 AM

Re: Customized rtmpdump binaries with patch file


 
KSV patch doesn't work on mips ar7xx platform (Openwrt)

http://stream-recorder.com/forum/rtm...er-t19485.html

drivetheory 03-21-2015 06:37 AM

Re: Customized rtmpdump binaries with patch file


 
turns out there were other issues occurring as well- the problem was solved by factory resetting my cable modem.

Thanks KSV, keep up the good work.

Quaraxkad 03-22-2015 08:24 PM

Re: Customized rtmpdump binaries with patch file


 
Does anybody have some older versions available? I'm also having an issue with rtmpsuck crashing and would like to try older versions and see where the problem started but I can only find the latest release for download.

drivetheory 03-26-2015 03:13 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by drivetheory (Post 75024)
turns out there were other issues occurring as well- the problem was solved by factory resetting my cable modem.

Seems I was wrong- it still randomly crashes, sometimes 10 seconds after starting to record a stream, sometimes after 10 minutes, sometimes after an hour, and sometimes never at all.

Quaraxkad 03-26-2015 08:39 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by drivetheory (Post 75164)
Seems I was wrong- it still randomly crashes, sometimes 10 seconds after starting to record a stream, sometimes after 10 minutes, sometimes after an hour, and sometimes never at all.

Do you have the previous version that worked saved somewhere? I'm having the issue as well and can't find any old builds...

KSV 03-27-2015 12:57 AM

Re: Customized rtmpdump binaries with patch file


 
for the rtmpsuck issue can you test the latest official builds of rtmpdump without any patches. issue could be due to upstream changes in rtmpdump itself rather than my patches.

Quaraxkad 03-27-2015 08:16 AM

Re: Customized rtmpdump binaries with patch file


 
I can't use the latest official versions because I am using RTMPDumpHelper and it overwrites files. I end up losing recordings without even knowing it. I found your patched version with the filedate stamps to get around that issue. I used the official 2.4 for a long time and had no crashes, but then I discovered the file-overwriting issue.
EDIT: On the topic of the date and time stamps... Could you switch those to 24-hour time, or add am/pm?

inet4porn 04-11-2015 12:55 PM

Re: Customized rtmpdump binaries with patch file


 
Many thanks KSV, Xeebo and other for further development of this tool.

Unfortunately i have random rtmpsuck crashes too.
I use: rtmpdumphelper_v1.21 + rtmpdump-2.4 (KSV Update 2015-02-09)

what can i say:
1. it crashes to 99% on chaturbate, if performer change the session from free to private mode.

2. in other cases: ( looks like something missing in the exceptions treatment)
it crashes in the evening,
if my internet service provider is overloaded
and bandwidth is unstable/significantly reduced.
(possibly packet losses/drops , incomplete or not arrived Requests)
i see many messages like this:
Code:

ERROR: RTMP_ReadPacket, failed to read RTMP packet header
ERROR: WriteN, RTMP send error 10038 (30 bytes)
ERROR: WriteN, RTMP send error 10038 (18 bytes)
ERROR: WriteN, RTMP send error 10038 (11 bytes)
ERROR: WriteN, RTMP send error 10038 (11 bytes)
ERROR: WriteN, RTMP send error 10038 (11 bytes)
ERROR: WriteN, RTMP send error 10038 (26 bytes)
ERROR: WriteN, RTMP send error 10038 (11 bytes)

-----------------------------------------------------

I have 2 little requests(if it possible):

1. Could you add support for AMF parameter: NZ: in rtmpdump ?

-C NZ:livefeedtype:
-C NZ:gravityCookieId:

it work in rtmpdumphelper + rtmpsuck , but if i try to use rtmpdump with commandline recorded in command.txt
then i see that:

Code:

RTMPDump v2.4 GIT-2015-01-15 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: Invalid AMF parameter: NZ:livefeedtype:

2. is it possible to eliminate creation of 0-Byte Files ?
i mean , create file only if connection was successful AND THE TRANSFER BEGINS.

adb1212 04-18-2015 11:01 AM

Re: Customized rtmpdump binaries with patch file


 
KSV's rtmpdump can not download stream more than 4GB file.
When progress reaches limit,it just stop and fails to continue.

biezom 04-18-2015 12:38 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by adb1212 (Post 75872)
KSV's rtmpdump can not download stream more than 4GB file.
When progress reaches limit,it just stop and fails to continue.

hi if your drive is format in fat32 4GB it's the max size limit for one file
so i don't think it's a rtmpdump's problem

adb1212 04-19-2015 12:24 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by biezom (Post 75874)
hi if your drive is format in fat32 4GB it's the max size limit for one file
so i don't think it's a rtmpdump's problem

i'm using NTFS win7 x64
it's a rtmpdump known problem,hope KSV can fix it.

i don't know how to code,but this may help
http://sourceforge.net/u/dinkypumpki...2efefcd13d403/

Jinjoni 04-19-2015 12:30 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by adb1212 (Post 75885)
i'm using NTFS win7 x64
it's a rtmpdump known problem,hope KSV can fix it.

i don't know how to code,but this may help
http://sourceforge.net/u/dinkypumpki...2efefcd13d403/

That's strange. A couple days ago I downloaded a 5.6 GB file with rtmpdump.

adb1212 04-19-2015 04:23 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by Jinjoni (Post 75887)
That's strange. A couple days ago I downloaded a 5.6 GB file with rtmpdump.

Are you using rtmpdump helper with rtmpsuck?

biezom 04-19-2015 04:27 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by adb1212 (Post 75885)
i'm using NTFS win7 x64
it's a rtmpdump known problem,hope KSV can fix it.

i don't know how to code,but this may help
http://sourceforge.net/u/dinkypumpki...2efefcd13d403/

did you use this version?


Code:

https://github.com/K-S-V/Scripts/releases/download/v2.4/rtmpdump-2.4.zip

adb1212 04-19-2015 04:48 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by biezom (Post 75895)
did you use this version?


Code:

https://github.com/K-S-V/Scripts/releases/download/v2.4/rtmpdump-2.4.zip

yes
the latest version

Jinjoni 04-19-2015 12:48 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by adb1212 (Post 75894)
Are you using rtmpdump helper with rtmpsuck?

I used rtmpdump helper with rtmpserv.

drivetheory 04-20-2015 09:24 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 75173)
for the rtmpsuck issue can you test the latest official builds of rtmpdump without any patches. issue could be due to upstream changes in rtmpdump itself rather than my patches.

after a bit of testing with and without any patches it turned out to be a (failing?) cable modem of all things... replaced the modem and haven't had a problem since.


All times are GMT -6. The time now is 08:09 PM.