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)

vanminhland87 11-21-2017 01:18 PM

Re: Customized rtmpdump binaries with patch file


 
CÄ?n Há»™ Gi?? Rá?» Quá?*n 9 Vincity tuy mang trong m?¬nh l?* dá»± ??n chung c?° kiá»?u má?«u gi?? rá?» nh?°ng c??c dịch vá»? ti??n nghi 5 sao Ä‘i k?¨m Ä‘á»?u Ä‘á??t Ä‘á??t ti??u chuá?©n quốc tá?? v?* do ch?*nh Vingroup triá»?n khai v?* phá»?c vá»? phá»?c vá»? ri??ng chá»§ cÄ?n há»™ sống trong cÄ?n há»™. chung c?° vincity l?* Ä‘?´ thị thu nhá»? kh?©p k?*n vá»›i Ä‘á?§y đủ tiện nghi ti??n nghi 5 sao nh?°:



- Tr?°á»?ng há»?c Ä‘á??t ti??u chuá?©n quốc tá?? Vinschool

- Bệnh viện Ä‘á??t ti??u chuá?©n quốc tá?? Vinmec

- Hệ thống si??u thị Vinmart

- Hệ thống khu th?°??ng má??i ti??u chuá?©n 5 sao Vincom

- Trung t??m quá??n l?? bá??t động sá??n v?* cung ứng dịch vá»? t??a nh?* Vinhomes

- Dịch vá»? du lịch v?* nghỉ d?°á»?ng Vinpearl

Vá»›i mức gi?? từ 700/cÄ?n há»™ rá??t th?*ch há»?p vá»›i c??c cá?·p vá»? chồng má»›i ká??t h?´n hoá?·c nhá»?ng chá»§ sá»? há»?u cÄ?n há»™ độc th??n muốn c?? cuá»™c sống ri??ng ổn định c?? mức thu nhá?*p kh??. vincity Quá?*n 9 h?°á»›ng tá»›i sá»± á??m ??p Ä‘á??m bá??o vá»? an ninh v?* tr??ch nhiệm cá»§a chá»§ Ä‘á?§u t?°, sá»± ra Ä‘á»?i cá»§a nh?* á»? gi?? rá?» vincity Quá?*n 9 th??c Ä‘á?©y sá»± ph??t triá»?n kinh tá?? v?* Ä‘á?§u t?° cá»§a c??c nh?* kinh doanh gi??p Quá?*n 9 trá»? th?*nh trung t??m kinh tá?? má»›i v?* Ä‘á?©y má??nh gi?? trị dá»± ??n c?©ng nh?° gi?? trị cuá»™c sống con ng?°á»?i trong t?°??ng lai.

Hotline : 0911.34.33.22 – 0983.814.333



Dá»± ??n cÄ?n há»™ VinCity Quá?*n 9 Ä‘?°á»?c tá»?a lá??c má?·t tiá»?n Ä‘?°á»?ng Nguyá»…n Xiá»?n khu vá»±c ngay vị tr?* trung t??m cá»§a Quá?*n 9 Ä‘?°á»?c xem l?* Ä‘á??t gi?? tr??n thị tr?°á»?ng bá??t động sá??n ph?*a Ä‘?´ng TP.Hồ Ch?* Minh.

Tiện ?*ch: Th?°??ng má??i, Hồ b??i, C?´ng vi??n c??y xanh, Gym, Spa, Khu giá??i tr?* trá?» em, Nh?* cá»™ng đồng…

– Gi?? b??n:

+ CÄ?n há»™ 1 Ph??ng Ngá»§: Từ 650 Triệu

+ CÄ?n há»™ 2 Ph??ng Ngá»§: Từ 800 Triệu

+ CÄ?n há»™ 3 Ph??ng Ngá»§: Từ 1 – 1.1 Tá»·

– Ph??p l??: Sổ hồng (Chá??t L?°á»?ng 5 Sao Gi?? 1 Sao)

Li??n Hệ Chá»§ Ä?á?§u T?° : 0911.3433.22- 0983.814.333

ilje 11-21-2017 05:56 PM

