PDA

View Full Version : TVPublica - deleteStream package


xvan
10-08-2012, 02:50 PM
This is the page: http://tvpublica.com.ar/vivo/

First I try to connect with
rtmpdump -n active.telecomcdn.com -a canal7vivoflash/canal7vivoflash/livestream/ -f 'LNX 11,0,1,129' -s 'http://tvpublica.com.ar/vivo/swf/player.swf' -t 'rtmp://active.telecomcdn.com/canal7vivoflash/canal7vivoflash/livestream/' -p 'http://tvpublica.com.ar/vivo/' -y 'livestream' -b 2000 -V

DEBUG: Protocol : RTMP
DEBUG: Hostname : active.telecomcdn.com
DEBUG: Port : 1935
DEBUG: Playpath : livestream
DEBUG: tcUrl : rtmp://active.telecomcdn.com/canal7vivoflash/canal7vivoflash/livestream/
DEBUG: swfUrl : http://tvpublica.com.ar/vivo/swf/player.swf
DEBUG: pageUrl : http://tvpublica.com.ar/vivo/
DEBUG: app : canal7vivoflash/canal7vivoflash/livestream/
DEBUG: flashVer : LNX 11,0,1,129
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 2000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 0
DEBUG: HandShake: FMS Version : 0.0.0.0
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.


This returns a similar dump to the online player one: s redirect response package
Real Time Messaging Protocol (AMF0 Command _error('NetConnection.Connect.Rejected'))
Redirecting to another rtmp address.
Property 'redirect' String 'rtmp://186.153.1.4/liverepeater/_definst_/5daaqaibaqm2bi2ezrnmey2gtrmitzqg'

rtmpdump doesn't handle it, and when I use it manually:

rtmpdump -r 'rtmp://186.153.1.4/liverepeater/_definst_/5daaqaibaqm2bi2ezrnmey2gtrmitzqg' -a 'liverepeater/_definst_/5daaqaibaqm2bi2ezrnmey2gtrmitzqg' -f 'LNX 11,0,1,129' -s 'http://tvpublica.com.ar/vivo/swf/player.swf' -p 'http://tvpublica.com.ar/vivo/' -b 2000 -y livestream -V
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-4KHq9s/pkcs11: No such file or directory
WARNING: You haven't specified an output file (-o filename), using stdout
DEBUG: Protocol : RTMP
DEBUG: Hostname : 186.153.1.4
DEBUG: Port : 1935
DEBUG: Playpath : livestream
DEBUG: tcUrl : rtmp://186.153.1.4:1935/liverepeater/_definst_/5daaqaibaqm2bi2ezrnmey2gtrmitzqg
DEBUG: swfUrl : http://tvpublica.com.ar/vivo/swf/player.swf
DEBUG: pageUrl : http://tvpublica.com.ar/vivo/
DEBUG: app : liverepeater/_definst_/5daaqaibaqm2bi2ezrnmey2gtrmitzqg
DEBUG: flashVer : LNX 11,0,1,129
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 2000ms
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 259 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,5,4,210>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: Property: <Name: mode, NUMBER: 1.00>
DEBUG: (object end)
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, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: version, STRING: 3,5,4,210>
DEBUG: (object end)
DEBUG: Property: <Name: clientid, NUMBER: 2065159754.00>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.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 createStream
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: livestream
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.


I compared the original and the rtmpdump tcp-dumps again... and rtmpdump deletes the stream before giving it a chance to start, without apparent reason.

http://image.bayimg.com/cadnjaael.jpg

Any guesses? Might it because of a timeout? rtmpdump deletes the stream 140ms from the play package, and it takes the original player 290ms to receive a response.

svnpenn
10-08-2012, 08:05 PM
That site, blows.

http://i.imgur.com/rIign.png

xvan
10-08-2012, 11:32 PM
Might be limited from inside Argentina, but I don't think so.
Anyone else can confirm this?

You could also try with http://canalsieteenvivo.com.ar/ . Not official and with adds, and seems to be a retransmission.

svnpenn
10-09-2012, 04:29 PM
$ rtmpdump -r "rtmp://active.telecomcdn.com/canal7vivoflash/canal7vivoflash/liv
estream/" -a "canal7vivoflash/canal7vivoflash/livestream/" -f "WIN 11,4,402,278
" -W "http://tvpublica.com.ar/vivo/swf/player.swf" -p "http://tvpublica.com.ar/
vivo/" -y "livestream" -o livestream.flv
RTMPDump v2.4-42-gc2a0cc4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
INFO: rtmp server sent redirect
INFO: trying to connect with redirected url
Starting download at: 0.000 kB
INFO: Metadata:
INFO: author
INFO: copyright
INFO: description
INFO: keywords
INFO: rating
INFO: title
INFO: presetname Custom
INFO: creationdate Sun Sep 30 13:43:06 2012
INFO: videodevice Osprey-240e Video Device 2
INFO: framerate 15.00
INFO: width 384.00
INFO: height 288.00
INFO: videocodecid avc1
INFO: videodatarate 244.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency5.00
INFO: audiodevice Osprey-240e Audio Device 2
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: audioinputvolume 48.00
INFO: audiocodecid .mp3
INFO: audiodatarate 96.00
1026.549 kB / 24.45 sec

xvan
10-09-2012, 05:46 PM
Thanks!,
It was an rtmpdump issue.

For ubuntu/debian users:
Official repository 2.4 has issues.
If rtmpdump is compiled librtmp needs to be also replaced to avoid a segfault issue. But gstream depends on the old librtmp.

I solved this by compiling rtmpdump statically:
make SHARED=no

I used svnpenn's branch (https://github.com/svnpenn/rtmpdump)

xvan
10-09-2012, 10:36 PM
Third time I try to reply to this thread :(

Thanks, that worked.
Seems to have been an rtmpdump issue from the 1.4 version in the ubuntu repository.
Compiling the version from your repository fixed the issue.