jdf76 / plugin.video.youtube

Kodi's Youtube Plugin -- Please Check the forums before submitting an issue
https://ytaddon.page.link/forum
391 stars 117 forks source link

YT sometimes loses audio (kodi.log) #774

Open drrak opened 4 years ago

drrak commented 4 years ago

Translator: Today I had two such cases. I will add logs next time.

RPi4, Kodi 18.6, YT 6.7.0, LibreELEC 9.2.1

danlun commented 4 years ago

Intermediate sound for trailers or anything in the add on for CoreElec 9.2.1 which is the latest version avail. All other sounds in movies etc works with no problems.

drrak commented 4 years ago

Today at 13:11 YT lost audio again. Kodi.log:

2020-04-17 13:06:57.092 T:3011965536   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
2020-04-17 13:06:57.475 T:2863571824  NOTICE: [plugin.video.youtube] Running: YouTube (6.7.0) on Leia (Kodi-18.6) with Python 2.7.16
                                                Path: /channel/UC0M0rxSz3IF0CsSour1iWmw/playlist/PLbQ-gSLYQEc4mnWapHJd0K-sPvLcEwOSS/
                                                Params: {}
2020-04-17 13:07:04.093 T:2553684848 WARNING: Repository add-on repository.phantom uses plain HTTP for add-on downloads in path http://phantom-kodi.cba.pl/repo/prod/ - this is insecure and will make your Kodi installation vulnerable to attacks if enabled!
2020-04-17 13:07:05.343 T:3011965536 WARNING: Previous line repeats 2 times.
2020-04-17 13:07:05.343 T:3011965536   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
2020-04-17 13:07:05.373 T:2863571824  NOTICE: [plugin.video.youtube] Running: YouTube (6.7.0) on Leia (Kodi-18.6) with Python 2.7.16
                                                Path: /
                                                Params: {}
2020-04-17 13:07:06.932 T:2863571824  NOTICE: [plugin.video.youtube] Running: YouTube (6.7.0) on Leia (Kodi-18.6) with Python 2.7.16
                                                Path: /kodion/search/list/
                                                Params: {}
2020-04-17 13:07:12.169 T:2863571824  NOTICE: [plugin.video.youtube] Running: YouTube (6.7.0) on Leia (Kodi-18.6) with Python 2.7.16
                                                Path: /kodion/search/query/
                                                Params: {'q': 'super metroid lets play'}
2020-04-17 13:07:20.106 T:2863571824  NOTICE: [plugin.video.youtube] Running: YouTube (6.7.0) on Leia (Kodi-18.6) with Python 2.7.16
                                                Path: /play/
                                                Params: {'video_id': 'yB317FOcU0Y'}
