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)

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 03:00 AM.