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)

chap 10-19-2013 11:59 AM

Re: Customized rtmpdump binaries with patch file


 
Code:

rtmpdump -r "rtmp://www.axcast.com/axcast_video/19" -a "axcast_video/19" -f "WI
N 11,8,800,168" -W "http://www.axcast.com/viewer.swf" -p "http://www.axcast.com/
channel/view/rtd-djibouti-toos-rtd-tv-live-19" -C S:19 -C S:N/A -C S:Anonymous_8
05 -C S:viewer -C S:Anonymous_805 -C S:0 -C S:false -C S:1382205365506295262c7b5
1ae3f109445530 -y "stream" -o "2013-10-19_08-57-02_stream.flv" -v
RTMPDump v2.4 GIT-2013-10-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
INFO: Metadata:
INFO:  presetname              Custom
INFO:  creationdate            Fri Oct 18 20:57:46 2013
INFO:  videodevice            USB 2861 Device
INFO:  framerate              10.00
INFO:  width                  320.00
INFO:  height                  240.00
INFO:  videocodecid            avc1
INFO:  videodatarate          85.00
INFO:  avclevel                21.00
INFO:  avcprofile              66.00
INFO:  videokeyframe_frequency 5.00
INFO:  audiodevice            Line in/Mic in
INFO:  audiosamplerate        11025.00
INFO:  audiochannels          1.00
INFO:  audioinputvolume        75.00
INFO:  audiocodecid            mp4a
INFO:  audiodatarate          28.00
1876.024 kB / 59.55 sec


lorus 10-31-2013 04:47 PM

Re: Customized rtmpdump binaries with patch file


 
Hi KSV,
hi folks,

I have a strange problem where dumping via rtmpdump.exe works but via librtmp.dll using XBMC not:

RTMPDUMP:
Code:

rtmpdump -r "rtmp://*/live" -W "httpp://rottr.bplaced.net/players.swf" -p "*" -v -y "*" -o "*"
RTMPDump v2.4 GIT-2012-11-09 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
INFO: Metadata:
INFO:  duration                0.00
INFO:  width                  1280.00
INFO:  height                  720.00
INFO:  videodatarate          1074.22
INFO:  framerate              25.00
INFO:  videocodecid            7.00
INFO:  audiodatarate          93.75
INFO:  audiosamplerate        44100.00
INFO:  audiosamplesize        16.00
INFO:  stereo                  TRUE
INFO:  audiocodecid            2.00
INFO:  encoder                Lavf53.6.0
INFO:  filesize                0.00
1034.212 kB / 3.92 sec

xbmc.log (librtmp.dll)
Code:

23:24:20 T:6416  NOTICE: -->Python Interpreter Initialized<--
23:24:21 T:8444  NOTICE: Thread Background Loader start, auto delete: false
23:24:28 T:9032  NOTICE: DVDPlayer: Opening: * swfUrl=*pageUrl=* playpath=* swfVfy=true live=true
23:24:28 T:9032 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:24:28 T:6336  NOTICE: Thread CDVDPlayer start, auto delete: false
23:24:28 T:6336  NOTICE: Creating InputStream
23:24:29 T:6336  ERROR: rtmp server sent error
23:24:29 T:6336  ERROR: rtmp server requested close
23:24:29 T:6336  ERROR: CDVDPlayer::OpenInputStream - error opening * swfUrl=* pageUrl=* playpath=* swfVfy=true live=true]
23:24:29 T:6336  NOTICE: CDVDPlayer::OnExit()
23:24:29 T:6336  NOTICE: CDVDPlayer::OnExit() deleting input stream
23:24:29 T:9032  ERROR: Playlist Player: skipping unplayable item: 0, path [* swfUrl=* pageUrl=* playpath=* swfVfy=true live=true]
23:24:29 T:9252  NOTICE: Thread Background Loader start, auto delete: false
23:24:29 T:9032  NOTICE: CDVDPlayer::CloseFile()
23:24:29 T:9032 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:24:29 T:9032  NOTICE: DVDPlayer: waiting for threads to exit
23:24:29 T:9032  NOTICE: DVDPlayer: finished waiting

I'm using the latest version of your rtmpdump.exe and librtmp.dll. Librtmp.dll is correctly placed and it was previously working with. But now as you see it suddendly stopped working and I'm wondering why. Parameters are the same for both ...

