SocketException with rtmpe. Help please ! (1 Viewer)

titof

Portal Pro
March 3, 2008
2,248
63
France France
Hello !

I build a siteUtilBase for add some french site to OnlineVideos, but I have a problème with rtmpe urls.

Sometime it's works great (rarely), sometimes not.

This is the code for building the url :

Code:
string resultUrl = ReverseProxy.GetProxyUri(RTMP_LIB.RTMPRequestHandler.Instance,
                                string.Format("http://127.0.0.1/stream.flv?rtmpurl={0}",
                                    System.Web.HttpUtility.UrlEncode("rtmpe://m6dev.fcod.llnwd.net:443/a3100/d1/" + video.VideoUrl)
                                ));
            return resultUrl;
OnlineVideos generate this url :

Code:
http://127.0.0.1:30006/0/127.0.0.1/stream.flv?rtmpurl=rtmpe%3a%2f%2fm6dev.fcod.llnwd.net%3a443%2fa3100%2fd1%2fmp4%3aproduction%2fw9replay%2fw9_le-jt-agite_75470_161020101950.mp4
and this is my log :

Code:
2010-10-20 00:05:12.959964 [Info.][MPMain(1)]: [OnlineVideos]Preparing graph for playback of http://127.0.0.1:30006/0/127.0.0.1/stream.flv?rtmpurl=rtmpe%3a%2f%2fm6dev.fcod.llnwd.net%3a443%2fa3100%2fd1%2fmp4%3aproduction%2fw9replay%2fw9_le-jt-agite_75470_161020101950.mp4
2010-10-20 00:05:12.960964 [Info.][MPMain(1)]: VMR9: added EVR Renderer to graph
2010-10-20 00:05:13.247981 [Debug][MPMain(1)]: VMR9: Now active
2010-10-20 00:05:13.247981 [Debug][MPMain(1)]: VMR9: Renderer successfully added
2010-10-20 00:05:13.248981 [Debug][MPMain(1)]: VMR9: Inactive
2010-10-20 00:05:13.248981 [Info.][MPMain(1)]: DirectShowUtils: First try to insert new audio renderer Default DirectSound Device 
2010-10-20 00:05:13.248981 [Info.][MPMain(1)]: DirectShowUtils: Found audio renderer
2010-10-20 00:05:13.249981 [Debug][MPMain(1)]: DirectShowUtils: added filter:Default DirectSound Device to graph
2010-10-20 00:05:13.250981 [Info.][MPMain(1)]: Added filter: File Source (URL) to graph
2010-10-20 00:05:21.254439 [Debug][RTMPProxy(28)]: [OnlineVideos]Request
2010-10-20 00:05:21.308442 [Debug][RTMPProxy(28)]: [OnlineVideos]Client type: 6
2010-10-20 00:05:21.353444 [Debug][RTMPProxy(28)]: [OnlineVideos]truncated public key length to 128
2010-10-20 00:05:21.353444 [Debug][RTMPProxy(28)]: [OnlineVideos]DH pubkey position: 1299
2010-10-20 00:05:21.353444 [Debug][RTMPProxy(28)]: [OnlineVideos]Client digest offset: 502
2010-10-20 00:05:21.354444 [Debug][RTMPProxy(28)]: [OnlineVideos]Initial client digest: 
2010-10-20 00:05:21.354444 [Debug][RTMPProxy(28)]: [OnlineVideos]04 F8 93 5B 46 36 CD 5E 5E 7F D9 3C 7F E6 F9 0C B8 A6 1C F9 AC 13 24 DE 11 61 E6 76 C5 84 D8 8B 
2010-10-20 00:05:21.554456 [Debug][RTMPProxy(28)]: [OnlineVideos]Type Answer   : 8
2010-10-20 00:05:21.554456 [Debug][RTMPProxy(28)]: [OnlineVideos]Type mismatch: client sent 6, server answered 8
2010-10-20 00:05:21.555456 [Debug][RTMPProxy(28)]: [OnlineVideos]Server Uptime : 1630343653
2010-10-20 00:05:21.556456 [Debug][RTMPProxy(28)]: [OnlineVideos]FMS Version   : 3.5.4.1
2010-10-20 00:05:21.556456 [Debug][RTMPProxy(28)]: [OnlineVideos]Server DH public key offset: 540
2010-10-20 00:05:21.606459 [Debug][RTMPProxy(28)]: [OnlineVideos]DH SecretKey:
2010-10-20 00:05:21.606459 [Debug][RTMPProxy(28)]: [OnlineVideos]00 8E 56 A0 45 0E F0 1D CA CF BD E3 0C 7C 21 E2 EF 5F 3B A1 2D 1D 83 A8 B4 B2 A3 8E 8C 27 6E 12 76 5C 9A B0 AE 3F 5F 62 DE 2E C4 51 53 C5 B3 64 F9 A1 CE E9 85 40 21 AD 90 1D 5E AF 2E D7 6E C1 90 3B F7 26 15 1D 94 50 DB 13 6A CF 3A 5F B8 86 6F 67 6B E4 07 57 7B 9B 0B 79 90 40 2A E2 40 DA CB BD F6 21 38 84 1D 4F 46 37 10 AB F2 A7 17 F9 52 BC 4D FE 3D C2 C2 17 68 6A 1C 60 F4 FE 66 2B 
2010-10-20 00:05:21.607459 [Debug][RTMPProxy(28)]: [OnlineVideos]RC4 Out Key: 
2010-10-20 00:05:21.607459 [Debug][RTMPProxy(28)]: [OnlineVideos]6B 4A E2 5B 0F DD 34 F8 B9 C0 6D A0 54 2B A7 9A 
2010-10-20 00:05:21.607459 [Debug][RTMPProxy(28)]: [OnlineVideos]RC4 In Key: 
2010-10-20 00:05:21.607459 [Debug][RTMPProxy(28)]: [OnlineVideos]7E 5F 27 D4 6D FC 72 93 14 C5 DF D3 60 20 30 7E 
2010-10-20 00:05:21.608459 [Debug][RTMPProxy(28)]: [OnlineVideos]Calculated digest key from secure key and server digest: 
2010-10-20 00:05:21.608459 [Debug][RTMPProxy(28)]: [OnlineVideos]91 8B 66 F1 7D 9E 70 31 AE 05 1F 51 FC 83 A8 A2 04 D8 FD AD 68 AB 89 0A 60 9F 5D A9 1A D3 13 C2 
2010-10-20 00:05:21.609459 [Debug][RTMPProxy(28)]: [OnlineVideos]Client signature calculated:
2010-10-20 00:05:21.609459 [Debug][RTMPProxy(28)]: [OnlineVideos]95 7E B3 BA C3 A9 F3 A5 D9 DC 3F 02 34 B6 9F 6A FC 8A 9D 56 F2 A9 3A 2E 32 D0 BB 08 B5 F0 55 47 
2010-10-20 00:05:21.609459 [Debug][RTMPProxy(28)]: [OnlineVideos]Client signature digest position: 502
2010-10-20 00:05:21.609459 [Debug][RTMPProxy(28)]: [OnlineVideos]Digest key: 
2010-10-20 00:05:21.610459 [Debug][RTMPProxy(28)]: [OnlineVideos]AD EE 12 B9 07 0E CB 4C A8 2D 68 E9 E7 6D E8 A0 2F 1E BD E3 7B 90 42 FE 67 23 FE CE D4 EE 28 3D 
2010-10-20 00:05:21.610459 [Debug][RTMPProxy(28)]: [OnlineVideos]Signature calculated:
2010-10-20 00:05:21.610459 [Debug][RTMPProxy(28)]: [OnlineVideos]5E A6 45 F8 AB 58 C8 99 4A E0 2F 63 17 0D 4E 55 29 41 D7 AA 2C CC 5C 63 E8 63 12 83 21 88 86 C0 
2010-10-20 00:05:21.610459 [Debug][RTMPProxy(28)]: [OnlineVideos]Server sent signature:
2010-10-20 00:05:21.611459 [Debug][RTMPProxy(28)]: [OnlineVideos]5E A6 45 F8 AB 58 C8 99 4A E0 2F 63 17 0D 4E 55 29 41 D7 AA 2C CC 5C 63 E8 63 12 83 21 88 86 C0 
2010-10-20 00:05:21.611459 [Debug][RTMPProxy(28)]: [OnlineVideos]Genuine Adobe Flash Media Server
2010-10-20 00:05:21.611459 [Debug][RTMPProxy(28)]: [OnlineVideos]Handshaking finished....
2010-10-20 00:05:21.612459 [Debug][RTMPProxy(28)]: [OnlineVideos]Sending connect
2010-10-20 00:05:21.612459 [Debug][RTMPProxy(28)]: [OnlineVideos]app : a3100/d1
2010-10-20 00:05:21.612459 [Debug][RTMPProxy(28)]: [OnlineVideos]tcUrl : rtmpe://m6dev.fcod.llnwd.net:443/a3100/d1
2010-10-20 00:05:23.113545 [Debug][RTMPProxy(28)]: [OnlineVideos]System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   à System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   à System.Net.Sockets.Socket.Receive(Byte[] buffer)
   à RTMP_LIB.RTMP.ReadN(Byte[] buffer, Int32 offset, Int32 size)
   à RTMP_LIB.RTMP.ReadPacket(RTMPPacket& packet)
   à RTMP_LIB.RTMP.ConnectStream()
   à RTMP_LIB.RTMP.Connect(Link link)
   à RTMP_LIB.RTMPRequestHandler.HandleRequest(String url, HTTPServerRequest request, HTTPServerResponse response)
