Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-29-2013, 10:38 AM
Mick Mick is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Mick is on a distinguished road
Default

Cannot capture ITV streams


I just tried to download this ITV video and it gets stuck at the ITV logo. It downloads a short clip with the logo animation and then keeps repeating and repeating the attempt to download it, with errors like this:
Code:
# iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
# rtmpsrv
RTMP Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935

rtmpdump -r "rtmpe://cp72511.edgefcs.net:1935/ondemand?auth=eaEaVdfcqcDanbEb7bvcTapaOcGdKdya9cvbQaUckcpb3aycNbjbnced_cpbZaQb5aj-brvBf7-eS-bAr3ICwjyswq&aifp=v002&slist=production/" -a "ondemand?auth=eaEaVdfcqcDanbEb7bvcTapaOcGdKdya9cvbQaUckcpb3aycNbjbnced_cpbZaQb5aj-brvBf7-eS-bAr3ICwjyswq&aifp=v002&slist=production/" -f "LNX 11,2,202,275" -W "https://www.itv.com/mediaplayer/ITVMediaPlayer.swf?v=12.18.4" -p "https://www.itv.com" -y "mp4:production/priority/stings/12334234_Adrobot_rebrand_7secplayersting169_7_495_600.BASELINE.mp4" -o 12334234_Adrobot_rebrand_7secplayersting169_7_495_600.BASELINE.flv

Closing connection... done!

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: connection lost while downloading swfurl https://www.itv.com/mediaplayer/ITVMediaPlayer.swf?v=12.18.4
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
INFO: Connected...

rtmpdump -r "rtmpe://cp72511.edgefcs.net:1935/ondemand?auth=eaEaVdfcqcDanbEb7bvcTapaOcGdKdya9cvbQaUckcpb3aycNbjbnced_cpbZaQb5aj-brvBf7-eS-bAr3ICwjyswq&aifp=v002&slist=production/" -a "ondemand?auth=eaEaVdfcqcDanbEb7bvcTapaOcGdKdya9cvbQaUckcpb3aycNbjbnced_cpbZaQb5aj-brvBf7-eS-bAr3ICwjyswq&aifp=v002&slist=production/" -f "LNX 11,2,202,275" -W "https://www.itv.com/mediaplayer/ITVMediaPlayer.swf?v=12.18.4" -p "https://www.itv.com" -y "mp4:production/priority/stings/12334234_Adrobot_rebrand_7secplayersting169_7_495_600.BASELINE.mp4" -o 12334234_Adrobot_rebrand_7secplayersting169_7_495_600.BASELINE.flv

Closing connection... done!
Is this because the URL is on https?

Is there a workaround to this problem?

Can someone please have a go and let me know if they can download it?
Reply With Quote
  #2  
Old 03-29-2013, 12:30 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Cannot capture ITV streams


Code:
>rtmpdump -r "rtmpe://cp72511.edgefcs.net/ondemand?auth=eaEdEcAbFagb9dubRc9bxckc
La_dlcYazcrb_brdBcMaUdMcOaed.a4dkcObEbtbsdf-brvC8p-eS-4zs2DAtkwuwq&aifp=v002&sli
st=production/" -W "https://www.itv.com/mediaplayer/ITVMediaPlayer.swf" -y "mp4:
production/priority/rtmpecatchup/1200/32/2-1926-0001-003/2-1926-0001-003_broadch
urch_tx040313_itv1200_16x9-reg.mp4" -o "4.flv"
RTMPDump v2.4 GIT-2012-12-09 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   duration              2783.24
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                133595136.00
INFO:   timescale             48000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            mp4a
INFO:   length                69581000.00
INFO:   timescale             25000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            avc1
9271.568 kB / 63.36 sec (2.2%)
Reply With Quote
  #3  
Old 03-29-2013, 12:39 PM
Mick Mick is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Mick is on a distinguished road
Default

Re: Cannot capture ITV streams


Thanks!

It seems that my iptables redirect command no longer works.

I recall that some versions ago the iptables rules changed and it no longer accepts the redirect rule:
Code:
# iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
# /sbin/iptables -L -v -n | grep 1935
#
It doesn't complain either to let me know that something is amiss. Any idea what syntax I should use?
Reply With Quote
  #4  
Old 03-29-2013, 01:03 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Cannot capture ITV streams


try use windows
Reply With Quote
  #5  
Old 03-29-2013, 01:49 PM
karlo2105 karlo2105 is offline
Senior Member
 
Join Date: Sep 2011
Posts: 318
karlo2105 is on a distinguished road
Default

Re: Cannot capture ITV streams


Quote:
Originally Posted by Mick View Post
Thanks!

It seems that my iptables redirect command no longer works.

I recall that some versions ago the iptables rules changed and it no longer accepts the redirect rule:
Code:
# iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
# /sbin/iptables -L -v -n | grep 1935
#
It doesn't complain either to let me know that something is amiss. Any idea what syntax I should use?
Take a look here.
Reply With Quote
  #6  
Old 03-29-2013, 02:18 PM
Mick Mick is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Mick is on a distinguished road
Default

Re: Cannot capture ITV streams


Thank you karlo2105,

The problem is with my firewall. The iptables syntax suggested in the link you provided no longer works on my setup. I'm reading up now to find out how to change the syntax to make it work.

Otherwise, if I were to use the /etc/hosts file to add the rtmpe address, instead of a iptables rule to achieve redirection, where would I be able to retrieve this rtmpe address from?
Reply With Quote
  #7  
Old 03-30-2013, 08:23 AM
Mick Mick is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Mick is on a distinguished road
Default

Re: Cannot capture ITV streams


Quote:
Originally Posted by Mick View Post
The problem is with my firewall.
No it isn't! I looked into it further. The PC firewall redirection rule is created and applied. Doing some testing I can confirm that rtmpsrv works - but only on some servers! It seems that ITV and Channel 4 are recently having a problem with my set up - or should I say that my setup is no longer working with these servers.

I could really do with some help to troubleshoot this please guys.

Here's a summary to date. I can capture with rtmpsrv and download with rtmpdump videos like this:

http://www.channel5.com/shows/extrao...episode-13-150

but cannot either capture all the headers or download videos from ITV or Channel 4, like this: https://www.itv.com/itvplayer/broadc...es-1/episode-1

When I start playing videos (recently) from ITV or Channel 4, rtmpsrv gets stuck at the advert server playpath. The main video headers never show up. All I get is:
Code:
# rtmpsrv
RTMP Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935

rtmpdump -r "rtmpe://cp72511.edgefcs.net:1935/ondemand?auth=eaEddcRbxb9bYdBcQdiada9dDdZdObuaMdmavdHbqdOa.bCcidJdXa3b3d3aLbOajdE-brvUhY-eS-7zp2FBokvuDr&aifp=v002&slist=production/" -a "ondemand?auth=eaEddcRbxb9bYdBcQdiada9dDdZdObuaMdmavdHbqdOa.bCcidJdXa3b3d3aLbOajdE-brvUhY-eS-7zp2FBokvuDr&aifp=v002&slist=production/" -f "LNX 11,2,202,275" -W "https://www.itv.com/mediaplayer/ITVMediaPlayer.swf?v=12.18.4" -p "https://www.itv.com/itvplayer/broadchurch/series-1/episode-1" -y "mp4:production/priority/stings/12334234_Adrobot_rebrand_7secplayersting169_7_495_600.BASELINE.mp4" -o 12334234_Adrobot_rebrand_7secplayersting169_7_495_600.BASELINE.flv

Closing connection... done!

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
INFO: Connected...
Duplicate request, skipping.
Closing connection... done!

ERROR: RTMP_ReadPacket, failed to read RTMP packet header
I even tried the string kindly provided by chap yesterday, but it is rejected by the server:
Code:
$ rtmpdump -r "rtmpe://cp72511.edgefcs.net/ondemand?auth=eaEdEcAbFagb9dubRc9bxckcLa_dlcYazcrb_brdBcMaUdMcOaed.a4dkcObEbtbsdf-brvC8p-eS-4zs2DAtkwuwq&aifp=v002&slist=production/" -W "https://www.itv.com/mediaplayer/ITVMediaPlayer.swf" -y "mp4:production/priority/rtmpecatchup/1200/32/2-1926-0001-003/2-1926-0001-003_broadchurch_tx040313_itv1200_16x9-reg.mp4" -o "4.flv"
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
I even installed rtmpdump from git but it made no difference.

Short of going now to buy a MSWindows OS just to run an application that was written for Linux (thanks chap ) is there something in what I posted that can point to a problem and ideally a solution for the errors I've been getting? After all if it works with older streams from channel 5, but not recent streams from ITV or Channel 4 it has to be something to do with the harndshakes and headers that these servers exchange - yes?

In case this is related: I've also tried rtmpsuck but can't get it to work with any server. It fails to capture the playpath even on old channel 5 videos that rtmpsrv/dump work:
Code:
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
Processing connect
app: a800/o10?videoId=919379405001&lineUpId=&pubId=19582164001&playerId=1707001744001&affiliateId=
flashVer: LNX 11,2,202,275
swfUrl: http://admin.brightcove.com/viewer/us20130328.1037/connection/ExternalConnection_2.swf
tcUrl: rtmpe://bt.fcod.llnwd.net:1935/a800/o10?videoId=919379405001&lineUpId=&pubId=19582164001&playerId=1707001744001&affiliateId=
pageUrl: http://www.channel5.com/shows/extraordinary-dogs/episodes/episode-13-150
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!
Grateful for any pointers.
Reply With Quote
  #8  
Old 03-30-2013, 08:39 AM
karlo2105 karlo2105 is offline
Senior Member
 
Join Date: Sep 2011
Posts: 318
karlo2105 is on a distinguished road
Default

Re: Cannot capture ITV streams


Try with rtmpsuck.
Reply With Quote
  #9  
Old 03-30-2013, 09:07 AM
Mick Mick is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Mick is on a distinguished road
Default

Re: Cannot capture ITV streams


You probably missed it. I can't get rtmpsuck to work at all.
Quote:
Originally Posted by Mick View Post
In case this is related: I've also tried rtmpsuck but can't get it to work with any server. It fails to capture the playpath even on old channel 5 videos that rtmpsrv/dump work:
Code:
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
Processing connect
app: a800/o10?videoId=919379405001&lineUpId=&pubId=19582164001&playerId=1707001744001&affiliateId=
flashVer: LNX 11,2,202,275
swfUrl: http://admin.brightcove.com/viewer/us20130328.1037/connection/ExternalConnection_2.swf
tcUrl: rtmpe://bt.fcod.llnwd.net:1935/a800/o10?videoId=919379405001&lineUpId=&pubId=19582164001&playerId=1707001744001&affiliateId=
pageUrl: http://www.channel5.com/shows/extraordinary-dogs/episodes/episode-13-150
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!
Reply With Quote
  #10  
Old 03-31-2013, 12:50 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Cannot capture ITV streams


try use latest version rtmpdump
Code:
http://ffmpeg.zeranoe.com/builds/source/external_libraries/rtmpdump-20121230-git-df6c518.tar.xz
try
episode-13-150
example
Code:
rtmpdump -r "rtmpe://bt.fcod.llnwd.net:1935/a800/o10" -a "a800/o10" -y "mp4:videos/19582164001/19582164001_919573411001_b17-C5153270013A4-H264-1500-16x9.mp4?e=1364721723&h=dd695d3f03f9de308c2e53ef7dbdb531&__nn__=659726446001" -o "4.flv"

ITV
need to change the link manually(new auth=bla,bla,bla)-otherwise download not work(Whatever you do not use)

Last edited by chap : 03-31-2013 at 03:12 AM.
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:23 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons