VideoCache

no cache videos

by mscandian on 25 Aug 2009

Hi guys,

I have installed the videocache in my FreeBSD server with this configuration:

FreeBSD 7.2-RELEASE
squid-2.7.6_1
python25-2.5.4_2
py25-iniparse-0.3.1
py25-urlgrabber-3.1.0_1

When I try to see some video in youtube page, I see just it:

2009-08-25 13:23:49,544 4011 - - RELOAD - videocache plugin was reloaded.

My "ps ax" show this:

  859  ??  Is     0:00.00 /usr/local/sbin/squid -D
  861  ??  S      1:38.00 (squid) -D (squid)
  862  ??  Is     0:00.17 (python) /usr/share/videocache/videocache.py (python)
  863  ??  Is     0:00.17 (python) /usr/share/videocache/videocache.py (python)
  864  ??  Is     0:00.17 (python) /usr/share/videocache/videocache.py (python)
  865  ??  Is     0:00.17 (python) /usr/share/videocache/videocache.py (python)
  866  ??  Is     0:00.17 (python) /usr/share/videocache/videocache.py (python)
  867  ??  Is     3:16.36 (python) /usr/share/videocache/videocache.py (python)
  868  ??  Is     0:00.17 (python) /usr/share/videocache/videocache.py (python)
  869  ??  Is     0:00.00 (unlinkd) (unlinkd)
  870  ??  Ss     0:01.30 diskd 881664 881665 881666 (diskd-daemon)

And I have two interfaces with this:

bge0 = 201.45.X.Y
bge1 = 192.168.16.1

My /etc/videocache.conf:

cache_host = 192.168.16.1
proxy = http://127.0.0.1:3128/
rpc_host = 127.0.0.1

Is this correct?

I set the permissions squid:squid in the /var/spool/videocache:

pf2# chown -R squid:squid /var/spool/videocache/

pf2# sockstat -4l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     natd       3225  4  div4   *:8668                *:*
squid    python     867   4  tcp4   127.0.0.1:9100        *:*
squid    squid      861   6  udp4   *:59432               *:*
squid    squid      861   21 tcp4   *:3128                *:*
squid    squid      861   22 udp4   *:3130                *:*

I dont know what's wrong in my configuration. I tried change the cache_host and rpc_host to other values, using my 201.45.X.Y IP and doesnt work.

Someone can help me?

PS: Sorry about my poor english.

Regards,
MS

1 Answers

by mscandian on 25 Aug 2009

Hi guys,

I made some modification in my squid.conf and videocache.py because the youtube change the url videos.

Well, now, I'm getting only REQUEST but not download.

2009-08-25 15:15:22,753 4548 192.168.16.2 - REQUEST - http://v14.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=6695ED2BDCDBE5C7E315E60930B29569F0496197.0BFD84FBE1857BD48469AF9A7C0BBFB31983981E&sver=3&expire=1251248400&key=yt1&factor=1.25&burst=40&id=aa587b27ce56f142
2009-08-25 15:15:24,086 4548 192.168.16.2 - REQUEST - http://v6.cache5.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cburst%2Cfactor&itag=34&ipbits=0&signature=6695ED2BDCDBE5C7E315E60930B29569F0496197.0BFD84FBE1857BD48469AF9A7C0BBFB31983981E&sver=3&expire=1251248400&key=yt1&factor=1.25&burst=40&id=aa587b27ce56f142&redirect_counter=1

Is something wrong in videocache.conf?

Thanks.

You need to sign in. Please sign in to add answer to this question.