How does YtPak work?

namsu99

Proficient
Jun 17, 2011
861
0
21
Karachi
I got to know about YtPak (YouTube Pakistan) a couple of months ago and ever since, I cant stop thinking about how it works.
I mean it has each and every one of YouTube's videos and even lets us comment on and follow videos and channels. I don't think its a proxy because for one, its quite fast (unlike any YouTube Proxy I've used in the past 2 years) plus it has its own completely different UI.
And yet it has access to YouTube's entire database.

Recently, I've been thinking its using YouTube's APIs but since Im not exactly certain about what APIs are and how they work, I'm still in the dark.

Sooo any idea how it works? [MENTION=8060]abobobilly[/MENTION] [MENTION=11094]StrikerX[/MENTION] Your opinions?


P.S. I know some of you here will think I'm crazy. Alot of people have said "Yaar aam khao, per kyu ginte ho" whenever I've tried to discuss it with them, but I'm curious.
 
Last edited:

StrikerX

Moderator
Moderator
Apr 6, 2009
6,636
52
54
Islamabad
Had the same query in my mind for a long time and I think they're acting as a proxy with a front-end that shows it as a video streaming website. It indexes YouTube videos as well as provides us with an option to give it a YouTube link which it then streams.

I don't think its a proxy because for one, its quite fast (unlike any YouTube Proxy I've used in the past 2 years) plus it has its own completely different UI.
Fast has nothing to do with it being a proxy or not. They're using (most likely) dedicated server(s) to provide content and are generating revenue via ads which is pretty decent (at least it should be) since the traffic to the website is A LOT.


The above is what I think, I can be wrong and if anyone has a better understanding, do enlighten us.

Update: Refer to post # 11
 
Last edited:

abobobilly