Any thoughts on that?

cheerz,

lorus

KSV 11-01-2013 04:27 AM

Re: Customized rtmpdump binaries with patch file


 
yeah i can reproduce this problem. rtmpdump adds flash version to the connect request while librtmp doesn't do so by default. so you have to pass it explicitly. as a workaround you can add it to the the command manually.

Code:

flashVer=WIN%2010,0,32,18

lorus 11-01-2013 11:39 AM

Re: Customized rtmpdump binaries with patch file


 
Hey KSV,

found out that difference via wireshark shortly before you anwered here, too. But didn't get it work because of the space. %20 works like a charm ... thx :)

gorilla.maguila 12-24-2013 03:26 AM

Re: Customized rtmpdump binaries with patch file


 
Recently a user asked me how to dump a stream on:

http://beta.ddoss.me/pay_tv.php

So in case anyone is interested to make it work some lines need to be added to rtmp.c:

Code:

else if (strstr(pageUrl, "ddoss.me"))
{
    SendCommand(r, "r", FALSE);
    RTMP_SendCreateStream(r);
    SendGetStreamLength(r);
}

Then a simple rtmpdump command works:

Code:

rtmpdump -r rtmp://pc3oot.us.to:1935/live  -p http://beta.ddoss.me/pay_tv.php -W http://ni208114_1.vweb03.nitrado.net/playr.swf -y action

hasomaso 12-24-2013 07:50 AM

Re: Customized rtmpdump binaries with patch file


 
@KSV please support for that

RedPenguin 12-24-2013 04:25 PM

Re: Customized rtmpdump binaries with patch file


 
KSV, I think UKCast did something to break your RTMP Redirect code.

The following channel:

http://www.ukcast.tv/channel.php?u=kkttv

Shows that rtmpdump attempts to go to the redirected server but then just sits there for ages.

Yet if you do a direct ukcast URL like rtmpe://93.120.27.58/live it works fine.

peterpan 12-24-2013 06:30 PM

Re: Customized rtmpdump binaries with patch file


 
It's not even working on the website!

RedPenguin 12-26-2013 04:12 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by peterpan (Post 64139)
It's not even working on the website!

Yea I think ukcast was having issues or something that day.

At first it was loading in the webpage but not with rtmpdump then later it wasn't working in both.

Yet another ukcast channel I found did work. So they must be having server issues.

HiddenShadow 01-10-2014 03:43 PM

Re: Customized rtmpdump binaries with patch file


 
Hello!

I have a problem with the latest version of patched rtmpsuck on windows xp 32bit.

It's crashes every few minutes of working:


Fault address can be one of this:
0x00002ae4, 0x00003bfb, 0x000378c0.

