Thursday 2 August 2012

Download YouTube videos and other flash videos without using java plugin, other software or other web service

Now with Google Chrome browser downloading flash videos is a cake walk. You don't need any other software to get the video URL from cache. Only thing needed further is your bandwidth to download the video.

Steps:
1. Open the desired streaming video for ex. YouTube and just start streaming the video.

2. Now you may close this window or just open the below link in new tab ---
                         chrome://cache

3. Search in the list for your desired video URL. You may need some practice in finding out multimedia URLs. Find sub strings like "videoplayback?" for YouTube URLs. For other websites you may try to find extensions like ".flv", ".mp4", etc.

Sample URL:


http://o-o---preferred---bom04s03---v20---lscache1.c.youtube.com/videoplayback?algorithm=throttle-factor&burst=40&cp=U0hTSFlOUl9JUUNOM19RSFZHOlRjc1IzSnhMTnFE&expire=1343934647&factor=1.25&fexp=920912%2C914076%2C910100%2C913602%2C915507%2C907217%2C919804%2C920704%2C912806%2C924500%2C924700%2C913547%2C904721%2C920706%2C907344%2C912706%2C900816%2C902518%2C909414&id=63b1beb58473c186&ip=117.217.5.178&ipbits=8&itag=34&keepalive=yes&key=yt1&ms=au&mt=1343911519&mv=m&signature=963E8654499228D382D491E65FE0CA25D042C5BA.55F7D4E540F8E6E9081E72CAAABF433E936754B3&source=youtube&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&sver=3&upn=WZYm_t2__xM&title=desi_boyz


4. After finding YouTube URL, copy the link in notepad and just do two necessary modifications ---
    a.) Remove the sub string "&range=13-xxxxx" from the URL.
    b.) Append the sub string "&title=<your-file-name>" to the end of the URL.

5. Now copy the new URL and open in browser to start video download with desired name                        "<your-file-name>.flv".

6. If you are downloading from other sites like daily motion, Metacafe, Vimeo, video bash, etc. then directly open the cached URL from step 3. Use "save link as" option if necessary.

Wednesday 1 August 2012

Google Chrome net-internals, CDN hack using DNS overriding

Ever wondered how to check the URL through which videos are being streamed via flash objects or the URL through which your file is getting downloaded......Well it's easy with Google Chrome Browser.

Just go to the link chrome://net-internals/#sockets while the video is playing in the background and further click on "Flush socket pools" or "Close idle sockets" to get the exact URL you require.
See screenshot for YouTube server.


Now you may use this technique to edit your CDN server for better download speeds. A CDN is a content delivery server which delivers videos from sites like http://metacafe.com via a delivery partner like Akamai. The only interesting part is that the actual server is mostly located somewhere nearest to the user, possibly on his own network. Thus, he may get very high speeds without much contention.

But in some cases the DNS servers are not very effective in resolving the CDN host name to the best possible IP. Consider the case of metacafe on BSNL net connection. The site has a streaming URL of http://v.mccont.com which is actually supported by Akamai CDN.

But due to poor DNS management by BSNL the host name v.mccont.com resolves to an ip address of VSNL network instead of BSNL's own network. So sometimes I don't get the desired speeds due to contention.

Thus, we can bypass this drawback by using static DNS mappings for  hostnames like v.mccont.com.
Follow below steps to implement static DNS mapping in Windows.
1. Go to C:\Windows\System32\drivers\etc\ and locate the hosts file. Cut and Copy it to desktop and open it with notepad.
2. Add the following entries to the hosts file. General format is <ip> <domain>
----------------------------------------------------------------------------------------------------------

218.248.44.170 v.mccont.com
218.248.44.170 cdn.blinkx.com
218.248.44.170 av.vimeo.com
#210.212.11.18 cdn.blinkx.com
-----------------------------------------------------------------------------------------------------------

3. Now save it and again cut and copy it back to its original location.

The mapped ip addresses belong to BSNL's own network so negligible contention is expected.
# means that the line is commented or inactive.

cdn.blinkx.com belongs to http://blinkx.com and av.vimeo.com belongs to http://vimeo.com.
All are supported by Akamai CDN network.


clicksor