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.07k stars 645 forks source link

Videos only play when show_video is enabled #1118

Closed marc1uk closed 1 year ago

marc1uk commented 3 years ago

mpsyt fails to play some videos, unless show_video is enabled.

Issue / Suggestion

when run with mpsyt -d, playurl https://www.youtube.com/watch?v=HbjWZIezTVs returns:

    Carpenter Brut   Leather Teeth jam/cover [03:29]
Playing: https://manifest.googlevideo.com/api/manifest/dash/expire/1600322070/ei/tqViX-b4K62vxN8P5J-w-Ao/ip/86.8.160.73/id/1db8d66487b34d5b/source/youtube/requiressl/yes/playback_host/r3---sn-8pgbpohxqp5-aig6.googlevideo.com/mh/W7/mm/31%2C26/mn/sn-8pgbpohxqp5-aig6%2Csn-5hne6nsr/ms/au%2Conr/mv/m/mvi/3/pcm2cms/yes/pl/23/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/2023750/vprv/1/mt/1600300351/fvip/3/keepalive/yes/fexp/23915655/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRAIgZeN4J7A446fsXJQgXhnrh0jxTtcyAXVh5eSpdSclymYCIFgwP7vzHmGKpO4wmOmra5ftx-u0sbCUukhgRdh9thEr/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRAIgbyl5TaJN7PEHL2vARTYtPSez_TI-nSdfCO-fxkWYYpkCIAyCetdz1nfv4B5-4eXAKu_IZiVtKDIDO-GXcJv62yxH
Failed to recognize file format.

Exiting... (Errors when loading file)

whereas after calling set show_video 1 the result changes to:

    Carpenter Brut   Leather Teeth jam/cover [03:29]
