You are hereForums / Bugs / Video cache doesn't care about video quality

Videocache 1.9.5 is available now. This version improves support for logging and fixes video caching problems for various sites like Vimeo, Break, Tube8 etc due to change in URL patterns. Also, from this version onwards, UrlGrabber has been removed from dependencies. Check Changelog for details. If you have purchased version 1.9.x previously, you can claim free upgrade by contacting using Contact Link. Please mention the email address using which you purchased Videocache. New users proceed to download page right now, secure your copy and enjoy caching :-)

Video cache doesn't care about video quality


7 replies [Last post]
Offline
Joined: Dec 14 2008
Video cache doesn't care about video quality
Printer-friendly versionSend to friend

Hi,

Some videos in youtube has two versions - low quality and high quality. videocache will cache the first version requested.

I suggest breaking the youtube cache dir into more subdirs per quality.

Offline
Joined: Dec 14 2008

Oh, and another question - As far as I understand the code, it doesn't remove a 'begin' argument from the URL, if one is present. This could lead to the caching of incomplete files.
Am I right?

Offline
Joined: Feb 15 2009

I've noticed this too with RedTube videos. A request will come in like,

http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000015/J1DDZG...

Videocache will download from that URL and the cached video was missing the first 2 minutes of the video. If you removed the start= or use start=0 you can download the complete video.

admin's picture
Offline
Joined: Nov 2 2008

Imriz, Pyromania,

Youtube videos are not yet supported in all the formats. I hope they'll be supported very soon.

On the other hand, the start or begin tags are hard to detect for me as I don't have huge access logs for those websites. I test it as a sole user and you know I can't generate much traffic as a sole user itself. If you guyz can provide me with access logs for these websites, it'd be wonderful.

Thank You!

Offline
Joined: Dec 14 2008

http://www.youtube.com/get_video?video_id=-krxqcfwqhU&begin=524346&t=vjV...

http://www.youtube.com/get_video?video_id=-krxqcfwqhU&t=vjVQa1PpcFN0IoeC...

try both URLS with wget or some other URL fetcher, and see the difference in sizes

Offline
Joined: Feb 15 2009

RedTube and Tube8 seem to both use a start= URL parameter. Here are some logs for a singe video request for redtube and tube8

2009-02-22 15:32:24,094 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:32:24,101 10356 XXX.XXX.XXX.XXX I1DDLG10M.flv URL_HIT REDTUBE http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:32:24,892 10356 XXX.XXX.XXX.XXX I1DDLG10M.flv NEW_URL REDTUBE http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:34:20,068 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:37:18,480 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:39:10,650 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:39:18,119 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:39:38,293 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...
2009-02-22 15:39:40,108 10356 XXX.XXX.XXX.XXX - REQUEST - http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000014/I1DDLG...

2009-02-23 23:03:41,399 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:03:41,416 10356 XXX.XXX.XXX.XXX 49a3127126b1e.flv URL_HIT TUBE8 http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:03:42,243 10356 XXX.XXX.XXX.XXX 49a3127126b1e.flv NEW_URL TUBE8 http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:19,476 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:26,749 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:33,074 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:34,799 10357 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:40,702 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:48,861 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:50,926 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:04:53,123 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:05:07,754 10357 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...
2009-02-23 23:05:10,667 10356 XXX.XXX.XXX.XXX - REQUEST - http://media01.tube8.com/flv/cd12f7e35664ae56455e4df9a8b357ad/49a37f8b/0...

admin's picture
Offline
Joined: Nov 2 2008

Imriz,

Got it. We need to drop the begin argument from the query. I'll see to it.

Thank You!

Offline
Joined: Dec 14 2008

Don't forget the quality issue (the fmt argument in the query).

I would suggest either appending it to the file name (.), or breaking the cache directory into more sub dirs (/youtube//)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Buy Now

Videocache Bundle (RPM and tar archive) is available. Secure your copy now by clicking the button below.
No. of Servers?
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 0 users and 90 guests online.