atauenis / webone

HTTP 1.x proxy that makes old web browsers usable again in the Web 2.0 world.
Other
504 stars 15 forks source link

Broken YouTube.com (through ViewTube) video converting #9

Closed atauenis closed 4 years ago

atauenis commented 4 years ago

Cannot play YouTube videos through Viewtube-Webone userscript.

The video playback does not starting because WebOne is murdering the converter.

WebOne HTTP Proxy Server 0.10.1.0
(C) https://github.com/atauenis/webone

Using configuration file webone.conf.
webone.conf load complete.
Starting server...
Listening for HTTP 1.x on port 80.
19:58:03.618    Got a request.
19:58:03.618+390022     >GET /!convert/?url=https%3A%2F%2Fr2---sn-4g5edned.c.you
tube.com%2Fvideoplayback%3Fexpire%3D1588211701%26ei%3DldupXti_CoeuyAW-k6DoBw%26i
p%3D2a00%3A1370%3A813d%3Abef%3Aa5f1%3Acd7%3Af588%3A8a16%26cp%3DU0pXTVJMT19FS0NQN
19KRlNIOkFPZVY5VU9OTlpickxjcnZjWC1XOU9JZzktdjhUdXRGdklZVTNCRTBoWTM%26id%3Do-AIwB
qF63GHpvUo9Azuy4Gxl0msJjzBE0tNYwZQbdl5bB%26itag%3D18%26source%3Dyoutube%26requir
essl%3Dyes%26mh%3DtH%26mm%3D32%26mn%3Dsn-4g5edned%26ms%3Dsu%26mv%3Dm%26mvi%3D1%2
6pl%3D32%26sc%3Dyes%26initcwndbps%3D706250%26vprv%3D1%26mime%3Dvideo%2Fmp4%26gir
%3Dyes%26clen%3D4993259%26ratebypass%3Dyes%26dur%3D64.551%26lmt%3D15804182430422
40%26mt%3D1588190052%26c%3DWEB%26txp%3D6216222%26sparams%3Dexpire%2Cei%2Cip%2Ccp
%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur
%2Clmt%26sig%3DAJpPlLswRQIhALuBlRCs5enbConQaC-eTULufcBmc4d1bZWDGEa26dPgAiBZzifBu
mQN-MVj_APAR8mRcVV9Y2hcbvuVymDmeNfURQ%3D%3D%26lsparams%3Dmh%2Cmm%2Cmn%2Cms%2Cmv%
2Cmvi%2Cpl%2Csc%2Cinitcwndbps%26lsig%3DALrAebAwRAIgTca-e3oX59wY_uMfqzNrcKfE7STWt
KxS1dlCAA0m6MYCIFPqtqrLIFpQKvst_KMFejmlxOUFXUCGC21WZvANkDsh&util=ffmpeg&arg=%20-
vcodec%20libtheora%20-s%20128x96%20-acodec%20libvorbis%20-ac%201%20-f%20ogg&type
=video/avi
19:58:03.618+1960112     Begin process.
19:58:03.618+5780330     Internal: /!convert/?url=https%3A%2F%2Fr2---sn-4g5edned
.c.youtube.com%2Fvideoplayback%3Fexpire%3D1588211701%26ei%3DldupXti_CoeuyAW-k6Do
Bw%26ip%3D2a00%3A1370%3A813d%3Abef%3Aa5f1%3Acd7%3Af588%3A8a16%26cp%3DU0pXTVJMT19
FS0NQN19KRlNIOkFPZVY5VU9OTlpickxjcnZjWC1XOU9JZzktdjhUdXRGdklZVTNCRTBoWTM%26id%3D
o-AIwBqF63GHpvUo9Azuy4Gxl0msJjzBE0tNYwZQbdl5bB%26itag%3D18%26source%3Dyoutube%26
requiressl%3Dyes%26mh%3DtH%26mm%3D32%26mn%3Dsn-4g5edned%26ms%3Dsu%26mv%3Dm%26mvi
%3D1%26pl%3D32%26sc%3Dyes%26initcwndbps%3D706250%26vprv%3D1%26mime%3Dvideo%2Fmp4
%26gir%3Dyes%26clen%3D4993259%26ratebypass%3Dyes%26dur%3D64.551%26lmt%3D15804182
43042240%26mt%3D1588190052%26c%3DWEB%26txp%3D6216222%26sparams%3Dexpire%2Cei%2Ci
p%2Ccp%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass
%2Cdur%2Clmt%26sig%3DAJpPlLswRQIhALuBlRCs5enbConQaC-eTULufcBmc4d1bZWDGEa26dPgAiB
ZzifBumQN-MVj_APAR8mRcVV9Y2hcbvuVymDmeNfURQ%3D%3D%26lsparams%3Dmh%2Cmm%2Cmn%2Cms
%2Cmv%2Cmvi%2Cpl%2Csc%2Cinitcwndbps%26lsig%3DALrAebAwRAIgTca-e3oX59wY_uMfqzNrcKf
E7STWtKxS1dlCAA0m6MYCIFPqtqrLIFpQKvst_KMFejmlxOUFXUCGC21WZvANkDsh&util=ffmpeg&ar
g=%20-vcodec%20libtheora%20-s%20128x96%20-acodec%20libvorbis%20-ac%201%20-f%20og
g&type=video/avi
19:58:03.618+6130350    >Downloading source stream (connecting)...
19:58:03.618+33801933   >Downloading source stream (receiving)...
19:58:03.618+53033033    Converting: ffmpeg -i pipe:  -vcodec libtheora -s 128x9
6 -acodec libvorbis -ac 1 -f ogg pipe:...
19:58:03.618+53053034    Writing stdin...
19:58:03.618+53093036    Reading stdout...
19:58:03.618+53123038   <Send video/avi stream.
19:58:03.618+53763075    Waiting for finish of converting...
ffmpeg version git-2019-12-19-99f505d Copyright (c) 2000-2019 the FFmpeg develop
ers
  built with gcc 9.2.1 (GCC) 20191125
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi
g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb
luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e
nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable
-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 -
-enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enab
le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en
able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcode
c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 -
-enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 36.101 / 56. 36.101
  libavcodec     58. 65.100 / 58. 65.100
  libavformat    58. 35.101 / 58. 35.101
  libavdevice    58.  9.101 / 58.  9.101
  libavfilter     7. 69.101 /  7. 69.101
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100