Playing: https://r3---sn-8pgbpohxqp5-aig6.googlevideo.com/videoplayback?expire=1600322070&ei=tqViX-b4K62vxN8P5J-w-Ao&ip=86.8.160.73&id=o-AE6xS7eziAv93rdMrAjhgBjPVUyfSdy3fWpHTozqcl8c&itag=18&source=youtube&requiressl=yes&mh=W7&mm=31%2C26&mn=sn-8pgbpohxqp5-aig6%2Csn-5hne6nsr&ms=au%2Conr&mv=m&mvi=3&pcm2cms=yes&pl=23&initcwndbps=2023750&vprv=1&mime=video%2Fmp4&gir=yes&clen=15144853&ratebypass=yes&dur=208.584&lmt=1519890957619322&mt=1600300351&fvip=3&fexp=23915655&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgalmFzMmQf0k6WPbumC17zntpK69JKsdBA_e_f4wGWpsCIQCgtz_2e1xITspQMnsqqLvD3t-u9mpFHJBE16P2NQWHnQ%3D%3D&sig=AOq0QJ8wRQIgRAj4eOku0xO2kZH8meP74znogaG0QYV-3MH0DPX_g1gCIQCafius3uWKe66I4MX10Jif9uLITz-xMXeYCm6iON45uw==
 (+) Video --vid=1 (*) (h264 640x360 29.970fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
[ffmpeg/video] h264: No support for codec h264 profile 578.
VO: [gpu] 640x360 yuv420p
 HbjWZIezTVs; mp4 640x360; 14 Mb; 00:00:04 [2%]   [=>

and the video begins to play as expected.

Your Environment

mpsyt version      : 0.2.8
notes           : released 17 February 2018
pafy version       : 0.5.5 (youtube-dl backend)
youtube-dl version : 2020.09.14
Python version     : 3.5.3 (default, Jul  9 2020, 13:00:10) 
[GCC 6.3.0 20170516]
Processor          : 
Machine type       : x86_64
Architecture       : 64bit, 
Platform           : Linux-4.9.0-12-amd64-x86_64-with-debian-9.12
sys.stdout.enc     : UTF-8
default enc        : utf-8
Config dir         : /home/marc/.config/mps-youtube
env:TERM           : xterm-256color
env:SHELL          : /bin/bash
env:LANG           : en_GB.utf8
env:LANGUAGE       : en_GB:en
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
mpv 0.28.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on Tue Jan 30 08:41:16 GMT 2018
ffmpeg library versions:
   libavutil       56.7.100
   libavcodec      58.9.100
   libavformat     58.7.100
   libswscale      5.0.101
   libavfilter     7.11.101
   libswresample   3.0.101
ffmpeg version: 3.4.git
jingofett commented 3 years ago

Have the same issue.

Your Environment

mpsyt version      : 0.2.8
   notes           : released 17 February 2018
pafy version       : 0.5.5 (youtube-dl backend)
youtube-dl version : 2020.12.22
Python version     : 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Processor          : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
Machine type       : AMD64
Architecture       : 64bit, WindowsPE
Platform           : Windows-10-10.0.17763-SP0
sys.stdout.enc     : utf-8
default enc        : utf-8
Config dir         : C:\Users\Admin\AppData\Roaming\mps-youtube
env:TERM           : cygwin
env:LANG           : en_US.UTF-8

Issue

c:\python39\lib\subprocess.py:942: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stderr = io.open(errread, 'rb', bufsize)
Playing: https://manifest.googlevideo.com/api/manifest/dash/expire/1608623584/ei/gFHhX-XCMKiI2LYPxtGTuAE/ip/24.188.149.66/id/f583b9aeebc54825/source/youtube/requiressl/yes/playback_host/r8---sn-j5caxoxu-pn2z.googlevideo.com/mh/Gw/mm/31%2C26/mn/sn-j5caxoxu-pn2z%2Csn-p5qlsnd6/ms/au%2Conr/mv/m/mvi/8/pcm2cms/yes/pl/21/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1580000/vprv/1/mt/1608601476/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAOl5x3bYewYv4G0NWvAFuLrkZUOW1rsu3N3zjHkVmokqAiEA_o_Vr1iHDRrm1DzxMpjNyMSvOwgNAe6mTBzYP9AbGs4%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIhALlYAV-tnVxTO8kAgAN_n_gSKaNmwLAihrRUjhQ__NWKAiAgR9V49fIl-auDoyxlUPPJER5fmoS1qs_s2QwY3fc-hQ%3D%3D Failed to recognize file format.

Exiting... (Errors when loading file)
Playing: https://manifest.googlevideo.com/api/manifest/dash/expire/1608623584/ei/gFHhX-XCMKiI2LYPxtGTuAE/ip/24.188.149.66/id/f583b9aeebc54825/source/youtube/requiressl/yes/playback_host/r8---sn-j5caxoxu-pn2z.googlevideo.com/mh/Gw/mm/31%2C26/mn/sn-j5caxoxu-pn2z%2Csn-p5qlsnd6/ms/au%2Conr/mv/m/mvi/8/pcm2cms/yes/pl/21/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1580000/vprv/1/mt/1608601476/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAOl5x3bYewYv4G0NWvAFuLrkZUOW1rsu3N3zjHkVmokqAiEA_o_Vr1iHDRrm1DzxMpjNyMSvOwgNAe6mTBzYP9AbGs4%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIhALlYAV-tnVxTO8kAgAN_n_gSKaNmwLAihrRUjhQ__NWKAiAgR9V49fIl-auDoyxlUPPJER5fmoS1qs_s2QwY3fc-hQ%3D%3D Failed to recognize file format.

Exiting... (Errors when loading file)
Playing: https://manifest.googlevideo.com/api/manifest/dash/expire/1608623584/ei/gFHhX-XCMKiI2LYPxtGTuAE/ip/24.188.149.66/id/f583b9aeebc54825/source/youtube/requiressl/yes/playback_host/r8---sn-j5caxoxu-pn2z.googlevideo.com/mh/Gw/mm/31%2C26/mn/sn-j5caxoxu-pn2z%2Csn-p5qlsnd6/ms/au%2Conr/mv/m/mvi/8/pcm2cms/yes/pl/21/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1580000/vprv/1/mt/1608601476/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAOl5x3bYewYv4G0NWvAFuLrkZUOW1rsu3N3zjHkVmokqAiEA_o_Vr1iHDRrm1DzxMpjNyMSvOwgNAe6mTBzYP9AbGs4%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIhALlYAV-tnVxTO8kAgAN_n_gSKaNmwLAihrRUjhQ__NWKAiAgR9V49fIl-auDoyxlUPPJER5fmoS1qs_s2QwY3fc-hQ%3D%3D Failed to recognize file format.

Exiting... (Errors when loading file)
Playing: https://manifest.googlevideo.com/api/manifest/dash/expire/1608623584/ei/gFHhX-XCMKiI2LYPxtGTuAE/ip/24.188.149.66/id/f583b9aeebc54825/source/youtube/requiressl/yes/playback_host/r8---sn-j5caxoxu-pn2z.googlevideo.com/mh/Gw/mm/31%2C26/mn/sn-j5caxoxu-pn2z%2Csn-p5qlsnd6/ms/au%2Conr/mv/m/mvi/8/pcm2cms/yes/pl/21/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1580000/vprv/1/mt/1608601476/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAOl5x3bYewYv4G0NWvAFuLrkZUOW1rsu3N3zjHkVmokqAiEA_o_Vr1iHDRrm1DzxMpjNyMSvOwgNAe6mTBzYP9AbGs4%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIhALlYAV-tnVxTO8kAgAN_n_gSKaNmwLAihrRUjhQ__NWKAiAgR9V49fIl-auDoyxlUPPJER5fmoS1qs_s2QwY3fc-hQ%3D%3D Failed to recognize file format.

Exiting... (Errors when loading file)

But switching setting the show_video value to 1 lets the video play.

iamtalhaasghar commented 1 year ago

working fine with yewtube version : 2.9.0