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)

freez 09-12-2014 11:42 PM

Re: Customized rtmpdump binaries with patch file


 
thanx @KSV works ok , @denobis ur patched rtmpdump.exe is hard to solve its issue!!! keep asking for .dll missing files like it wont stop giving error message & requesting such always for a lot of missing .DLL files & thats a real headache & wont play coz it really need a fix by approaching a dozen of missing.dll file , i am using windows 7 64 bit, so what prog. u really used to patch it & why this error misiing too much files missing from my pc is asking for????!!

jhb50 09-13-2014 08:40 AM

Re: Customized rtmpdump binaries with patch file


 
@freez I am using denobis patched rtmpdump.exe on w7-64 and it works flawlessly. You must have some other problem.
You asked previously for KSV patch. Why are you compiling when you have working exe for w7 from both KSV and Denobis? You need to post more info about your error before anyone can help you fix your problem.

H3om 09-14-2014 03:39 AM

Re: Customized rtmpdump binaries with patch file


 
Hi @all

I have a problem with the create the files rtmpdump / librtmp with patch.diff under Windows7-64.

The patch.diff i have taken from last realease from KSV and this copied to rtmpdump binaries directory. After that i give over MinGW the commd "patch-p0 <patch.diff" and the new files are generated in the directory. With the command "make SYS=mingw" compile the new files. But the files created rtmpdump.exe and librtmp.dll have a different size than the KSV. Once I used rtmpdump.exe, an error message appears stating that the librtmp-1.dll was not found. This message is not in the rtmpdump release.

Why do not I get the same files as KSV? May be missing something in the source code?

I would be glad if someone could help me for the problem.:)

thx
H3om

lto 09-14-2014 04:45 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by lto (Post 66661)
I was able to fix the problem I described in private message.
I am on Windows I was able to attach debugger and reproduced crash multiple times in same place:

Code:

        ...
                      if (server->f_cur && server->rc.m_mediaChannel && !paused)
                        {
>                          server->rc.m_pauseStamp = server->rc.m_channelTimestamp[server->rc.m_mediaChannel];
                          if (RTMP_ToggleStream(&server->rc))

{

I checked if server is 0 but it didn't help, so I just called inside this if:

Code:

goto cleanup;
and it works, no more crashes with rtmpdumphelper

I think in some cases this server structure is messed up and crash happens

Just an info to people who asked how to fix this problem.

If you want to have stable rtmpdump + rtmpdumphelper build, without crashes when "camera switches to private mode" - above solution still works, so please include that in your patches.

denobis 09-14-2014 01:33 PM

Re: Customized rtmpdump binaries with patch file


 
For those who use simpletv you can update your librtmp here

http://www.mediafire.com/download/1w...etvlibrtmp.zip


The zip includes the librtmp.dll compiled with -K and two other dll's (libeay and ssleay). You must substitute all these three dll's.

To enter a channel which needs -K use tcommand=

sample

rtmp://$OPT:rtmp-raw=rtmp://173.193.205.94/live playpath=foxsportcomp?id=72043 swfUrl=http://www.ucaster.eu/static/scripts/fplayer.swf pageUrl=http://www.ucaster.eu/embedded/foxsportcomp/1/620/382 tcommand=vujkoMiLazarBarakovOdMonospitovo;TRUE conn=S:OK

inquisitor 09-18-2014 10:35 AM

Re: Customized rtmpdump binaries with patch file


 
Some questions about this version of rtmpdump:
https://github.com/K-S-V/Scripts/releases/tag/v2.4

I assume they are false positives, but Virustotal.com shows detections for the zip file:
https://www.virustotal.com/en/file/d...is/1411053822/

Bkav: "HW32.Paked.231B"
Symantec: "WS.Reputation.1"


When I unzip the archive and check the individual files:

rtmpdump.exe shows one detection:
https://www.virustotal.com/en/file/1...is/1410775962/

Bkav: "HW32.Paked.B04C"

============================

rtmpgw.exe shows one detection:
https://www.virustotal.com/en/file/2...is/1410775979/

Bkav: "HW32.Paked.5784"

============================

rtmpsrv.exe shows one detection:
https://www.virustotal.com/en/file/7...is/1410548402/

Bkav: "HW32.Paked.8B26"

============================

rtmpsrv-vlc.exe shows one detection:
https://www.virustotal.com/en/file/8...is/1410548401/

Bkav: "HW32.Paked.A811"

============================

rtmpsuck.exe shows two detections:
https://www.virustotal.com/en/file/8...is/1410548404/

Bkav: "HW32.Paked.231B"
Qihoo-360: "Malware.QVM11.Gen"

============================

Should I worry about these detections; are they just false positives?

chap 09-18-2014 10:50 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by inquisitor (Post 70709)
Some questions about this version of rtmpdump:
https://github.com/K-S-V/Scripts/releases/tag/v2.4
Should I worry about these detections; are they just false positives?

this man does not do bad

KSV 09-19-2014 01:09 AM

Re: Customized rtmpdump binaries with patch file


 
@inquisitor
Executables are compressed with upx (sort of zip for executables) and some lousy av software's may flag anything compressed as malicious.

@lto
can you provide some background of the problem and if possible the patch file for the same.

freez 09-19-2014 05:06 AM

Re: Customized rtmpdump binaries with patch file


 
@KSV my BOSS:) ,plez could u help updating rtmpdump binaries with patch for the new clone here ,coz ur patch & .exe & librtmp is the only one works on my system without a problem , have a look here http://stream-recorder.com/forum/ksv...rt-t18808.html

thank u for ur time

jhb50 09-24-2014 05:48 PM

Re: Customized rtmpdump binaries with patch file


 
@KSV
I hope you are still planning to incorporate the -K patch in your rtmpdump when you get time. In its absence RedPenguin plans to add it to his version, but I continue to hope that we can keep yours as the "mother patch" instead of having these various forks.

KSV 09-25-2014 05:57 AM

Re: Customized rtmpdump binaries with patch file


 
@jhb50
yeah i still intend to do so.

hasomaso 09-25-2014 06:35 AM

Re: Customized rtmpdump binaries with patch file


 
thanks KSV

KSV 09-27-2014 08:13 AM

Re: Customized rtmpdump binaries with patch file


 
@denobis

i have checked your provided patch. you need to create a new patch which only contains your changes so i can review it properly. also it's not based on latest git. use following commands to create proper patch.

Code:

git reset --hard remotes/origin/master
git pull
patch -p0 -i ksv-patch.diff
git commit -a -m "KSV Patches"

then apply your changes and create new patch and also don't use any formatting tools.
Code:

git diff --no-prefix > denobis-patch.diff

denobis 09-27-2014 11:14 AM

Re: Customized rtmpdump binaries with patch file


 
Here the patch,

http://www.mediafire.com/download/i6...bis-patch.diff

Tell me if it responds to what you want, if not i'll try it again

koma 09-30-2014 01:34 PM

Re: Customized rtmpdump binaries with patch file


 
Hey guys,

//edit:
nvm, they just switched to rtmpt, could have seen that...

I've put a player down below that might have been updated, since I can't play streams I crawl from a member site any more.
Code:

http://188.122.84.146:5568/player.swf
Is any of you able to find a need for a -K switch in this .swf? I have decompressed it but I couldn't find an unusual string.
rtmpdump quits with
Code:

Connecting ...
ERROR: RTMP_Connect0, failed to connect socket. 10060 (Unknown error)
DEBUG: Closing connection.

I am using denobis' rtmpdump from here.
Also, the streaming provider has recently switched to cloudflare, could this be a problem?

Thanks in advance!

pecko 10-08-2014 06:59 AM

Re: Customized rtmpdump binaries with patch file


 
@denobis, @KSV and all other here.

I'm creating these security procedure inside mips.tv, liveflash.tv, zenex.tv, streamify.tv, ucaster and all other clones. So far security procedure was with hidden word, and this was a small protection.

I do not mind if some (100-1000 viewers) steal some stream, but you guys, are stealing in much more scale and you are bringing whole system down (systems with 30-40 servers that costs 10K per month). When this happen, none of you and none of regular streamer/viewers can either broadcast or watch.

All of you can have streams free for use, you just need to put embedded script with only one ad. Video streaming cost money (for servers) and only those ads are used for covering the costs. Ad duration is only 20-30 seconds and that's the only small price you need to pay when using free services.

Stealing someones bandwidth is criminal act, further more creating such software is much more bigger criminal.

Free software doesn't mean that you have everything for free, and all of you should put more attention next time when you will try to steal.


I will ask @denobis, @KSV to remove -K option with time. Otherwise I will take all necessary measures to protect my clients and streams of my clients from such deviant behaviors.


Best Regards
Pero Gjuzelov
CEO of MakSolution.net

mckv 10-08-2014 09:41 AM

Re: Customized rtmpdump binaries with patch file


 
lol
Tough luck dude.
Your business is to supply pirates with streamhosts and run malware and scam ads and then expect others to respect you?
also reported you to PIPCU

RedPenguin 10-08-2014 12:40 PM

Re: Customized rtmpdump binaries with patch file


 
I like how the post (2 above) is written with pretty good English, but if you take a look at the website, you cannot wrap your head around at all, what the "company" is for.

Very strange website. LoL.

pecko 10-09-2014 06:22 AM

Re: Customized rtmpdump binaries with patch file


 
@mckv:

Our services have only one small ad on top of the video for 25-30 seconds. Other ads what you see is from broadcasters that use our services and abuse it. If you go to original websites, you can watch video with only one ad.


@RedPenguin:

Thanks for remarks:). I will try to find time to fix my website.

