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)

supersonic80 01-05-2019 03:45 AM

Re: Customized rtmpdump binaries with patch file


 
Would you mind to try this version?
https://mega.nz/#!Jq533QhA!M_Ra8lcEk...JXkis98N h3qc

I have no idea how this problem with pageUrl affects you. Does this problem exist for chaturbate or some other service?

troller12 01-05-2019 08:36 PM

Re: Customized rtmpdump binaries with patch file


 
Hi supersonic80,

so its not a big problem about that pageurl bug so all is working so far.Just did wonder why this value/s was changed there to 8 you know.No reason for that to change it because the dirty patch was added right below that code (cpsQuality).Anyway,maybe it was just a random unwanted typing bug at this line in the source etc.

greetz

meskman 01-09-2019 01:56 PM

Re: Customized rtmpdump binaries with patch file


 
Hi guys,

Cannot compile rtmpdump with KSV path on my raspberry pi.

for make command it shows the following:
Code:

pi@raspserv:/usr/src/rtmpdump-ksv $ sudo make
make[1]: Entering directory '/usr/src/rtmpdump-ksv/librtmp'
gcc -Wall  -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC  -c -o rtmp.o rtmp.c
In file included from handshake.h:86:0,
                from rtmp.c:161:
dh.h: In function ‘DHInit’:
dh.h:256:12: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
  MP_new(dh->g);
            ^
dh.h:171:19: note: in definition of macro ‘MP_new’
 #define MP_new(m) m = BN_new()
                  ^
In file included from rtmp.c:161:0:
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:120:12: error: storage size of ‘ctx’ isn’t known
  HMAC_CTX ctx;
            ^~~
In file included from rtmp.c:161:0:
handshake.h:72:35: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration]
 #define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0)
                                  ^
handshake.h:125:3: note: in expansion of macro ‘HMAC_setup’
  HMAC_setup(ctx, secretKey, 128);
  ^~~~~~~~~~
handshake.h:74:67: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration]
 #define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)
                                                                  ^
handshake.h:127:3: note: in expansion of macro ‘HMAC_finish’
  HMAC_finish(ctx, digest, digestLen);
  ^~~~~~~~~~~
In file included from rtmp.c:161:0:
handshake.h:120:12: warning: unused variable ‘ctx’ [-Wunused-variable]
  HMAC_CTX ctx;
            ^~~
handshake.h: In function ‘HMACsha256’:
handshake.h:269:12: error: storage size of ‘ctx’ isn’t known
  HMAC_CTX ctx;
            ^~~
handshake.h:269:12: warning: unused variable ‘ctx’ [-Wunused-variable]
rtmp.c: In function ‘RTMP_ReadPacket’:
rtmp.c:4235:7: warning: variable ‘didAlloc’ set but not used [-Wunused-but-set-variable]
  int didAlloc = FALSE;
      ^~~~~~~~
At top level:
rtmp.c:1680:35: warning: ‘av_getStreamLength’ defined but not used [-Wunused-const-variable=]
 #define SAVC(x) static const AVal av_##x = AVC(#x)
                                  ^
rtmp.c:3037:1: note: in expansion of macro ‘SAVC’
 SAVC(getStreamLength);
 ^~~~
rtmp.c:1680:35: warning: ‘av_onBWCheck’ defined but not used [-Wunused-const-variable=]
 #define SAVC(x) static const AVal av_##x = AVC(#x)
                                  ^
rtmp.c:3022:1: note: in expansion of macro ‘SAVC’
 SAVC(onBWCheck);
 ^~~~
rtmp.c:1680:35: warning: ‘av_record’ defined but not used [-Wunused-const-variable=]
 #define SAVC(x) static const AVal av_##x = AVC(#x)
                                  ^
rtmp.c:2029:1: note: in expansion of macro ‘SAVC’
 SAVC(record);
 ^~~~
<builtin>: recipe for target 'rtmp.o' failed
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory '/usr/src/rtmpdump-ksv/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2

I was using https://github.com/BurntSushi/rtmpdump-ksv

but i tried another sources and problem is present there too.

Could someone help me?
Thanks

supersonic80 01-25-2019 07:14 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by meskman (Post 96759)
Hi guys,

Cannot compile rtmpdump with KSV path on my raspberry pi.

Suppose you are doing something wrong.
I've just checked on Raspberry Pi v1 with the latest Raspbian and everything was perfect.

Code:

# setup raspberry before use
sudo raspi-config

sudo apt update
sudo apt upgrade

sudo apt-get install build-essential git libssl1.0-dev

git clone https://github.com/BurntSushi/rtmpdump-ksv.git
cd rtmpdump-ksv
make


TubeDigger 01-25-2019 08:28 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by meskman (Post 96759)
Cannot compile rtmpdump with KSV path on my raspberry pi

OpenSSL changed API. Use OpenSSL v1.0.2 or PolarSSL.

101001 02-10-2019 01:04 PM

Re: Customized rtmpdump binaries with patch file


 
Is it possible to make this patch compatible with RTMPDumpHelper?

cabulo 02-12-2019 11:38 AM

