I am trying to download a channel 4 program from youtube (
http://www.youtube.com/watch?v=2hWsfEPdT4g), but it fails with:
Code:
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 10
WARNING: HandShake: Server not genuine Adobe!
ERROR: RTMP_Connect1, handshake failed.
Any idea why this is and how I could fix it?
This is what rtmpdump captures - before it segfaults:
Code:
rtmpdump -r "rtmpe://r6---sn-aigezn7k.c.youtube.com/videoplayback" -a "videoplayback" -f "LNX 11,2,202,273" -W "http://s.ytimg.com/yts/swfbin/watch_as3-vflCqc2WH.swf" -p "http://www.youtube.com/watch?v=2hWsfEPdT4g" -y "sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&gcr=gb&fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451&signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318&rtmpe=yes&itag=34&source=youtube&sver=3&key=yt1&id=da15ac7c43dd4f88&expire=1362519023?ptk=channel4&ptchn=4oDFood&cpn=BYYl3nVhBZOB5ld1" -o sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&gcr=gb&fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451&signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318&rtmpe=yes&itag=34&source=youtube&sver=3&key=yt1&id=da15ac7c43dd4f88&expire=1362519023.flv
Segmentation fault
# RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Failed to open file! sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&gcr=gb&fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451&signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318&rtmpe=yes&itag=34&source=youtube&sver=3&key=yt1&id=da15ac7c43dd4f88&expire=1362519023.flv
If I try to run the captured string, this is what I get:
Code:
[21:26:10] $ rtmpdump -r "rtmpe://r6---sn-aigezn7k.c.youtube.com/videoplayback" -a "videoplayback" -f "LNX 11,2,202,273" -W "http://s.ytimg.com/yts/swfbin/watch_as3-vflCqc2WH.swf" -p "http://www.youtube.com/watch?v=2hWsfEPdT4g" -y "sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&gcr=gb&fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451&signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318&rtmpe=yes&itag=34&source=youtube&sver=3&key=yt1&id=da15ac7c43dd4f88&expire=1362519023?ptk=channel4&ptchn=4oDFood&cpn=BYYl3nVhBZOB5ld1" -o sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&gcr=gb&fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451&signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318&rtmpe=yes&itag=34&source=youtube&sver=3&key=yt1&id=da15ac7c43dd4f88&expire=1362519023.flv
[1] 15149
[2] 15150
[3] 15151
[4] 15152
[5] 15153
[6] 15154
[7] 15155
[8] 15156
[9] 15157
[10] 15158
[2] Done gcr=gb
[3] Done fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451
[4] Done signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318
[5] Done rtmpe=yes
[6] Done itag=34
[7] Done source=youtube
[8] Done sver=3
[9]- Done key=yt1
[21:26:11] $ RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 10
WARNING: HandShake: Server not genuine Adobe!
ERROR: RTMP_Connect1, handshake failed.
Then it just hangs there until I enter Ctrl+c and it exits as follows:
Code:
[1]- Exit 1 rtmpdump -r "rtmpe://r6---sn-aigezn7k.c.youtube.com/videoplayback" -a "videoplayback" -f "LNX 11,2,202,273" -W "http://s.ytimg.com/yts/swfbin/watch_as3-vflCqc2WH.swf" -p "http://www.youtube.com/watch?v=2hWsfEPdT4g" -y "sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&gcr=gb&fexp=920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925006%2C906938%2C931202%2C908529%2C920201%2C930101%2C930603%2C906834%2C913570%2C901451&signature=673C8BE9BC30DD798CF23A2004DCA9368E87B31B.8B7FE1BC427AA3E87389A4952AD1D984B5FEB318&rtmpe=yes&itag=34&source=youtube&sver=3&key=yt1&id=da15ac7c43dd4f88&expire=1362519023?ptk=channel4&ptchn=4oDFood&cpn=BYYl3nVhBZOB5ld1" -o sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire
[10]+ Done id=da15ac7c43dd4f88
Any ideas?