2010-10-20 00:05:23.114545 [Debug][RTMPProxy(28)]: [OnlineVideos]Request finished.
Can you help me please ? :(

Thanks !
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    You might have to find the right parameters for the rtmp connection.

    These could include the swfhash, because rtmpe with client type 8 is encrypted using the hash of the swf playing the file as key. Some videos might play because they don't require encryption while others might need it.

    Finding these parameters is not easy and no automation is available. You can play the file in the browser and use a network sniffer to find out more. Or hope somewhere on the internet someone else got your videos working with rtmpdump, which needs the same parameters.
     

    titof

    Portal Pro
    March 3, 2008
    2,248
    63
    France France
    Re : Re: SocketException with rtmpe. Help please !

    You might have to find the right parameters for the rtmp connection.

    These could include the swfhash, because rtmpe with client type 8 is encrypted using the hash of the swf playing the file as key. Some videos might play because they don't require encryption while others might need it.

    Finding these parameters is not easy and no automation is available. You can play the file in the browser and use a network sniffer to find out more. Or hope somewhere on the internet someone else got your videos working with rtmpdump, which needs the same parameters.
    Ok, but with rtmpdump it's works very well all the time with this parameters :

    Code:
    rtmpdump -r "rtmpe://m6dev.fcod.llnwd.net:443/a3100/d1/mp4:production/w9replay/w9_le-jt-agite_75470_161020101950.mp4" -o "essai.mp4"
    And, for the same video, with OnlineVideos, sometimes it's works, sometimes not.
     

    titof

    Portal Pro
    March 3, 2008
    2,248
    63
    France France
    Re : Re: SocketException with rtmpe. Help please !

    I have an other error sometimes. The buffering start and failed with this error :

    Code:
    2010-10-20 10:46:30.828028 [Info.][MPMain(1)]: [OnlineVideos]Preparing graph for playback of http://127.0.0.1:30006/0/127.0.0.1/stream.flv?rtmpurl=rtmpe%3a%2f%2fm6dev.fcod.llnwd.net%3a443%2fa3100%2fd1%2fmp4%3aproduction%2fregienum%2fm6_concert-prive-m6_75380_171020100135.mp4
    2010-10-20 10:46:30.829029 [Info.][MPMain(1)]: VMR9: added EVR Renderer to graph
    2010-10-20 10:46:30.879054 [Debug][MPMain(1)]: VMR9: Now active
    2010-10-20 10:46:30.879054 [Debug][MPMain(1)]: VMR9: Renderer successfully added
    2010-10-20 10:46:30.879054 [Debug][MPMain(1)]: VMR9: Inactive
    2010-10-20 10:46:30.880054 [Info.][MPMain(1)]: DirectShowUtils: First try to insert new audio renderer Default DirectSound Device 
    2010-10-20 10:46:30.880054 [Info.][MPMain(1)]: DirectShowUtils: Found audio renderer
    2010-10-20 10:46:30.880054 [Debug][MPMain(1)]: DirectShowUtils: added filter:Default DirectSound Device to graph
    2010-10-20 10:46:30.881055 [Info.][MPMain(1)]: Added filter: File Source (URL) to graph
    2010-10-20 10:46:31.127178 [Debug][RTMPProxy(21)]: [OnlineVideos]Request
    2010-10-20 10:46:31.143186 [Debug][RTMPProxy(21)]: [OnlineVideos]Client type: 6
    2010-10-20 10:46:31.168198 [Debug][RTMPProxy(21)]: [OnlineVideos]DH pubkey position: 1396
    2010-10-20 10:46:31.168198 [Debug][RTMPProxy(21)]: [OnlineVideos]Client digest offset: 510
    2010-10-20 10:46:31.168198 [Debug][RTMPProxy(21)]: [OnlineVideos]Initial client digest: 
    2010-10-20 10:46:31.168198 [Debug][RTMPProxy(21)]: [OnlineVideos]36 CE F8 DB C5 58 C8 D4 0A 52 D7 5E BF 4C 1A 26 72 BF 49 86 82 14 B2 DC C0 A3 1A 31 49 A4 10 FC 
    2010-10-20 10:46:31.268248 [Debug][RTMPProxy(21)]: [OnlineVideos]Type Answer   : 8
    2010-10-20 10:46:31.268248 [Debug][RTMPProxy(21)]: [OnlineVideos]Type mismatch: client sent 6, server answered 8
    2010-10-20 10:46:31.268248 [Debug][RTMPProxy(21)]: [OnlineVideos]Server Uptime : 1668812351
    2010-10-20 10:46:31.268248 [Debug][RTMPProxy(21)]: [OnlineVideos]FMS Version   : 3.5.4.1
    2010-10-20 10:46:31.268248 [Debug][RTMPProxy(21)]: [OnlineVideos]Server DH public key offset: 432
    2010-10-20 10:46:31.294261 [Debug][RTMPProxy(21)]: [OnlineVideos]DH SecretKey:
    2010-10-20 10:46:31.294261 [Debug][RTMPProxy(21)]: [OnlineVideos]4C B7 69 F7 0B 52 89 B2 95 95 62 3D 88 1D 56 1B BF E9 CC 08 57 A4 62 B3 F5 49 F9 EA 93 77 24 B5 28 9A 53 0D 4F 70 C7 50 4C 31 6B 0F C9 18 25 B5 C0 EE 61 0B 66 5F 31 3F EF BB CD 69 99 74 0D 6B 3F 8C 6E 5A 69 A4 9F 24 20 77 EF 9E 18 84 FE A3 8E 62 A6 BC B7 57 4F 91 99 FC 81 10 83 1F CC C8 A4 76 BC 22 D8 D5 53 EA 26 9B 5C F6 F6 B5 27 25 AF 07 BF ED FD F4 DA 04 71 F5 47 F9 48 7E B0 D9 
    2010-10-20 10:46:31.294261 [Debug][RTMPProxy(21)]: [OnlineVideos]RC4 Out Key: 
    2010-10-20 10:46:31.295262 [Debug][RTMPProxy(21)]: [OnlineVideos]01 33 E6 BA 90 DB A5 27 3B 8F D0 8D BC 57 F9 A3 
    2010-10-20 10:46:31.295262 [Debug][RTMPProxy(21)]: [OnlineVideos]RC4 In Key: 
    2010-10-20 10:46:31.295262 [Debug][RTMPProxy(21)]: [OnlineVideos]F9 5A E6 93 5E 19 DF 68 0A A3 46 CA D9 82 75 BF 
    2010-10-20 10:46:31.295262 [Debug][RTMPProxy(21)]: [OnlineVideos]Calculated digest key from secure key and server digest: 
    2010-10-20 10:46:31.295262 [Debug][RTMPProxy(21)]: [OnlineVideos]CD E7 D8 DF 17 70 D2 56 EF 60 30 C7 87 FE B2 D8 79 2D 59 FC 72 CC 82 8A A5 A0 4D 7D 1D 85 1E C1 
    2010-10-20 10:46:31.296262 [Debug][RTMPProxy(21)]: [OnlineVideos]Client signature calculated:
    2010-10-20 10:46:31.296262 [Debug][RTMPProxy(21)]: [OnlineVideos]0A D1 33 32 3C 35 5A 8C 78 05 FD 95 0A 80 CA 94 F8 BF 6B C1 36 2A CE 67 79 1D EF 72 15 98 09 F2 
    2010-10-20 10:46:31.296262 [Debug][RTMPProxy(21)]: [OnlineVideos]Client signature digest position: 510
    2010-10-20 10:46:31.296262 [Debug][RTMPProxy(21)]: [OnlineVideos]Digest key: 
    2010-10-20 10:46:31.296262 [Debug][RTMPProxy(21)]: [OnlineVideos]58 B9 9E A7 7D 28 10 4C 25 96 65 2C 2A 55 30 C6 DA D0 AF 70 7A 0A 37 8B 87 50 03 F3 F7 BE 8B FC 
    2010-10-20 10:46:31.296262 [Debug][RTMPProxy(21)]: [OnlineVideos]Signature calculated:
    2010-10-20 10:46:31.297263 [Debug][RTMPProxy(21)]: [OnlineVideos]AB 41 2B D6 94 1F A9 22 56 81 BA 0A 26 E1 DC 35 F7 1B 8E AA FA 3B 8F 2E 1E BE 6F 7B 03 82 34 2B 
    2010-10-20 10:46:31.297263 [Debug][RTMPProxy(21)]: [OnlineVideos]Server sent signature:
    2010-10-20 10:46:31.297263 [Debug][RTMPProxy(21)]: [OnlineVideos]AB 41 2B D6 94 1F A9 22 56 81 BA 0A 26 E1 DC 35 F7 1B 8E AA FA 3B 8F 2E 1E BE 6F 7B 03 82 34 2B 
    2010-10-20 10:46:31.297263 [Debug][RTMPProxy(21)]: [OnlineVideos]Genuine Adobe Flash Media Server
    2010-10-20 10:46:31.346287 [Debug][RTMPProxy(21)]: [OnlineVideos]Handshaking finished....
    2010-10-20 10:46:31.346287 [Debug][RTMPProxy(21)]: [OnlineVideos]Sending connect
    2010-10-20 10:46:31.347288 [Debug][RTMPProxy(21)]: [OnlineVideos]app : a3100/d1
    2010-10-20 10:46:31.347288 [Debug][RTMPProxy(21)]: [OnlineVideos]tcUrl : rtmpe://m6dev.fcod.llnwd.net:443/a3100/d1
    2010-10-20 10:46:31.447338 [Debug][RTMPProxy(21)]: [OnlineVideos]HandleServerBW: server BW = 2500000
    2010-10-20 10:46:31.447338 [Debug][RTMPProxy(21)]: [OnlineVideos]HandleClientBW: client BW = 2500000 2
    2010-10-20 10:46:31.447338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _result
    2010-10-20 10:46:31.447338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 1
    2010-10-20 10:46:31.447338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: OBJECT ====>
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: fmsVer,  STRING: FMS/3,5,4,1006
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: capabilities,  NUMBER: 127
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: mode,  NUMBER: 1
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: OBJECT ====>
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: level,  STRING: status
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: code,  STRING: NetConnection.Connect.Success
    2010-10-20 10:46:31.448338 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: description,  STRING: Connection succeeded.
    2010-10-20 10:46:31.449339 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: objectEncoding,  NUMBER: 0
    2010-10-20 10:46:31.449339 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: OBJECT ====>
    2010-10-20 10:46:31.449339 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: version,  STRING: 3,5,4,1006
    2010-10-20 10:46:31.449339 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_result>
    2010-10-20 10:46:31.449339 [Debug][RTMPProxy(21)]: [OnlineVideos]received result for method call <connect>
    2010-10-20 10:46:31.449339 [Debug][RTMPProxy(21)]: [OnlineVideos]Sending ping type: 3
    2010-10-20 10:46:31.450339 [Debug][RTMPProxy(21)]: [OnlineVideos]Sending createStream
    2010-10-20 10:46:31.450339 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: onBWDone
    2010-10-20 10:46:31.450339 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 0
    2010-10-20 10:46:31.450339 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <onBWDone>
    2010-10-20 10:46:31.450339 [Debug][RTMPProxy(21)]: [OnlineVideos]Sending _checkbw
    2010-10-20 10:46:31.550389 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _result
    2010-10-20 10:46:31.550389 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2
    2010-10-20 10:46:31.550389 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:31.550389 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 1
    2010-10-20 10:46:31.550389 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_result>
    2010-10-20 10:46:31.551390 [Debug][RTMPProxy(21)]: [OnlineVideos]received result for method call <createStream>
    2010-10-20 10:46:31.551390 [Debug][RTMPProxy(21)]: [OnlineVideos]Sending play: 'mp4:production/regienum/m6_concert-prive-m6_75380_171020100135' from time: '0'
    2010-10-20 10:46:31.551390 [Debug][RTMPProxy(21)]: [OnlineVideos]Sending ping type: 3
    2010-10-20 10:46:31.553391 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _onbwcheck
    2010-10-20 10:46:31.553391 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2148487840
    2010-10-20 10:46:31.553391 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:31.553391 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: Length: 16384
    2010-10-20 10:46:31.553391 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 0
    2010-10-20 10:46:31.553391 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_onbwcheck>
    2010-10-20 10:46:31.756492 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _onbwcheck
    2010-10-20 10:46:31.756492 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2148487843
    2010-10-20 10:46:31.756492 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:31.756492 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: Length: 32768
    2010-10-20 10:46:31.756492 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 1
    2010-10-20 10:46:31.757493 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_onbwcheck>
    2010-10-20 10:46:31.757493 [Debug][RTMPProxy(21)]: [OnlineVideos]received: chunk size change to 4096
    2010-10-20 10:46:31.757493 [Debug][RTMPProxy(21)]: [OnlineVideos]received: ping, type: 4
    2010-10-20 10:46:31.757493 [Debug][RTMPProxy(21)]: [OnlineVideos]Stream IsRecorded 1
    2010-10-20 10:46:31.757493 [Debug][RTMPProxy(21)]: [OnlineVideos]received: ping, type: 0
    2010-10-20 10:46:31.758493 [Debug][RTMPProxy(21)]: [OnlineVideos]Stream Begin 1
    2010-10-20 10:46:31.758493 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: onStatus
    2010-10-20 10:46:31.758493 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 0
    2010-10-20 10:46:31.758493 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:31.758493 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: OBJECT ====>
    2010-10-20 10:46:31.758493 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: level,  STRING: status
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: code,  STRING: NetStream.Play.Reset
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: description,  STRING: Playing and resetting production/regienum/m6_concert-prive-m6_75380_171020100135.
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: details,  STRING: production/regienum/m6_concert-prive-m6_75380_171020100135
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: clientid,  STRING: 7kcAYd1Y
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <onStatus>
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]onStatus: code :NetStream.Play.Reset, level: status
    2010-10-20 10:46:31.759494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: onStatus
    2010-10-20 10:46:31.760494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 0
    2010-10-20 10:46:31.760494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:31.760494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: OBJECT ====>
    2010-10-20 10:46:31.760494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: level,  STRING: status
    2010-10-20 10:46:31.760494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: code,  STRING: NetStream.Play.Start
    2010-10-20 10:46:31.760494 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: description,  STRING: Started playing production/regienum/m6_concert-prive-m6_75380_171020100135.
    2010-10-20 10:46:31.761495 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: details,  STRING: production/regienum/m6_concert-prive-m6_75380_171020100135
    2010-10-20 10:46:31.761495 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: Name: clientid,  STRING: 7kcAYd1Y
    2010-10-20 10:46:31.761495 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <onStatus>
    2010-10-20 10:46:31.761495 [Debug][RTMPProxy(21)]: [OnlineVideos]onStatus: code :NetStream.Play.Start, level: status
    2010-10-20 10:46:31.761495 [Debug][RTMPProxy(21)]: [OnlineVideos]ignoring too small audio packet: size: 0
    2010-10-20 10:46:31.761495 [Debug][RTMPProxy(21)]: [OnlineVideos]Set duration: 3152,768
    2010-10-20 10:46:31.869549 [Info.][OnlineVideos(16)]: [OnlineVideos]Start prebuffering ...
    
    2010-10-20 10:46:32.369799 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _onbwcheck
    2010-10-20 10:46:32.369799 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2148487845
    2010-10-20 10:46:32.369799 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:32.369799 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: Length: 49152
    2010-10-20 10:46:32.370799 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2
    2010-10-20 10:46:32.370799 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_onbwcheck>
    
    2010-10-20 10:46:32.875051 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _onbwcheck
    2010-10-20 10:46:32.875051 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2148487846
    2010-10-20 10:46:32.875051 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:32.875051 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: Length: 65536
    2010-10-20 10:46:32.875051 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 3
    2010-10-20 10:46:32.876052 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_onbwcheck>
    
    2010-10-20 10:46:34.689958 [Debug][RTMPProxy(21)]: [OnlineVideos]Send bytes report. (1252486 bytes)
    
    2010-10-20 10:46:34.792009 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _onbwcheck
    2010-10-20 10:46:34.792009 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 2148487851
    2010-10-20 10:46:34.792009 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:34.792009 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: Length: 81920
    2010-10-20 10:46:34.793010 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 4
    2010-10-20 10:46:34.793010 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_onbwcheck>
    
    2010-10-20 10:46:36.401814 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. STRING: _onbwdone
    2010-10-20 10:46:36.401814 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 0
    2010-10-20 10:46:36.402814 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: NULL
    2010-10-20 10:46:36.402814 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 0
    2010-10-20 10:46:36.402814 [Debug][RTMPProxy(21)]: [OnlineVideos]Property: no-name. NUMBER: 342
    2010-10-20 10:46:36.402814 [Debug][RTMPProxy(21)]: [OnlineVideos]server invoking <_onbwdone>
    
    2010-10-20 10:46:37.614420 [Debug][RTMPProxy(21)]: [OnlineVideos]Send bytes report. (2505340 bytes)
    
    2010-10-20 10:46:40.538881 [Debug][RTMPProxy(21)]: [OnlineVideos]Send bytes report. (3759430 bytes)
    
    2010-10-20 10:46:44.361792 [Debug][RTMPProxy(21)]: [OnlineVideos]Send bytes report. (5013034 bytes)
    
    2010-10-20 10:46:45.822522 [Info.][(8)]: [OnlineVideos]Aborting background thread.
    2010-10-20 10:46:45.822522 [Info.][OnlineVideos(16)]: [OnlineVideos]Buffering was aborted.
    2010-10-20 10:46:45.822522 [Info.][OnlineVideos(16)]: [OnlineVideos]Prebuffering failed.
    2010-10-20 10:46:45.824523 [Info.][MPMain(1)]: VideoPlayer9: Cleanup DShow graph
    2010-10-20 10:46:45.824523 [Debug][MPMain(1)]: VMR9: Dispose
    2010-10-20 10:46:45.826524 [Debug][MPMain(1)]: SubtitleRenderer: starting cleanup
    2010-10-20 10:46:45.826524 [Debug][MPMain(1)]: SubtitleRenderer: cleanup done
    2010-10-20 10:46:45.827524 [Debug][MPMain(1)]: Remove filter from graph: File Source (URL) 0
    2010-10-20 10:46:45.827524 [Debug][MPMain(1)]: Remove filter from graph: Default DirectSound Device 0
    2010-10-20 10:46:45.827524 [Debug][MPMain(1)]: Remove filter from graph: Enhanced Video Renderer 1
    2010-10-20 10:46:45.828525 [Info.][MPMain(1)]: VideoPlayerVMR9: Disabling DX9 exclusive mode
    2010-10-20 10:46:45.831526 [Debug][MPMain(1)]: WindowManager: route OnlineVideos.MediaPortal1.GUIOnlineVideos:4755->MediaPortal.Dialogs.GUIDialogNotify:2016
    2010-10-20 10:46:45.831526 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogNotify init
    2010-10-20 10:46:46.077649 [Debug][RTMPProxy(21)]: [OnlineVideos]System.Net.Sockets.SocketException: Une connexion existante a dû être fermée par l'hôte distant
       à System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       à System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 size, SocketFlags socketFlags)
       à HybridDSP.Net.HTTP.HTTPServerSession.Write(Byte[] buffer, Int32 offset, Int32 count) dans E:\Dev\mp-onlinevideos2\Plugin\RTMP_LIB\HTTP\HTTPServerSession.cs:ligne 126
       à HybridDSP.Net.HTTP.HTTPFixedLengthOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count) dans E:\Dev\mp-onlinevideos2\Plugin\RTMP_LIB\HTTP\HTTPFixedLengthOutputStream.cs:ligne 106
       à RTMP_LIB.FLVStream.WriteFLV(RTMP rtmp, DataReadyHandler DataReady, Socket socket) dans E:\Dev\mp-onlinevideos2\Plugin\RTMP_LIB\FLVStream.cs:ligne 76
       à RTMP_LIB.RTMPRequestHandler.HandleRequest(String url, HTTPServerRequest request, HTTPServerResponse response) dans E:\Dev\mp-onlinevideos2\Plugin\RTMP_LIB\RTMPRequestHandler.cs:ligne 69
    2010-10-20 10:46:46.078650 [Debug][RTMPProxy(21)]: [OnlineVideos]Request finished.
    For information, BildFilm use the same protocol and it crash with same error.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    Code:
    [OnlineVideos]Buffering was aborted.
    -> You pressed STOP or ESC while buffering? This is a feature to forcibly stop buffering (usually for cases where it takes a LONG time, so you don't have to wait for it to finish before continuing with another clip).

    If rtmpdump works fine I have to check our RTMP implementation again :( Maybe the port 443 is throwing something off (default for rtmp is 1935). Can you attach a verbose log from a successfull run with rtmpdump for a file that fails in OnlineVideos?
     

    titof

    Portal Pro
    March 3, 2008
    2,248
    63
    France France
    Re : Re: SocketException with rtmpe. Help please !

    Code:
    [OnlineVideos]Buffering was aborted.
    -> You pressed STOP or ESC while buffering? This is a feature to forcibly stop buffering (usually for cases where it takes a LONG time, so you don't have to wait for it to finish before continuing with another clip).
    No. I just wait.

    If rtmpdump works fine I have to check our RTMP implementation again :( Maybe the port 443 is throwing something off (default for rtmp is 1935). Can you attach a verbose log from a successfull run with rtmpdump for a file that fails in OnlineVideos?
    Ok, so, I send you the log file.

    My test is, for the same video :

    - Run MP and try to launch the video for the first time --> firstTime_MediaPortal.log
    - Wait for error message in OnlineVideos (URL not found ...)
    - Just clic again on video : buffering start, and stop with same message in OnlineVideos --> SecondTime_MediaPortal.log

    The problem is different between first time and second time.

    With rtmpDump, it's works great, show rtmpdump.log. (I stop it on 10% because is very slow ...)

    Thanks for help.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    It looks like you get the 15 seconds timeout and the buffering is stopped. I might have an idea that the timer is not reset , therefore causing it to elapse on playback start (which should NOT timeout by default).

    Can you compile latest OnlineVideos SVN or do you want test-binaries, with the fix?
     

    titof

    Portal Pro
    March 3, 2008
    2,248
    63
    France France
    Re : Re: SocketException with rtmpe. Help please !

    It looks like you get the 15 seconds timeout and the buffering is stopped. I might have an idea that the timer is not reset , therefore causing it to elapse on playback start (which should NOT timeout by default).

    Can you compile latest OnlineVideos SVN or do you want test-binaries, with the fix?
    Ok, I can compile lastest SVN.

    I test it and I come back.
     

    titof

    Portal Pro
    March 3, 2008
    2,248
    63
    France France
    Re : SocketException with rtmpe. Help please !

    Looks like it works better. But for all videos of my site (small and big videos) :

    - Sometimes the buffering start, sometime not (it's aleatory).
    - When it start on a small video (5-10 minutes), in 95% cases it works.
    - When it start on a big video (1 heure 30 minutes and more) : in 100% cases it not work (Timeout when buffering is too long ?)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    I have just commited two additional things:
    upped the timeout on the first rtmp connect to 5 Sec
    logged if the background task is killed by user or not (I still see the abort background task in your log and hive no idea why it happened if you didn't press any keys).

    Can you try again and attach the logs?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    O Help with TV setup Newcomers Forum 76
    J Help with new grabber file. WebEPG 1
    J IPTV Sweden, need help with m3u list MediaPortal 1 Plugins 14
    wizard123 [solved] MP1 Build help MediaPortal 1 21
    D Please help with getting Schedules Direct to work Newcomers Forum 10
    U [solved] Beginner needs help recording live TV General 19
    A IPTV from https m3u8 urls - Help General 8
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    M A little help with new install pls Installation, configuration support 3
    N Music player help Listen Music 4
    A Enigma2 receiver channels on Windows PC with Media Portal help General Support 0
    A Help! MP2 - DVB-T Not recognised (DRIVERS?) General 12
    milagroso Remote control with EventGhost - I'm stuck, need help General 3
    D Font size reduced. help. Skins and Plugins Installer (MPEI) 0
    S Gpu/hdtv/mp setup help please Newcomers Forum 3
    W Need help getting my TV guide working again General Support 1
    A I need help with 110 and 119 west Installation, configuration support 21
    A Need help rescaning Channels for 110 and 119 west MediaPortal 1 Talk 2
    C EPG-Buddy: so close to no help needed Electronic Program Guide 8
    mjmapi Help, getting My TVSeries 16
    Top Bottom