$heeda Pastol ™
Dec 3, 2008
14,732
3
44
Lahore
If asking questions make you crazy, then I am crazier than you are. And I like like Mangoes (who doesn't - oh wait, Donkeys -_-)

Anyway, ytPak is just a proxy site, like all the others e.g. playit.Pk. unblockyoutube, or unblockstreaming. Its just a little more flexible, have all the added options by default, where other sited may give YOU the option to enable/disable them (cookies, scripts etc)
 

FlAmEsWoRd

Active member
Feb 2, 2010
359
1
23
Unkown Realm
playit.pk does the same. and i find it better than ytpak
no idea about your query
i noticed a very strange thing about playit.pk whenever i play a video on it and allow it to fullscreen my pc give's me blue screen,it gave me blue screen not just one time but 3 or 4 times
 

frazgta

Well-known member
Oct 23, 2010
1,789
0
43
24.706915,7.468872
[MENTION=11094]StrikerX[/MENTION] if the video feeds are from google itself then there shouldn't be any lag/ stuttering at any time of the day but both playitpk and ytpak stutter sometimes. And it isn't my ptcl connection that causes the stutter because other websites work fine. I believe they are some sort of proxy sites.

Sent from my Nexus 4 using Tapatalk
 

StrikerX

Moderator
Moderator
Apr 6, 2009
6,636
52
54
Islamabad
[MENTION=11094]StrikerX[/MENTION] if the video feeds are from google itself then there shouldn't be any lag/ stuttering at any time of the day but both playitpk and ytpak stutter sometimes. And it isn't my ptcl connection that causes the stutter because other websites work fine. I believe they are some sort of proxy sites.

Sent from my Nexus 4 using Tapatalk
There are way too many reasons for lagging, poor network route, packet loss, non-optimal server selection etc etc But no they aren't using proxy. Just check the source of any page from playit.pk and you'll find the video feed link to be from google which playit.pk are fetching from using youtube's API.

https://[B]r6---sn-qxo7sn7s.c.docs.google.com[/B]/videoplayback?<deleted>
 
Last edited:

Arhamsaeed

Intermediate
Apr 7, 2012
193
0
21
Karachi
[MENTION=11094]StrikerX[/MENTION] if the video feeds are from google itself then there shouldn't be any lag/ stuttering at any time of the day but both playitpk and ytpak stutter sometimes. And it isn't my ptcl connection that causes the stutter because other websites work fine. I believe they are some sort of proxy sites.

Sent from my Nexus 4 using Tapatalk
I can stream 720p videos on ytpak without any stutter on a ptcl connection.
 

frazgta

Well-known member
Oct 23, 2010
1,789
0
43
24.706915,7.468872
I can stream 720p videos on ytpak without any stutter on a ptcl connection.
I can as well. I can stream 1080p on YouTube with a paid VPN as well. But sometimes ytpak stutters a lot even at 360p whereas YouTube/ Unblockyoutube.co.uk works fine even on 1080p.

Sent from my Nexus 4 using Tapatalk
 

Ytpak

New member
Feb 20, 2015
3
0
1
I got to know about YtPak (YouTube Pakistan) a couple of months ago and ever since, I cant stop thinking about how it works.
I mean it has each and every one of YouTube's videos and even lets us comment on and follow videos and channels. I don't think its a proxy because for one, its quite fast (unlike any YouTube Proxy I've used in the past 2 years) plus it has its own completely different UI.
And yet it has access to YouTube's entire database.

Recently, I've been thinking its using YouTube's APIs but since Im not exactly certain about what APIs are and how they work, I'm still in the dark.

Sooo any idea how it works? @abobobilly @StrikerX Your opinions?


P.S. I know some of you here will think I'm crazy. Alot of people have said "Yaar aam khao, per kyu ginte ho" whenever I've tried to discuss it with them, but I'm curious.
Hello,

Found this thread from Google search and registered myself just to bring you out from the darkness :p

Ytpak.com is a semi proxy. For those YouTube Channels where Adsense is enabled we are using our own proxy servers to stream videos.
Example: Vevo Videos / T-Series ...

For those channels where Adsense is not enabled we are simply changing google DNS from "*.googlevideos.com" -> "*c.docs.google.com" - Videos are being downloaded directly from Google servers for those videos.

For everything else we are using YouTube Data API v3 - This includes "Comments posting" - "Likes" and "Channel Subscriptions" - Basically it's not a proxy.

From last couple of days PTCL is having issues streaming through c.docs.google.com servers. For those having this issue over PTCL can simply try to change their video resolution to 480P.

Having a semi proxy system we are currently working on building a hybrid system, it will be able to sense video buffering time and if it feels that current server is not able to respond it will automatically switch between proxy/direct servers.

Glad someone is eating mangoes and counting trees as well, that's how one is able to predict future.

Regards,
Erfan
 

namsu99

Proficient
Jun 17, 2011
861
0
21
Karachi
Hello,

Found this thread from Google search and registered myself just to bring you out from the darkness :p

Ytpak.com is a semi proxy. For those YouTube Channels where Adsense is enabled we are using our own proxy servers to stream videos.
Example: Vevo Videos / T-Series ...

For those channels where Adsense is not enabled we are simply changing google DNS from "*.googlevideos.com" -> "*c.docs.google.com" - Videos are being downloaded directly from Google servers for those videos.

For everything else we are using YouTube Data API v3 - This includes "Comments posting" - "Likes" and "Channel Subscriptions" - Basically it's not a proxy.

From last couple of days PTCL is having issues streaming through c.docs.google.com servers. For those having this issue over PTCL can simply try to change their video resolution to 480P.

Having a semi proxy system we are currently working on building a hybrid system, it will be able to sense video buffering time and if it feels that current server is not able to respond it will automatically switch between proxy/direct servers.

Glad someone is eating mangoes and counting trees as well, that's how one is able to predict future.

Regards,
Erfan

Hey! Thanks for going through all that trouble just to clear our doubts! I hope you'll enjoy your time here at PakGamers.

So does this mean that PTA has only blocked the "Youtube.com" URL and the ban can be bypassed by simply changing the DNS on the server side?
And is there any way to block the actual google's video feeds?

And @Ytpak, I don't mean to be rude, but who are you and how are you related to YtPak? (Just out of curiosity!)
 
Last edited:

Ytpak

New member
Feb 20, 2015
3
0
1
Hey! Thanks for going through all that trouble just to clear our doubts! I hope you'll enjoy your time here at PakGamers.

So does this mean that PTA has only blocked the "Youtube.com" URL and the ban can be bypassed by simply changing the DNS on the server side?
And is there any way to block the actual google's video feeds?

And @Ytpak, I don't mean to be rude, but who are you and how are you related to YtPak? (Just out of curiosity!)
PTA has ordered to block two DNS to ISP's operating in Pakistan.
1) *.youtube.com
2) *.googlevideos.com