Re: Customized rtmpdump binaries with patch file


 
first you must know what do you want before looking for a solution.
what problem do you have with rtmpdumphelper?
helper works with rtmpsuck, not with rtmpdump.

cabulo 05-19-2020 07:27 PM

Re: Customized rtmpdump binaries with patch file


 
supersonic80,

Are you still alive and well ?

HELP !!

I can't make your updated rtmpdump working on latest Ubuntu following your guidance from Github.
Can you please post new guidance on how to install your rtmpdump?

Here is my script and there is only working rtmpdump missing. Your rtmpdump works in windows.

HTML Code:

#!/bin/bash
model="karitto__2"
while :; do
        d=$(date +%Y-%m-%d_%H-%M-%S)
        file="${model}_${d}.flv"
        rtmpdump -v -r "rtmp://edge147.stream.highwebmedia.com/live-edge" \
        -a "live-edge" \
        -f "WIN 32,0,0,344" \
        -W "https://ssl-ccstatic.highwebmedia.com/tsdefaultassets/CBV_TS_v1.0.swf" \
        -p "https://chaturbate.com/%model%/" \
        -C S:cabulo \
        -C S:%model% \
        -C S:3.22 \
        -C S:c066c87f3b352759d75ff4f7a937a36de9fadf76364fb17dbb750595a8bbc76bfe4f28bcd9fd12cd8eeea8b6bb70dff8c1930b20307bd1151c7770b4ce6e7176 \
        -C S:cb69382e5826264c5fcd5450fc7baa451a78f11b9242e867926253341571f6a8 \
        -y "mp4:wowz://origin243.stream.highwebmedia.com/live-origin/%model%-sd-968a13449d3795b401a550904dcc15ccb78b2309cc5790e66e14a8b3ba54eb2e_trns_h264_1080p" \
        -o "$file"
        fsize=$(ls -s "$file")
        if [ "$fsize" = "0 ${file}" ]; then rm "$file"; fi
        sleep 60
done


Tried this one as well:

HTML Code:

sudo apt update
sudo apt upgrade

sudo apt-get install build-essential git libssl1.0-dev

git clone https://github.com/BurntSushi/rtmpdump-ksv.git
cd rtmpdump-ksv
make

It ends here with this error:

HTML Code:

sudo apt-get install build-essential git libssl1.0-dev

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0-dev' has no installation candidate


supersonic80 05-23-2020 11:28 PM

Re: Customized rtmpdump binaries with patch file


 
Have no much interest in dealing with this. Imho, it looks like support for libssl1.0 was obsolete in your Ubuntu release. Either downgrade to Ubuntu 16.04 or try to use Docker (I pm'ed you a Docker files).


Quote:

Originally Posted by cabulo (Post 96915)
supersonic80,

Are you still alive and well ?

HELP !!

I can't make your updated rtmpdump working on latest Ubuntu following your guidance from Github.
Can you please post new guidance on how to install your rtmpdump?

Here is my script and there is only working rtmpdump missing. Your rtmpdump works in windows.

HTML Code:

#!/bin/bash
model="karitto__2"
while :; do
        d=$(date +%Y-%m-%d_%H-%M-%S)
        file="${model}_${d}.flv"
        rtmpdump -v -r "rtmp://edge147.stream.highwebmedia.com/live-edge" \
        -a "live-edge" \
        -f "WIN 32,0,0,344" \
        -W "https://ssl-ccstatic.highwebmedia.com/tsdefaultassets/CBV_TS_v1.0.swf" \
        -p "https://chaturbate.com/%model%/" \
        -C S:cabulo \
        -C S:%model% \
        -C S:3.22 \
        -C S:c066c87f3b352759d75ff4f7a937a36de9fadf76364fb17dbb750595a8bbc76bfe4f28bcd9fd12cd8eeea8b6bb70dff8c1930b20307bd1151c7770b4ce6e7176 \
        -C S:cb69382e5826264c5fcd5450fc7baa451a78f11b9242e867926253341571f6a8 \
        -y "mp4:wowz://origin243.stream.highwebmedia.com/live-origin/%model%-sd-968a13449d3795b401a550904dcc15ccb78b2309cc5790e66e14a8b3ba54eb2e_trns_h264_1080p" \
        -o "$file"
        fsize=$(ls -s "$file")
        if [ "$fsize" = "0 ${file}" ]; then rm "$file"; fi
        sleep 60
done


Tried this one as well:

HTML Code:

sudo apt update
sudo apt upgrade

sudo apt-get install build-essential git libssl1.0-dev

git clone https://github.com/BurntSushi/rtmpdump-ksv.git
cd rtmpdump-ksv
make

It ends here with this error:

HTML Code:

sudo apt-get install build-essential git libssl1.0-dev

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0-dev' has no installation candidate



rastafari90 05-27-2020 01:03 PM

Re: Customized rtmpdump binaries with patch file


 
Just download the libssl 1 package from google...

Since you don't have libssl 1 I'm guessing you're running ubuntu 19.10 / 20.04 or a flavor of it. When you downloaded the libssl1.0.0_ package go to the folder where you downloaded it and go into the terminal and type: sudo dpkg -i libssl1.0.0_.


All times are GMT -6. The time now is 02:11 PM.