PDA

View Full Version : struggling to compile K-S-V on rtmpdump


WorkOFF
02-20-2017, 06:22 AM
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
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...
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...
git clone --depth 1 git://repo.or.cz/rtmpdump.git

Put your "Patch.diff" inside the rtmpdump folder.

Then apply the patch...
cd rtmpdump; patch -p0 -i Patch.diff

Then compile RTMPDump...
make VERSION="v2.4\ KSV-2015-12-14"

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

And test it...
~$ 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
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 (http://bigsports.me/footy/bt1.php)

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=5f49e701a5db1a011796e9fc9950f97bcfbc1d893d20fb6 c93bd7737231bb94a" -o "2017-02-20_05-00-07_btsp1.flv"

It is stuck at the "INFO CONNECTED" part.

http://i.imgur.com/RLfO9N0.png

While the dude who gave me the code, HERE (http://stream-recorder.com/forum/need-stream-asap-t22686.html)

uses also the same version worked for him ?

https://s16.postimg.org/42azti31x/Big_Sports.jpg

Any idea ?

bat999
02-20-2017, 12:17 PM
...Any idea ?


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

Ask him again.

Damianonymous
02-20-2017, 06:20 PM
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
which of them can be adapted to Ubuntu.

RTMPSRV !

WorkOFF
02-23-2017, 12:42 AM
@Confused.com

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

confused.com
02-23-2017, 07:02 AM
http://stream-recorder.com/forum/use-rtmpdump-rtmpsrv-linux-t7661.html?t=7661

WorkOFF
03-04-2017, 11:49 PM
I think i know where the problem
when i try to do this step
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
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.


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/2015/12/09/247dc746-fece-4ef8-9311-ed1b40f36884/resize/770xauto/8bd809b06152e7e841ef5a0f8c039010/lxdedesktop.png

for those who like the image:

sudo apt-get install lubuntu-desktop

LXDE desktop

j_cool
03-30-2017, 07:17 AM
bat999,

Do you still keep an eye on this thread ?

There are many posts on this forum about setting up and running RTMPSRV,
like one from the link posted here by confused:

http://stream-recorder.com/forum/use-rtmpdump-rtmpsrv-linux-t7661.html?t=7661

I think that it is a bit complicated by chenxiaolong, and HYC's view should be ignored.
HYC is looking at that from the point of view of professional software developer,
and I see it more likely from WorkOFF's point of view.

How about you making your post and comment about setting up RTMPSRV ?

confused.com
03-31-2017, 05:02 AM
And no, this example isn't in the README file.

http://stream-recorder.com/forum/showpost.php?p=17604&postcount=2

j_cool
03-31-2017, 05:12 AM
All rtmpdump forum seems to be confused about setting up RTMPSRV and RTMPSUCK right.

Anybody good with linux reading this ?