Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable Inputstream Adaptive prompt #1058

Closed
blahblahblug opened this issue May 29, 2023 · 20 comments
Closed

disable Inputstream Adaptive prompt #1058

blahblahblug opened this issue May 29, 2023 · 20 comments

Comments

@blahblahblug
Copy link

Is there any way to disable the prompt to install Inputstream Adaptive? Cumination now prompts to install Inputstream Adaptive when playing a video, it didn't before today. I tried it but found the video freezes after awhile with no way to back out, Forcing me to restart kodi. I disabled Inputstream Adaptive in 'system settings>addons>my addons>videoplayer inputstream' but I get the prompt to install it every time I play a video.

cumination v1.1.77
kodi v19.3
android 9

@ErosVece
Copy link
Collaborator

ErosVece commented May 29, 2023

Every time on every video on every site? What site are you trying?

The dialog to install Inputstream Adaptive is from Inputstreamhelper.
Some sites need Inputstream Adaptive, and not every user knows how to install it, hence that it checks if it's installed.

It's possible to add in the settings an option to bypass IA for m3u8 streams.
But you have an outdated Kodi.
In 20.1 I haven't noticed any problems with playing m3u8 files...it even improved some streams.
So that would be a fix, until something else comes up that doesn't work properly because of an outdated Kodi.

Also, could you make a debug log when it happens that it hangs?

@ErosVece
Copy link
Collaborator

ErosVece commented May 29, 2023

I've added the skip Inputstream Adaptive option: 03e01ec

@hehewtf
Copy link

hehewtf commented May 29, 2023

Every time on every video on every site? What site are you trying?

The dialog to install Inputstream Adaptive is from Inputstreamhelper. Some sites need Inputstream Adaptive, and not every user knows how to install it, hence that it checks if it's installed.

It's possible to add in the settings an option to bypass IA for m3u8 streams. But you have an outdated Kodi. In 20.1 I haven't noticed any problems with playing m3u8 files...it even improved some streams. So that would be a fix, until something else comes up that doesn't work properly because of an outdated Kodi.

Also, could you make a debug log when it happens that it hangs?

I also experience this issue on a ShieldTV running kodi 20.1

inputstream adaptive is a lot snappier so I'll try to help debug if I can

on camsites sometimes it just drops randomly and with specific models it happens quicker, like the next segment just doesn't get into buffer or something
and sometimes when this happens it doesn't auto close video but hangs instead and only way out is to force close kodi, I experienced similar "hang" issues when accessing a site without disabling http2 previously

maybe it's SSL related and not playing well with AndroidTV or something?

log from an MFC model where inputstream adaptive always fails, works fine without inputstream adaptive:
https://paste.kodi.tv/ecepukatap

@ErosVece
Copy link
Collaborator

I just tried MFC here on Kodi 20.1 on my laptop, and it works. Also on my Samsung Galaxy S23 Ultra running 20.1, it works.

I notice that it picks a Nvidia codec, maybe that is the problem!?
Yours:

2023-05-29 21:58:13.612 T:14206    info <general>: Creating video codec with codec id: 27
2023-05-29 21:58:13.612 T:14206    info <general>: CBitstreamConverter::Open Invalid avcC
2023-05-29 21:58:13.612 T:14206    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.mp2.decoder
2023-05-29 21:58:13.620 T:14206    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.wma.decoder
2023-05-29 21:58:13.620 T:14206    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h264.decode
2023-05-29 21:58:13.688 T:14206    info <general>: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.Nvidia.h264.decode
2023-05-29 21:58:13.688 T:14206    info <general>: Creating video thread

And the same with me, laptop:

2023-05-29 23:00:26.641 T:7056     info <general>: Creating video codec with codec id: 27
2023-05-29 23:00:26.641 T:7056     info <general>: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2023-05-29 23:00:26.641 T:7056     info <general>: Creating video thread

And mobile:

2023-05-29 23:06:11.171 T:25971    info <general>: Creating video codec with codec id: 27
2023-05-29 23:06:11.171 T:25971    info <general>: CBitstreamConverter::Open Invalid avcC
2023-05-29 23:06:11.171 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.amrnb.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.amrwb.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.ape.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.flac.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.ima.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.mp3.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.sec.vc1.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.dolby.ac4.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.dolby.ac4.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.dolby.eac3.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.aac.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.amrnb.decoder
2023-05-29 23:06:11.172 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.amrwb.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.flac.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.g711.alaw.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.g711.mlaw.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.gsm.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.mp3.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.opus.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.raw.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.vorbis.decoder
2023-05-29 23:06:11.173 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.qti.avc.decoder
2023-05-29 23:06:11.323 T:25971    info <general>: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec c2.qti.avc.decoder
2023-05-29 23:06:11.323 T:25971    info <general>: Creating video thread

