Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Dump of mips required

(http://stream-recorder.com/forum/showthread.php?t=19272)

gorilla.maguila 01-23-2015 09:44 AM

Re: Dump of mips required


 
Quote:

Originally Posted by biezom (Post 73480)
ok thanks
is it ok possible to change a few lines in the source code before compiling ?

It's necessary to write the necessary routines to support AMF3, such as AMF3_Encode().

But again if this done and released to the public, the owners will change everything again.

solarc 01-23-2015 11:46 AM

Re: Dump of mips required


 
Quote:

Originally Posted by gorilla.maguila (Post 73496)
(...)
But again if this done and released to the public, the owners will change everything again.

I don't know if this has to be done in the patch itself. But if so, why not create two patches then. One with AMF0 and other with AMF3? :\
And sorry if I'm saying something wrong... I'm not very knowledgeable on the subject. :o

troller12 01-23-2015 12:52 PM

Re: Dump of mips required


 
Hi,

maybe its necessary to force AMF3
Code:

"--objEnc|-O num Object encoding for connection, 0 for AMF0 and 3 for AMF3 (otherwise defaults to none specified)\n")
...so I don't see this paramter in newer versions.I found this one...
Code:

https://github.com/foysavas/rtmpdump/blob/svnpenn/rtmpdump.c
greetz

biezom 01-23-2015 03:24 PM

Re: Dump of mips required


 
Quote:

Originally Posted by troller12 (Post 73501)
Hi,

maybe its necessary to force AMF3
Code:

"--objEnc|-O num Object encoding for connection, 0 for AMF0 and 3 for AMF3 (otherwise defaults to none specified)\n")
...so I don't see this paramter in newer versions.I found this one...
Code:

https://github.com/foysavas/rtmpdump/blob/svnpenn/rtmpdump.c
greetz

This is not enough I change the code rtmpdump.c before compiling
Code:

rtmpdump -r "rtmp://178.162.194.34/live" -a "live" -f "WIN 16,0,0,280" -W "http://www.mipsplayer.com/content/scripts/fplayer.swf" -p "http://www.mipsplayer.com/embedplayer/cnniokcfio/1/600/400" --objEnc 3 -C S:OK --live -y "cnniokcfio?id=221073" -K "gaolVanusPobeleVoKosata;TRUE" -o test.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...

I think we should also change /librtmp/amf.c or /librtmp/amf.h or both

shani_08 01-31-2015 07:22 PM

Re: Dump of mips required


 
Its nothing to do with AMF0. The problem is that they are returning the id in the response to gaolVanusPobeleVoKosata. That id then should be sent to them with publish function, after which it would work.
i am not sure if the source code is available so that i could do the pull request but here is the log.

Code:

(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : 178.162.194.34
DEBUG: Port    : 1935
DEBUG: Playpath : cnnlfl?id=221594
DEBUG: tcUrl    : rtmp://178.162.194.34:1935/live
DEBUG: swfUrl  : http://www.mipsplayer.com/content/scripts/fplayer.swf
DEBUG: pageUrl  : http://www.mips.tv/embedplayer/qlglive1d/1/480/380
DEBUG: app      : live
DEBUG: live    : yes
DEBUG: timeout  : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer  : 03
DEBUG: HandShake: Server Uptime : 96850052
DEBUG: HandShake: FMS Version  : 3.0.1.1
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,5,2004>
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.Su
ccess>
DEBUG: Property: <Name:        description, STRING:    Connection succeeded.>
DEBUG: Property: <Name:              data, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name:            version, STRING:    3,5,5,2004>
DEBUG: (object end)
DEBUG: Property: <Name:          clientid, NUMBER:    327191288.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 gaolVanusPobeleVoKosata
DEBUG: RTMP_ClientPacket, flex message, size 30 bytes, not fully supported
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:    327191288.00>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <gaolVanusPobeleVoKosata>
INFO: mips function returned the id
INFO: mips id 327191288

DEBUG: Invoking createStream
DEBUG: RTMP_ClientPacket, flex message, size 30 bytes, not fully supported
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:    _result>
DEBUG: Property: <Name:            no-name, NUMBER:    3.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: Invoking publish
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: cnnlfl?id=221594
DEBUG: Invoking play
DEBUG: sending ctrl, type: 0x0003
DEBUG: RTMP_ClientPacket, received: invoke 114 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:    onStatus>
DEBUG: Property: <Name:            no-name, NUMBER:    0.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.Publish.Start>
<REMOVED lines to make it short>
INFO:  audiodatarate          96.00
0.625 kB / 0.00 sec
DEBUG: ignoring too small video packet: size: 2
DEBUG: ignoring too small video packet: size: 2
DEBUG: ignoring too small audio packet: size: 0
526.943 kB / 6.83 sec
DEBUG: HandleCtrl, received ctrl, type: 31, len: 6
DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: HandleCtrl, received ctrl, type: 32, len: 6
DEBUG: HandleCtrl, Stream BufferReady 1
626.926 kB / 8.39 sec


biezom 01-31-2015 07:51 PM

Re: Dump of mips required


 
Code:

DEBUG: HandleInvoke, received result for method call <gaolVanusPobeleVoKosata>
INFO: mips function returned the id
INFO: mips id 327191288

how you get this log?

shani_08 02-01-2015 12:18 AM

Re: Dump of mips required


 
Thats my debug code. But you can see the _result after that server side function call.

fightnight 02-02-2015 03:51 AM

Re: Dump of mips required


 
Take an look here:

http://stream-recorder.com/forum/cus...le-t16103.html

Source code with patch.diff:

https://github.com/K-S-V/Scripts/releases

Send an PM to KSV with your patch :)

shani_08 02-02-2015 10:05 AM

Re: Dump of mips required


 
Thanks, I have already submitted my changes to them and it was confirmed to be working so good days ahead.

solarc 02-02-2015 12:50 PM

Re: Dump of mips required


 
Good news here, huh?
It's very good to hear that the solution is coming out. :)


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