19:58:03.618+105096011   Idle process killed.
19:58:03.618+105126013   Converting end.
19:58:03.618+105196017  <Done.

Test case:

  1. Latest nightly of WebOne (from Git master sources; 29-apr-2020 22:58)
  2. Google Chrome + Tampermonkey
  3. https://github.com/atauenis/ViewTube-WebOne/releases/download/v2019.12.05-AT-3/viewtube-webone.min.user.js
  4. https://www.youtube.com/watch?v=iwjrhFfBI-o&disable_polymer=1
  5. test-viewtube-bug
atauenis commented 4 years ago

Retried with WebOne 0.9.3:

WebOne HTTP Proxy Server 0.9.3.0.
(C) 2019 Alexander Tauenis.
https://github.com/atauenis/webone

Using configuration file webone.conf.
webone.conf load complete.
Starting server...
Listening for HTTP 1.x on port 80.
20:12:15.174    >GET /!convert/?url=https%3A%2F%2Fr2---sn-4g5edned.c.youtube.com
%2Fvideoplayback%3Fexpire%3D1588211701%26ei%3DldupXti_CoeuyAW-k6DoBw%26ip%3D2a00
%3A1370%3A813d%3Abef%3Aa5f1%3Acd7%3Af588%3A8a16%26cp%3DU0pXTVJMT19FS0NQN19KRlNIO
kFPZVY5VU9OTlpickxjcnZjWC1XOU9JZzktdjhUdXRGdklZVTNCRTBoWTM%26id%3Do-AIwBqF63GHpv
Uo9Azuy4Gxl0msJjzBE0tNYwZQbdl5bB%26itag%3D18%26source%3Dyoutube%26requiressl%3Dy
es%26mh%3DtH%26mm%3D32%26mn%3Dsn-4g5edned%26ms%3Dsu%26mv%3Dm%26mvi%3D1%26pl%3D32
%26sc%3Dyes%26initcwndbps%3D706250%26vprv%3D1%26mime%3Dvideo%2Fmp4%26gir%3Dyes%2
6clen%3D4993259%26ratebypass%3Dyes%26dur%3D64.551%26lmt%3D1580418243042240%26mt%
3D1588190052%26c%3DWEB%26txp%3D6216222%26sparams%3Dexpire%2Cei%2Cip%2Ccp%2Cid%2C
itag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt%2
6sig%3DAJpPlLswRQIhALuBlRCs5enbConQaC-eTULufcBmc4d1bZWDGEa26dPgAiBZzifBumQN-MVj_
APAR8mRcVV9Y2hcbvuVymDmeNfURQ%3D%3D%26lsparams%3Dmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2C
pl%2Csc%2Cinitcwndbps%26lsig%3DALrAebAwRAIgTca-e3oX59wY_uMfqzNrcKfE7STWtKxS1dlCA
A0m6MYCIFPqtqrLIFpQKvst_KMFejmlxOUFXUCGC21WZvANkDsh&util=ffmpeg&arg=%20-vcodec%2
0libtheora%20-s%20128x96%20-acodec%20libvorbis%20-ac%201%20-f%20ogg&type=video/a
vi
20:12:15.174+860050      Internal: /!convert/?url=https%3A%2F%2Fr2---sn-4g5edned
.c.youtube.com%2Fvideoplayback%3Fexpire%3D1588211701%26ei%3DldupXti_CoeuyAW-k6Do
Bw%26ip%3D2a00%3A1370%3A813d%3Abef%3Aa5f1%3Acd7%3Af588%3A8a16%26cp%3DU0pXTVJMT19
FS0NQN19KRlNIOkFPZVY5VU9OTlpickxjcnZjWC1XOU9JZzktdjhUdXRGdklZVTNCRTBoWTM%26id%3D
o-AIwBqF63GHpvUo9Azuy4Gxl0msJjzBE0tNYwZQbdl5bB%26itag%3D18%26source%3Dyoutube%26
requiressl%3Dyes%26mh%3DtH%26mm%3D32%26mn%3Dsn-4g5edned%26ms%3Dsu%26mv%3Dm%26mvi
%3D1%26pl%3D32%26sc%3Dyes%26initcwndbps%3D706250%26vprv%3D1%26mime%3Dvideo%2Fmp4
%26gir%3Dyes%26clen%3D4993259%26ratebypass%3Dyes%26dur%3D64.551%26lmt%3D15804182
43042240%26mt%3D1588190052%26c%3DWEB%26txp%3D6216222%26sparams%3Dexpire%2Cei%2Ci
p%2Ccp%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass
%2Cdur%2Clmt%26sig%3DAJpPlLswRQIhALuBlRCs5enbConQaC-eTULufcBmc4d1bZWDGEa26dPgAiB
ZzifBumQN-MVj_APAR8mRcVV9Y2hcbvuVymDmeNfURQ%3D%3D%26lsparams%3Dmh%2Cmm%2Cmn%2Cms
%2Cmv%2Cmvi%2Cpl%2Csc%2Cinitcwndbps%26lsig%3DALrAebAwRAIgTca-e3oX59wY_uMfqzNrcKf
E7STWtKxS1dlCAA0m6MYCIFPqtqrLIFpQKvst_KMFejmlxOUFXUCGC21WZvANkDsh&util=ffmpeg&ar
g=%20-vcodec%20libtheora%20-s%20128x96%20-acodec%20libvorbis%20-ac%201%20-f%20og
g&type=video/avi
20:12:15.174+960055     >Downloading source stream...
20:12:15.174+29931712    Can't download source: Удаленный сервер возвратил ошибк
у: (403) Запрещено..
20:12:15.174+29971715   <Return code 500.
20:12:15.174+29981715   <Done.

Seems to be something was changed in YouTube to prevent downloading. However, if I disable using of Proxy in ViewTube settings, the file is still downloading.

atauenis commented 4 years ago

WTF....typo in bug's number. Still don't working

atauenis commented 4 years ago

Strange but no longer appear.