ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.35k stars 10.04k forks source link

Can i Use videoplayback URL to play video in a player like some website doing ? #3474

Closed shahzadakram closed 10 years ago

shahzadakram commented 10 years ago

Hello ,

I see some website is playing video from youtube same URL like -g ... but when i use this URL to play video this will not work for my anymore .

Please check this Thanks

shahzadakram commented 10 years ago

when i am accessing this URL in Google Chrome browser :

The webpage at https://r12---sn-a5m7ln7y.googlevideo.com/videoplayback?ms=au&expire=1407566633&source=youtube&mv=u&itag=5&key=yt5&ip=96.43.88.126&sver=3&requiressl=yes&fexp=902408%2C905634%2C908566%2C927622%2C931983%2C933408%2C934024%2C934030%2C938672%2C946008%2C947702&ipbits=0&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Crequiressl%2Csource%2Cupn%2Cexpire&mws=yes&initcwndbps=14289000&id=o-AGsmLGmymTjBBTWhydZgYY8-iCOK7Y6XdewyayNaLbnG&mm=31&signature=A41A4847563631EE4213D5A69D7CF8BF215389B8.57116B6DFC9C1AC83E57A0065024D062732B5AA8&upn=2ptxjyuUYFg&mt=1407545012&ratebypass=yes might be temporarily down or it may have moved permanently to a new web address.

but when i access same URL in firefox browser it works some time and some time giving me same error ...

Thanks for your help in advance

abdullahsyed007 commented 10 years ago

you need to decode this url http://meyerweb.com/eric/tools/dencoder/

shahzadakram commented 10 years ago

Thanks for Reply I did this But I am still not able to stream video from this URL ....

https://r12---sn-a5m7ln7y.googlevideo.com/videoplayback?ms=au&expire=1407566633&source=youtube&mv=u&itag=5&key=yt5&ip=96.43.88.126&sver=3&requiressl=yes&fexp=902408,905634,908566,927622,931983,933408,934024,934030,938672,946008,947702&ipbits=0&sparams=id,initcwndbps,ip,ipbits,itag,requiressl,source,upn,expire&mws=yes&initcwndbps=14289000&id=o-AGsmLGmymTjBBTWhydZgYY8-iCOK7Y6XdewyayNaLbnG&mm=31&signature=A41A4847563631EE4213D5A69D7CF8BF215389B8.57116B6DFC9C1AC83E57A0065024D062732B5AA8&upn=2ptxjyuUYFg&mt=1407545012&ratebypass=yes

One thing i see same URL at a website :

https://r17---sn-p5qlsnl7.c.docs.google.com/videoplayback?ratebypass=yes&ipbits=0&expire=1407776457&mws=yes&sver=3&upn=D8a6REtfQAc&source=youtube&key=yt5&itag=18&fexp=901802,902408,921912,927622,931983,934024,934030,935411,936935,941372,946023&mm=31&mv=m&mt=1407754780&ms=au&ip=54.166.7.60&signature=203359B75D8C16FA3B8B17A0BFC339652500180C.60E7B3BE0907712C5B81319AA2307FA05CDE59E2&id=o-AELPk0P9li46jcgoPOQcbOL7WJG6-aOvphlwobhxduHB&sparams=id,ip,ipbits,itag,ratebypass,source,upn,expire

and this work for stream ....

phihag commented 10 years ago

It depends on the video service. In general, there is no guarantee that the download will work with anything but youtube-dl. You seem to be using YouTube, and YouTube regularly requires the download to come from the same IP address as the extraction, and sometimes even with the same cookies. So, no, you need to download the video yourself and stream it, or use the YouTube API, although that of course will only work with YouTube and not other video services.

shahzadakram commented 10 years ago

Yes I am trying to Use Youtube and as you know youtube is banned in Pakistan and I am trying to get Stream URL that i can Play on my website from .... I see there and there is nothing changed in URL those i mentioned and one is working and one is not ....

THanks

Brottweiler commented 10 years ago

@shahzadakram What OS do you run?

shahzadakram commented 10 years ago

Cent OS ...

Brottweiler commented 10 years ago

@shahzadakram So, GNU/Linux.

From what I understand, you want to play youtube videos in an external player? I use mpv to do that.

mpv <youtube-url>

shahzadakram commented 10 years ago

i want to play video like this :

http://www.ytpak.com/?component=video&task=view&id=_1MDrwqjeGo

check the page SOurce and URL of video

shahzadakram commented 10 years ago

I want to play the Video same like the Above URL

Brottweiler commented 10 years ago

That's an embedded youtube video.

mpv https://www.youtube.com/watch?v=_1MDrwqjeGo

shahzadakram commented 10 years ago

but in pakistan its blocked and it will not work for me except this URL :