2020-04-17 13:07:22.390 T:3011965536  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.youtube/play/?video_id=yB317FOcU0Y
2020-04-17 13:07:22.390 T:2527060848  NOTICE: Creating InputStream
2020-04-17 13:07:22.424 T:2527060848  NOTICE: Creating Demuxer
2020-04-17 13:07:22.425 T:2527060848  NOTICE: Opening stream: 1001 source: 256
2020-04-17 13:07:22.754 T:2527060848  NOTICE: Creating video codec with codec id: 27
2020-04-17 13:07:22.766 T:2527060848  NOTICE: Creating video thread
2020-04-17 13:07:22.766 T:2455749488  NOTICE: running thread: video_thread
2020-04-17 13:07:22.766 T:2527060848  NOTICE: Opening stream: 1002 source: 256
2020-04-17 13:07:23.220 T:2527060848  NOTICE: Finding audio codec for: 86018
2020-04-17 13:07:23.225 T:2527060848  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-04-17 13:07:23.226 T:2527060848  NOTICE: Creating audio thread
2020-04-17 13:07:23.226 T:2430571376  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-04-17 13:07:23.603 T:2430571376  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-04-17 13:07:23.603 T:2430571376  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
2020-04-17 13:07:24.126 T:2455749488 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2020-04-17 13:07:40.703 T:2430571376 WARNING: Previous line repeats 6 times.
2020-04-17 13:07:40.703 T:2430571376  NOTICE: CActiveAEStream::AddData - messy timestamps, increasing interval for measuring average error to 6000 ms
2020-04-17 13:07:41.242 T:2455749488 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2020-04-17 13:11:12.875 T:2430571376 WARNING: Previous line repeats 4 times.
2020-04-17 13:11:12.876 T:2430571376  NOTICE: CVideoPlayerAudio::Process - stream stalled
2020-04-17 13:11:15.095 T:2438964080   ERROR: CCurlFile::FillBuffer - Failed: Couldn't resolve host name(6)
2020-04-17 13:11:15.095 T:2438964080   ERROR: CCurlFile::Open failed with code 0 for https://r2---sn-4g5e6nsz.googlevideo.com/videoplayback?expire=1587143240&ei=6I2ZXviAE4fTyQWXvphA&ip=89.64.53.114&id=o-AHUzGYywk87v8HsaDzE3glC6V5qw1TMsBJIlDks-wWoZ&itag=140&source=youtube&requiressl=yes&mh=bH&mm=31,29&mn=sn-4g5e6nsz,sn-f5f7lne6&ms=au,rdu&mv=m&mvi=1&pl=13&initcwndbps=1903750&vprv=1&mime=audio/mp4&gir=yes&clen=187454493&dur=11802.609&lmt=1537281317526634&mt=1587121498&fvip=2&keepalive=yes&c=WEB&sparams=expire,ei,ip,id,itag,source,requiressl,vprv,mime,gir,clen,dur,lmt&sig=AJpPlLswRAIgDGwfquo4U9Q4zo_d0T_vYJkDB0dRLGZpavKnN8ESdAECICdsrSN_zdvWyvQkPM13gewKtAh2mAYSao8_nVVjgmXd&lsparams=mh,mm,mn,ms,mv,mvi,pl,initcwndbps&lsig=ALrAebAwRQIhAMQfhncvoWG_e6cw3fecH-DBYs4nO2hdA6iiWiIsrdyUAiB2SjHzstwSqKWUHVgoIyLtPCppbyED3XauNJi-rP4h3g==:
2020-04-17 13:11:15.227 T:2430571376  NOTICE: CVideoPlayerAudio::Process - stream stalled
2020-04-17 13:11:35.171 T:3011965536  NOTICE: Previous line repeats 1 times.
2020-04-17 13:11:35.171 T:3011965536  NOTICE: CVideoPlayer::CloseFile()
2020-04-17 13:11:35.176 T:2527060848  NOTICE: CVideoPlayer::OnExit()
2020-04-17 13:11:35.177 T:2527060848  NOTICE: Closing stream player 1
2020-04-17 13:11:35.177 T:2527060848  NOTICE: Waiting for audio thread to exit
2020-04-17 13:11:35.179 T:2430571376  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-04-17 13:11:35.179 T:2527060848  NOTICE: Closing audio device
2020-04-17 13:11:35.179 T:2527060848  NOTICE: Deleting audio codec
2020-04-17 13:11:35.180 T:2527060848  NOTICE: Closing stream player 2
2020-04-17 13:11:35.180 T:2527060848  NOTICE: waiting for video thread to exit
2020-04-17 13:11:35.221 T:2455749488  NOTICE: thread end: video_thread
2020-04-17 13:11:35.222 T:2527060848  NOTICE: deleting video codec
2020-04-17 13:11:35.245 T:3011965536  NOTICE: VideoPlayer: waiting for threads to exit
2020-04-17 13:11:35.245 T:3011965536  NOTICE: VideoPlayer: finished waiting
2020-04-17 13:11:35.245 T:3011965536  NOTICE: CVideoPlayer::CloseFile()
2020-04-17 13:11:35.245 T:3011965536  NOTICE: VideoPlayer: waiting for threads to exit
2020-04-17 13:11:35.246 T:3011965536  NOTICE: VideoPlayer: finished waiting
2020-04-17 13:11:35.320 T:3011965536   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
2020-04-17 13:11:35.703 T:2863571824  NOTICE: [plugin.video.youtube] Running: YouTube (6.7.0) on Leia (Kodi-18.6) with Python 2.7.16
                                                Path: /kodion/search/query/
                                                Params: {'q': 'super metroid lets play'}
2020-04-17 13:11:42.699 T:2455749488 WARNING: Repository add-on repository.phantom uses plain HTTP for add-on downloads in path http://phantom-kodi.cba.pl/repo/prod/ - this is insecure and will make your Kodi installation vulnerable to attacks if enabled!
danlun commented 4 years ago

UPDATE SOLVED I found the “error” and resolution by more reading/testing. The “error” maybe can be fixed? Anyhow, solved by: go to (Coreelec) Settings/System/Display and check that Resolution = 19201080p (can probably be others too). Stutter sound problem gone! My Resolution was changed by me to 40962160p around the time the fault started. I didn’t do a connection between resolution and sound in YouTube add on.
……… <> Coming back to this again.

I have a Odroid N2 with CoreElec. Lately, with no other sound problems at all, the YouTube add-on get stutter sound on everything. Both running the add-on as is or, as I use it, watchimg trailers in the CoreElec UI. I have fixed the API keys problem, upgraded to latest xxxx.2 version of CoreElec and youTube add-on 6.7. All other sound (non YouTube) works perfeckt from 2.0, 5.1, DTS all to 7.1 Atmos.

Anyone that can guess why the sound in the add-on suddenly only works 2 sec, no sound, 2 sec, no sound, 2 sec, ..... No sound is like 5-10 sec each time.

Slomo17 commented 2 years ago

I have the same problem with coreelec 19.2 on odroid N2, however only with a few videos, not everyone, and changing the resolution did not solved the problem for me.