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.11k stars 642 forks source link

Unable to stream live youtube videos #1239

Open GauravMohla opened 1 year ago

GauravMohla commented 1 year ago

I am trying to stream a youtube video but it doesn't seem to be working. The program just downloads some chat comments to the download directory.

Issue / Suggestion

Unable to stream videos from youtube

Your Environment

yt --version yewtube version : 2.10.4 yt_dlp version : 2023.02.17 Python version : 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] Processor : Intel64 Family 6 Model 76 Stepping 4, GenuineIntel Machine type : AMD64 Architecture : 64bit, WindowsPE Platform : Windows-10-10.0.19044-SP0 sys.stdout.enc : utf-8 default enc : utf-8 Config dir : C:\Users\User\AppData\Roaming\mps-youtube dbus : None glib : False

I am using mpv player

mpv 0.33.0-268-g416668d3c8 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects built on Sun Aug 1 13:30:35 +08 2021 FFmpeg library versions: libavutil 57.3.100 libavcodec 59.3.102 libavformat 59.4.101 libswscale 6.0.100 libavfilter 8.1.103 libswresample 4.0.100 FFmpeg version: git-2021-08-01-c50f5460

c0dehu1k commented 1 year ago

@GauravMohla Can you please share the URL of youtube video? Is it happening for all the videos? Can you try upgrading the yt-dlp version?

destasetiawan commented 1 year ago

i have same issue like that but my issue is the video take long time to play if the video is live stream takes time for more than 5 minutes

GauravMohla commented 1 year ago

@c0dehu1k this happens with all videos. Just updated yt-dlp to latest version and the problem still persists. Is there a verbose/debug mode which can help drill sown this problem. Even after waiting for 15 minutes it does not start streaming. Also, it download chat messages to the yewtube directory whenever I try to stream a live video.

c0dehu1k commented 1 year ago

@GauravMohla @destasetiawan Would you like to add some console logs or screenshot to describe the problem further. Also, does yt-dlp works on your system let aside mpyt for the time being.

iamtalhaasghar commented 1 year ago

is it happening only with live stream videos? @GauravMohla @destasetiawan

GauravMohla commented 1 year ago

@c0dehu1k @iamtalhaasghar happens with every live video. screenshot below.

image

copied the url and pasted in mpv

image

destasetiawan commented 1 year ago

@GauravMohla yeah its same with me now live stream and long video just load too much long

bester69 commented 1 year ago

hi, live streams query doesnt work.. doesnt filter by live