Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server returned 403:Forbidden while trying to play in mplayer #1389

Closed
yavalladdha opened this issue Sep 7, 2013 · 3 comments
Closed

Server returned 403:Forbidden while trying to play in mplayer #1389

yavalladdha opened this issue Sep 7, 2013 · 3 comments

Comments

@yavalladdha
Copy link

@yavalladdha yavalladdha commented Sep 7, 2013

Currently we are using youtube-dl version 2013.08.30 to get url, and further we play it in mplayer.

In some video it throws an error "Server returned 403:Forbidden" ?

now if I will update the youtube-dl version perhaps it will play.. any reason why this error comes?

Please find relevant logs for further investigation.
root@yaval:~# youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] youtube-dl version 2013.08.30
[debug] Python version 2.6.5 - Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
[debug] Proxy map: {}
Usage: youtube-dl [options] url [url...]

youtube-dl: error: you must provide at least one URL

root@yaval:~# youtube-dl --get-url --cookies cookiefile.tmp http://www.youtube.com/watch?v=kffacxfA7G4
http://r1---sn-i3b7sn7d.c.youtube.com/videoplayback?key=yt1&ms=au&itag=35&source=youtube&gcr=hk&sver=3&factor=1.25&upn=Rlki6pIR7rY&ip=202.66.142.34&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&cp=U0hWTVVUUV9ITUNONl9NTlVCOmRiNVI3NUljQl92&mv=m&fexp=906335%2C911424%2C932240%2C929117%2C929121%2C929906%2C929907%2C929922%2C929127%2C929129%2C929131%2C929930%2C936403%2C925726%2C925720%2C925722%2C925718%2C925714%2C929917%2C906945%2C929933%2C920302%2C906842%2C913428%2C920605%2C919811%2C913563%2C919373%2C930803%2C908536%2C938701%2C931924%2C936308%2C909549%2C900816%2C912711%2C904494%2C904497%2C939903%2C900375%2C900382%2C934507%2C907231%2C936312%2C906001&id=91f7da7317c0ec6e&algorithm=throttle-factor&burst=40&ipbits=8&expire=1378593133&mt=1378570962&signature=B33D6C7ED286B66A6B486CBEBE7ED4ADA366A777376.AD40788FECE53206880355D03A13F6BAAA0AA&ratebypass=yes

