VideoCache
Videocache is no longer in development.

New Youtube URL isn't cacheable

by Anonymous on 25 Aug 2009

Dear Kulbir,

Seems youtube had new url and video_id mechanism,
and it's break videocache ability to cache it.

Could you solve it ?

Tx
//budi

http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v7.lscache8.c.youtube.com/videoplayback?
http://v20.lscache7.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v17.lscache8.c.youtube.com/videoplayback?
http://v11.lscache4.c.youtube.com/videoplayback?
http://v7.lscache5.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v2.lscache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v11.lscache7.c.youtube.com/videoplayback?
http://v2.lscache1.c.youtube.com/videoplayback?
http://v18.lscache1.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v5.lscache5.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v4.lscache8.c.youtube.com/videoplayback?
http://v11.lscache6.c.youtube.com/videoplayback?
http://tc.v20.cache1.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v7.lscache5.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v21.lscache5.c.youtube.com/videoplayback?
http://v18.lscache4.c.youtube.com/videoplayback?
http://v20.lscache3.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v12.lscache5.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://tc.v15.cache4.c.youtube.com/videoplayback?
http://v5.lscache8.c.youtube.com/videoplayback?
http://v15.lscache1.c.youtube.com/videoplayback?
http://v4.lscache5.c.youtube.com/videoplayback?
http://v18.lscache5.c.youtube.com/videoplayback?
http://tc.v7.cache6.c.youtube.com/videoplayback?
http://v18.lscache4.c.youtube.com/videoplayback?
http://v18.lscache4.c.youtube.com/videoplayback?
http://v18.lscache4.c.youtube.com/videoplayback?
http://v10.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://tc.v3.cache8.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v4.lscache7.c.youtube.com/videoplayback?
http://v3.lscache6.c.youtube.com/videoplayback?
http://v2.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v4.lscache6.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v11.lscache4.c.youtube.com/videoplayback?
http://v18.lscache2.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache1.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v11.lscache6.c.youtube.com/videoplayback?
http://v8.lscache1.c.youtube.com/videoplayback?
http://v19.lscache8.c.youtube.com/videoplayback?
http://v17.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v5.lscache3.c.youtube.com/videoplayback?
http://v14.lscache3.c.youtube.com/videoplayback?
http://v22.lscache7.c.youtube.com/videoplayback?
http://v4.lscache6.c.youtube.com/videoplayback?
http://v17.lscache3.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v14.lscache2.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v12.lscache2.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v15.lscache1.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v1.lscache6.c.youtube.com/videoplayback?
http://v12.lscache8.c.youtube.com/videoplayback?
http://v4.lscache8.c.youtube.com/videoplayback?
http://v11.lscache4.c.youtube.com/videoplayback?
http://v7.lscache5.c.youtube.com/videoplayback?
http://v1.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v12.lscache6.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v14.lscache8.c.youtube.com/videoplayback?
http://v7.lscache7.c.youtube.com/videoplayback?
http://v22.lscache3.c.youtube.com/videoplayback?
http://v4.lscache3.c.youtube.com/videoplayback?
http://v15.lscache1.c.youtube.com/videoplayback?
http://v4.lscache3.c.youtube.com/videoplayback?
http://v2.lscache2.c.youtube.com/videoplayback?
http://v17.lscache3.c.youtube.com/videoplayback?
http://v4.lscache3.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v2.lscache3.c.youtube.com/videoplayback?
http://v15.lscache1.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v1.lscache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v22.lscache3.c.youtube.com/videoplayback?
http://v4.lscache2.c.youtube.com/videoplayback?
http://v3.lscache5.c.youtube.com/videoplayback?
http://v12.lscache4.c.youtube.com/videoplayback?
http://v14.lscache3.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v20.lscache8.c.youtube.com/videoplayback?
http://v11.lscache6.c.youtube.com/videoplayback?
http://v23.lscache8.c.youtube.com/videoplayback?
http://v11.lscache6.c.youtube.com/videoplayback?
http://v11.lscache6.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v9.lscache8.c.youtube.com/videoplayback?
http://v11.lscache6.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v5.lscache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v15.lscache1.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v1.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache8.c.youtube.com/videoplayback?
http://v10.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://tc.v20.cache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v3.lscache6.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v3.lscache6.c.youtube.com/videoplayback?
http://v6.lscache7.c.youtube.com/videoplayback?
http://v17.lscache6.c.youtube.com/videoplayback?
http://v2.lscache4.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v2.lscache4.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v15.lscache5.c.youtube.com/videoplayback?
http://v2.lscache4.c.youtube.com/videoplayback?