Debug output:
DEBUG2: 0100: 0b .
DEBUG2: RTMP_ReadPacket: fd=1452
DEBUG2: 0000: 46 00 00 2f 00 01 01 08 F../....
DEBUG2: 0000: 6a 7f 73 67 e6 17 57 8c f2 2d 74 d7 4b 2c c2 f6 j.sg..W..-t.K,..
DEBUG2: 0010: db 92 0c 26 05 ad 50 23 e8 bb cb d6 76 c1 9b d8 ...&..P#....v...
DEBUG2: 0020: 67 2d 5d c3 0c f5 4a 5b 01 3f 87 17 43 a3 dd 92 g-]...J[.?..C...
DEBUG2: 0030: 13 e9 de 05 05 91 d4 e5 02 71 e6 35 3d c7 f6 b3 .........q.5=...
DEBUG2: 0040: 6f ff 54 46 5a bb 4e 66 96 39 c6 24 5b ae bd c8 o.TFZ.Nf.9.$[...
DEBUG2: 0050: 1f 27 a5 ab 69 d3 06 3d 73 6d 26 73 73 0b 47 be .'..i..=sm&ss.G.
DEBUG2: 0060: e4 ba e2 19 6c 6b 4e 27 34 7f e0 a1 21 31 df 28 ....lkN'4...!1.(
DEBUG2: 0070: cb c8 12 31 1b 7a c4 a9 29 cb 6b 93 91 4a e9 a6 ...1.z..).k..J..
DEBUG2: 0080: 25 3f 7b e6 5a 08 0f a4 33 b2 34 9d 6b 0a b2 67 %?{.Z...3.4.k..g
DEBUG2: 0090: 01 04 1f 1e 16 6b ba 04 cb 25 2d 71 5d db 84 8a .....k...%-q]...
DEBUG2: 00a0: db 5b ce b2 cf 24 64 f3 dc 3f 2d 37 5a 8e 82 5a .[...$d..?-7Z..Z
DEBUG2: 00b0: 63 c6 49 60 4b d1 39 be 65 e4 ec 02 49 aa 12 88 c.I`K.9.e...I...
DEBUG2: 00c0: 10 bf 54 c7 32 07 a9 55 b5 35 38 97 5a 2d 46 37 ..T.2..U.58.Z-F7
DEBUG2: 00d0: 00 5b aa 91 32 25 06 1d 1b 68 de c4 e8 9a ad 32 .[..2%...h.....2
DEBUG2: 00e0: 50 1d d5 92 c2 68 97 c9 fe 75 ef 0e 26 86 a1 15 P....h...u..&...
DEBUG2: 00f0: ae 63 31 67 6c 0a 62 d2 44 5c ba 40 5b a0 5a f7 .c1gl.b.D\.@[.Z.
DEBUG2: 0100: ad .
DEBUG2: RTMP_SendChunk: fd=1696, size=257
DEBUG2: 0000: 46 00 00 2f 00 01 01 08 F../....
DEBUG2: 0000: 6a 7f 73 67 e6 17 57 8c f2 2d 74 d7 4b 2c c2 f6 j.sg..W..-t.K,..
DEBUG2: 0010: db 92 0c 26 05 ad 50 23 e8 bb cb d6 76 c1 9b d8 ...&..P#....v...
DEBUG2: 0020: 67 2d 5d c3 0c f5 4a 5b 01 3f 87 17 43 a3 dd 92 g-]...J[.?..C...
DEBUG2: 0030: 13 e9 de 05 05 91 d4 e5 02 71 e6 35 3d c7 f6 b3 .........q.5=...
DEBUG2: 0040: 6f ff 54 46 5a bb 4e 66 96 39 c6 24 5b ae bd c8 o.TFZ.Nf.9.$[...
DEBUG2: 0050: 1f 27 a5 ab 69 d3 06 3d 73 6d 26 73 73 0b 47 be .'..i..=sm&ss.G.
DEBUG2: 0060: e4 ba e2 19 6c 6b 4e 27 34 7f e0 a1 21 31 df 28 ....lkN'4...!1.(
DEBUG2: 0070: cb c8 12 31 1b 7a c4 a9 29 cb 6b 93 91 4a e9 a6 ...1.z..).k..J..
DEBUG2: 0080: 25 3f 7b e6 5a 08 0f a4 33 b2 34 9d 6b 0a b2 67 %?{.Z...3.4.k..g
DEBUG2: 0090: 01 04 1f 1e 16 6b ba 04 cb 25 2d 71 5d db 84 8a .....k...%-q]...
DEBUG2: 00a0: db 5b ce b2 cf 24 64 f3 dc 3f 2d 37 5a 8e 82 5a .[...$d..?-7Z..Z
DEBUG2: 00b0: 63 c6 49 60 4b d1 39 be 65 e4 ec 02 49 aa 12 88 c.I`K.9.e...I...
DEBUG2: 00c0: 10 bf 54 c7 32 07 a9 55 b5 35 38 97 5a 2d 46 37 ..T.2..U.58.Z-F7
DEBUG2: 00d0: 00 5b aa 91 32 25 06 1d 1b 68 de c4 e8 9a ad 32 .[..2%...h.....2
DEBUG2: 00e0: 50 1d d5 92 c2 68 97 c9 fe 75 ef 0e 26 86 a1 15 P....h...u..&...
DEBUG2: 00f0: ae 63 31 67 6c 0a 62 d2 44 5c ba 40 5b a0 5a f7 .c1gl.b.D\.@[.Z.
DEBUG2: 0100: ad .
DEBUG2: RTMP_ReadPacket: fd=1452
DEBUG2: 0000: 47 00 00 7e 00 38 05 09 G..~.8..
DEBUG2: RTMP_SendPacket: fd=1452, size=34
DEBUG2: 0000: 43 ff ff ff 00 00 22 14 ff ff 94 29 C....."....)
DEBUG2: 0000: 02 00 0c 64 65 6c 65 74 65 53 74 72 65 61 6d 00 ...deleteStream.
DEBUG2: 0010: 3f f0 00 00 00 00 00 00 05 00 3f f0 00 00 00 00 ?.........?.....
DEBUG2: 0020: 00 00 ..
ERROR: WriteN, RTMP send error 10053 (46 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 14341

gorilla.maguila 01-23-2014 09:33 AM

Re: Customized rtmpdump binaries with patch file


 
I was trying to figure out why a simple rtmpdump command was blocking with message:

Code:

onStatus.............level...error..code...NetConnection.Connect.Rejected
Then I realized that the error can be handled, avoiding blocking, adding:

Code:

if (AVMATCH(&code, &av_NetStream_Failed)
          || AVMATCH(&code, &av_NetStream_Play_Failed)
          || AVMATCH(&code, &av_NetStream_Play_StreamNotFound)
          || AVMATCH(&code, &av_NetConnection_Connect_Rejected)
          || AVMATCH(&code, &av_NetConnection_Connect_InvalidApp))

Does anybody know why this isn't included by default?

sunhouse2 02-03-2014 05:26 PM

Re: Customized rtmpdump binaries with patch file


 
can't get teledunet.com streams with rtmpdump anyone have a solution?

jhb50 02-09-2014 12:50 AM

Re: Customized rtmpdump binaries with patch file


 
@KSV

www.filmon.com recently changed their vod methodology.
Using MediaBox I get:

url: rtmp://flash-cloud.filmon.com/demand/storage/25/410/116548/mp4:116548.mp4
app: demand/storage/25/410/116548
extra:
flashVer: WIN 12,0,0,44
pageUrl: http://www.filmon.com/vod/view/5717-...-from-a-killer
swfUrl: http://www.filmon.com/tv/modules/Fil...layer.swf?v=48
tcUrl: rtmp://flash-cloud.filmon.com/demand/storage/25/410/116548
playPath: mp4:116548.mp4

which yields:
rtmpdump.exe -r "rtmp://flash-cloud.filmon.com/demand/storage/25/410/116548/mp4:116548.mp4" -y "mp4:116548.mp4" -p "http://www.filmon.com/vod/view/5717-0-letters-from-a-killer" -W "http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf?v=48" -v -z -m 15 | ffplay.exe" -i -

but this fails with:
DEBUG: Property: <Name: code, STRING: NetConnection.Call.Failed>
DEBUG: Property: <Name: description, STRING: Method not found (FCSubscribe).>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error

I think the "extra:" above implies additional info is required.

Can you help?

chap 02-09-2014 02:56 AM

Re: Customized rtmpdump binaries with patch file


 
Code:

rtmpdump -r "rtmp://flash-cloud.filmon.com/demand/storage/25/410/116548" -a "demand/storage/25/410/116548" -f "WIN 11,9,900,170" -W "http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf" -p "http://www.filmon.com/vod/view/5717-0-letters-from-a-killer" -C O:1 -C O:0 -y "mp4:116548.mp4" -o "2014-02-09_11-55-38_mp4_116548.flv"

jhb50 02-09-2014 10:42 PM

Re: Customized rtmpdump binaries with patch file


 
@chap Thanks for the tip. Actually it turns out the c (conn) 's are not required, and it failed for me because I included a v (live) when it is a file.

So the minimum command that works is:
rtmpdump.exe -r "rtmp://flash-cloud.filmon.com/demand/storage/25/410/116548" -a "demand/storage/25/410/116548" -y "mp4:116548.mp4" -p "http://www.filmon.com/vod/view/5717-0-letters-from-a-killer" -W "http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf?v=48"

Darby_Crash 02-20-2014 01:59 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by gorilla.maguila (Post 64134)
Recently a user asked me how to dump a stream on:

http://beta.ddoss.me/pay_tv.php

So in case anyone is interested to make it work some lines need to be added to rtmp.c:

Code:

else if (strstr(pageUrl, "ddoss.me"))
{
    SendCommand(r, "r", FALSE);
    RTMP_SendCreateStream(r);
    SendGetStreamLength(r);
}

Then a simple rtmpdump command works:

Code:

rtmpdump -r rtmp://pc3oot.us.to:1935/live  -p http://beta.ddoss.me/pay_tv.php -W http://ni208114_1.vweb03.nitrado.net/playr.swf -y action

Where can i found a patch for this?

Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host    : pc3oot.us.to
DEBUG: Parsed app    : live
DEBUG: Protocol : RTMP
DEBUG: Hostname : pc3oot.us.to
DEBUG: Port    : 1935
DEBUG: Playpath : cinema
DEBUG: tcUrl    : rtmp://pc3oot.us.to:1935/live
DEBUG: swfUrl  : http://ni208114_1.vweb03.nitrado.net/playr.swf
DEBUG: pageUrl  : http://streampiraten.ws/streams.php
DEBUG: app      : live
DEBUG: live    : yes
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: 7f 0c 9d f4 6a 5b 03 11 55 e5 6e f3 17 9e 7e 9a
DEBUG: 18 43 ca 75 6b ff 99 f1 7d aa 9b 41 38 1c e4 01
DEBUG: SWFSize  : 219602
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 03
DEBUG: HandShake: Client digest offset: 417
DEBUG: HandShake: Initial client digest:
DEBUG: fb bf ce 94 38 1f be 42 e6 38 1b 3d 63 b2 82 8a
DEBUG: cc 76 58 a2 52 8a 36 85 08 ed d6 e8 52 e4 6e 7e
DEBUG: HandShake: Type Answer  : 03
DEBUG: HandShake: Server Uptime : 578056511
DEBUG: HandShake: FMS Version  : 4.5.0.1
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: a5 f0 9f 9f 4c 8d 5f 42 1d 08 7a b3 8c 8d 18 80
DEBUG: 75 54 0c 37 3a 85 56 13 03 44 b0 f0 8d 04 f7 ec
DEBUG: HandShake: Client signature calculated:
DEBUG: 24 a2 fc e1 4c 05 d5 1a 71 fa 09 19 49 e7 10 59
DEBUG: af 04 55 2e f9 26 b7 08 5e 8d f3 b9 75 d3 e5 dc
DEBUG: HandShake: Server sent signature:
DEBUG: ba 5d 0a 47 41 e0 01 03 f8 61 6c a3 94 6e b4 3e
DEBUG: 7f 32 5d 2a a5 8b 88 f5 c4 97 04 2d af 94 86 ac
DEBUG: HandShake: Digest key:
DEBUG: 15 d4 47 b3 03 8c eb e8 92 7f 69 49 08 df 30 85
DEBUG: a5 f1 d8 57 b1 61 38 0f 24 ce a2 55 2b 2b ba 2e
DEBUG: HandShake: Signature calculated:
DEBUG: ba 5d 0a 47 41 e0 01 03 f8 61 6c a3 94 6e b4 3e
DEBUG: 7f 32 5d 2a a5 8b 88 f5 c4 97 04 2d af 94 86 ac
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: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 240 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/4,5,0,297>
DEBUG: Property: <Name:      capabilities, NUMBER:      255.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:    objectEncoding, NUMBER:      3.00>
DEBUG: Property: <Name:              data, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name:            version, STRING:      4,5,0,297>DEBUG: (object end)
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 createStream
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:      _result>
DEBUG: Property: <Name:            no-name, NUMBER:      2.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, NUMBER:      1.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: FCSubscribe: cinema
DEBUG: Invoking FCSubscribe
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: cinema
DEBUG: Invoking play
DEBUG: sending ctrl, type: 0x0003
DEBUG: RTMP_ClientPacket, flex message, size 120 bytes, not fully supported
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:      _error>
DEBUG: Property: <Name:            no-name, NUMBER:      3.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:      error>
DEBUG: Property: <Name:              code, STRING:      NetConnection.Call.Failed>
DEBUG: Property: <Name:        description, STRING:      Method not found (FCSubscribe).>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 144 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:      onStatus>
DEBUG: Property: <Name:            no-name, NUMBER:      151794.00>DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:      error>
DEBUG: Property: <Name:              code, STRING:      NetStream.Play.Failed>
DEBUG: Property: <Name:        description, STRING:      Read access denied for stream cinema.>
DEBUG: Property: <Name:          clientid, STRING:      qAAPwRAA>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Failed
ERROR: Closing connection: NetStream.Play.Failed
DEBUG: Closing connection.

Edit:

With this mod, work but sometimes rtmpdump fail and don't run also with some teledunet stream (Linux):

Code:

else if (strstr(pageUrl, "streampiraten.ws"))
{
    SendCommand(r, "r", FALSE);
    RTMP_SendCreateStream(r);
    SendGetStreamLength(r);
}

Thanks gorilla.maguila!

Please KSV, can you compile a binary for Windows, also with this mod?

Darby_Crash 02-22-2014 04:06 PM

Re: Customized rtmpdump binaries with patch file


 
I've compiled rtmpdump with KSV's patch and streampiraten.ws's fix for Windows.

Code:

http://www.mediafire.com/download/cfdlwsqg9zg3c4s/RTMPDUMP+2.4+%2B+KSV+Patch+%2B+StreamPiraten.ws+Fix+%28Windows+32_64+bit%29.rar
64 bit version (MinGW) is 100% working.

32 bit version (Cygwin) need Cygwin's dll.

semerim 03-03-2014 01:49 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by Darby_Crash (Post 64915)
I've compiled rtmpdump with KSV's patch and streampiraten.ws's fix for Windows.

Code:

http://www.mediafire.com/download/cfdlwsqg9zg3c4s/RTMPDUMP+2.4+%2B+KSV+Patch+%2B+StreamPiraten.ws+Fix+%28Windows+32_64+bit%29.rar
64 bit version (MinGW) is 100% working.

32 bit version (Cygwin) need Cygwin's dll.


Great catch! 64 bit version resolved an issue I had with this stream:
rtmp://evp.mm.uol.com.br/radioam_poa/_definst_/radioam_poa.sdp/radioam_poa

Would it be possible for you to compile a 32 bit version that runs natively and doesn't use Cygwin?
Thanks.

denobis 03-04-2014 06:14 AM

Re: Customized rtmpdump binaries with patch file


 
Thanks for your work KSV et alia.

When you calculate the SWFVerification token you must have the decompressed swf which in normal case is as simple as CWS. But what if you have a ZWS compressed swf? See

http://static1.tele-cinco.net/comun/...7e39b10cf57 8

It's already included this case? and if not, there is a possibility to implement lzma decompression?

denobis 03-04-2014 07:12 AM

Re: Customized rtmpdump binaries with patch file


 
Not implemented in hashswf

if (i->first)
{
i->first = 0;

/* compressed? */

if (!strncmp(p, "CWS", 3))
{
*p = 'F';
i->zlib = 1;
}

HMAC_crunch(i->ctx, (unsigned char *)p, 8);
p += 8;
len -= 8;
i->size = 8;
}

So the program fails when the swf is ZWS which it's managed as FWS

denobis 03-04-2014 07:24 AM

Re: Customized rtmpdump binaries with patch file


 
By the way, this info can be useful

http://helpx.adobe.com/flash-player/...ompressed.html

gorilla.maguila 03-04-2014 01:24 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by denobis (Post 65478)
By the way, this info can be useful

http://helpx.adobe.com/flash-player/...ompressed.html

After modifying the header you still need to do the decompression and that requires to integrate a lzma decompression routine or link to lzma decompression library into rtmpdump.

http://www.7-zip.org/sdk.html

So your best option is to decompress then calculate the swfsize and swfhash manually and pass them as arguments --swfsize --swfhash

denobis 03-05-2014 06:46 AM

Re: Customized rtmpdump binaries with patch file


 
Thanks,

i'll try, anyway would be desiderable to implement the library in the rtmpdump project thinking in the possible expansion of the lzma compression to all swf's. I'll try this too.

chanc 03-07-2014 02:38 AM

Re: Customized rtmpdump binaries with patch file


 
Failed with hulu.

Please help !


d:\rtmpdump>perl get_flash_videos http://www.hulu.com/watch/601533
Using method 'hulu' for http://www.hulu.com/watch/601533
Downloading http://www.hulu.com/watch/601533
Found Hulu CID: 60347287
Found Hulu EID: wFXYYpQm3ZALl8lw9Az5CQ
Using quality H264 Medium
RTMPDump v2.4 GIT-2013-10-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
2 request not supported, attempting to use SWFVerification Type 1! Patches welc
ome...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
Download failed, no valid file downloaded
Couldn't download any videos.

I am using win 7 . with combined get_flash_videos

KSV 03-14-2014 12:31 AM

Re: Customized rtmpdump binaries with patch file


 
Changes:

1. also check client signature to detect if server wanna use old rtmp handshake
(fixes handshake problems with some lousy servers)
2. added support for ddoss.me, streampiraten.ws changes
3. handle NetConnection.Connect.Rejected for onStatus response along with _error

chap 03-14-2014 02:08 AM

Re: Customized rtmpdump binaries with patch file


 
KSV
thanks:cool:

hasomaso 03-14-2014 03:39 AM

Re: Customized rtmpdump binaries with patch file


 
perfect KSV

RedPenguin 03-14-2014 02:44 PM

Re: Customized rtmpdump binaries with patch file


 
I have a strange mips.tv issue.

I am attempting to use the following link:

<link>rtmp://5.63.146.236/live playpath=msnbcbcb swfurl=http://www.mips.tv/content/scripts/eplayer.swf pageUrl=http://www.mips.tv/embedplayer/msnbcbcb/1/600/400 swfVfy=true conn=S:OK live=true timeout=30 buffer=90000</link>

using the latest librtmp.

For some reason it plays for like 3 seconds and totally freezes XBMC.

It also will not even begin to download with rtmpsrv.

Nothing looks to have really changed in Wireshark and obviously the video plays fine in their own player.

KSV 03-15-2014 02:09 AM

Re: Customized rtmpdump binaries with patch file


 
@RedPenguin

can u post the link where i can test this or similar stream?

RedPenguin 03-15-2014 09:11 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 66402)
@RedPenguin

can u post the link where i can test this or similar stream?

http://2ndrun.tv/news_directory/national/msnbc/

KSV 03-15-2014 11:05 AM

Re: Customized rtmpdump binaries with patch file


 
your playpath is missing some parameters.

Code:

msnbcbcb?id=194645

RedPenguin 03-15-2014 11:11 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 66414)
your playpath is missing some parameters.

Code:

msnbcbcb?id=194645

Oh ok, I had a feeling the playpath looked slightly differently, but for some reason I didn't see the id# in Wireshark. Thanks again.

Odd how it "works" but freezes without the ID part though, you think it would have just failed all together.

KSV 03-15-2014 11:18 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by RedPenguin (Post 66415)
Odd how it "works" but freezes without the ID part though, you think it would have just failed all together.

it's part of their security system. after few seconds it only sends ping messages without any stream data so connection never times out giving the feeling of freeze.

gorilla.maguila 03-21-2014 06:28 AM

Re: Customized rtmpdump binaries with patch file


 
Another one:

Code:

else if (strstr(pageUrl, "arschkrampe.in"))
            {
              RTMP_SendCreateStream(r);
              SendGetStreamLength(r);
              SendCommand(r, "StreamPiraten", FALSE);
            }

Code:

rtmpdump -r rtmp://pc3oot.us.to:1935/live -y ak -W http://ni208114_1.vweb03.nitrado.net/player.swf -p http://arschkrampe.in/ak/akstream.php
http://arschkrampe.in/ak/akstream.php

KSV 03-21-2014 11:49 AM

Re: Customized rtmpdump binaries with patch file


 
i have posted an update for streampiraten.ws and clones (ddoss.me, arschkrampe.in etc.).

hasomaso 03-21-2014 12:25 PM

Re: Customized rtmpdump binaries with patch file


 
Thanks..!!! Genius

lto 03-21-2014 02:24 PM

Re: Customized rtmpdump binaries with patch file


 
I use your version of rtmpdump with rtmpdumphelper and it works great, but it always crashes when watching cam show and camera switches from public to private. This bug exist for months so instead just waiting for fix I wrote about it here. Anyway thanks for great work!

KSV 03-21-2014 10:32 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by lto (Post 66533)
I use your version of rtmpdump with rtmpdumphelper and it works great, but it always crashes when watching cam show and camera switches from public to private. This bug exist for months so instead just waiting for fix I wrote about it here.

Provide the url where this bug is reproducible easily.

lto 03-22-2014 04:24 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 66540)
Provide the url where this bug is reproducible easily.


I explained reproduction steps in private message.

mominsana78 03-22-2014 05:11 AM

Re: Customized rtmpdump binaries with patch file


 
Hello
thanks ksv sir for guide

edited: cause some one said it if not want to banned


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