iamtalhaasghar / yewtube

Terminal based YouTube player and downloader. No Youtube API key required. Moved to https://github.com/mps-youtube/yewtube
GNU General Public License v3.0
245 stars 20 forks source link

Suddenly playback stops #70

Closed sweshelo closed 2 years ago

sweshelo commented 2 years ago

Issue / Suggestion

Play after about 30-40secs, playback may stops and back to search result screen. Sometimes I got an error Problem playing last item: 'charmap' codec can't encode characters in position 12-24: character maps to <undefined>

image

Your Environment

I met this problem with using Stable version fron pipx. I tried latest version but same problem has occured either.

yewtube version    : 2.8.2
yt_dlp version     : 2022.03.08.2
Python version     : 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]
Processor          : AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD
Machine type       : AMD64
Architecture       : 64bit, WindowsPE
Platform           : Windows-10-10.0.22000-SP0
sys.stdout.enc     : utf-8
default enc        : utf-8
Config dir         : C:\Users\sweshelo\AppData\Roaming\mps-youtube
dbus               : None
glib               : False
iamtalhaasghar commented 2 years ago

Please run set command inside yewtube and paste output here.

sweshelo commented 2 years ago

It came out there:

  Key                 Value
  order             : relevance
  user_order        :
  max_res           : 2160p
  player            : mplayer.exe
  playerargs        :
  encoder           : 0 [None]
  notifier          :
  checkupdate       : True
  show_player_keys  : True
  fullscreen        : False
  show_status       : True
  always_repeat     : False
  columns           :
  ddir              : C:\Users\sweshelo\Downloads\mps
  overwrite         : True
  show_video        : False
  search_music      : True
  window_pos        :
  window_size       :
  download_command  :
  lookup_metadata   : True
  lastfm_username   :
  lastfm_password   :
  lastfm_api_key    :
  lastfm_api_secret :
  audio_format      : auto
  video_format      : auto
  pages             : 3
  autoplay          : False
  set_title         : True
  mpris             : False
  show_qrcode       : False
  history           : True
  input_history     : True
  vlc_dummy_interface : False

Enter set <key> <value> to change
Enter set all default to reset all
>
sweshelo commented 2 years ago

I will also mention the mplayer version as it may help. I installed mplayer via Windows package manager scoop that like brew.

MPlayer Redxii-SVN-r38151-6.2.0 (x86_64) (C) 2000-2019 MPlayer Team
Using FFmpeg N-94664-g0821bc4eee (2019-08-26 16:09:11 -0700)
Compiled on 2019-08-28 01:29:43 EDT (rev. 1)
CPU vendor name: AuthenticAMD  max cpuid level: 13
CPU: AMD Ryzen 7 5800X 8-Core Processor              (Family: 25, Model: 1, Stepping: 0)
extended cpuid-level: 33
extended cache-info: 33579328
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'C:/Users/sweshelo/scoop/apps/mplayer/current/mplayer/codecs.conf'
Reading optional codecs config file C:/Users/sweshelo/scoop/apps/mplayer/current/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using SSE2 Optimized OnScreenDisplay
get_path('fonts') -> 'C:/Users/sweshelo/scoop/apps/mplayer/current/mplayer/fonts'
rachmadaniHaryono commented 2 years ago

i can confirm this only for mplayer

for example yt playurl https://www.youtube.com/watch\?v\=VmuuzwL6IXA will stop around 45% if played without any input

0VmuuzwL6IXA; webm audio only; 0 Mb; 00:01:03 [45%]  [=========================================================>                                                                     ] vol: 100%

if i fast forward little bit it will stop further than that

iamtalhaasghar commented 2 years ago

I think its a mplayer specific issue. A similar issue was reported which can be seen here https://github.com/mps-youtube/mps-youtube/issues/543

Use mpv for now.

sweshelo commented 2 years ago

As you say, it may a mplayer specific issue. Used mpv and works fine. Thank you very much!