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)

RoDen 08-07-2016 03:48 AM

Re: Customized rtmpdump binaries with patch file


 
Hi, K-S-V,

Looks like rtmpsuck totally ignores "deleteStream" command on active streams. In one case (when a server sends new streams with new IDs) it leads to the same stream being simultaneously saved in a number of files (not a big deal if you have enough disk space). In another case it results in a total mess: file names with wrong timestamps, wrong video duration, videos being non-seekable or totally corrupt.

So, rtmpsuck should either check if the stream is already being saved, so it doesn't create a new file for a new connection. But it may result in a corrupt video. Or it should close existing connection and proceed with a new one. The latter woult lead to saving a stream on a poor connection in numerous files including empty ones (zero or 13 byte size). So it would also be great for rtmpsuck to automatically delete such empty files.

Also this:
Quote:

Originally Posted by Xidus (Post 82942)
Is there a way to change the timestamp to 24 hour format? It is currently in 12 hour format without AM/PM indicator.

- timestamp_len = strftime(&timestamp[0], sizeof (timestamp), "%Y-%m-%d_%I-%M-%S_", localtime(&current_time));
+ timestamp_len = strftime(&timestamp[0], sizeof (timestamp), "%Y-%m-%d_%H-%M-%S_", localtime(&current_time));

blogmexicano 08-25-2016 09:40 PM

Re: Customized rtmpdump binaries with patch file


 
hello guys, years ago i downloaded adobe hds downloader with a .bat file which i only have to paste the url provided by the firefox addon hds link. you know where i can find it?

i swear i searched before post.

AlvoErrado2 09-02-2016 12:06 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by blogmexicano (Post 87197)
hello guys, years ago i downloaded adobe hds downloader with a .bat file which i only have to paste the url provided by the firefox addon hds link. you know where i can find it?

i swear i searched before post.

http://stream-recorder.com/forum/k-s...le-t19630.html

Ibucalmin 11-16-2016 06:45 PM

Re: Customized rtmpdump binaries with patch file


 
When I run make SYS=posix

make[1]: Entering directory '/home/martzy/Downloads/rtmpdump-ksv-ksv/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
rtmp.c:129:12: error: static declaration of ‘strsplit’ follows non-static declaration
static int strsplit(char *src, int srclen, char delim, char ***params);
^
In file included from rtmp_sys.h:61:0,
from rtmp.c:33:
rtmp.h:391:7: note: previous declaration of ‘strsplit’ was here
int strsplit(char *src, int srclen, char delim, char ***params);
^
rtmp.c: In function ‘RTMP_ReadPacket’:
rtmp.c:4004:7: warning: variable ‘didAlloc’ set but not used [-Wunused-but-set-variable]
int didAlloc = FALSE;
^
<builtin>: recipe for target 'rtmp.o' failed
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory '/home/martzy/Downloads/rtmpdump-ksv-ksv/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2

confused.com 03-15-2017 06:01 AM

Re: Customized rtmpdump binaries with patch file


 
https://github.com/streamlink/streamlink/issues/707

j_cool 05-02-2017 01:50 AM

Re: Customized rtmpdump binaries with patch file


 
Here is one interesting post from FFMPEG forum.

http://ffmpeg.gusari.org/viewtopic.php?f=13&t=3621

If there is anybody interested in improving RTMPDUMP,

--append switch may be one suggestion.

confused.com 05-23-2017 01:31 AM

Re: Customized rtmpdump binaries with patch file


 
https://www.debian.org/security/2017/dsa-3850

cabulo 08-07-2017 04:29 AM

Re: Customized rtmpdump binaries with patch file


 
Guys,

Is anybody on this forum able to deliver download of Rtmpdump dated "RTMPDump v2.4 GIT-2015-12-23" ?

I'm not the only one on the internet looking for that download.

https://github.com/streamlink/streamlink/issues/1148

johnthecracker 10-24-2017 09:57 AM

Re: Customized rtmpdump binaries with patch file


 
Zeranoe has removed his download links to rtmpdump for the reason known only to him.

https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=1024


Here is one alternative very similar to Zeranoe's distro and with later updates.

Rtmpsuck from this distro may work where KSV's rtmpsuck crushes.



Courtesy of:

Vangelis66



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

http://www.datafilehost.com/d/11210ce4