They have tried to block other DNS related to Google services and as a result Google Play Store also got banned.
Even today you can use YouTube through Android APP without any issue.

To truly block YouTube they have to ban all the DNS related to Google services.

I am lead developer at Ytpak.com
 

StrikerX

Moderator
Moderator
Apr 6, 2009
6,636
52
54
Islamabad
PTA has ordered to block two DNS to ISP's operating in Pakistan.
1) *.youtube.com
2) *.googlevideos.com

They have tried to block other DNS related to Google services and as a result Google Play Store also got banned.
Even today you can use YouTube through Android APP without any issue.

To truly block YouTube they have to ban all the DNS related to Google services.

I am lead developer at Ytpak.com
Its not just a DNS level block on YouTube though
 
General chit-chat
Help Users
We have disabled traderscore and are working on a fix. There was a bug with the plugin | Click for Discord
  • C chamir44:
    My withdraw
    Link
  • Necrokiller Necrokiller:
    Reminds me of the time MS tried to charge PC gamers for online play
    Link
  • Necrokiller Necrokiller:
    When will console companies realize this sh*t doesn't work on PC
    Link
  • SolitarySoldier SolitarySoldier:
    doesn't change the fact that sony is extra chu this gen
    Link
  • Link
  • StrikerX StrikerX:
    Mofos sharpened a spear and shoved it up theirs and Arrowhead's ass
    Link
  • StrikerX StrikerX:
    Sony <3
    Link
  • Necrokiller Necrokiller:
    Jeez, throwing all those sales away for the sake of PsN accounts. What a mess.
    Link
  • Link
  • Chandoo Chandoo:
    faraany3k said:
    I have heard that it is now unplayable in countries which do not support handful of third world countries not recognized by Sony like Pakistan. Steam is a true global platform.Then they cry that console gaming is dying.
    170 + countries where Steam sells but PSN doesn't will lose access unless they use VPN
    Link
  • Chandoo Chandoo:
    It has a worst rating on Steam than last years MW3 now. Jeese Sony, how can you fuck it up THIS BAD
    Link
  • faraany3k faraany3k:
    I have heard that it is now unplayable in countries which do not support handful of third world countries not recognized by Sony like Pakistan. Steam is a true global platform.Then they cry that console gaming is dying.
    Link
  • Chandoo Chandoo:
    How to ruin a perfectly good thing for dummies - by Sony
    Link
  • Link
  • Chandoo Chandoo:
    Helldivers 2 is now trending worse stream user reviews than SUICIDE SQUAD
    Link
  • Necrokiller Necrokiller:
    Good guy Gaben refunding the game way past what the policy allows 👍
    Link
  • Necrokiller Necrokiller:
    Poor Arrowhead getting screwed by Sony 😞
    Link
  • Necrokiller Necrokiller:
    Gaben ki reach hai, PSN ki nahi hai. Gaben ain't stressing over publishers who rush to his store in the first place 😂
    Link
  • Chandoo Chandoo:
    Gaben ki reach nah hai :(
    Link
  • Chandoo Chandoo:
    saeen I don't think the PSN teams are stressing over needing to offer hundreds of thousands of refunds lol
    Link
  • Necrokiller Necrokiller:
    fuckin' lol
    Link
  • Necrokiller Necrokiller:
    Saeen literally glossed over the fact that PSN isn't available in those 177 countries
    Link
  • Chandoo Chandoo:
    fuckin' lol
    Link
  • Chandoo Chandoo:
    Helldivers 2 delisted on Steam from 177 countries
    Link
  • Necrokiller Necrokiller:
    iampasha said:
    Alan wake 2 is yet to recover it's development costs. Due to no physical release and no steam launch.
    You reap what you sow. This is what happens when you take away choice from consumers. Even with 88% split going to developers, they can't recoup costs. Meanwhile, Helldivers 2 is a massive hit for Sony thanks in big part to Steam.
    Link
    C chamir44: My withdraw