PDA

View Full Version : ITV player - Dumping stream


Sq2
06-29-2014, 09:18 PM
Hello

I have been trying for some hours now to save a RTMPE location to a file with rtmpdump-2.3-windows

Url : https://www.itv.com/itvplayer/river-monsters/series-1/episode-4-amazon-assassins

Searching the headers of url above I can find the following RTMPE location.


rtmpe://cp72511.edgefcs.net/ondemand?auth=eaEdkaYbhbldWacazaLdscbdWacd9d8c0cUc 4a4btdWbldaakdvdHc_bcaObYaFclds-btSnki-eS-4xm2JBomDryp&aifp=v002&slist=production//mp4:production/priority/rtmpecatchup/1200/4B/1-7358-0004-001/1-7358-0004-001_river-monsters-(series-1)_tx210514_itv1200_16x9-reg.mp4?sessionId=963D2D15-9113-EFA1-999C-030EDCA174A2

I have tried the following 2 different RTMPDUMP commands in cmd.exe

rtmpdump -r "rtmpe://cp72511.edgefcs.net/ondemand?auth=eaEdkaYbhbldWacazaLdscbdWacd9d8c0cUc 4a4btdWbldaakdvdHc_bcaObYaFclds-btSnki-eS-4xm2JBomDryp&aifp=v002&slist=production//mp4:production/priority/rtmpecatchup/1200/4B/1-7358-0004-001/1-7358-0004-001_river-monsters-(series-1)_tx210514_itv1200_16x9-reg.mp4?sessionId=963D2D15-9113-EFA1-999C-030EDCA174A2" -o "output.flv"

This returns the following

HandShake: Type mismatch: client sent 6, server answered 9
HandShake: Server not genuine Adobe!

rtmpdump -r "rtmpe://cp72511.edgefcs.net:1935/ondemand" -a "ondemand?auth=eaEdkaYbhbldWacazaLdscbdWacd9d8c0cUc 4a4btdWbldaakdvdHc_bcaObYaFclds-btSnki-eS-4xm2JBomDryp&aifp=v002&slist=production/" -f "WIN 13,0,0,206" -W "https://www.itv.com/mediaplayer/releases/2.11.8/ITVMediaPlayer.swf" -p "https://www.itv.com/itvplayer/river-monsters/series-1/episode-4-amazon-assassins" -y "mp4:production/priority/rtmpecatchup/1200/4B/1-7358-0004-001/1-7358-0004-001_river-monsters-(series-1)_tx210514_itv1200_16x9-reg.mp4?sessionId=963D2D15-9113-EFA1-999C-030EDCA174A2" -o "output.flv"

This returns the following

ERROR: RTMP_HashSWF: connection lost while downloading sqfurl https://www.itv.com/mediaplayer/releases/2.11.8/ITVMediaPlayer.swf
Connecting ...
HandShake: Type mismatch: client sent 6, server answered 9
HandShake: Server not genuine Adobe!
I have tried to run these 2 different RTMPDUMP commands

Regarding this second command, I sourced some of it from another thread in this forum, such as the port:1935 in the RTMPE location - so this could be wrong.

Both of these commands seem to fail, can anybody help me?

Thanks in advance.

Sq2
06-30-2014, 07:46 AM
Managed to make some slight progress.

I downloaded an older build rtmpdump-2.1d-windows

When I run the following command (Same as command 2 in previuos post)

rtmpdump -r "rtmpe://cp72511.edgefcs.net:1935/ondemand" -a "ondemand?auth=eaEdkaYbhbldWacazaLdscbdWacd9d8c0cU c4a4btdWbldaakdvdHc_bcaObYaFclds-btSnki-eS-4xm2JBomDryp&aifp=v002&slist=production/" -f "WIN 13,0,0,206" -W "https://www.itv.com/mediaplayer/releases/2.11.8/ITVMediaPlayer.swf" -p "https://www.itv.com/itvplayer/river-monsters/series-1/episode-4-amazon-assassins" -y "mp4roduction/priority/rtmpecatchup/1200/4B/1-7358-0004-001/1-7358-0004-001_river-monsters-(series-1)_tx210514_itv1200_16x9-reg.mp4?sessionId=963D2D15-9113-EFA1-999C-030EDCA174A2" -o "output.flv"