j_cool 11-21-2017 12:56 PM

Re: Customized rtmpdump binaries with patch file


 
In reference to KSV's rtmpsuck crush, here it is,
in case somebody would be interested in fixing the patch.

Code:

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
WARNING: Trying different position for client digest!
Processing connect
      app : Decryption/
  flashVer : LNX 27,0,0,187
    swfUrl : https://imlive.com/swf/genericguestapp1.swf
    tcUrl : rtmp://fly4.globalmailer.com/Decryption/
  pageUrl : https://imlive.com/flash_sdk/freevideochatguest.aspx?hostnick=sabrinagrey&roomid=10
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!

WARNING: Trying different position for client digest!
Processing connect
      app : iml
  flashVer : LNX 27,0,0,187
    swfUrl : https://imlive.com/swf/genericguestapp1.swf
    tcUrl : rtmp://world.influxis.net/iml
  pageUrl : https://imlive.com/flash_sdk/freevideochatguest.aspx?hostnick=sabrinagrey&roomid=10
WARNING: Trying different position for client digest!
Processing connect
      app : coolVideo_v2/1179439
  flashVer : LNX 27,0,0,187
    swfUrl : https://imlive.com/swf/genericguestapp1.swf
    tcUrl : rtmp://fly4.globalmailer.com/coolVideo_v2/1179439
  pageUrl : https://imlive.com/flash_sdk/freevideochatguest.aspx?hostnick=sabrinagrey&roomid=10