19 Answers

by clovanzo on 26 Aug 2009

I have same prob here and add some patch manualy like this:

on squid conf:
http://pastebin.com/fbbb6cc0

and on videocache.py :
http://pastebin.com/f35ea8d3

works good so far

by Lst on 26 Aug 2009

Yes, it works...
Salute for you my friends!

Rgds,
Lst

by Anonymous on 7 Sep 2009

but i'm not working eith 1.9.2 and your patch, here's the log :

2009-09-07 12:37:45,481 3178 - - SCHEDULEDER - Download Scheduler starting.
2009-09-07 12:38:10,221 3173 172.16.13.105 - REQUEST - http://v19.lscache3.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=A407ED3EDDCDA668D8A7D78466E486FFDF94E80C.4FA78D909CA79A43AB6CAA72004656DAD9797847&sver=3&expire=1252324800&key=yt1&factor=1.25&burst=40&id=466e61a8a491e682
2009-09-07 12:38:10,222 3173 172.16.13.105 466e61a8a491e682 URL_HIT YOUTUBE http://v19.lscache3.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=A407ED3EDDCDA668D8A7D78466E486FFDF94E80C.4FA78D909CA79A43AB6CAA72004656DAD9797847&sver=3&expire=1252324800&key=yt1&factor=1.25&burst=40&id=466e61a8a491e682
2009-09-07 12:38:10,222 3173 172.16.13.105 466e61a8a491e682 CACHE_MISS YOUTUBE Requested video was not found in cache.
2009-09-07 12:38:10,224 3173 172.16.13.105 466e61a8a491e682 NEW_URL YOUTUBE http://v19.lscache3.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=A407ED3EDDCDA668D8A7D78466E486FFDF94E80C.4FA78D909CA79A43AB6CAA72004656DAD9797847&sver=3&expire=1252324800&key=yt1&factor=1.25&burst=40&id=466e61a8a491e682
2009-09-07 12:38:11,184 3178 172.16.13.105 466e61a8a491e682 SCHEDULED YOUTUBE Video scheduled for download.
2009-09-07 12:38:11,184 3226 172.16.13.105 466e61a8a491e682 DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.
by Kulbir Saini on 7 Sep 2009

Hi!

Did you try it with version 1.9.2?

Thank You!

by Anonymous on 8 Sep 2009

yes it's 1.9.2

by Kulbir Saini on 12 Sep 2009

Andisaputro,

Here is a small checklist,

  1. Please check your proxy variable in videocache.conf .
  2. Is you proxy server able to access internet via itself?
  3. Permissions on directory /var/spool/videocache/ and /var/log/videocache/ ?

Thank You!

by Anonymous on 14 Sep 2009

halo admin thank you for your time ...

here is the list :
1- proxy variable in videocache.conf

cache_host = 10.10.10.4
proxy = http://10.10.10.4:3128/
base_dir = /video/

2- yes the proxy server capable to connect to the internet.
3- the permission on videocache directory [i changed it to /video] :

root@proxy:/# ls -lh | grep video
drwxr-xr-x 19 nobody nogroup  448 2009-09-04 14:11 video

