Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Version 1.10 - August 28th 2014
- The Video Resolution Locker for Squid is a free API in order to lock the resolution on YouTube, Vevo and DailyMotion.
- The API takes into account all YouTube, Vevo and DailyMotion video formats, all resolutions (144p to 2160p).
- For YouTube, if the selected resolution does not exist, the API will reply with the original resolution.
- With Vevo and DailyMotion, the API will always reply with the lowest resolution (Vevo: 360p, DailyMotion: 144p)
- Edit the .PHP file to fix the resolution with 'resol=240p' or anything else.
- Disable or enable Vevo ('vevo=0 or 1') and DailyMotion ('dm=0 or 1'), by default they are both enabled if not precised.
- All flv/ts/mp4/webm/3gp parts will be locked to the selected resolution or lowest resolution.
- Note: If you change the resolution when watching a video on the YouTube player, the video will freeze during few seconds, that's normal.
- The YouTube player will need to reload the video part in the correct resolution.
- With Vevo and DailyMotion, the lowest resolution is fixed at the start of the videos, so no freeze.
- Requierements:
- - Squid 2.7 minimal
- - PHP 5.x
- - Curl
- Installation:
- - Uncompress ut-ytresol.1.10.tgz to /etc/squid or /etc/squid3 depending your compilation options
- - Verify the script /etc/squid3/ut-ytresol.php is permissions 0755
- - Then, edit your squid.conf or squid3.conf and add this:
- # ---------------------------------------------------- #
- # YouTube Resolution Locker
- url_rewrite_program /etc/squid3/ut-ytresol.php
- url_rewrite_children 20
- - Finally, reload Squid with "squid -k reconfigure" and test by yourself...
- link : wget http://sourceforge.net/projects/youtuberesolutionlocker/files/ut-ytresol.1.10.tgz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement