<div dir="ltr">Thank you for saving me time and effort.<div><br></div><div>I ended up following advice of downloading youtube movies to home computer and serving from it.</div><div><br></div><div>My choice was EMBY server for windows <a href="https://emby.media/windows-server.html">https://emby.media/windows-server.html</a> although a couple others were good options as well.</div><div><br></div><div>I bought Emby app for iPad and I use a download extension for Chrome to get 720p resolution videos.  The content is static, but my drive is big and I feel that this way I can approve some of the content.  It certainly costs my time go get content to Emby server.</div><div><br></div><div>I could try installing Emby on Raspberry PI 3, but I decided against it.  It was more work, the download workflow had a more complicated step of moving video from PC to RPI.  I was not sure if RPI could be responsive with its decoding.</div><div><br></div><div>The setup works.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 7, 2017 at 7:15 AM, Eliezer Croitoru <span dir="ltr"><<a href="mailto:eliezer@ngtech.co.il" target="_blank">eliezer@ngtech.co.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Amos, Sergei,<br>
<br>
I managed to write an ICAP service which works with a ruby\golang StorID helper and a redis DB that can help with the caching of YouTube videos.<br>
However despite to the fact that I am able to tag urls with StoreID  squid is still not responding with a cache HIT but fetching from the original sources.<br>
<br>
There are couple obstacles in this field and this specific solution I wrote is designed for PC and not IPAD or Andorid Based devices.<br>
There is an issue with Android 6+(7..) and IOS 10 based devices which for some reason do not cope with SSL traffic interception.<br>
If you do have a tiny server and you can run a tiny http service with nginx\apache I would recommend you to download the videos and serve them locally using chrome or another browser which works.<br>
I found it more useful then intercepting and caching also, kids are usually enjoying from a more "stable" stash of movies\videos then others.<br>
They can watch the same video over and over and it would be fun for them.<br>
The teenagers are having issue's watching the same video over and over so..<br>
I can recommend on a nice wordpress theme which can fit a "VOD" site and a video downloader which you can use to download specific videos or playlists.<br>
<br>
This solution would be something like "netflix on a stick" and is very effective with a raspberry pi 3 with some external USB HDD.<br>
<br>
I would be happy to get any response to any of the ideas.<br>
<br>
Thanks In Advance,<br>
Eliezer<br>
<br>
 * If you are willing to devote some time to debug the issue with the current helpers let me know and bump me if you think I missed an email and didn't responded(it happens when you have kids...)<br>
----<br>
Eliezer Croitoru<br>
Linux System Administrator<br>
Mobile: <a href="tel:%2B972-5-28704261" value="+972528704261">+972-5-28704261</a><br>
Email: <a href="mailto:eliezer@ngtech.co.il">eliezer@ngtech.co.il</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: squid-users [mailto:<a href="mailto:squid-users-bounces@lists.squid-cache.org">squid-users-bounces@<wbr>lists.squid-cache.org</a>] On Behalf Of Amos Jeffries<br>
Sent: Friday, July 7, 2017 11:32<br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: Re: [squid-users] youtube videos and squid<br>
<br>
On 07/07/17 15:40, Sergei G wrote:<br>
> Hi guys,<br>
><br>
> I have a very specific scenario in mind to use squid for.<br>
><br>
> I have 2 kids (2.5 and 4 years old) that are watching iPads and really<br>
> using available Comcast bandwidth.  It does not help that they sometimes<br>
> just leave those iPads running.<br>
><br>
> They tend to re-watch youtube videos (click on the same icon that they<br>
> liked before).  And that makes me think that squid could help me with<br>
> caching off youtube content.  Am I correct?<br>
<br>
Possibly. Google have actively been making it more difficult every year<br>
for quite a while.<br>
<br>
These days it requires intercepting the YouTube HTTPS connections. That<br>
is only possible if the clients are not using Chrome or other Google<br>
apps to fetch the videos - otherwise you run up against the cert pinning<br>
wall.<br>
<br>
After that you need some extra helper software to track the YT video<br>
fetching process and decipher what the actual video URL is from the mess<br>
of session traffic. That is being kept a bit of a secret these days,<br>
since every time G find out how it is being done they change the process<br>
to make it more obtuse and harder to do :-(<br>
<br>
Eliezer has been trying to get a helper for that going most recently.<br>
There are also some other products I forget the name of right now<br>
(videobooster maybe), but should be easy to find that cache YouTube content.<br>
<br>
<br>
><br>
> If not then I have no reason to bother you anymore :)<br>
><br>
> If squid could help me, then could you point me to a an example<br>
> configuration that would work?<br>
><br>
> As far as hardware I have 2 options:<br>
><br>
> 1. I can install squid on a Raspberry PI 3, if package is readily<br>
> available.  that's my preferred solution.<br>
> 2. I have an old server hardware with more power than RPI 3, but I don't<br>
> like to run it, because it is noisy.  It has FreeBSD 10 installed and I<br>
> can upgrade it to latest FreeBSD (11?) and isntall squid application<br>
> that way.<br>
><br>
><br>
> Does squid run on RPI3?  FreeBSD?<br>
<br>
Yes to both, and at the small scale you need the RPi3 should be able to<br>
cope with it.<br>
<br>
Amos<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
</div></div></blockquote></div><br></div>