View Single Post
  #2  
Old 02-20-2017, 08:02 AM
bat999 bat999 is offline
Senior Member
 
Join Date: Apr 2011
Location: UK
Posts: 131
bat999 is on a distinguished road
Default

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


Quote:
Originally Posted by WorkOFF View Post

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
Reply With Quote