https://r17---sn-p5qlsnl7.c.docs.google.com/videoplayback?mws=yes&id=o-AFHAvgZqTOfWrXRE5GSzjSVpDhEQ4dBLwRgFyG_JvgU-&expire=1407781922&source=youtube&ratebypass=yes&signature=A13A7E17C8C6F473C5BE320D94E2C64D9D71E4EA.30A545DC11A293927D080B21DB1CBB07F4C877F0&ip=54.166.7.60&key=yt5&mv=m&ipbits=0&mm=31&sver=3&fexp=902408,910118,914049,915515,924619,925009,927622,931983,934024,934030,934923,946023,951000&ms=au&sparams=id,ip,ipbits,itag,ratebypass,source,upn,expire&upn=7B07XtFQ2GE&itag=18&mt=1407760208

shahzadakram commented 10 years ago

The above that i sent you now is not an embeded URL .... this one i can get from :

youtube-dl --verbose http://www.youtube.com/watch?v=L5qoPRyvPOU

shahzadakram commented 10 years ago

but not able to stream :(

Brottweiler commented 10 years ago

Oh I'm sorry, so playing the URL with an external player like mpv doesn't work, since youtube is blocked?

How is it blocked? Because maybe you can chance DNS server?

But otherwise, sorry cannot help you with that. :/

shahzadakram commented 10 years ago

Its blocked in All over the Pakistan by ISP (Internet Service Provider) but the Above URL work for me to play video in my player .... That is why I am trying to get the way from Where i can get the URL like above will work for me ....

Anyways Thanks

Brottweiler commented 10 years ago

So you can actually view and play the youtube video, if it is embedded like on this page? http://www.ytpak.com/?component=video&task=view&id=_1MDrwqjeGo

shahzadakram commented 10 years ago

yes same like The Above URL ..... THat i gave you earlier .

abdullahsyed007 commented 10 years ago

dear Shahzad Akram as youtube is banned in pakistan so all google.videos are also banned in pakistan. to open this link you must run any hotspot sheild thing to download this link

shahzadakram commented 10 years ago

But what if i can access this URL ?

http://r13---sn-nwj7knee.googlevideo.com/videoplayback?fexp=901087,902408,910118,924613,927622,931983,934024,934030,941378,946023,948514,951000&sver=3&key=yt5&ipbits=0&initcwndbps=3887000&mv=m&expire=1408831423&ms=au&itag=18&mt=1408809717&ratebypass=yes&id=o-AAZUZZsYZ9q6ZVQvD0vAYr33o6Gh9omYytSgZV8HJLNc&upn=MWP2K7mjf28&source=youtube&sparams=id,initcwndbps,ip,ipbits,itag,mm,ms,mv,ratebypass,source,upn,expire&signature=472790DA3616B01870400C464C7E328BC9E8FF31.22F528F0BBB871A87A8A531F705AEBAF88560B32&ip=162.243.155.223&mm=31&signature=

this is not Blocked in pakistan ?

Worried about this carry on statement..

Elite commented 10 years ago

Try something like these - http://www.megaleecher.net/taxonomy/term/7566 to bypass all sorts of censorship.

mhamzas commented 10 years ago

Hi shahzad, just saw ytpak.com and looks like you are successfull for what you were searching for. Congratulations. Can you please guide us too how'd you made it work ? Thanks

rizwan-zeropoint commented 9 years ago

Dear Shahzad can you tell me how to generate this url for any youtube video? I need this url against any youtube video URL. Can you help me if you are able to do this http://r13---sn-nwj7knee.googlevideo.com/videoplayback?fexp=901087,902408,910118,924613,927622,931983,934024,934030,941378,946023,948514,951000&sver=3&key=yt5&ipbits=0&initcwndbps=3887000&mv=m&expire=1408831423&ms=au&itag=18&mt=1408809717&ratebypass=yes&id=o-AAZUZZsYZ9q6ZVQvD0vAYr33o6Gh9omYytSgZV8HJLNc&upn=MWP2K7mjf28&source=youtube&sparams=id,initcwndbps,ip,ipbits,itag,mm,ms,mv,ratebypass,source,upn,expire&signature=472790DA3616B01870400C464C7E328BC9E8FF31.22F528F0BBB871A87A8A531F705AEBAF88560B32&ip=162.243.155.223&mm=31&signature=

zaasmi commented 8 years ago

check vidqo.com you need to create a proxy between youtube and Paki traffic.

Manchesterz commented 8 years ago

EDIT: spam

Vivekmasona commented 1 year ago

i want to play video like this :

http://www.ytpak.com/?component=video&task=view&id=_1MDrwqjeGo

check the page SOurce and URL of video

try this url https://vivekmasona.000webhostapp.com/play?vfy=https://youtu.be/_VJDi5fw6RQ