root@proxy:/var/log# ls -lh  |grep video
drwxr-xr-x 2 nobody nogroup  272 2009-09-01 22:24 videocache

the log maybe concern like this :

2009-09-14 17:54:08,423 18820 172.16.13.105 37d91d1d7ac9605f SCHEDULED YOUTUBE Video scheduled for download.
2009-09-14 17:54:08,424 19578 172.16.13.105 37d91d1d7ac9605f DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

by means i thought it perl capable to TAG the file, but when download it error occured.

hopefully any clue i get from you, thank you.

by Kulbir Saini on 14 Sep 2009

andisaputro,

We have a problem in third point. The permissions are not correct.

If you are on a Red Hat or dervitive linux, the permissions should be squid:squid and if you are on a Debian derivative linux, ther permissions should be proxy:proxy.

Please try change permissions to that.

Thank You!

by Anonymous on 15 Sep 2009

dear admin,

by means on your videocache script
you put it user name fixed squid:squid or proxy:proxy ?

by Anonymous on 15 Sep 2009

but still after i changed it's permission to proxy:proxy

root@proxy:/# ls -lh | grep video
drwxr-xr-x 19 proxy proxy  448 2009-09-04 14:11 video

root@proxy:/# ps axu | grep squid
root     22890  0.0  0.0   4360   780 ?        Ss   17:58   0:00 /usr/local/squid/sbin/squid
proxy    22892  0.2  0.8  27860 17980 ?        Sl   17:58   0:01 (squid)
root     22977  0.0  0.0   3008   776 pts/1    S+   18:06   0:00 grep squid

the videocache still error to download, here is the log :

2009-09-15 17:59:43,446 22893 172.16.13.105 8370bb0c4088d235 NEW_URL YOUTUBE http://74.125.15.82/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=3CB4F66FB5C1CB983BF055A47AC0CAFF131CA4C0.D570DF9D64F4A2E3D1409362E2313912183B4E5D&sver=3&expire=1253034000&key=yt1&factor=1.25&burst=40&id=8370bb0c4088d235&st=lc
2009-09-15 17:59:47,084 22894 172.16.13.105 8370bb0c4088d235 SCHEDULED YOUTUBE Video scheduled for download.
2009-09-15 17:59:47,084 22944 172.16.13.105 8370bb0c4088d235 DOWNLOAD_ERR YOUTUBE An error occured while retrieving the video.

by any words it's videocache still give me this report :
"An error occured while retrieving the video"

what would that be ?

by Anonymous on 29 Sep 2009

frnd i hav prob that when i down load long vedios from you tube via dap it requires user name password on tc.v17.cache6.c.youtube.com plz help and explain in brief i am new to computer.........

by Kulbir Saini on 29 Sep 2009

Anon,

Are you using videocache on your own machine or it is being used on your organization's proxy server?

Thank You!

by akustik on 6 Oct 2009

hello,
pastebin.com is seem down, can you help me another link to patch squid.conf and videocache.py

thx

by Kulbir Saini on 7 Oct 2009

Akustik,

There are a lot of online services like http://pastie.org/ and http://pastie.org/ .

Thank You!

by Ez on 20 Nov 2009

hi admin i have problem in videocache i configured it well and its not showing any error in its log but no request found in videocace log

by Kulbir Saini on 24 Nov 2009

Hi Ez,

Can you please share your /etc/videocache.conf and videocache.log file so that we can have an overview of the problem?

Thank You!

by Ez on 24 Nov 2009

Thankx for ur reply now my cache working fine but here i found some problem after 24hours videocache log not running even i kill the pythong service.?

Other wise its very cool for us Thanks for share ur creation.

by Kulbir Saini on 25 Nov 2009

Hi Ez,

What does your logfile (videocache.log) says? Before and after killing python processes.

Thank You!

by jaibhakuni on 4 Oct 2010

hello..adm..just tell me why you tube video is not downloaded..their is an error when i download with download manger..