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

struggling to compile K-S-V on rtmpdump

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

WorkOFF 02-20-2017 06:22 AM

struggling to compile K-S-V on rtmpdump


 
Hello,

I'm totally new to this type of stuff ( compile a Patch )

And i don't know much.

But I've tried couple of times to do it and failed.

Tried it on Ubuntu 12 / 14 / 15 and Debian 7,8

But without a success.

Can anybody help me in details which operating system is better for "rtmpdump" to compile with K-S-V Patch ?

And how to install "rtmpdump" on it step by step and compile K-S-V on it so i can use it ?

Thank you.

bat999 02-20-2017 08:02 AM

Re: struggling to compile K-S-V on rtmpdump


 
Quote:

Originally Posted by WorkOFF (Post 89847)

Tried it on Ubuntu 12 / 14

Can anybody help me in details which operating system is better for "rtmpdump" to compile with K-S-V Patch ?

And how to install "rtmpdump" on it step by step and compile K-S-V on it so i can use it ?

Thank you.

With Ubuntu-16.04 (Probably OK with Ubuntu-14 too)...

Install some packages...
Code:

sudo apt-get update; \
sudo apt-get install build-essential checkinstall git libssl-dev

The patch "Patch.diff" is contained in the rtmpdump-2.4.zip file here ---> https://github.com/K-S-V/Scripts/releases

Download the rtmpdump folder source...
Code:

git clone --depth 1 git://repo.or.cz/rtmpdump.git
Put your "Patch.diff" inside the rtmpdump folder.

Then apply the patch...
Code:

cd rtmpdump; patch -p0 -i Patch.diff
Then compile RTMPDump...
Code:

make VERSION="v2.4\ KSV-2015-12-14"
And install it...
Code:

sudo checkinstall --pkgname rtmpdump \
--pkgversion "2.4+git$(date +%Y%m%d)" \
--backup=no --fstrans=no --default; sudo ldconfig

And test it...
Code:

~$ rtmpdump
RTMPDump v2.4 KSV-2015-12-14
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname


WorkOFF 02-20-2017 10:25 AM

Re: struggling to compile K-S-V on rtmpdump


 
Thank you so much Bat! That was clear and perfect

I think i did it alright..

But now when i try to download that stream #StreamLink

Code:

rtmpdump -r "rtmp://89.248.162.150/cast4u" -a "cast4u" -f "WIN 24,0,0,221" -W "http://www.cast4u.tv/static/scripts/fplayer.swf" -p "http://www.cast4u.tv/embedplayer/btsp1/1/630/450" -C S:OK --live -y "btsp1?id=29&pk=5f49e701a5db1a011796e9fc9950f97bcfbc1d893d20fb6c93bd7737231bb94a" -o "2017-02-20_05-00-07_btsp1.flv"
It is stuck at the "INFO CONNECTED" part.



While the dude who gave me the code, HERE

uses also the same version worked for him ?



Any idea ?

bat999 02-20-2017 12:17 PM

Re: struggling to compile K-S-V on rtmpdump


 
Quote:

Originally Posted by WorkOFF (Post 89852)
...Any idea ?


I think this part of your command is a token that times out, probably not valid now
"btsp1?id=29&pk=5f49e701a5db1a011796e9fc9950f97bcf bc1d893d20fb6c93bd7737231bb94a"

Ask him again.

Damianonymous 02-20-2017 06:20 PM

Re: struggling to compile K-S-V on rtmpdump


 
Yes, the link still works. This link with RTMPDumpHelper. The transmission also works in Internet Download Manager and Replay Media Catcher, but do not know which of them can be adapted to Ubuntu.

confused.com 02-21-2017 06:49 AM

Re: struggling to compile K-S-V on rtmpdump


 
Quote:

Originally Posted by Damianonymous (Post 89865)
which of them can be adapted to Ubuntu.

RTMPSRV !

WorkOFF 02-23-2017 12:42 AM

Re: struggling to compile K-S-V on rtmpdump


 
@Confused.com

How do i use RTMPSRV with rtmpdump to download the stream?

confused.com 02-23-2017 07:02 AM

Re: struggling to compile K-S-V on rtmpdump


 
http://stream-recorder.com/forum/use...61.html?t=7661

WorkOFF 03-04-2017 11:49 PM

Re: struggling to compile K-S-V on rtmpdump


 
I think i know where the problem
when i try to do this step
Code:

sudo checkinstall --pkgname rtmpdump \
--pkgversion "2.4+git$(date +%Y%m%d)" \
--backup=no --fstrans=no --default; sudo ldconfig

It says " Command not found "
how to fix it?

j_cool 03-29-2017 05:37 PM

Re: struggling to compile K-S-V on rtmpdump


 
bat999's rtmpdump installation guide is the best one I found on this forum.

This thread deserves to be on top of rtmpdump forum these days.

I followed these steps to install rtmpdump. It should be self explanatory.

Code:

j@j:~$ sudo apt-get update
j@j:~$ sudo apt-get install build-essential checkinstall git libssl-dev
j@j:~$ git clone --depth 1 git://repo.or.cz/rtmpdump.git
j@j:~$ cd rtmpdump
j@j:~/rtmpdump$ wget -c https://github.com/K-S-V/Scripts/releases/download/v2.4/rtmpdump-2.4.zip
j@j:~/rtmpdump$ unzip rtmpdump-2.4.zip
j@j:~/rtmpdump$ rm -R *.exe *License.txt librtmp.dll
j@j:~/rtmpdump$ patch -p0 -i Patch.diff
j@j:~/rtmpdump$ make VERSION="v2.4\ KSV-2015-12-14"
j@j:~/rtmpdump$ sudo checkinstall --pkgname rtmpdump --pkgversion "2.4+git$(date +%Y%m%d)" --backup=no --fstrans=no --default
j@j:~/rtmpdump$ sudo ldconfig
j@j:~/rtmpdump$ rtmpdump
RTMPDump v2.4 KSV-2015-12-14
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname
j@j:~/rtmpdump$

Linux distro:

ubuntu-16.04.2-desktop-amd64.iso

http://zdnet1.cbsistatic.com/hub/i/r...xdedesktop.png

for those who like the image:

sudo apt-get install lubuntu-desktop

LXDE desktop


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