Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
return FLV instead of MP4 #1568
Comments
|
Can you post the entire output of youtube-dl when called with the |
|
C:>youtube-dl -v -g -f 18 http://www.youtube.com/watch?v=8rOMX-2wDEc ok copy link in download manager and sniff requests GET /videoplayback?ipbits=8&cp=U0hXRlFNU19HU0NON19JR1dBOkktMjZyUWxaazJG&ms=au&id=f2b38c5fedb00c47&source=youtube&ratebypass=yes&expire=1381125029&key=yt1&ip=176.59.181.112&mt=1381103317&sver=3&upn=rfr-H86Tm-A&fexp=919122%2C914024%2C916613%2C924606%2C924616%2C916914%2C929117%2C929121%2C929906%2C929907%2C929922%2C929923%2C929127%2C929129%2C929131%2C929930%2C936403%2C925724%2C925726%2C936310%2C925720%2C925722%2C925718%2C936401%2C925714%2C929917%2C906945%2C929933%2C929935%2C929937%2C929939%2C939602%2C939604%2C937102%2C906842%2C913428%2C912715%2C919811%2C939908%2C935704%2C932309%2C913563%2C919373%2C930803%2C908538%2C934003%2C934004%2C931924%2C938608%2C940501%2C936308%2C935006%2C939201%2C900816%2C912711%2C916304%2C934903%2C900391%2C934507%2C907231%2C936312%2C906001&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&mv=m&itag=18&signature=7A8158663C2AABDAED6B731FB79C337DFABB1E77.A59494841ABFD9FCF41CD82A61EA91F511DA0517 HTTP/1.1 HTTP/1.1 200 OK FLV�� � �5 � as see FLV returned instead MP4.... inetnum: 176.59.128.0 - 176.59.255.255 |
|
C:>youtube-dl -v -f 18 http://www.youtube.com/watch?v=8rOMX-2wDEc open МИХАИЛ КРУГ - КОЛЬЩИК-8rOMX-2wDEc.mp4.part in hex editor Offset 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 00000000 46 4C 56 01 05 00 00 00 09 00 00 00 00 12 00 01 FLV............. i amazing.... |
|
As I suspected, your ISP is meddling with YouTube videos (probably recoding them to a lower quality to save bandwidth). What happens if you replace |
|
403 Forbidden moreover sometimes returned mp4 file but sometimes flv... seems this randomly occurs |
|
We now use https by default, so your ISP cannot meddle with the downloaded files. |
Hi all!
i try download video itag=18 - MP4 640 x 360 e.g.
http://r7---sn-gvnuxaxjvh-v8ce.c.youtube.com/videoplayback?fallback_host=tc.v16.cache1.c.youtube.com&type=video/mp4; codecs="avc1.42001E, mp4a.40.2"&quality=medium&itag=18&cp=U0hXRlFNT19MTUNON19JR1NKOkFpUGMxeUozM0tm&upn=fTTJUjjf0gg&ip=176.59.181.112&key=yt5&sparams=cp,id,ip,ipbits,itag,ratebypass,source,upn,expire&ipbits=8&expire=1381121973&sver=3&source=youtube&fexp=904448,903903,922222,932200,916807,932912,916611,924606,924616,916914,929141,929117,929121,929906,929907,929922,929923,929127,929129,929131,929930,936403,925724,925726,936310,925720,925722,925718,936401,925714,929917,906945,929933,929935,929937,929939,939602,939604,937102,906842,913428,920605,912715,919811,939908,935704,932309,913563,901812,919373,930803,908538,904839,932211,934003,934004,931924,938608,940501,936308,939201,900816,912711,916304,900391,934507,907231,936312,906001&id=3c36fa16f7d0a0b3&ratebypass=yes&ms=au&mt=1381099711&mv=m&signature=548793096FC85EDE010E028FF2007F0FFB9AEF95.8D22D451F69EFC1F195A1B3346C34C62E88B49CC
But i receive FLV file...
HTTP/1.1 200 OK
Date: Sun, 06 Oct 2013 22:52:40 GMT
Server: gvs 1.0
Last-Modified: Mon, 16 Sep 2013 23:33:39 GMT
Content-Type: video/mp4
Expires: Sun, 06 Oct 2013 22:52:40 GMT
Cache-Control: private, max-age=21713
Accept-Ranges: none
Content-Length: 45126226
Alternate-Protocol: 80:quic
X-Content-Type-Options: nosniff
X-Vent-VVO: TRANSCODED
X-VVO-XCODE: I_482_H264_386_AAC_96_O_libx264_160_copy_96_DEFAULT
X-VVO-OBR: 256000
Connection: close
FLV�� � �5 �
onMetaData� �
canseeko
i amazing... Content-Type: video/mp4 but return FLV file...
this strange headers appended when FLV file receive instead of MP4
X-Vent-VVO: TRANSCODED
X-VVO-XCODE: I_482_H264_386_AAC_96_O_libx264_160_copy_96_DEFAULT
X-VVO-OBR: 256000
why this occurs ?
thanks