mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.12k stars 642 forks source link

Stuck on "Getting content length" #969

Closed ghost closed 5 years ago

ghost commented 5 years ago

Issue

Almost nothing works. No video, no sound, can't download. Whatever url I use it always end with line "Getting content length" or similar, but no errors are reported.

Playing

~ $ mpsyt --debug playurl "https://www.youtube.com/watch?v=m8e-FF8MsqU"
mpsyt version      : 0.2.8
   notes           : released 17 February 2018
pafy version       : 0.5.4 (youtube-dl backend)
youtube-dl version : 2019.04.07
Python version     : 3.7.3 (default, Mar 26 2019, 21:43:19) 
[GCC 8.2.1 20181127]
Processor          : 
Machine type       : x86_64
Architecture       : 64bit, ELF
Platform           : Linux-5.0.7-zen1-1-zen-x86_64-with-arch
sys.stdout.enc     : UTF-8
default enc        : utf-8
Config dir         : /home/ill/.config/mps-youtube
env:TERM           : rxvt-unicode-256color
env:SHELL          : /bin/zsh
env:LANG           : pl_PL.UTF-8
could not load MPRIS interface. missing libraries.
Matrix Trailer HD (1999)
 Getting content length                                       

And it hangs.

~ $ cat /tmp/mpsyt.log
DEBUG:root:mpv version 0.29.1 detected
DEBUG:root:mpv supports --input-ipc-server
DEBUG:root:2 cached streams imported
DEBUG:root:paf: 0, streams: 2
DEBUG:root:transcoding config file exists
DEBUG:root:searching path for mpv
DEBUG:root:found at /usr/bin/mpv
DEBUG:root:mpv version 0.29.1 detected
DEBUG:root:mpv supports --input-ipc-server
DEBUG:root:searching path for ffmpeg
DEBUG:root:found at /usr/bin/ffmpeg
DEBUG:root:input: dlurl https://www.youtube.com/watch?v=m8e-FF8MsqU
DEBUG:root:function call: dl_url
DEBUG:root:regx matches: ('https://www.youtube.com/watch?v=m8e-FF8MsqU',)
DEBUG:root:preload: got new pafy object: Matrix Trailer HD (1999)
DEBUG:root:preload: got new pafy object: m8e-FF8MsqU
DEBUG:root:preload: got new pafy object: Matrix Trailer HD (1999)
DEBUG:root:preload: got new pafy object: m8e-FF8MsqU
DEBUG:root:Getting stream size

Downloading

~ $ mpsyt --debug dlurl "https://www.youtube.com/watch?v=m8e-FF8MsqU"
mpsyt version      : 0.2.8
   notes           : released 17 February 2018
pafy version       : 0.5.4 (youtube-dl backend)
youtube-dl version : 2019.04.07
Python version     : 3.7.3 (default, Mar 26 2019, 21:43:19) 
[GCC 8.2.1 20181127]
Processor          : 
Machine type       : x86_64
Architecture       : 64bit, ELF
Platform           : Linux-5.0.7-zen1-1-zen-x86_64-with-arch
sys.stdout.enc     : UTF-8
default enc        : utf-8
Config dir         : /home/ill/.config/mps-youtube
env:TERM           : rxvt-unicode-256color
env:SHELL          : /bin/zsh
env:LANG           : pl_PL.UTF-8
could not load MPRIS interface. missing libraries.
 [Fetching stream info] >----------------><       

And hangs again. Nothing will happen until ctrl-c

Versions

~ $ mpsyt --version
mpsyt version      : 0.2.8
   notes           : released 17 February 2018
pafy version       : 0.5.4 (youtube-dl backend)
youtube-dl version : 2019.04.07
Python version     : 3.7.3 (default, Mar 26 2019, 21:43:19)
[GCC 8.2.1 20181127]
Processor          :
Machine type       : x86_64
Architecture       : 64bit, ELF
Platform           : Linux-5.0.7-zen1-1-zen-x86_64-with-arch
sys.stdout.enc     : UTF-8
default enc        : utf-8
Config dir         : /home/ill/.config/mps-youtube
env:TERM           : rxvt-unicode-256color
env:SHELL          : /bin/zsh
env:LANG           : pl_PL.UTF-8

~ $ mpv --version
mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
 built on Sun Dec  9 16:21:27 CET 2018
ffmpeg library versions:
   libavutil       56.22.100
   libavcodec      58.35.100
   libavformat     58.20.100
   libswscale      5.3.100
   libavfilter     7.40.101
   libswresample   3.3.100
ffmpeg version: n4.1.2

~ $ ffmpeg -version
ffmpeg version n4.1.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181127
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil      56. 22.100 / 56. 22.100
libavcodec     58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.  5.100 / 58.  5.100
libavfilter     7. 40.101 /  7. 40.101
libswscale      5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100
libpostproc    55.  3.100 / 55.  3.100
ghost commented 5 years ago

Ok, I think I found - this is some IPv6 issue. I don't know why, but disabling IPv6 fixes my problem.

tienhm0202 commented 3 years ago

I got this problem - disabled IPv6