root@yaval:~# mplayer -slave -idle "http://r1---sn-i3b7sn7d.c.youtube.com/videoplayback?key=yt1&ms=au&itag=35&source=youtube&gcr=hk&sver=3&factor=1.25&upn=Rlki6pIR7rY&ip=202.66.142.34&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&cp=U0hWTVVUUV9ITUNONl9NTlVCOmRiNVI3NUljQl92&mv=m&fexp=906335%2C911424%2C932240%2C929117%2C929121%2C929906%2C929907%2C929922%2C929127%2C929129%2C929131%2C929930%2C936403%2C925726%2C925720%2C925722%2C925718%2C925714%2C929917%2C906945%2C929933%2C920302%2C906842%2C913428%2C920605%2C919811%2C913563%2C919373%2C930803%2C908536%2C938701%2C931924%2C936308%2C909549%2C900816%2C912711%2C904494%2C904497%2C939903%2C900375%2C900382%2C934507%2C907231%2C936312%2C906001&id=91f7da7317c0ec6e&algorithm=throttle-factor&burst=40&ipbits=8&expire=1378593133&mt=1378570962&signature=B33D6C7ED286B66A6B486CBEBE7ED4ADA366A777376.AD40788FECE53206880355D03A13F6BAAA0AA&ratebypass=yes"
MPlayer 1.0rc4-4.4.3 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://r1---sn-i3b7sn7d.c.youtube.com/videoplayback?key=yt1&ms=au&itag=35&source=youtube&gcr=hk&sver=3&factor=1.25&upn=Rlki6pIR7rY&ip=202.66.142.34&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&cp=U0hWTVVUUV9ITUNONl9NTlVCOmRiNVI3NUljQl92&mv=m&fexp=906335%2C911424%2C932240%2C929117%2C929121%2C929906%2C929907%2C929922%2C929127%2C929129%2C929131%2C929930%2C936403%2C925726%2C925720%2C925722%2C925718%2C925714%2C929917%2C906945%2C929933%2C920302%2C906842%2C913428%2C920605%2C919811%2C913563%2C919373%2C930803%2C908536%2C938701%2C931924%2C936308%2C909549%2C900816%2C912711%2C904494%2C904497%2C939903%2C900375%2C900382%2C934507%2C907231%2C936312%2C906001&id=91f7da7317c0ec6e&algorithm=throttle-factor&burst=40&ipbits=8&expire=1378593133&mt=1378570962&signature=B33D6C7ED286B66A6B486CBEBE7ED4ADA366A777376.AD40788FECE53206880355D03A13F6BAAA0AA&ratebypass=yes.
Resolving r1---sn-i3b7sn7d.c.youtube.com for AF_INET6...
Couldn't resolve name for AF_INET6: r1---sn-i3b7sn7d.c.youtube.com
Resolving r1---sn-i3b7sn7d.c.youtube.com for AF_INET...
Connecting to server r1---sn-i3b7sn7d.c.youtube.com[74.125.10.38]: 80...
Server returned 403: Forbidden
STREAM_ASF, URL: http://r1---sn-i3b7sn7d.c.youtube.com/videoplayback?key=yt1&ms=au&itag=35&source=youtube&gcr=hk&sver=3&factor=1.25&upn=Rlki6pIR7rY&ip=202.66.142.34&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&cp=U0hWTVVUUV9ITUNONl9NTlVCOmRiNVI3NUljQl92&mv=m&fexp=906335%2C911424%2C932240%2C929117%2C929121%2C929906%2C929907%2C929922%2C929127%2C929129%2C929131%2C929930%2C936403%2C925726%2C925720%2C925722%2C925718%2C925714%2C929917%2C906945%2C929933%2C920302%2C906842%2C913428%2C920605%2C919811%2C913563%2C919373%2C930803%2C908536%2C938701%2C931924%2C936308%2C909549%2C900816%2C912711%2C904494%2C904497%2C939903%2C900375%2C900382%2C934507%2C907231%2C936312%2C906001&id=91f7da7317c0ec6e&algorithm=throttle-factor&burst=40&ipbits=8&expire=1378593133&mt=1378570962&signature=B33D6C7ED286B66A6B486CBEBE7ED4ADA366A777376.AD40788FECE53206880355D03A13F6BAAA0AA&ratebypass=yes
Resolving r1---sn-i3b7sn7d.c.youtube.com for AF_INET6...
Couldn't resolve name for AF_INET6: r1---sn-i3b7sn7d.c.youtube.com
Resolving r1---sn-i3b7sn7d.c.youtube.com for AF_INET...
Connecting to server r1---sn-i3b7sn7d.c.youtube.com[74.125.10.38]: 80...
Server returned 403:Forbidden
Failed to parse header.
Failed, exiting.
Resolving r1---sn-i3b7sn7d.c.youtube.com for AF_INET6...
Couldn't resolve name for AF_INET6: r1---sn-i3b7sn7d.c.youtube.com
Resolving r1---sn-i3b7sn7d.c.youtube.com for AF_INET...
Connecting to server r1---sn-i3b7sn7d.c.youtube.com[74.125.10.38]: 80...
Server returned 403: Forbidden
No stream found to handle url http://r1---sn-i3b7sn7d.c.youtube.com/videoplayback?key=yt1&ms=au&itag=35&source=youtube&gcr=hk&sver=3&factor=1.25&upn=Rlki6pIR7rY&ip=202.66.142.34&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&cp=U0hWTVVUUV9ITUNONl9NTlVCOmRiNVI3NUljQl92&mv=m&fexp=906335%2C911424%2C932240%2C929117%2C929121%2C929906%2C929907%2C929922%2C929127%2C929129%2C929131%2C929930%2C936403%2C925726%2C925720%2C925722%2C925718%2C925714%2C929917%2C906945%2C929933%2C920302%2C906842%2C913428%2C920605%2C919811%2C913563%2C919373%2C930803%2C908536%2C938701%2C931924%2C936308%2C909549%2C900816%2C912711%2C904494%2C904497%2C939903%2C900375%2C900382%2C934507%2C907231%2C936312%2C906001&id=91f7da7317c0ec6e&algorithm=throttle-factor&burst=40&ipbits=8&expire=1378593133&mt=1378570962&signature=B33D6C7ED286B66A6B486CBEBE7ED4ADA366A777376.AD40788FECE53206880355D03A13F6BAAA0AA&ratebypass=yes

@phihag
Copy link
Contributor

@phihag phihag commented Sep 7, 2013

Can you try the current version of youtube-dl? Type sudo youtube-dl -U to update. Also, can you post the entire output of

youtube-dl --get-url --cookies cookiefile.tmp kffacxfA7G4 -v
@yavalladdha
Copy link
Author

@yavalladdha yavalladdha commented Sep 8, 2013

When I update youtube-dl then it definitely works, may I know the reason why does it happen.
Same Video is working before in old version and suddenly it stops working..

Youtube make some changes at there end so you also have to update youtube-dl almost everyday ?

@phihag
Copy link
Contributor

@phihag phihag commented Sep 8, 2013

Yes, at the moment, YouTube changes its signature algorithm (which is needed for the download) approximately once per week. While I am developing a more permanent (but also waaay more complex) solution, there still seem to be edge cases where we need the staticly extracted algorithms, and need them up-to-date.

@phihag phihag closed this Sep 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.