@hehewtf
Copy link

hehewtf commented May 29, 2023

installed kodi on my phone and went to the model where it always fails, indeed fails again

2023-05-29 23:19:49.939 T:14710 error : [script.module.inputstreamhelper] inputstream.adaptive is not installed.
2023-05-29 23:19:54.103 T:11666 info : CAddonMgr::FindAddon: inputstream.adaptive v20.3.8 installed
2023-05-29 23:19:54.209 T:11666 info : VideoPlayer::OpenFile: https://video983.myfreecams.com/NxServer/ngrp:mfc_a_128474719.f4v_mobile/playlist.m3u8?nc=0.5863279394620062
2023-05-29 23:19:54.209 T:14767 warning : CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
2023-05-29 23:19:54.210 T:14767 info : Creating InputStream
2023-05-29 23:19:54.219 T:14767 info : AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 2316x1080, max allowed: 2316x1080, Adjust refresh rate: 0
2023-05-29 23:19:54.614 T:11666 info : VideoPlayer::OpenFile: https://video983.myfreecams.com/NxServer/ngrp:mfc_a_128474719.f4v_mobile/playlist.m3u8?nc=0.5863279394620062
2023-05-29 23:19:54.720 T:14767 info : AddOnLog: inputstream.adaptive: Successfully parsed manifest file (Periods: 1, Streams in first period: 2, Type: live)
2023-05-29 23:19:54.724 T:14767 info : Creating Demuxer
2023-05-29 23:19:54.724 T:14767 info : Opening stream: 1001 source: 256
2023-05-29 23:19:55.455 T:14767 info : Creating video codec with codec id: 27
2023-05-29 23:19:55.456 T:14767 info : CBitstreamConverter::Open Invalid avcC
2023-05-29 23:19:55.456 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.dolby.ac3.decoder
2023-05-29 23:19:55.457 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.dolby.ac4.decoder
2023-05-29 23:19:55.457 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.dolby.eac3.decoder
2023-05-29 23:19:55.457 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.dolby.eac3-joc.decoder
2023-05-29 23:19:55.458 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.nokia.ozoaudio.decoder
2023-05-29 23:19:55.458 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.aac.decoder
2023-05-29 23:19:55.458 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.amrnb.decoder
2023-05-29 23:19:55.458 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.amrwb.decoder
2023-05-29 23:19:55.459 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.flac.decoder
2023-05-29 23:19:55.459 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.g711.alaw.decoder
2023-05-29 23:19:55.459 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.g711.mlaw.decoder
2023-05-29 23:19:55.459 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.mp3.decoder
2023-05-29 23:19:55.459 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.opus.decoder
2023-05-29 23:19:55.460 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.raw.decoder
2023-05-29 23:19:55.460 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.android.vorbis.decoder
2023-05-29 23:19:55.460 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.dolby.decoder.hevc
2023-05-29 23:19:55.460 T:14767 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:c2.qti.avc.decoder
2023-05-29 23:19:55.511 T:14767 info : CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec c2.qti.avc.decoder
2023-05-29 23:19:55.511 T:14767 info : Creating video thread
2023-05-29 23:19:55.512 T:14787 info : running thread: video_thread
2023-05-29 23:19:55.514 T:14767 info : Opening stream: 1002 source: 256
2023-05-29 23:19:55.514 T:14767 info : Finding audio codec for: 86018
2023-05-29 23:19:55.514 T:14767 info : CDVDAudioCodecAndroidMediaCodec: extradata required for aac decoder!
2023-05-29 23:19:55.515 T:14767 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2023-05-29 23:19:55.515 T:14767 info : OpenStream: Allowing max Out-Of-Sync Value of 10 ms
2023-05-29 23:19:55.515 T:14767 info : Creating audio thread
2023-05-29 23:19:55.516 T:14788 info : running thread: CVideoPlayerAudio::Process()
2023-05-29 23:19:55.570 T:14767 info : ADDON: Dll Destroyed - InputStream Adaptive
2023-05-29 23:19:55.571 T:14767 info : Creating InputStream
2023-05-29 23:19:55.579 T:14767 info : AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 2316x1080, max allowed: 2316x1080, Adjust refresh rate: 0
2023-05-29 23:19:55.701 T:14767 info : AddOnLog: inputstream.adaptive: Successfully parsed manifest file (Periods: 1, Streams in first period: 2, Type: live)
2023-05-29 23:19:55.704 T:14767 info : Creating Demuxer
2023-05-29 23:19:55.705 T:14767 info : Opening stream: 1001 source: 256
2023-05-29 23:19:56.090 T:14767 info : Creating video codec with codec id: 27
2023-05-29 23:19:56.090 T:14767 error : CDVDVideoCodecAndroidMediaCodec::Open - InstanceGuard locked
2023-05-29 23:19:56.090 T:14767 info : CVideoPlayerVideo::OpenStream - could not open video codec
2023-05-29 23:19:56.092 T:14767 info : Opening stream: 1002 source: 256
2023-05-29 23:19:56.092 T:14767 info : Finding audio codec for: 86018
2023-05-29 23:19:56.092 T:14767 info : CDVDAudioCodecAndroidMediaCodec: extradata required for aac decoder!
2023-05-29 23:19:56.092 T:14767 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2023-05-29 23:19:56.104 T:14788 info : CDVDAudioCodecAndroidMediaCodec: extradata required for aac decoder!
2023-05-29 23:19:56.104 T:14788 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2023-05-29 23:19:56.104 T:14788 info : Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
2023-05-29 23:19:56.116 T:11715 info : CActiveAESink::OpenSink - initialize sink
2023-05-29 23:19:56.120 T:11715 info : Trying to open: samplerate: 44100, channelMask: 12, encoding: 4
2023-05-29 23:19:56.121 T:11715 info : Minimum size we need for stream: 28288 Bytes
2023-05-29 23:19:56.121 T:11715 info : Audiotrack buffer params are: period time = 40.091 ms, period size = 14144 bytes, num periods = 4
2023-05-29 23:19:56.121 T:11715 info : Created Audiotrackbuffer with playing time of 160.362812 ms min buffer size: 56576 bytes
2023-05-29 23:19:56.140 T:11715 info : CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 56576 m_frames: 1768 m_frameSize: 8 channels: 2
2023-05-29 23:19:56.236 T:11666 info : Instancing CRendererMediaCodecSurface
2023-05-29 23:19:56.236 T:11666 info : CRendererMediaCodecSurface::Configure
2023-05-29 23:19:56.245 T:11666 info : Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
2023-05-29 23:19:56.782 T:14787 warning : OutputPicture - timeout waiting for buffer
2023-05-29 23:19:58.391 T:11666 info : Loading skin file: VideoOSD.xml, load type: KEEP_IN_MEMORY
2023-05-29 23:20:01.601 T:14788 info : CVideoPlayerAudio::Process - stream stalled
2023-05-29 23:20:01.872 T:14767 info : Process - eof reading from demuxer
2023-05-29 23:20:01.872 T:14767 info : CVideoPlayer::OnExit()
2023-05-29 23:20:01.872 T:14767 info : VideoPlayer: eof, waiting for queues to empty
2023-05-29 23:20:01.872 T:14767 info : Closing stream player 1
2023-05-29 23:20:01.872 T:14767 info : CDVDMessageQueue(audio)::WaitUntilEmpty
2023-05-29 23:20:01.872 T:14767 info : Waiting for audio thread to exit
2023-05-29 23:20:01.872 T:14788 info : thread end: CVideoPlayerAudio::OnExit()
2023-05-29 23:20:01.873 T:14767 info : Closing audio device
2023-05-29 23:20:01.879 T:14767 info : Deleting audio codec
2023-05-29 23:20:01.879 T:14767 info : Closing stream player 2
2023-05-29 23:20:01.880 T:14767 info : CDVDMessageQueue(video)::WaitUntilEmpty
2023-05-29 23:20:01.944 T:14767 info : waiting for video thread to exit
2023-05-29 23:20:01.944 T:14787 info : thread end: video_thread
2023-05-29 23:20:01.945 T:14767 info : deleting video codec
2023-05-29 23:20:01.979 T:14767 info : ADDON: Dll Destroyed - InputStream Adaptive
2023-05-29 23:20:02.723 T:11666 info : CVideoPlayer::CloseFile()
2023-05-29 23:20:02.724 T:11666 info : VideoPlayer: waiting for threads to exit
2023-05-29 23:20:02.724 T:11666 info : VideoPlayer: finished waiting
2023-05-29 23:20:02.724 T:11666 info : CVideoPlayer::CloseFile()
2023-05-29 23:20:02.724 T:11666 info : VideoPlayer: waiting for threads to exit
2023-05-29 23:20:02.724 T:11666 info : VideoPlayer: finished waiting
2023-05-29 23:20:02.730 T:11666 error : Control 50 in window 10025 has been asked to focus, but it can't