*** Error in `rtmpsuck': malloc(): memory corruption: 0x00007f6054023070 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7908b)[0x7f6065c0b08b]
/lib/x86_64-linux-gnu/libc.so.6(+0x84ace)[0x7f6065c16ace]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f6065c18984]
/lib/x86_64-linux-gnu/libc.so.6(+0x6eeed)[0x7f6065c00eed]
/lib/x86_64-linux-gnu/libc.so.6(+0x1293a3)[0x7f6065cbb3a3]
/lib/x86_64-linux-gnu/libc.so.6(__res_maybe_init+0x14d)[0x7f6065cbd08d]
/lib/x86_64-linux-gnu/libc.so.6(__nss_hostname_digits_dots+0x36)[0x7f6065cbf166]
/lib/x86_64-linux-gnu/libc.so.6(gethostbyname+0x98)[0x7f6065cadc68]
/usr/local/lib/librtmp.so.1(+0x6cf0)[0x7f6065f5fcf0]
/usr/local/lib/librtmp.so.1(RTMP_Connect+0x8d)[0x7f6065f6660d]
rtmpsuck(+0x2ec4)[0x5628136fbec4]
rtmpsuck(+0x3ee8)[0x5628136fcee8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76da)[0x7f60661816da]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x5f)[0x7f6065c9ad7f]
======= Memory map: ========
5628136f9000-5628136ff000 r-xp 00000000 08:21 4333656 /usr/local/sbin/rtmpsuck
5628138fe000-5628138ff000 r--p 00005000 08:21 4333656 /usr/local/sbin/rtmpsuck
5628138ff000-562813900000 rw-p 00006000 08:21 4333656 /usr/local/sbin/rtmpsuck
562813ffe000-56281401f000 rw-p 00000000 00:00 0 [heap]
7f6048000000-7f6048021000 rw-p 00000000 00:00 0
7f6048021000-7f604c000000 ---p 00000000 00:00 0
7f6050000000-7f6050045000 rw-p 00000000 00:00 0
7f6050045000-7f6054000000 ---p 00000000 00:00 0
7f6054000000-7f6054026000 rw-p 00000000 00:00 0
7f6054026000-7f6058000000 ---p 00000000 00:00 0
7f6058000000-7f6058029000 rw-p 00000000 00:00 0
7f6058029000-7f605c000000 ---p 00000000 00:00 0
7f605df43000-7f605df59000 r-xp 00000000 08:21 5771846 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f605df59000-7f605e158000 ---p 00016000 08:21 5771846 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f605e158000-7f605e159000 r--p 00015000 08:21 5771846 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f605e159000-7f605e15a000 rw-p 00016000 08:21 5771846 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f605e15a000-7f605e15b000 ---p 00000000 00:00 0
7f605e15b000-7f605e95b000 rw-p 00000000 00:00 0
7f605e95b000-7f605e9cd000 r-xp 00000000 08:21 5771934 /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7f605e9cd000-7f605ebcc000 ---p 00072000 08:21 5771934 /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7f605ebcc000-7f605ebcd000 r--p 00071000 08:21 5771934 /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7f605ebcd000-7f605ebce000 rw-p 00072000 08:21 5771934 /lib/x86_64-linux-gnu/libpcre.so.3.13.3
7f605ebce000-7f605ebd5000 r-xp 00000000 08:21 5784515 /lib/x86_64-linux-gnu/librt-2.24.so
7f605ebd5000-7f605edd4000 ---p 00007000 08:21 5784515 /lib/x86_64-linux-gnu/librt-2.24.so
7f605edd4000-7f605edd5000 r--p 00006000 08:21 5784515 /lib/x86_64-linux-gnu/librt-2.24.so
7f605edd5000-7f605edd6000 rw-p 00007000 08:21 5784515 /lib/x86_64-linux-gnu/librt-2.24.so
7f605edd6000-7f605edfb000 r-xp 00000000 08:21 5771961 /lib/x86_64-linux-gnu/libselinux.so.1
7f605edfb000-7f605effa000 ---p 00025000 08:21 5771961 /lib/x86_64-linux-gnu/libselinux.so.1
7f605effa000-7f605effb000 r--p 00024000 08:21 5771961 /lib/x86_64-linux-gnu/libselinux.so.1
7f605effb000-7f605effc000 rw-p 00025000 08:21 5771961 /lib/x86_64-linux-gnu/libselinux.so.1
7f605effc000-7f605effe000 rw-p 00000000 00:00 0
7f605effe000-7f605efff000 ---p 00000000 00:00 0
7f605efff000-7f605f7ff000 rw-p 00000000 00:00 0
7f605f7ff000-7f605f800000 ---p 00000000 00:00 0
7f605f800000-7f6060000000 rw-p 00000000 00:00 0
7f6060000000-7f6060021000 rw-p 00000000 00:00 0
7f6060021000-7f6064000000 ---p 00000000 00:00 0
7f60641a6000-7f60641a8000 r-xp 00000000 08:21 5771909 /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
7f60641a8000-7f60643a7000 ---p 00002000 08:21 5771909
7f60643a7000-7f60643a8000 r--p 00001000 08:21 5771909
7f60643a8000-7f60643a9000 rw-p 00002000 08:21 5771909 /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
7f60643a9000-7f60643b4000 r-xp 00000000 08:21 5784508 /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f60643b4000-7f60645b3000 ---p 0000b000 08:21 5784508
7f60645b3000-7f60645b4000 r--p 0000a000 08:21 5784508
7f60645b4000-7f60645b5000 rw-p 0000b000 08:21 5784508 /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f60645b5000-7f60645bb000 rw-p 00000000 00:00 0
7f60645bb000-7f60645bc000 ---p 00000000 00:00 0
7f60645bc000-7f6064dbc000 rw-p 00000000 00:00 0
7f6064dbc000-7f6064dbf000 r-xp 00000000 08:21 5784501 /lib/x86_64-linux-gnu/libdl-2.24.so
7f6064dbf000-7f6064fbe000 ---p 00003000 08:21 5784501 /lib/x86_64-linux-gnu/libdl-2.24.so
7f6064fbe000-7f6064fbf000 r--p 00002000 08:21 5784501 /lib/x86_64-linux-gnu/libdl-2.24.so
7f6064fbf000-7f6064fc0000 rw-p 00003000 08:21 5784501 /lib/x86_64-linux-gnu/libdl-2.24.so
7f6064fc0000-7f60650c8000 r-xp 00000000 08:21 5784502 /lib/x86_64-linux-gnu/libm-2.24.so
7f60650c8000-7f60652c7000 ---p 00108000 08:21 5784502 /lib/x86_64-linux-gnu/libm-2.24.so
7f60652c7000-7f60652c8000 r--p 00107000 08:21 5784502 /lib/x86_64-linux-gnu/libm-2.24.so
7f60652c8000-7f60652c9000 rw-p 00108000 08:21 5784502 /lib/x86_64-linux-gnu/libm-2.24.so
7f60652c9000-7f60652e4000 r-xp 00000000 08:21 5771989 /lib/x86_64-linux-gnu/libz.so.1.2.11
7f60652e4000-7f60654e3000 ---p 0001b000 08:21 5771989 /lib/x86_64-linux-gnu/libz.so.1.2.11
7f60654e3000-7f60654e4000 r--p 0001a000 08:21 5771989 /lib/x86_64-linux-gnu/libz.so.1.2.11
7f60654e4000-7f60654e5000 rw-p 0001b000 08:21 5771989 /lib/x86_64-linux-gnu/libz.so.1.2.11
7f60654e5000-7f60656fe000 r-xp 00000000 08:21 5784455 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f60656fe000-7f60658fe000 ---p 00219000 08:21 5784455 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f60658fe000-7f606591a000 r--p 00219000 08:21 5784455 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f606591a000-7f6065926000 rw-p 00235000 08:21 5784455 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f6065926000-7f6065929000 rw-p 00000000 00:00 0
7f6065929000-7f6065987000 r-xp 00000000 08:21 5784456 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f6065987000-7f6065b87000 ---p 0005e000 08:21 5784456 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f6065b87000-7f6065b8b000 r--p 0005e000 08:21 5784456 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f6065b8b000-7f6065b92000 rw-p 00062000 08:21 5784456 /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f6065b92000-7f6065d50000 r-xp 00000000 08:21 5784498 /lib/x86_64-linux-gnu/libc-2.24.so
7f6065d50000-7f6065f4f000 ---p 001be000 08:21 5784498 /lib/x86_64-linux-gnu/libc-2.24.so
7f6065f4f000-7f6065f53000 r--p 001bd000 08:21 5784498 /lib/x86_64-linux-gnu/libc-2.24.so
7f6065f53000-7f6065f55000 rw-p 001c1000 08:21 5784498 /lib/x86_64-linux-gnu/libc-2.24.so
7f6065f55000-7f6065f59000 rw-p 00000000 00:00 0
7f6065f59000-7f6065f79000 r-xp 00000000 08:21 4197839 /usr/local/lib/librtmp.so.1
7f6065f79000-7f6066178000 ---p 00020000 08:21 4197839 /usr/local/lib/librtmp.so.1
7f6066178000-7f6066179000 r--p 0001f000 08:21 4197839 /usr/local/lib/librtmp.so.1
7f6066179000-7f606617a000 rw-p 00020000 08:21 4197839 /usr/local/lib/librtmp.so.1
7f606617a000-7f6066192000 r-xp 00000000 08:21 5784513 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f6066192000-7f6066392000 ---p 00018000 08:21 5784513 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f6066392000-7f6066393000 r--p 00018000 08:21 5784513 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f6066393000-7f6066394000 rw-p 00019000 08:21 5784513 /lib/x86_64-linux-gnu/libpthread-2.24.so
7f6066394000-7f6066398000 rw-p 00000000 00:00 0
7f6066398000-7f60663be000 r-xp 00000000 08:21 5784494 /lib/x86_64-linux-gnu/ld-2.24.so
7f6066531000-7f6066572000 r-xp 00000000 08:21 5771970 /lib/x86_64-linux-gnu/libnss_resolve.so.2
7f6066572000-7f6066575000 r--p 00040000 08:21 5771970 /lib/x86_64-linux-gnu/libnss_resolve.so.2
7f6066575000-7f6066576000 rw-p 00043000 08:21 5771970 /lib/x86_64-linux-gnu/libnss_resolve.so.2
7f6066576000-7f6066577000 rw-p 00000000 00:00 0
7f6066598000-7f606659c000 rw-p 00000000 00:00 0
7f60665b9000-7f60665bd000 rw-p 00000000 00:00 0
7f60665bd000-7f60665be000 r--p 00025000 08:21 5784494 /lib/x86_64-linux-gnu/ld-2.24.so
7f60665be000-7f60665bf000 rw-p 00026000 08:21 5784494 /lib/x86_64-linux-gnu/ld-2.24.so
7f60665bf000-7f60665c0000 rw-p 00000000 00:00 0
7ffcf63f2000-7ffcf6413000 rw-p 00000000 00:00 0 [stack]
7ffcf64bb000-7ffcf64bd000 r--p 00000000 00:00 0 [vvar]
7ffcf64bd000-7ffcf64bf000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
root@j:/home/j/rtmpdump#



All times are GMT -6. The time now is 01:16 PM.