This returns the following

ERROR: RTMP_HashSWF: connection lost while downloading swfurl https://www.itv.co
m/mediaplayer/releases/2.11.8/ITVMediaPlayer.swf
Connecting ...
ERROR: HandleCtrl: Ignoring SWFVerification request, use --swfVfy!
Starting download at: 0.000 kB
Metadata:
duration 2880.02
moovPosition 32.00
audiocodecid mp4a
width 704.00
height 396.00
videocodecid avc1
avcprofile 77.00
avclevel 31.00
aacaot 2.00
audiosamplerate 48000.00
audiochannels 2.00
videoframerate 25.00
trackinfo:
length 138241024.00
timescale 48000.00
language eng
sampledescription:
sampletype mp4a
length 72000000.00
timescale 25000.00
language eng
sampledescription:
sampletype avc1

DEBUG2: RTMP_ReadPacket: fd=1868
0000: c5 .
DEBUG: RTMPSockBuf_Fill, recv returned -1. GetSockError(): 10054 (Unknown error)

ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 67426
13459.318 kB / 183.16 sec (6.3%)
DEBUG: WriteStream returned: -1
Download may be incomplete (downloaded about 6.30%), try resuming
DEBUG: Closing connection.




It looks like the streamdump begins, but keeps cutting out at different percentages, this time as you can see it was 6.3%, another attempt cut out at 14%.

Any recommendations here?

Regards

Sq2
06-30-2014, 08:37 AM
Update.

When the download cuts out, I can call resume using -e
However it soon cuts out again, this time requiring the --skip 1 parameter.
then the next time resume without --skip 1, then the next time require --skip 1 and so on.

I can get the overall percentage using this technique to around 60%, but after calling resume more than 5-6 times the RTMPDUMP cmd returns

ERROR: rtmp server sent error
ERROR: rtmp server requested close

Seems this way can not grab the whole file either.

Any suggestions?

Regards

Guv
07-02-2014, 05:50 AM
It sounds like you just need to try a newer build of rtmpdump.

Have you tried 'rtmpdump-2.4-git-010913-windows':
https://rtmpdump.mplayerhq.hu/download/rtmpdump-2.4-git-010913-windows.zip

Or maybe better still KSV's patched build:
https://github.com/K-S-V/Scripts/releases

Asside from that, there's actually a far easier way to go about this, just use get-flash-videos:
https://code.google.com/p/get-flash-videos/downloads/list


combined-get_flash_videos-1.24-git-20130307.pl --subtitles https://www.itv.com/itvplayer/river-monsters/series-1/episode-4-amazon-assassins
Using method 'itv' plugin version 0.03 for https://www.itv.com/itvplayer/river-monsters/series-1/episode-4-amazon-assassins
Downloading https://www.itv.com/itvplayer/river-monsters/series-1/episode-4-amazon-assassins
Subtitle Fetching
Subtitle URL http://subtitles.secure.content.itv.com/ARCHIVE/837b3e0b/2689/4693/a99b/a0c2ec8c3a16/1-7358-0004-001_RiverMonsters_TX210514.xml&fileExt=.xml
Saved subtitles to 1-7358-0004-001_river-monsters-(series-1)_tx210514_itv1200_16x9-reg.srt
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Metadata:
INFO: duration 2880.02
INFO: moovPosition 32.00
INFO: audiocodecid mp4a
INFO: width 704.00
INFO: height 396.00
INFO: videocodecid avc1
INFO: avcprofile 77.00
INFO: avclevel 31.00
INFO: aacaot 2.00
INFO: audiosamplerate 48000.00
INFO: audiochannels 2.00
INFO: videoframerate 25.00
INFO: trackinfo:
INFO: length 138241024.00
INFO: timescale 48000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
INFO: length 72000000.00
INFO: timescale 25000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
1-7358-0004-001_river-monsters-(series-1)_tx210514_itv1200_16x9-reg.flv: 1% (5745.95 / 441995.85 KiB)