samsamsam2 10-12-2014 04:45 AM

Re: Customized rtmpdump binaries with patch file


 
KSV thank you very much for your hard work!

jhb50 10-18-2014 07:01 AM

Re: Customized rtmpdump binaries with patch file


 
It is ironic that someone who is knowingly breaking the law by streaming copyrighted material for a fee from those who are making money by capturing and generating streams of copyrighted material now suggests that he will take action to stop those who provide tools to then view those streams. I assume he has also complained to the authors of rtmpdump and wireshark.

Reminds me of the homeowner who complained that the burglar had used the key he left under his doormat!

May I suggest that the more appropriate action would be to implement his streaming service using tools that properly secure those streams from his unauthorized use, rather than issue lame hypocritical threats and complain that his simple and visible 'key' is being used by others.

samsamsam2 10-26-2014 08:30 AM

Re: Customized rtmpdump binaries with patch file


 
Hello,

K-S-V I have some problem with your patch for librtmp.
I developed some simple program for handling stream from ustream.tv:
https://gitorious.org/f4mdump

For connection to the server and read information about fragments the librtmp is used. It work when librtmp without patch is used, with patch wrong rtmp packet is read.

Can you help me with finding where the problem is?

Thank you,
SSS

KSV 10-27-2014 01:42 PM

Re: Customized rtmpdump binaries with patch file


 
first post is updated with new release. i have added 3dbuzz.com support and merged denobis patch for -K switch.

hasomaso 10-27-2014 01:55 PM

Re: Customized rtmpdump binaries with patch file


 
thank you for all your efforts

biezom 10-27-2014 09:18 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 71711)
first post is updated with new release. i have added 3dbuzz.com support and merged denobis patch for -K switch.

Thank i tried to compile with the new patch on ma debian wheezy, but i have an error

"librtmp/librtmp.so: undefined reference to `stricmp'
collect2: error: ld returned 1 exit status
make: *** [rtmpdump] Erreur 1"

with the previous patch i did not have this error

biezom 10-27-2014 11:43 PM

Re: Customized rtmpdump binaries with patch file


 
I finally found it `stricmp' is specific to Microsoft's compilers/libraries
I replaced 'stricmp' line 962 by 'strcasecmp'
'strcasecmp' is the equivalent replacement for linux
I hope that it might help some.

KSV 10-28-2014 12:50 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by biezom (Post 71721)
I finally found it `stricmp' is specific to Microsoft's compilers/libraries
I replaced 'stricmp' line 962 by 'strcasecmp'
'strcasecmp' is the equivalent replacement for linux
I hope that it might help some.

i have fixed the issue and updated the release.

jhb50 10-31-2014 06:17 PM

Re: Customized rtmpdump binaries with patch file


 
@KSV Thanks for the update. Much appreciated!

msdos 11-05-2014 02:55 PM

Re: Customized rtmpdump binaries with patch file


 
Hello I have updated the latest patch librtmp stays loaded with this server
rtmp://109.123.126.34/live playpath=canal89?id=76120 swfUrl=http://www.ucaster.eu/static/scripts/fplayer.swf live=1 pageUrl=http://www.ucaster.eu/embedded/canal89/1/650/400 Conn=S:OK

thanks

troller12 11-05-2014 03:20 PM

Re: Customized rtmpdump binaries with patch file


 
So it also stays loaded with the librtmp.dll file from the latest rtmpdump package.
Code:

rtmpdump -v -r "rtmp://109.123.126.34/live" -y "canal89?id=76120" -W "http://www.ucaster.eu/static/scripts/fplayer.swf" -p "http://www.ucaster.eu/embedded/canal89/1/650/400" -C S:OK | "VLC" -
Code:

RTMPDump v2.4 GIT-2014-07-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  presetname              Custom
INFO:  creationdate            Sun Nov 02 15:25:28 2014
INFO:  videodevice            OEM Device [1]
INFO:  framerate              24.00
INFO:  width                  512.00
INFO:  height                  288.00
INFO:  videocodecid            avc1
INFO:  videodatarate          500.00
INFO:  avclevel                31.00
INFO:  avcprofile              66.00
INFO:  videokeyframe_frequency 5.00
INFO:  audiodevice            OEM Device [1]
INFO:  audiosamplerate        22050.00
INFO:  audiochannels          1.00
INFO:  audioinputvolume        75.00
INFO:  audiocodecid            .mp3
INFO:  audiodatarate          32.00
9511.126 kB / 139.52 sec

greetz

msdos 11-05-2014 03:34 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by troller12 (Post 71873)
So it also stays loaded with the librtmp.dll file from the latest rtmpdump package.
Code:

rtmpdump -v -r "rtmp://109.123.126.34/live" -y "canal89?id=76120" -W "http://www.ucaster.eu/static/scripts/fplayer.swf" -p "http://www.ucaster.eu/embedded/canal89/1/650/400" -C S:OK | "VLC" -
Code:

RTMPDump v2.4 GIT-2014-07-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  presetname              Custom
INFO:  creationdate            Sun Nov 02 15:25:28 2014
INFO:  videodevice            OEM Device [1]
INFO:  framerate              24.00
INFO:  width                  512.00
INFO:  height                  288.00
INFO:  videocodecid            avc1
INFO:  videodatarate          500.00
INFO:  avclevel                31.00
INFO:  avcprofile              66.00
INFO:  videokeyframe_frequency 5.00
INFO:  audiodevice            OEM Device [1]
INFO:  audiosamplerate        22050.00
INFO:  audiochannels          1.00
INFO:  audioinputvolume        75.00
INFO:  audiocodecid            .mp3
INFO:  audiodatarate          32.00
9511.126 kB / 139.52 sec

greetz


Thank you. but where is android fails me I have compiled the latest librtmp this server ucaster.eu

strummer 11-15-2014 08:05 AM

Re: Customized rtmpdump binaries with patch file


 
Anynone have a working static binary of this for Android Lollipop?

notsopvt 11-15-2014 05:31 PM

Re: Customized rtmpdump binaries with patch file


 
Pff... Lost some time with this.
Its not working on lubuntu utopic (maybe not ubuntu too).
Had a recently formated lubuntu utopic and kept getting the netstream error. Tried on another lubuntu 14.10, same problem. While it worked on my main machine MintOS and VMs with lubuntu trusty.
The only libs I had installed where the requirements ( sudo apt-get install build-essential git-core checkinstall libssl-dev ).

Reformated with lubuntu trusty, installed the requirements and it worked just fine.

PS: Where are the updated versions? (you say there is an update on 28/10/2014 but patch file in the zip is from 2013). And thanks for your work!

jhb50 11-16-2014 12:44 PM

Re: Customized rtmpdump binaries with patch file


 
Versions are in first post. My patch.diff is dated 10/28/14.

gorilla.maguila 11-25-2014 04:44 PM

Re: Customized rtmpdump binaries with patch file


 
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.

KSV 11-25-2014 09:57 PM

Re: Customized rtmpdump binaries with patch file


 
@gorilla.maguila

i will look into this.

gorilla.maguila 12-02-2014 09:28 AM

Re: Customized rtmpdump binaries with patch file


 
@KSV

Have you had any chance to look at it?

Thanks

Sniper7 12-12-2014 02:39 PM

Re: Customized rtmpdump binaries with patch file


 
Hi any Update With Streampiraten Patch Not Working I thing He change Systeme

RedPenguin 12-14-2014 06:09 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by Sniper7 (Post 72600)
Hi any Update With Streampiraten Patch Not Working I thing He change Systeme

KSV, mips changed a little bit around.

They now also use "mipsplayer.com" so in the Patch you can do:

else if (strstr(pageUrl, "mips.tv") || strstr(pageUrl, "mipsplayer.com"))

and I find it works fine.

Sniper7 12-15-2014 07:58 AM

Re: Customized rtmpdump binaries with patch file


 
I use this Command

rtmpdump --live -r "rtmp://pc3oot.us.to:1935/live/cinema" -p "http://www.streamnetwork.tv/page/PremiumTest" -W "http://ni208114_1.vweb03.nitrado.net/plaasma.swf" | ffmpeg -i - -isync -acodec aac -strict -2 -b:a 64k -vcodec libx264 -preset veryfast -s 660x400 -b:v 300k -f flv "rtmp://"


RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstream

With patches

WARNING: You haven't specified an output file (-o fil
Connecting ...
ffmpeg version N-68355-gae81680 Copyright (c) 2000-20
built on Dec 10 2014 02:07:55 with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --dis
isynth --enable-bzlib --enable-fontconfig --enable-fr
le-iconv --enable-libass --enable-libbluray --enable-
enable-libfreetype --enable-libgme --enable-libgsm --
modplug --enable-libmp3lame --enable-libopencore-amrn
b --enable-libopenjpeg --enable-libopus --enable-libr
r --enable-libsoxr --enable-libspeex --enable-libtheo
able-libvidstab --enable-libvo-aacenc --enable-libvo-
--enable-libvpx --enable-libwavpack --enable-libwebp
libx265 --enable-libxavs --enable-libxvid --enable-de
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 14.100 / 56. 14.100
libavformat 56. 15.103 / 56. 15.103
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed
pipe:: Invalid data found when processing input


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