VideoCache
Videocache is no longer in development.

youtube caching problem

by hamsterbacke on 24 Dec 2009

Squid Cache: Version 2.6.STABLE18
on ubuntu 8.10 using latest videocache script.

http://img191.imageshack.us/img191/6134/videocache.png

you can see on the screenshot that the request answer gives the right url. if you copy the http://192.168.0.1/videocache/youtube..... link and past in the the browser and hit enter the video wants to be downloaded.

but the youtube player displays "an error occurred, please try again later".

btw: it works with xtube.....
in the videocache.log it says as it should be:

2009-12-24 20:53:33,271 19308 192.168.0.82 8cd3415ddd023dd9 CACHE_HIT YOUTUBE Video was served from cache.
2009-12-24 20:53:33,271 19308 192.168.0.82 8cd3415ddd023dd9 NEW_URL YOUTUBE 303:http://192.168.0.1/videocache/youtube/8cd3415ddd023dd9?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1261706400&key=yt1&signature=0DB245CD67B309195CB7C4F9B7A5966766E250D3.BDBE419FB0639316828D68FB3805557B776C5940&factor=1.25&id=8cd3415ddd023dd9

so whats going wrong? would be really great if youtube would also work... would save a lot of time and bandwitdh.

3 Answers

by hamsterbacke on 24 Dec 2009

btw: why does it show "content-length 0" in the answer header????

by hamsterbacke on 27 Dec 2009

got the solution! the addon noscript blocks it when "abe (application boundaries enforcer" is enabled.
in the rules section it's commented like this:
"# Prevent Internet sites from requesting LAN resources."

deactivate it and it works :)

by Anonymous on 11 Jan 2010

can't create new account so I'll just post my problem here

all works well on my setup.... almost
my is problem is that youtube video loads very very slow
that site opens fast but not videos

any suggestion/s on configuration?

here's my setup btw:
ubuntu runs as guest OS on windows 7

host OS:

win7 32bit
e5200 @ 3.2ghz
4gb ram(3.25 detected)
500gb hd

guest OS:

ubuntu 9.04
videocache 1.9.2
iniparse 0.3.1
apache
768mb mem
25gb hd
2 cores running