asciidisco / plugin.video.netflix

Inputstream based Netflix plugin for Kodi
MIT License
1.24k stars 226 forks source link

video going into slowmotion #698

Open daggs1-zz opened 5 years ago

daggs1-zz commented 5 years ago

I'm submitting a ...

General infomration

os is LibreELEC (official): 9.0.2 (Odroid_C2.arm), addon version is 0.14.6, I have elementum running in the background

Prerequisites

Description

in the last week or too, I'm unable to watch anything on netflix, I have a 1GB internet connection, when I try to play something, the sound runs ok but the image is slow, that slow that it goes out of sync with the audio.

Steps to Reproduce

  1. install the os above
  2. install netflix from the repo
  3. not sure if it is related but install elementum
  4. try to play any show. I've tried umbrella academy

Expected behavior: video and audio are in sync and the speed is as it should

Actual behavior: audio plays as should, video plays slower, causing them to do out of sync.

Context (Environment)

os is LibreELEC (official): 9.0.2 (Odroid_C2.arm) on odroidc2

Installation

Operating System

Additional informatin on the environment

os is LibreELEC (official): 9.0.2 (Odroid_C2.arm) on odroidc2

Debug log

attached, was to large to upload kodi.debug.xz.gz

Other information

none

MrSirMacke commented 5 years ago

Same here. Video will start lagging and video and audio is out of sync. Sometimes it corrects itself but it takes several minutes. If I pause when this is happening, the video continues for 2-3 seconds while audio stops.

daggs1-zz commented 5 years ago

Same here. Video will start lagging and video and audio is out of sync. Sometimes it corrects itself but it takes several minutes. If I pause when this is happening, the video continues for 2-3 seconds while audio stops.

can you pinpoint when it started?

MrSirMacke commented 5 years ago

No sorry, have not been using Netflix for a while.Den 13 juli 2019 16:25 skrev Dagg Stompler notifications@github.com: Same here. Video will start lagging and video and audio is out of sync. Sometimes it corrects itself but it takes several minutes. If I pause when this is happening, the video continues for 2-3 seconds while audio stops.

can you pinpoint when it started?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

jakermx commented 5 years ago

Somehow TVH PVR Client is being called to open all channels when kodi starts, there is an update/rescan process being made by TVH in order to update all muxes, so just to be sure where the issue is, could you please disable THS PVR Cliente, I would said all PVR clients, disable EPG wrapppers , processors and post processors engines , and finally disable TVH, then reboot and try again if it fails please share the new log.

The issue you are sharing point to VidoePlayer/AudioiPlayer busy to receve new calls, so when you try to play a movie, it hangs, because, it is not able to close all the Queue so you are sharing your resources with TVH, THS, Kode , Skins, and so.... so if you check CPU using TOP then pressing 1, you will see high CPUusage or no available memory.

daggs1-zz commented 5 years ago

Greetings,

 

will disabling the tvh addon in kodi will be enough? should I disable elementum too?

 

Sent: Saturday, July 13, 2019 at 10:56 PM From: "Jaker MX" notifications@github.com To: "asciidisco/plugin.video.netflix" plugin.video.netflix@noreply.github.com Cc: "Dagg Stompler" daggs@gmx.com, Author author@noreply.github.com Subject: Re: [asciidisco/plugin.video.netflix] video going into slowmotion (#698)

Somehow TVH PVR Client is being called to open all channels when kodi starts, there is an update/rescan process being made by TVH in order to update all muxes, so just to be sure where the issue is, could you please disable THS PVR Cliente, I would said all PVR clients, disable EPG wrapppers , processors and post processors engines , and finally disable TVH, then reboot and try again if it fails please share the new log.

The issue you are sharing point to VidoePlayer/AudioiPlayer busy to receve new calls, so when you try to play a movie, it hangs, because, it is not able to close all the Queue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jakermx commented 5 years ago

Greetings,   will disabling the tvh addon in kodi will be enough? should I disable elementum too?   Sent: Saturday, July 13, 2019 at 10:56 PM From: "Jaker MX" notifications@github.com To: "asciidisco/plugin.video.netflix" plugin.video.netflix@noreply.github.com Cc: "Dagg Stompler" daggs@gmx.com, Author author@noreply.github.com Subject: Re: [asciidisco/plugin.video.netflix] video going into slowmotion (#698) Somehow TVH PVR Client is being called to open all channels when kodi starts, there is an update/rescan process being made by TVH in order to update all muxes, so just to be sure where the issue is, could you please disable THS PVR Cliente, I would said all PVR clients, disable EPG wrapppers , processors and post processors engines , and finally disable TVH, then reboot and try again if it fails please share the new log. The issue you are sharing point to VidoePlayer/AudioiPlayer busy to receve new calls, so when you try to play a movie, it hangs, because, it is not able to close all the Queue. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Just from Kodi

daggs1-zz commented 5 years ago

here. same behavior. kodi.log.gz

jakermx commented 5 years ago

How do you have set your video and audi settings in player settings?

can you try seting hdmi as audio device instead of ALSA or PULSEAUDIO... and do NOT use syncaudio video, it is being made by inputstream stream control. I also, set inputstream to lower resolutions lets beginin 480 and then increase.... and then share your findings please.

daggs1-zz commented 5 years ago

Greenting,

How do you have set your video and audi settings in player settings?

can you try seting hdmi as audio device instead of ALSA or PULSEAUDIO... and do NOT use syncaudio video, it is being made by inputstream stream control. I also, set inputstream to lower resolutions lets beginin 480 and then increase.... and then share your findings please.

this is libreelec, I don't have much option... I see pulseaudio is enabled. I've never got resolution above 480p while it is set to 720p the strange issue is that I never get this behavior is I play robo auto poly for my kids. everything else results with the same issue.

jakermx commented 5 years ago

I understand, but please try to change your default audio device, since it is failing to initialize.. for testing prupurses try hdmi or analog, dont use ALSA (It is not configured correctly) or PulseAudio (Bluetooth support)... The scenario you are talking about...is pretty usual, I have never bla bla bla....but, we are on new kodi version, new libraries, new addon dependencies, etc.... if you want to solve this, please help us to help you, so disable audio / video sync, set another audio device, and set you IPA RESOLUTION/SECURE TO 480 and then increase... I am pretty sure that it is sound device relaed issue....because, video looks that is starting fine...well, I prefger another playre than paplayer, but if you dont have MMAL option available, it is what it is And the mos important thing, ,please share your complete logs... Pulse Audio es enabled becuase Librespot or you have a bluetooth audio device paired...but you have your player set to work with 6 channels,thing that is not possible by now on LE/PulseAudio.

daggs1-zz commented 5 years ago

found the issue, as it says in the docs, currently with my hw (odroidc2), it is impossible to play fhd, the adaptive input config was set to max. after changing it to 720p. the stream is working well. I'll test with the other problematic streams and will mark as solved if all works ok. I wonder why it didn't pop up sooner, also if I select manual stream, I don't get any list, it just streams away.

will update asap.

jakermx commented 5 years ago

cool, remeber you are running 32 bit kodi, if you want better performance I suggest to use a 64 bit linux distro that support your device,since widevine is a softwae based encrypted codec, as more resources it has better performance you will get...

jakermx commented 5 years ago

also, ALSA and PULSEAUDIO does not have the cupport as native HW drivers,So use hwbased insted of them.

daggs1-zz commented 5 years ago

cool, remeber you are running 32 bit kodi, if you want better performance I suggest to use a 64 bit linux distro that support your device,since widevine is a softwae based encrypted codec, as more resources it has better performance you will get...

that up to the guys at LE to do, I don't have the time to do it. I can setup an img using buildroot but that requires alot of planing, I don't have the time for it...

daggs1-zz commented 5 years ago

also, ALSA and PULSEAUDIO does not have the cupport as native HW drivers,So use hwbased insted of them.

hwbased?

MilhouseVH commented 5 years ago

Unless this has changed recently, there isn't a 64-bit ARM Widevine library available - there's only 32-bit ARM or 64-bit x86_64. It's one of the main reasons why LibreELEC continues to use 32-bit userland on ARM.

MrSirMacke commented 5 years ago

Still having the issue here. Stranger Things 3 is unwatchable. 3-5 seconds out of sync. I do not have any PVR enabled. I only have ALSA and PULSE in the options.

Running on a Intel Nuc, LibreElec and Kodi 19.

daggs1-zz commented 5 years ago

same here, every few minutes it goes out of sync, the log shows this: 2019-07-22 21:43:33.581 T:2743509872 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2019-07-22 21:43:37.719 T:3600532336 WARNING: Previous line repeats 8 times.
2019-07-22 21:43:37.719 T:3600532336 NOTICE: [plugin.video.elementum] ^[[36mDEBU main ... Notification ^[[0mGot notification from xbmc/Player.OnResume: {"item":{"episode":1,"season":1, 2019-07-22 21:44:27.749 T:4088781200 NOTICE: NFS is idle. Closing the remaining connections.
2019-07-22 21:50:03.719 T:2591634288 WARNING: Repository add-on repository.elementum uses plain HTTP for add-on downloads in path http://127.0.0.1:65220/repository/elgatito/ - this is insecure and w 2019-07-22 21:50:14.380 T:3600532336 WARNING: Previous line repeats 4 times.
2019-07-22 21:50:14.380 T:3600532336 NOTICE: [plugin.video.elementum] ^[[36mDEBU main ... Notification ^[[0mGot notification from xbmc/Player.OnPause: {"item":{"episode":1,"season":1," 2019-07-22 21:50:18.397 T:2743509872 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2019-07-22 21:50:30.104 T:3600532336 WARNING: Previous line repeats 22 times.
2019-07-22 21:50:30.104 T:3600532336 NOTICE: [plugin.video.elementum] ^[[36mDEBU main ... Notification ^[[0mGot notification from xbmc/Player.OnResume: {"item":{"episode":1,"season":1, 2019-07-22 21:52:08.214 T:3600532336 NOTICE: [plugin.video.elementum] ^[[36mDEBU main ... Notification ^[[0mGot notification from xbmc/Player.OnPause: {"item":{"episode":1,"season":1," 2019-07-22 21:52:08.749 T:2743509872 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer

pressing pause results with the video catching up with the sound and the pause kicks in. elementum and hts are enabled.

daggs1-zz commented 4 years ago

I had to drop the quality to sd, 720p didn't worked, the audio and video are a bit off-sync but it is tolerable. still I'd be happy to have at least 720p working.