@hehewtf
Copy link

hehewtf commented May 29, 2023

model is DallasOhMy btw, just randomly clicked a few to find one where it just doesn't load segments and buffer stops

edit:
loaded up her stream on both phone and Shield at the same time, they both cut out at exactly the same time

then I disabled IA on shield and loaded them both up again side by side

kodi crashed on phone when IA stopped getting buffer: https://paste.kodi.tv/ecocowalan

Shield had zero interrupts and is still running the stream as I'm typing this

nvidia codecs, definitely not the root cause of the problem

@frankee123
Copy link

Came here to just say it froze while watching two different girls on chaturbate when I tried to close them out. Kodi froze and had to restart.

@ErosVece
Copy link
Collaborator

ErosVece commented May 30, 2023

Weird, it's running fine here.

Anyway, for the people with problems, the option to bypass IA is added.
I'll reverse it, let m3u8 play without Inputstream Adaptive, and an option to enable it if you want it
MPD files will go through IA though.

@hehewtf
Copy link

hehewtf commented May 30, 2023

Weird, it's running fine here.

Anyway, for the people with problems, the option to bypass IA is added. I'll reverse it, let m3u8 play without Inputstream Adaptive, and an option to enable it if you want it MPD files will go through IA though.

any chance to only disable it for livestreams (cams)?
because it works flawlessly for plain videos, way better than before and I never had problems using IA with videos afaik

