Array ( [0] => [1] => https://redirector.googlevideo.com/videoplayback?id=8b5563ea922223a6&itag=18&source=webdrive&requiressl=yes&ttl=transient&mm=30&mn=sn-a5mlrnez&ms=nxu&mv=u&pl=48&ei=xXMLWfiPOsK6-QOG1Z_YDw&mime=video/mp4&lmt=1493883397260881&mt=1493922551&ip=2001:19f0:7001:d45:5400:ff:fe45:9a4a&ipbits=128&expire=1493937157&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cttl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cmime%2Clmt&signature=07E51451348B76B0B62D7A56814E872EA2390379.2354F69880F9E0B34E95236586D3F47CC3F9C842&key=ck2&app=explorer",label: "360p", type: "video/mp4"}, [2] => https://redirector.googlevideo.com/videoplayback?id=8b5563ea922223a6&itag=22&source=webdrive&requiressl=yes&ttl=transient&mm=30&mn=sn-a5mlrnez&ms=nxu&mv=u&pl=48&ei=xXMLWfiPOsK6-QOG1Z_YDw&mime=video/mp4&lmt=1493883871345660&mt=1493922551&ip=2001:19f0:7001:d45:5400:ff:fe45:9a4a&ipbits=128&expire=1493937157&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cttl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cmime%2Clmt&signature=38C410C745279C71BB4364EBCD55C34863E5FC61.3316E670D3D83466462DA3005707596811D70694&key=ck2&app=explorer",label: "720p", type: "video/mp4"}, [3] => https://redirector.googlevideo.com/videoplayback?id=8b5563ea922223a6&itag=59&source=webdrive&requiressl=yes&ttl=transient&mm=30&mn=sn-a5mlrnez&ms=nxu&mv=u&pl=48&ei=xXMLWfiPOsK6-QOG1Z_YDw&mime=video/mp4&lmt=1493883931522443&mt=1493922551&ip=2001:19f0:7001:d45:5400:ff:fe45:9a4a&ipbits=128&expire=1493937157&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cttl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cmime%2Clmt&signature=873A7CC7D0C5DA4B40302BFB2E2C966422F22BD8.452C21496095C76E4AC9F6113E38FFFE26940936&key=ck2&app=explorer",label: "480p", type: "video/mp4"}, )
print_r로 이렇게 뽑아내는데요
구글에서 자동 인코딩되는 화질이 파일의 해상도에 따라 달라져서요
label : 360p, 720p, 480p기준으로 123순서나 321순으로 바꾸거나
각각 라벨마다 구글이 내보내는 주소에서 itag=59 에 따라 라벨을 유추할수있습니다.
즉 480p의 itag=59이고
720p의 itag=22입니다. (이것도 고정주소입니다.)
팁좀 부탁드립니다..
방법이 잘 생각나지 않아서요...