Re: Customized rtmpdump binaries with patch file


 
chaturbate not working more with rtmpdump :(

j_cool 11-22-2017 01:56 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by ilje (Post 95428)
chaturbate not working more with rtmpdump :(

Chaturbate works with KSV's rtmpdump if you know how to use rtmpdump with right parameters.

Code:

C:\>for /F %a in ('CLBlow.exe') do set model=%a

C:\>set model=anabelleleigh

C:\>title RDUMP anabelleleigh

C:\>for /F %b in ('dt.exe') do set d=%b

C:\>set d=2017-11-22_08-50-11-637

C:\>rtmpdump.exe -v -r "rtmp://edge36.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 26,0,0,151" -W "https://chaturbate.com/static/flash/CBV_2p670.swf" -p "https://chaturbate.com/anabelleleigh/" -C S:**** -C S:anabelleleigh -C S:2.670 -C S:*****71f9ed642700489146f67c1a8e60b1e2ec47d9ca92be44319a94be9c07623967f94d97042b87f795abf81d1f2fe9afed0d8df29862cf208ae797768e433 -C S:*****f2337c0e8cc451a3c501564e164370953a1e09d4116065457ff1bdca824 -y "mp4:wowz://origin36.stream.highwebmedia.com/live-origin/anabelleleigh-sd-*****58103439c905a653db090179c3e4b80c402d379875cd983497e18baf79d_trns_h264_480p" -o "c:\anabelleleigh_2017-11-22_08-50-11-637.flv"
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  Server                  NGINX RTMP (github.com/arut/nginx-rtmp-module)
INFO:  width                  1280.00
INFO:  height                  720.00
INFO:  displayWidth            1280.00
INFO:  displayHeight          720.00
INFO:  duration                0.00
INFO:  framerate              29.00
INFO:  fps                    29.00
INFO:  videodatarate          3000.00
INFO:  videocodecid            0.00
INFO:  audiodatarate          160.00
INFO:  audiocodecid            0.00
INFO:  profile                ´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?
INFO:  level                  ´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?
3777.103 kB / 14.78 sec


j_cool 11-22-2017 02:00 AM

Re: Customized rtmpdump binaries with patch file


 
Rtmpsuck crush from post http://stream-recorder.com/forum/sho...&postcount=440 was on Ubuntu 17.04 64-bit (firefox 57).

Nature of the crush made me think that it might be something to do with OS memory management so I tried:

Ubuntu 17.04 32-bit (firefox 52.0.1)


root@j:/home/j/rtmpdump# rtmpsuck
RTMP Proxy Server v2.4 KSV-2015-12-14
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
Segmentation fault (core dumped)
root@j:/home/j/rtmpdump#


This happens on every rtmp site I tried.

It cannot be that rtmpsuck never worked ever on ubuntu 32-bit, so more testing is needed.

Here is some reading about this fault I googled out:

https://stackoverflow.com/questions/...lt-core-dumped


"Segmentation fault" means that you tried to access memory that you do not have access to.

ilje 11-22-2017 04:48 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by j_cool (Post 95440)
Chaturbate works with KSV's rtmpdump if you know how to use rtmpdump with right parameters.

Code:

C:\>for /F %a in ('CLBlow.exe') do set model=%a

C:\>set model=anabelleleigh

C:\>title RDUMP anabelleleigh

C:\>for /F %b in ('dt.exe') do set d=%b

C:\>set d=2017-11-22_08-50-11-637

C:\>rtmpdump.exe -v -r "rtmp://edge36.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 26,0,0,151" -W "https://chaturbate.com/static/flash/CBV_2p670.swf" -p "https://chaturbate.com/anabelleleigh/" -C S:**** -C S:anabelleleigh -C S:2.670 -C S:*****71f9ed642700489146f67c1a8e60b1e2ec47d9ca92be44319a94be9c07623967f94d97042b87f795abf81d1f2fe9afed0d8df29862cf208ae797768e433 -C S:*****f2337c0e8cc451a3c501564e164370953a1e09d4116065457ff1bdca824 -y "mp4:wowz://origin36.stream.highwebmedia.com/live-origin/anabelleleigh-sd-*****58103439c905a653db090179c3e4b80c402d379875cd983497e18baf79d_trns_h264_480p" -o "c:\anabelleleigh_2017-11-22_08-50-11-637.flv"
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  Server                  NGINX RTMP (github.com/arut/nginx-rtmp-module)
INFO:  width                  1280.00
INFO:  height                  720.00
INFO:  displayWidth            1280.00
INFO:  displayHeight          720.00
INFO:  duration                0.00
INFO:  framerate              29.00
INFO:  fps                    29.00
INFO:  videodatarate          3000.00
INFO:  videocodecid            0.00
INFO:  audiodatarate          160.00
INFO:  audiocodecid            0.00
INFO:  profile                ´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?
INFO:  level                  ´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?´┐?
3777.103 kB / 14.78 sec


edit: sorry my bad cbt not works more with new rtmpdump git update but works with old rtmpdump-3a69b31

confused.com 03-07-2018 03:19 AM

Re: Customized rtmpdump binaries with patch file


 
http://stream-recorder.com/forum/sho...&postcount=439

rtmpdump-2.4-20151223-gfa8646d-GnuTLS_3.5.12-win32-static.27-May-2017.zip

https://www.datafilehost.com/d/458e9057

j_cool 06-03-2018 06:00 AM

Re: Customized rtmpdump binaries with patch file


 
For those who never tried this search, living under a rock like me, here it is:

rtmpdump as it goes

https://github.com/search?o=desc&q=r...Repositori es


rantanplan 12-08-2018 06:55 AM

Re: Customized rtmpdump binaries with patch file


 
Customized rtmpdump stoped working with Chaturbate a few days ago.

With the same parameters which worked before, all I get is the message:
Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...

And then it never returns.

It seems that they changed something on their rtmp servers...

confused.com 12-08-2018 10:58 AM

Re: Customized rtmpdump binaries with patch file


 
QUOTE
Quote:

Originally Posted by Elgero (Post 96455)
Rtmp/flash is dying (Adobe will drop support in 2020)


rantanplan 12-08-2018 02:19 PM

Re: Customized rtmpdump binaries with patch file


 
So?

They still serve rtmp... And maybe this issue could be fixed. Right now I see no other way to record private rooms. With streamlink, for example, you can only record public rooms.

cabulo 12-08-2018 10:43 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by rantanplan (Post 96659)
INFO: Connected...
And then it never returns.

DEBUG: Invoking CheckPublicStatus
DEBUG: RTMP_ClientPacket, flex message, size 18 bytes, not fully supported


maybe rtmpdump needs patch update


Code:

C:\rtmpdump -V -v -r "rtmp://edge106.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 32,0,0,101" -W "https://chaturbate.com/static/flash/CBV_2p690.swf" -p "https://chaturbate.com/amirabelle4u/" -C S:AnonymousUser -C S:amirabelle4u -C S:2.690 -C S:anonymous -C S:9befc6cab570d634cfafdee097bf1119c1e6fdd7eafd48e4e457c20f8bc89ac6 -y "mp4:wowz://origin127.stream.highwebmedia.com/live-origin/amirabelle4u-sd-30cd43aeabf97a286f90fe2b2d84f79dd96f68d825fef0186dc1366f8adab0ec_trns_h264_480p" -o "amirabelle4u.flv"
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host    : edge106.stream.highwebmedia.com
DEBUG: Parsed app    : live-edge
DEBUG: Protocol : RTMP
DEBUG: Hostname : edge106.stream.highwebmedia.com
DEBUG: Port    : 1935
DEBUG: Playpath : mp4:wowz://origin127.stream.highwebmedia.com/live-origin/amirabelle4u-sd-30cd43aeabf97a286f90fe2b2d84f79dd96f68d825fef0186dc1366f8adab0ec_trns_h264_480p
DEBUG: tcUrl    : rtmp://edge106.stream.highwebmedia.com:1935/live-edge
DEBUG: swfUrl  : https://chaturbate.com/static/flash/CBV_2p690.swf
DEBUG: pageUrl  : https://chaturbate.com/amirabelle4u/
DEBUG: app      : live-edge
DEBUG: flashVer : WIN 32,0,0,101
DEBUG: live    : yes
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: 93 f9 99 b0 1e 99 6c 71 cb 4c e8 7f 88 d4 cd f0
DEBUG: 35 8d a8 99 2f 67 ad 9c 17 08 26 05 07 72 df 40
DEBUG: SWFSize  : 590105
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 03
DEBUG: HandShake: Client digest offset: 160
DEBUG: HandShake: Initial client digest:
DEBUG: 92 a2 54 62 70 3c ff 29 f4 57 4f cb d7 b7 d1 0b
DEBUG: 20 51 a3 ce e0 68 72 57 4c bd 81 b9 e9 2f 36 29
DEBUG: HandShake: Type Answer  : 03
DEBUG: HandShake: Server Uptime : 96850052
DEBUG: HandShake: FMS Version  : 3.0.1.1
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: 9e ed a0 e9 fc b3 3f d8 7e 08 1f 41 80 75 a1 bb
DEBUG: a5 5c ec c1 5f 4c 3d f0 27 7f 69 ae b0 f9 45 47
DEBUG: HandShake: Client signature calculated:
DEBUG: 26 ac fd 77 a9 85 64 c6 3e 18 70 0d f0 34 cf 45
DEBUG: 95 15 eb d9 12 1f f5 1e 21 84 12 8d 96 33 40 64
DEBUG: HandShake: Server sent signature:
DEBUG: da a8 ad 0e ad 98 bf 2c 24 19 c7 fc 1a db f0 bb
DEBUG: 12 77 f1 d1 82 42 99 9e a8 3a 38 05 e7 b7 7d b3
DEBUG: HandShake: Digest key:
DEBUG: 67 7c f4 cf 1a 40 70 e9 8a fe 40 eb 35 fa 4c d4
DEBUG: 5a 03 71 78 34 05 98 d5 47 ae 90 e3 99 a1 6f 10
DEBUG: HandShake: Signature calculated:
DEBUG: da a8 ad 0e ad 98 bf 2c 24 19 c7 fc 1a db f0 bb
DEBUG: 12 77 f1 d1 82 42 99 9e a8 3a 38 05 e7 b7 7d b3
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 2500000
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG: HandleCtrl, received ctrl, type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 261 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:    _result>
DEBUG: Property: <Name:            no-name, NUMBER:    1.00>
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:            fmsVer, STRING:    FMS/3,5,7,7009>
DEBUG: Property: <Name:      capabilities, NUMBER:    31.00>
DEBUG: Property: <Name:              mode, NUMBER:    1.00>
DEBUG: (object end)
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:    status>
DEBUG: Property: <Name:              code, STRING:    NetConnection.Connect.Success>
DEBUG: Property: <Name:        description, STRING:    Connection succeeded.>
DEBUG: Property: <Name:              data, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name:            version, STRING:    3,5,7,7009>
DEBUG: (object end)
DEBUG: Property: <Name:          clientid, NUMBER:    300368570.00>
DEBUG: Property: <Name:    objectEncoding, NUMBER:    3.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: sending ctrl, type: 0x0003
DEBUG: Invoking CheckPublicStatus
DEBUG: RTMP_ClientPacket, flex message, size 18 bytes, not fully supported
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:    dcps>
DEBUG: Property: <Name:            no-name, NUMBER:    0.00>
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <dcps>
DEBUG: HandleCtrl, received ctrl, type: 6, len: 6
DEBUG: HandleCtrl, Ping 20160
DEBUG: sending ctrl, type: 0x0007
DEBUG: HandleCtrl, received ctrl, type: 6, len: 6
DEBUG: HandleCtrl, Ping 40418
DEBUG: sending ctrl, type: 0x0007
DEBUG: HandleCtrl, received ctrl, type: 6, len: 6
DEBUG: HandleCtrl, Ping 60736
DEBUG: sending ctrl, type: 0x0007


supersonic80 12-09-2018 01:45 AM

Re: Customized rtmpdump binaries with patch file


 
Not in a position to release the code, but I have a compiled version of rtmpdump for Linux. Seems to me it works without any issues (I tried only Ubuntu 16.04).

Does anyone want to try?
It's not for Windows, but I assume it can be used with VM or in the Docker container.

cabulo 12-09-2018 05:51 AM

Re: Customized rtmpdump binaries with patch file


 
Great.

I can use it with debian.

Where is the download link ?

rantanplan 12-09-2018 07:30 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by supersonic80 (Post 96663)
Not in a position to release the code, but I have a compiled version of rtmpdump for Linux. Seems to me it works without any issues (I tried only Ubuntu 16.04).

Does anyone want to try?
It's not for Windows, but I assume it can be used with VM or in the Docker container.

I'm also on Ubuntu 16.04. Can you please send me the patch?
What version of rtmpdump are you using?

Cheers

supersonic80 12-09-2018 11:15 AM

Re: Customized rtmpdump binaries with patch file


 
https://mega.nz/#!F2wDlSAK!Fwv7vYhgm...Iwf4F5Ur RvKU

Ubuntu
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

rantanplan 12-10-2018 03:29 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by supersonic80 (Post 96666)
https://mega.nz/#!F2wDlSAK!Fwv7vYhgm...Iwf4F5Ur RvKU

Ubuntu
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

I was actually looking for the patch, not the binary...

confused.com 12-10-2018 03:51 AM

Re: Customized rtmpdump binaries with patch file


 
QUOTE
Quote:

Originally Posted by rantanplan (Post 96667)
I was actually looking for the patch, not the binary...

Quote:

Originally Posted by supersonic80 (Post 96663)
Not in a position to release the code


rantanplan 12-10-2018 01:47 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Not in a position to release the code
I don't understand. It's GPL license...

dniblick 12-17-2018 07:41 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by supersonic80 (Post 96666)
https://mega.nz/#!F2wDlSAK!Fwv7vYhgm...Iwf4F5Ur RvKU

Ubuntu
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

You deleted the file before I got a chance to try it. :(

cabulo 12-17-2018 11:01 AM

Re: Customized rtmpdump binaries with patch file


 
dniblick,

don't despair.

give it a try and tell us how it goes.

get at least 2 posts on this forum from after Aug 2014.

https://www.datafilehost.com/d/c98be740

supersonic80 12-17-2018 03:42 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by dniblick (Post 96695)
You deleted the file before I got a chance to try it. :(

Whoops, my fault. Was not aware of this.

dniblick 12-18-2018 03:55 PM

Re: Customized rtmpdump binaries with patch file


 
Preliminary testing looks good. This seems to address whatever change occurred in the latest Wowza update, or perhaps just a configuration change that went with the push.

rastafari90 12-18-2018 04:19 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by rantanplan (Post 96670)
I don't understand. It's GPL license...

It's not so much that it's under the GPL license or being/not being in a position to release the code. It's the fact that supersonic80 got the pacthed rtmpdump and librtmp.so.1 from the patch creator Sergey Stativa. If he'd patch it himself, he'd be able to tell you what he changed.

confused.com 12-18-2018 11:20 PM

Re: Customized rtmpdump binaries with patch file


 
http://stream-recorder.com/forum/sho...9&postcount=30

dniblick 12-19-2018 02:36 AM

Re: Customized rtmpdump binaries with patch file


 
Sergey's committed his latest code and it seems to work. On Ubuntu 18.04 there are still compile issues with OpenSSL 1.1.0 in the rtmpdump codebase that I simply resolved by using GnuTLS for now (I found a ported codebase and the patches applied fine, but it wasn't working so I left it alone).

cabulo 12-19-2018 06:26 AM

Re: Customized rtmpdump binaries with patch file


 
https://github.com/sstativa/rtmpdump-ksv

This looks good.
It would be great if somebody who finds link to compiled package for windows to post a link here.
It would save trouble to all of us from compiling.

supersonic80 12-19-2018 06:22 PM

Re: Customized rtmpdump binaries with patch file


 
I have some instructions on how to compile this using MinGW, but it is too complicated. I'm not sure it will be useful for many.

Quote:

Originally Posted by cabulo (Post 96718)
https://github.com/sstativa/rtmpdump-ksv

This looks good.
It would be great if somebody who finds link to compiled package for windows to post a link here.
It would save trouble to all of us from compiling.


j_cool 12-19-2018 11:27 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by supersonic80 (Post 96719)
I have some instructions on how to compile

This looks good too.
If it works for you, it will be enough. You can post download link on https://www.datafilehost.com/
after you compile the package. KSV did it once before on github.
I compile my autoit scripts with two clicks of a mouse and don't get that Linus Torvalds makes nothing less than Linux
and then millions of other programers cannot simplify shit compiling work procedure.

HYC likes linux so much and despises of windows so much,
how about simplicity of compiling ffmpeg and rtmpdump for the start?
Try to compile ffmpeg and then post here how enjoyable time you had.

supersonic80 12-20-2018 05:01 AM

Re: Customized rtmpdump binaries with patch file


 
The next one is the instruction I have, I only made some changes to make it work:
1. I had to remove the line 40 of rtmpdump.c, otherwise it would not compile.
2. I added -static after -lz on line 14 of Makefile to make rtmpdump "self-sufficient".

Instruction:
# Suppose the current user is IEUser (replace by your username)

# Install MinGW
https://osdn.net/projects/mingw/down...get-setup.exe/

# Run and select to install
mingw-developer-toolkit-bin
mingw32-base-bin
mingw32-gcc-g++-bin
msys-base-bin

# Download and unpack
https://www.zlib.net/zlib1211.zip
https://www.openssl.org/source/openssl-1.0.2q.tar.gz
https://github.com/sstativa/rtmpdump...ive/master.zip

# Open cmd.exe and start
c:\MinGW\msys\1.0\msys.bat

# Next should be run in msys window

# Compile openssl
cd /c/Users/IEUser/Downloads/openssl-1.0.2q
./config
make

# Compile zlib
cd /c/Users/IEUser/Downloads/zlib-1.2.11
make -f win32/Makefile.gcc

# Compile rtmdump-ksv
cd /c/Users/IEUser/Downloads/rtmpdump-ksv-master

make SYS=mingw INC="-I/c/Users/IEUser/Downloads/openssl-1.0.2q/include -I/c/Users/IEUser/Downloads/zlib-1.2.11 -L/c/Users/IEUser/Downloads/openssl-1.0.2q -L/c/Users/IEUser/Downloads/zlib-1.2.11" LDFLAGS="-L/c/Users/IEUser/Downloads/openssl-1.0.2q -L/c/Users/IEUser/Downloads/zlib-1.2.11"

Damianonymous 12-20-2018 01:13 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by rastafari90 (Post 96713)
It's not so much that it's under the GPL license or being/not being in a position to release the code. It's the fact that supersonic80 got the pacthed rtmpdump and librtmp.so.1 from the patch creator Sergey Stativa. If he'd patch it himself, he'd be able to tell you what he changed.

This is one person.

j_cool 12-30-2018 06:01 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by supersonic80 (Post 96722)
The next one is the instruction I have, I only made some changes to make it work:
1. I had to remove the line 40 of rtmpdump.c, otherwise it would not compile.
2. I added -static after -lz on line 14 of Makefile to make rtmpdump "self-sufficient".

Instruction:
# Suppose the current user is IEUser (replace by your username)

# Install MinGW
https://osdn.net/projects/mingw/down...get-setup.exe/

# Run and select to install
mingw-developer-toolkit-bin
mingw32-base-bin
mingw32-gcc-g++-bin
msys-base-bin

# Download and unpack
https://www.zlib.net/zlib1211.zip
https://www.openssl.org/source/openssl-1.0.2q.tar.gz
https://github.com/sstativa/rtmpdump...ive/master.zip

# Open cmd.exe and start
c:\MinGW\msys\1.0\msys.bat

# Next should be run in msys window

# Compile openssl
cd /c/Users/IEUser/Downloads/openssl-1.0.2q
./config
make

# Compile zlib
cd /c/Users/IEUser/Downloads/zlib-1.2.11
make -f win32/Makefile.gcc

# Compile rtmdump-ksv
cd /c/Users/IEUser/Downloads/rtmpdump-ksv-master

make SYS=mingw INC="-I/c/Users/IEUser/Downloads/openssl-1.0.2q/include -I/c/Users/IEUser/Downloads/zlib-1.2.11 -L/c/Users/IEUser/Downloads/openssl-1.0.2q -L/c/Users/IEUser/Downloads/zlib-1.2.11" LDFLAGS="-L/c/Users/IEUser/Downloads/openssl-1.0.2q -L/c/Users/IEUser/Downloads/zlib-1.2.11"


I tried to compile rtmpdump and didn't work, this is how:

removed line 40 of rtmpdump.c ( #define off_t off64_t )

added -static after -lz on line 14 of Makefile ( LIBZ=-lz -static )

renamed Users/IEUser/Downloads to supersonic


STEPS TAKEN:

Code:

# Open cmd.exe and start
c:\MinGW\msys\1.0\msys.bat

# Next should be run in msys window
# Compile openssl
cd /c/supersonic/openssl-1.0.2q
./config
make

# Compile zlib
cd /c/supersonic/zlib-1.2.11
make -f win32/Makefile.gcc

# Compile rtmdump-ksv
cd /c/supersonic/rtmpdump-ksv-master
make SYS=mingw INC="-I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11" LDFLAGS="-L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11"
Reply With Quote


ERRORS:

Code:

J@PC /c/supersonic/openssl-1.0.2q
$ ./config

Configured for mingw.


J@PC /c/supersonic/openssl-1.0.2q
$ make
making all in crypto...
make[1]: Entering directory `/c/supersonic/openssl-1.0.2q/crypto'
making all in crypto/objects...
make[2]: Entering directory `/c/supersonic/openssl-1.0.2q/crypto/objects'
ar  r ../../libcrypto.a o_names.o obj_dat.o obj_lib.o obj_err.o obj_xref.o
C:\MinGW\bin\ar.exe: could not create temporary file whilst writing archive: no more archived files
make[2]: *** [lib] Error 1
make[2]: Leaving directory `/c/supersonic/openssl-1.0.2q/crypto/objects'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/c/supersonic/openssl-1.0.2q/crypto'
make: *** [build_crypto] Error 1


J@PC /c/supersonic/zlib-1.2.11
$ make -f win32/Makefile.gcc
gcc  -o minigzip_d.exe minigzip.o libz.dll.a
strip minigzip_d.exe


J@PC /c/supersonic/rtmpdump-ksv-master
$ make SYS=mingw INC="-I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q
 -L/c/supersonic/zlib-1.2.11" LDFLAGS="-L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11"
make[1]: Entering directory `/c/supersonic/rtmpdump-ksv-master/librtmp'
gcc -shared -Wl,--out-implib,librtmp.dll.a -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11 -o librtmp-1.dll rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lssl
collect2.exe: error: ld returned 1 exit status
make[1]: *** [librtmp-1.dll] Error 1
make[1]: Leaving directory `/c/supersonic/rtmpdump-ksv-master/librtmp'
make: *** [librtmp/librtmp.a] Error 2


confused.com 12-31-2018 12:51 AM

Re: Customized rtmpdump binaries with patch file


 
https://github.com/jb-alvarado/media-autobuild_suite

supersonic80 01-01-2019 02:09 AM

Re: Customized rtmpdump binaries with patch file


 
https://mega.nz/#!RnZjxKLC!MPlWrKNzr...lskexHNIkmjR10

supersonic80 01-01-2019 02:39 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by j_cool (Post 96740)
I tried to compile rtmpdump and didn't work, this is how:

removed line 40 of rtmpdump.c ( #define off_t off64_t )

added -static after -lz on line 14 of Makefile ( LIBZ=-lz -static )

renamed Users/IEUser/Downloads to supersonic

I believe compiling of openssl should be a bit different, try this:

Code:

# Compile openssl
cd /c/supersonic/openssl-1.0.2q
make clean
./config shared
make

Then

Code:

# Compile rtmdump-ksv
cd /c/supersonic/rtmpdump-ksv-master
make clean
make SYS=mingw INC="-I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11" LDFLAGS="-L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11"


j_cool 01-02-2019 01:12 AM

Re: Customized rtmpdump binaries with patch file


 
Here is new atempt after changes:

removed line 40 of rtmpdump.c ( #define off_t off64_t )
line 14 of Makefile ( LIBZ=-lz ) ( no change here, leave it as it is to get shared option, -static didn't work either)
renamed Users/IEUser/Downloads to supersonic

Code:

# Open cmd.exe and start
c:\MinGW\msys\1.0\msys.bat

# Next should be run in msys window
# Compile openssl
cd /c/supersonic/openssl-1.0.2q
make clean
./config shared
make

# Compile zlib
cd /c/supersonic/zlib-1.2.11
make -f win32/Makefile.gcc

# Compile rtmdump-ksv
cd /c/supersonic/rtmpdump-ksv-master
make clean
make SYS=mingw INC="-I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11" LDFLAGS="-L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11"

Code:

J@PC ~
$ cd /c/supersonic/openssl-1.0.2q

J@PC /c/supersonic/openssl-1.0.2q
$ make clean

        ( no error )

J@PC /c/supersonic/openssl-1.0.2q
$ ./config shared
Operating system: i686-whatever-mingw
Configuring for mingw

        ( removed about 300 lines, no error )

Configured for mingw.

J@PC /c/supersonic/openssl-1.0.2q
$ make
making all in crypto...
make[1]: Entering directory `/c/supersonic/openssl-1.0.2q/crypto'
/bin/perl.exe ../util/mkbuildinf.pl "gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM" "mingw" >buildinf.h
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o cryptlib.o cryptlib.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o mem.o mem.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o mem_dbg.o mem_dbg.c
mem_dbg.c: In function 'print_leak_doall_arg':
mem_dbg.c:636:15: warning: unused variable 'result' [-Wunused-variable]
    struct tm result = {0};
              ^~~~~~
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o cversion.o cversion.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o ex_data.o ex_data.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o cpt_err.o cpt_err.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o ebcdic.o ebcdic.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o uid.o uid.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o o_time.o o_time.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o o_str.o o_str.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o o_dir.o o_dir.c
In file included from LPdir_win32.c:29,
                from o_dir.c:82:
LPdir_win.c: In function 'OPENSSL_DIR_read':
LPdir_win.c:167:9: warning: 'strncpy' output may be truncated copying 255 bytes from a string of length 259 [-Wstringop-truncation]
        strncpy((*ctx)->entry_name, (const char *)(*ctx)->ctx.cFileName,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                sizeof((*ctx)->entry_name) - 1);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

continued, more than 10000 characters long

j_cool 01-02-2019 01:14 AM

Re: Customized rtmpdump binaries with patch file


 
Code:

gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o o_fips.o o_fips.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o o_init.o o_init.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o fips_ers.o fips_ers.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  -c -o getenv.o getenv.c
/bin/perl.exe x86cpuid.pl coff -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM  > x86cpuid.s
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c  -o x86cpuid.o x86cpuid.s
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o applink.o ../ms/applink.c
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o uplink.o ../ms/uplink.c
/bin/perl.exe ../ms/uplink-x86.pl coff > uplink-x86.s
gcc -I. -I.. -I../include  -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c  -o uplink-x86.o uplink-x86.s
ar  r ../libcrypto.a cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o ebcdic.o uid.o o_time.o o_str.o o_dir.o o_fips.o o_init.o fips_ers.o getenv.o x86cpuid.o uplink.o uplink-x86.o
C:\MinGW\bin\ar.exe: creating ../libcrypto.a
C:\MinGW\bin\ar.exe: could not create temporary file whilst writing archive: no more archived files
make[1]: *** [../libcrypto.a] Error 1
make[1]: Leaving directory `/c/supersonic/openssl-1.0.2q/crypto'
make: *** [build_crypto] Error 1


J@PC /c/supersonic/openssl-1.0.2q
$ cd /c/supersonic/zlib-1.2.11

J@PC /c/supersonic/zlib-1.2.11
$ make -f win32/Makefile.gcc
make: Nothing to be done for `all'.

J@PC /c/supersonic/zlib-1.2.11
$ cd /c/supersonic/rtmpdump-ksv-master

J@PC /c/supersonic/rtmpdump-ksv-master
$ make clean
rm -f *.o rtmpdump rtmpgw rtmpsrv rtmpsuck
make[1]: Entering directory `/c/supersonic/rtmpdump-ksv-master/librtmp'
rm -f *.o *.a *.so *.so.1 librtmp.pc
make[1]: Leaving directory `/c/supersonic/rtmpdump-ksv-master/librtmp'


J@PC /c/supersonic/rtmpdump-ksv-master
$ make SYS=mingw INC="-I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q
 -L/c/supersonic/zlib-1.2.11" LDFLAGS="-L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11"
make[1]: Entering directory `/c/supersonic/rtmpdump-ksv-master/librtmp'
gcc -Wall  -I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11 -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC  -c -o rtmp.o rtmp.c
rtmp.c: In function 'RTMP_ReadPacket':
rtmp.c:4300: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);
 ^~~~
gcc -Wall  -I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11 -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC  -c -o log.o log.c
gcc -Wall  -I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11 -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC  -c -o amf.o amf.c
gcc -Wall  -I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11 -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC  -c -o hashswf.o hashswf.c
hashswf.c: In function 'RTMP_HashSWF':
hashswf.c:561:5: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
    strncpy(date, buf + 6, sizeof(date));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall  -I/c/supersonic/openssl-1.0.2q/include -I/c/supersonic/zlib-1.2.11 -L/c/supersonic/openssl-1.0.2q -L/c/supersonic/zlib-1.2.11 -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC  -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
C:\MinGW\bin\ar.exe: creating librtmp.a
C:\MinGW\bin\ar.exe: could not create temporary file whilst writing archive: no more archived files
make[1]: *** [librtmp.a] Error 1
make[1]: Leaving directory `/c/supersonic/rtmpdump-ksv-master/librtmp'
make: *** [librtmp/librtmp.a] Error 2

J@PC /c/supersonic/rtmpdump-ksv-master
$


j_cool 01-02-2019 01:38 AM

Re: Customized rtmpdump binaries with patch file


 
Compilation worked for you, but I didn't make it following guidance in your last post.

Here is your rtmpdump:

https://mega.nz/#!RnZjxKLC!MPlWrKNzr...lskexHNIkmjR10

C:\>rtmpdump
RTMPDump v2.4
(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


I renamed it to supersonic.exe, and it does work:

Code:

C:\>supersonic.exe -r "rtmp://edge54.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 32,0,0,101" -W "https://chaturbate.com/static/flash/CBV_2p690.swf" -p "https://chaturbate.com/elaanna/" -C S:AnonymousUser -C S:elaanna -C S:2.690 -C S:anonymous -C S:b46ea090be552f045ec0f1cfa189fc5911e7ecce7d5df0196b31cc87f6d23ff3 -C S:{"username":"__anonymous__6qJBebHQKth","org":"A","expire":1546419765,"sig":"fe80a4ffd67e94d785af8dcdc4ec4b12aa91f3183bbcb9ee7da1615af3bd7332","room":"elaanna"} --live -y "mp4:wowz://origin247.stream.highwebmedia.com/live-origin/elaanna-sd-8dbbf2ea894e94e53b8f166cd8a6ed7e95c1b9abe60189164fc9f3d8c1687790_trns_h264_480p" -o "test.flv"
RTMPDump v2.4
(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:  width                  1920.00
INFO:  height                  1080.00
INFO:  videocodecid            avc1
INFO:  videodatarate          8000.00
INFO:  framerate              30.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          160.00
INFO:  audiosamplerate        44100.00
INFO:  audiosamplesize        16.00
INFO:  audiochannels          2.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 22.0.3)
9485.628 kB / 15.19 sec


troller12 01-02-2019 06:49 PM

Re: Customized rtmpdump binaries with patch file


 
Hi,

I tried this to compile it successfully to make a static build.
Code:

LDFLAGS="-static -L/c/.....
Just adding -static command at the beginning.I also just did removed the command #define off_t off64_t only.At the end there is one little problem using pageurl command.So if you dont use a slash at the end (.com/) then it crashs (access violation at offset / RVA 0000ED6E).Not sure whether its the reason for removing that command from the source or not.The code at this locations looks are but diffrent compared to other rtmpdump version without having that issue.
Code:

0040ED62  .  8B78 04              MOV EDI,DWORD PTR DS:[EAX+0x4]  ;  <-- none address in [eax+4] if slash missing
0040ED65  .  89D0                  MOV EAX,EDX
0040ED67  .  89BC24 58010000      MOV DWORD PTR SS:[ESP+0x158],EDI
0040ED6E  .  F2:AE                REPNE SCAS BYTE PTR ES:[EDI]    ;  AVio

greetz

j_cool 01-03-2019 01:56 AM

Re: Customized rtmpdump binaries with patch file


 
Troller,

If you have a look at this link:

Quote:

Originally Posted by confused.com (Post 96742)

you'll read that this suite can compile ffmpeg with all latest libraries including librtmp.

I tried 32bit option on win10 and it didn't work.

64bit option worked and I choose as few options as I possibly can to see if it work at all.

It did work for 64bit option on win10, and now if somebody wants to look further
into this suite and gets ffmpeg with latest libraries + librtmp it would be
worth it to post here what options were choosen as setup time.

This suite may be tricked as well to compile custom rtmpdump by redirecting
link in script from default github link to custom link.

troller12 01-03-2019 02:15 PM

Re: Customized rtmpdump binaries with patch file


 
Hi again,

the error about pageurl I told before happens inside of strsplit function calling it with wrong paramters.In the patch.diff file you can read it here..at line 1251
Code:

+              if (strlen(pageUrl) > 7)
+                {
+                  strsplit(pageUrl + 7, FALSE, '/', &params);
+                  av_ModelName.av_val = params[1];
+                  av_ModelName.av_len = strlen(params[1]);

It does add 8 bytes (https://) to pageurl = ch..com and if no slash is used then it dosent fill / copy the location [eax+4] = access violation after that function.In other rtmpdump versions it does add 7 bytes instead of 8 and calling that function like this... /ch..com = success.The question is whether its a compiling or error!?In all older Patch.diff files I can see almost same code there same as above and the compiled rtmpdump files (not from me) are working and using 7 instead of 8.Why does it add 8 and not 7?Somehow strange.Maybe the strsplit function was changed and works else now etc.
Code:

My compiled version with MinGW
----------------------------------------------------------
$ ==>    0040ECFF    > \31D2                  XOR EDX,EDX
$+2      0040ED01    .  83CE FF              OR ESI,0xFFFFFFFF
$+5      0040ED04    .  89DF                  MOV EDI,EBX
$+7      0040ED06    .  89D0                  MOV EAX,EDX
$+9      0040ED08    .  89F1                  MOV ECX,ESI
$+B      0040ED0A    .  885424 38            MOV BYTE PTR SS:[ESP+0x38],DL
$+F      0040ED0E    .  F2:AE                REPNE SCAS BYTE PTR ES:[EDI]
$+11    0040ED10    .  89C8                  MOV EAX,ECX
$+13    0040ED12    .  F7D0                  NOT EAX
$+15    0040ED14    .  83E8 01              SUB EAX,0x1
$+18    0040ED17        83F8 08              CMP EAX,0x8                            ;  <-- 8
$+1B    0040ED1A    .  0F86 F2000000        JBE 0040EE12                         
$+21    0040ED20    .  8D8424 88000000      LEA EAX,DWORD PTR SS:[ESP+0x88]
$+28    0040ED27        83C3 08              ADD EBX,0x8                            ;  <-- 8
$+2B    0040ED2A    .  C74424 08 2F000000    MOV DWORD PTR SS:[ESP+0x8],0x2F
$+33    0040ED32    .  891C24                MOV DWORD PTR SS:[ESP],EBX
$+36    0040ED35    .  C74424 04 00000000    MOV DWORD PTR SS:[ESP+0x4],0x0
$+3E    0040ED3D    .  8D9C24 90010000      LEA EBX,DWORD PTR SS:[ESP+0x190]
$+45    0040ED44    .  894424 0C            MOV DWORD PTR SS:[ESP+0xC],EAX
$+49    0040ED48    .  E8 73BCFFFF          CALL 0040A9C0                          ;  strsplit
$+4E    0040ED4D    .  8B8424 88000000      MOV EAX,DWORD PTR SS:[ESP+0x88]
$+55    0040ED54    .  0FB65424 38          MOVZX EDX,BYTE PTR SS:[ESP+0x38]
$+5A    0040ED59    .  89F1                  MOV ECX,ESI
$+5C    0040ED5B    .  8DB424 90030000      LEA ESI,DWORD PTR SS:[ESP+0x390]
$+63    0040ED62    .  8B78 04              MOV EDI,DWORD PTR DS:[EAX+0x4]          ;  <-- none address
$+66    0040ED65    .  89D0                  MOV EAX,EDX
$+68    0040ED67    .  89BC24 58010000      MOV DWORD PTR SS:[ESP+0x158],EDI
$+6F    0040ED6E    .  F2:AE                REPNE SCAS BYTE PTR ES:[EDI]            ;  AVio


Other compiled rtmpdump
----------------------------------------------------------
$ ==>    0040EEBA    83CE FF                OR ESI,0xFFFFFFFF
$+3      0040EEBD    31D2                    XOR EDX,EDX
$+5      0040EEBF    89F1                    MOV ECX,ESI
$+7      0040EEC1    89DF                    MOV EDI,EBX
$+9      0040EEC3    89D0                    MOV EAX,EDX
$+B      0040EEC5    F2:AE                  REPNE SCAS BYTE PTR ES:[EDI]
$+D      0040EEC7    F7D1                    NOT ECX
$+F      0040EEC9    83E9 01                SUB ECX,0x1
$+12    0040EECC    83F9 07                CMP ECX,0x7                            ; <-- 7
$+15    0040EECF    0F86 ED000000          JBE 0040EFC2       
$+1B    0040EED5    8D4424 78              LEA EAX,DWORD PTR SS:[ESP+0x78]
$+1F    0040EED9    83C3 07                ADD EBX,0x7                            ; <-- 7
$+22    0040EEDC    891C24                  MOV DWORD PTR SS:[ESP],EBX
$+25    0040EEDF    8D9C24 80010000        LEA EBX,DWORD PTR SS:[ESP+0x180]
$+2C    0040EEE6    894424 0C              MOV DWORD PTR SS:[ESP+0xC],EAX
$+30    0040EEEA    C74424 08 2F000000      MOV DWORD PTR SS:[ESP+0x8],0x2F
$+38    0040EEF2    C74424 04 00000000      MOV DWORD PTR SS:[ESP+0x4],0x0
$+40    0040EEFA    895424 30              MOV DWORD PTR SS:[ESP+0x30],EDX
$+44    0040EEFE    E8 2DBCFFFF            CALL 0040AB30                          ; strsplit
$+49    0040EF03    8B4424 78              MOV EAX,DWORD PTR SS:[ESP+0x78]
$+4D    0040EF07    89F1                    MOV ECX,ESI
$+4F    0040EF09    8B5424 30              MOV EDX,DWORD PTR SS:[ESP+0x30]
$+53    0040EF0D    8DB424 80030000        LEA ESI,DWORD PTR SS:[ESP+0x380]
$+5A    0040EF14    8B78 04                MOV EDI,DWORD PTR DS:[EAX+0x4]
$+5D    0040EF17    89D0                    MOV EAX,EDX
$+5F    0040EF19    89BC24 48010000        MOV DWORD PTR SS:[ESP+0x148],EDI
$+66    0040EF20    F2:AE                  REPNE SCAS BYTE PTR ES:[EDI]

PS: About the difine issue.I tried to change it to this...
Code:

#define __off_t __off64_t
....and it seems to work without getting a error about it anymore but I am not sure of course.Found something here...
https://stackoverflow.com/questions/...e-name-off64-t

Not sure about that suite j_cool so I didnt tried it yet and I am also using MinGW very rarly to compile something and in this case I am no expert or advanced user.

greetz


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