maybe that's too much extra work tho

@ErosVece
Copy link
Collaborator

ErosVece commented May 30, 2023

Which plain videos, got an example?

Before this was changed, IA was only triggered with .mpd streams (and the Naked streams).
mpd isn't used by many sites in Cumination, if any....besides Hentaistream.

@hehewtf
Copy link

hehewtf commented May 30, 2023

Which plain videos, got an example?

Before this was changed, IA was only triggered with .mpd streams (and the Naked streams). mpd isn't used by many sites in Cumination, if any....besides Hentaistream.

javguru cambro and possibly camwhoresbay, not sure if I tried others

but everything just loads up quicker, starts instantly when IA is enabled and less buffering time when skipping

maybe that's a problem here? in 1.1.77 everything became snappier so maybe IA was triggered on more places for me or something I dno

edit: cam livestreams start pretty much instantly too, if I disable IA in addon settings mfc for instance takes a long time to open up a stream

@ErosVece
Copy link
Collaborator

Yeah, I know. But a couple of people have problems with IA.
So for them it's with the latest commit now still the same.

But for us, we can now enable it in settings...and enjoy the snappier loading 🤣

@hehewtf
Copy link

hehewtf commented May 30, 2023

Yeah, I know. But a couple of people have problems with IA. So for them it's with the latest commit now still the same.

But for us, we can now enable it in settings...and enjoy the snappier loading 🤣

yeah only livestreams having weird behavior with IA for me so if I'll watch videos I'll just enable it and disable it for livestreams moving forward 👍

@blahblahblug
Copy link
Author

Every time on every video on every site? What site are you trying?

The dialog to install Inputstream Adaptive is from Inputstreamhelper. Some sites need Inputstream Adaptive, and not every user knows how to install it, hence that it checks if it's installed.

It's possible to add in the settings an option to bypass IA for m3u8 streams. But you have an outdated Kodi. In 20.1 I haven't noticed any problems with playing m3u8 files...it even improved some streams. So that would be a fix, until something else comes up that doesn't work properly because of an outdated Kodi.

Also, could you make a debug log when it happens that it hangs?

chaturbate

Here is a debug log when it happened today. I had to force close kodi and relaunch it. I noticed the debug overlay also froze a bit after the video froze, after I tried to stop the video normally.

https://paste.kodi.tv/ralicoliso

@blahblahblug
Copy link
Author

closed by accident

@blahblahblug
Copy link
Author

Do debug logs get overwritten on restarting kodi? Looking at the timecodes on that log don't seem right, it only spans 1 minute.

@blahblahblug blahblahblug reopened this May 31, 2023
@hehewtf
Copy link

hehewtf commented May 31, 2023

Do debug logs get overwritten on restarting kodi? Looking at the timecodes on that log don't seem right, it only spans 1 minute.

if you use kodi logfile uploader addon, go into settings and enable post old logfile, you'll get a second prompt after viewing the first(current) log to view/upload the second(previous run) log

@hehewtf
Copy link

hehewtf commented May 31, 2023

don't know for sure if it's a fix but I changed InputStream Adaptive settings and I'm not getting crashes or freezes anymore

unchecked "Auto determines initial bandwidth" and set Initial bandwidth to something ridiculous like 48 megabits

everything else is default

myfreecams is for sure b0rked with IA tho, some models work but many just don't get updates to the buffer and just stop quickly, full cache just ticks down to 0% and stream stops

@blahblahblug
Copy link
Author

if you use kodi logfile uploader addon, go into settings and enable post old logfile, you'll get a second prompt after viewing the first(current) log to view/upload the second(previous run) log

Thanks.
here is the log from when it froze.
https://paste.kodi.tv/ecogebebor

@dobbelina
Copy link
Owner

Issue resolved, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants