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

Audio causes video stuttering on L1 Android device #693

Closed
Testato opened this issue May 19, 2021 · 18 comments · Fixed by #734
Closed

Audio causes video stuttering on L1 Android device #693

Testato opened this issue May 19, 2021 · 18 comments · Fixed by #734

Comments

@Testato
Copy link

Testato commented May 19, 2021

@Testato
Did you open an issue for the Android stuttering?
I wonder if it does it if you go into Inputstream Adaptive Settings and set Media to "Video"
You won't get Audio - but interested to see if that fixes it

I have seen with HBO Max, EC3 (dolby digital+) audio causes the video to stutter etc
which made me think, maybe there is an issue decoding some audio streams with secure decoder

Originally posted by @matthuisman in #647 (comment)

@matthuisman
Copy link
Contributor

could you try what I suggested?

go into Inputstream Adaptive Settings and set Media to "Video"
Then try playback. You won't get audio - but see if Video plays better.

Remember to disable the IA securedecoder setting when testing so you are actually using L1

@Testato
Copy link
Author

Testato commented May 19, 2021

@matthuisman
YEP you are right !

No stuttering on Samsung S9+
I will test on Nokia 3.4 also

@lpuglia
May you try on your L1 Philips TV ?

@matthuisman
Copy link
Contributor

@glennguy - we have a clue!

@Testato
Can you check if the stream has multiple audio tracks?
If so, can you try changing between them during playback and see if that helps.

Can you also provide a copy of the manifest that has issues again...
I want to try to find out what type of audio stream it is. I wonder if it's EC-3 as well....

@Testato
Copy link
Author

Testato commented May 19, 2021

It seems that the stream have only one audio track

Screenshot_20210519-070404_Kodi

For the .mpd may download it yourself ? Sorry I'm on phone now and it is difficult do it.
https://www.la7.it/dirette-tv

Thanks

@Testato
Copy link
Author

Testato commented May 19, 2021

No problem also on Nokia 3.4 L1 device, where the stuttering was much worse than on samsung.
So the problem is definitively the audio stream

@glennguy
Copy link
Contributor

@Testato thanks for opening the issue. In future it's best if you can describe the issue yourself rather than quoting someone's request to open an issue (the comment quoted being from an issue created in the exact same way...) It's hard for others to contribute without proper context.

@glennguy
Copy link
Contributor

Has anyone seen this thread? https://forum.kodi.tv/showthread.php?tid=361156
Similar sounding issue, audio is the suspected cause.

@glennguy
Copy link
Contributor

mpd.txt

Nothing fancy in here, one audio rep <Representation id="5" bandwidth="96000" audioSamplingRate="44100" codecs="mp4a.40.2"/> == LC-AAC

@matthuisman
Copy link
Contributor

@glennguy
it could also be that just the extra bandwidth of the audio track is stopping IA from keeping up
but why does the secure decoder affect that?
We can't have Video going via Secure and Audio via Non-secure can we?
Its just a single session used by all

@matthuisman
Copy link
Contributor

matthuisman commented May 20, 2021

@Testato
I doubt this will work, but can you try IA build from here:
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-696/1/artifacts
see if audio still causes the stutter

And then try an IA build from here:
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-698/1/artifacts

@matthuisman
Copy link
Contributor

looks like HBO Max audio streams have quite big issues with audio too.

I've had to add setting to the add-on to disable EC-3 and AC-3.
https://forum.kodi.tv/showthread.php?tid=358484&pid=3038367#pid3038367

"In addition, the CPU occupancy rate was relatively high at that time, reaching 100+%."

On Amazon Fire TV 4k and Google TV (both L1)

@Testato
Copy link
Author

Testato commented May 23, 2021

@Testato
I doubt this will work, but can you try IA build from here:
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-696/1/artifacts
see if audio still causes the stutter

And then try an IA build from here:
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-698/1/artifacts

the link is not active ?

during the stuttering on LA7 stream the cpu on Android do not change, and remain always about 50%

@Liqianyu
Copy link

Liqianyu commented Jul 3, 2021

@matthuisman
HBO Max Add-on using E-AC3 Audio is easy to lag and buffer. But switching AAC once may ease it.
Switching back to E-AC3 again at this time will not buffer frequently.

@matthuisman
Copy link
Contributor

@Testato @Liqianyu
could you guys try the android build from here and see if it makes any difference to pixalation / buffering issues?
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-734/1/artifacts

@Liqianyu
Copy link

@matthuisman
I tested this on Shield TV 2019 Kodi 19.1 Nightly. Playing Wonder Woman 1984 via HBO Max Add-on. the audio track still causes constant buffering issues.
However, the problem can be avoided by switching tracks. For example, after starting playback, switch to DD+ 5.1ch, then switch back to DD+ Atmos.

@Testato
Copy link
Author

Testato commented Jul 14, 2021

@matthuisman this version solve the problem on LA7 Plugin and Samsung S9+

@lpuglia
Copy link

lpuglia commented Aug 6, 2021

@Testato @Liqianyu
could you guys try the android build from here and see if it makes any difference to pixalation / buffering issues?
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-734/1/artifacts

Hey @matthuisman , the artifacts seems to be removed, is the PR already built into:
https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/inc-ver/3/artifacts
?

i tried it this morning but it doesn't seem to solve my problem (#582).

@Testato
Copy link
Author

Testato commented Aug 12, 2021

@lpuglia
the PR is present on the new IA version 2.6.23
try to update and test it on you TV

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

Successfully merging a pull request may close this issue.

5 participants