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_.

cabulo 05-27-2020 01:41 PM

Re: Customized rtmpdump binaries with patch file


 
Yes, I run Ubuntu Studio 20.04.

I installed libssl1.0-dev following this:

https://github.com/rvm/rvm/issues/47...ment-624796884


1) sudo nano /etc/apt/sources.list
2) append this line to the end of file:
HTML Code:

deb http://security.ubuntu.com/ubuntu bionic-security main
save and exit nano

3) sudo apt update && apt-cache policy libssl1.0-dev
4) sudo apt-get install libssl1.0-dev


After that, KSV rtmpdump installation procedure did't work which did on older Ubuntus
and I installed other rtmpdump in this way:

cp ./rtmpdump /usr/bin
cp ./librtmp.so.1 /usr/lib/x86_64-linux-gnu/
ln -s /usr/lib/x86_64-linux-gnu/librtmp.so.1 /usr/lib/x86_64-linux-gnu/librtmp.so

This did work, and now when I restart my PC pop-up message shows up:

HTML Code:

System program problem detected
Do you want to report the problem now?
Report problem...

I always kindly click on "Report problem..." and I always get the same message again when I start my PC.
Apart from seeing that pop-up message every day when I start my PC I haven't noticed
any other problem when using PC.

Having said all that, who wants to install custom rtmpdump in this way can do so at it's own risk.

I have rtmpsuck and rtmpsrv working from old package that was on system before
and new rtmpdump working, and linux as-is.

cabulo 05-27-2020 02:26 PM

Re: Customized rtmpdump binaries with patch file


 
HTML Code:

#!/bin/bash
set -x #echo on
model="realhousewifexxx"
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:AnonymousUser \
        -C S:${model} \
        -C S:3.22 \
        -C S:anonymous \
        -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

HTML Code:

+ model=realhousewifexxx
+ :
++ date +%Y-%m-%d_%H-%M-%S
+ d=2020-05-27_21-16-51
+ file=realhousewifexxx_2020-05-27_21-16-51.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/realhousewifexxx/ -C S:AnonymousUser -C S:realhousewifexxx -C S:3.22 -C S:anonymous -C S:cb69382e5826264c5fcd5450fc7baa451a78f11b9242e867926253341571f6a8 -y mp4:wowz://origin243.stream.highwebmedia.com/live-origin/realhousewifexxx-sd-968a13449d3795b401a550904dcc15ccb78b2309cc5790e66e14a8b3ba54eb2e_trns_h264_1080p -o realhousewifexxx_2020-05-27_21-16-51.flv
RTMPDump v2.4 for https://github.com/sstativa/mfc-node
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  duration                0.00
INFO:  fileSize                0.00
INFO:  audiosamplesize        16.00
INFO:  stereo                  TRUE
INFO:  2.1                    FALSE
INFO:  3.1                    FALSE
INFO:  4.0                    FALSE
INFO:  4.1                    FALSE
INFO:  5.1                    FALSE
INFO:  7.1                    FALSE
INFO:  encoder                obs-output module (libobs version 25.0.8)
INFO: trackinfo:
INFO:  type                    video
INFO:  profileLevelId          640028
INFO:  spropParameterSets      Z2QAKKwrQDwBE/LgIgAAB9AAAdTBHpVA,aO48sA==
INFO:  description            codec:"H264"", profile:"High", level:"4.0", frameSize:"1920x1080", displaySize:"1920x1080", frameRate:"30.0", PAR:"1:1", crop: "l:0 r:0 t:0 b:4"
INFO: sampledescription:
INFO:  sampletype              mp4a
INFO:  type                    audio
INFO:  timescale              44100.00
INFO:  config                  1210
INFO:  description            {AACFrame: codec:AAC, channels:2, frequency:44100, samplesPerFrame:1024, objectType:LC}
INFO: sampledescription:
INFO:  sampletype              avc1
INFO:  avcprofile              100.00
INFO:  avclevel                40.00
INFO:  videocodecid            avc1
INFO:  width                  1920.00
INFO:  height                  1080.00
INFO:  frameWidth              1920.00
INFO:  frameHeight            1080.00
INFO:  displayWidth            1920.00
INFO:  displayHeight          1080.00
INFO:  framerate              30.00
INFO:  videodatarate          4882.00
INFO:  audiochannels          2.00
INFO:  audiosamplerate        44100.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          125.00
INFO: transcoder:
INFO:  audioCodec              AAC
INFO:  audioBitrate            128000.00
INFO:  audioEncodingParams    FALSE
INFO:  videoCodec              H264
INFO:  videoBitrate            5000000.00
INFO:  videoImplementation    NVENC
INFO:  videoProfile            HIGH
INFO:  videoFrameSizeFitMode  fit-height
INFO:  videoFrameSizeWidth    0.00
INFO:  videoFrameSizeHeight    1080.00
INFO:  videoKeyFrameFollowSourceFALSE
INFO:  videoKeyFrameInterval  30.00
INFO:  videoEncodingParams    FALSE
10577.723 kB / 15.67 sec


rastafari90 05-27-2020 04:22 PM

Re: Customized rtmpdump binaries with patch file


 
http://security.ubuntu.com/ubuntu/po...4.15_amd64.deb Worked for me.

If you still can't compile the modified rtmpdump and librtmp.so.1 you can create a live usb of linux 18.04 and compile it there. After that make a backup of /usr/bin/rtmpdump and /usr/lib/x86_64-linux-gnu/librtmp.so.1 and replace the ones on your ubuntu 20.04. After that just dpkg install the libssl from above and it should work without returning any errors (hopefully). It worked for me.

cabulo 05-27-2020 04:48 PM

Re: Customized rtmpdump binaries with patch file


 
Thanks,

I'll try that as well.
I actually have a few disks and do installs when I am in a good mood, usually every other day.
That error message I get is maybe because author wrote: sudo apt-get install libssl1.0-dev,
apt-get instead of: apt, so something ain't on record.
Whatever, number of people working on Linux is thousends times of those working in Microsoft
so I'm not surprised with every day's new mess with Linux.

Just have a look at number of distros, imagine it all worked right... wrong.

https://distrowatch.com/table.php


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