-
Notifications
You must be signed in to change notification settings - Fork 42
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
Streams stutter in live - Kodi (19.0-ALPHA1 (18.9.701) Git:20200608-00f5af0cec). Platform: Android ARM 32-bit #48
Comments
Interesting. I wonder is it cause it’s a 32bit or something else. I guess not easy to find out. |
If you use timeshift and you rewind after the buffering does it still occur at the same times? |
When I load a stream, I cannot directly rewind (timeshift seems to be not active). First, I have to pause (at A point) and I wait for a few seconds. Next, I play and, after x seconds, it stutters. Then I rewind until the A point (I cannot rewind before) and, after x+y seconds, it stutters. And etc... (The duration without stutters increases) |
Yes, timeshift will only work since the time the stream loads. So you would need to leave it running for example for 2 minutes and note down at which times it stutters. Then seek back to the start and see does it stutter again on playback at the same times. It might be to do with how the data is saved on your storage. But the above test should tell us if that’s the issue. |
"I cannot directly rewind " meaned that timeshift works only after I pause the stream. Finally, after tests, I remarked that timeshift is available (without other actions) after xx seconds of playing. Test:
|
And none of these issues occur on Windows? |
I redid tests on Windows and the issue occurs sometimes but not each time when I start a stream. |
And on the arm device once you rewind is playback ok? I.e. no buffering as it’s not playing live? |
Could you try something? In |
No, it is'nt. Playback is smooth a moment but stutter start again (see above the results of the test to have timings) |
But in your timings you show 60+x. Does that mean after rewinding to the start it plays ok until 60 seconds? Or that it stutters after 11/12 seconds after rewind? What’s interesting is that the segment size is approx 12 seconds so may be a read/write issue. |
1.a At 00:01:00 in live, I rewind to 00:00:00 (note I cannot reach 00:00:00, I can only reach 00:00:11/12, maybe because of the same issue) 2.a At 00:01:30 in live, I rewind to 00:00:00 11/12 seems to be a constant value I will check timeshift files |
Strange. So for anything that you have already watched live if you rewind it plays smoothly but for anything once you reach the unwatched part + 1 segment it stutters. |
If you watch 5 minutes and rewind to the start does the stuttering start again at 00:05:11/12? |
Is there an addon to have more information (created date) than with File manager of Kodi? If I return to the Home screen of the box to check timeshift files with an explorer app, Kodi stops the stream and timeshift files are deleted. |
I think you will need to install/use ssh. Once you have that you can connect to the box on the command like and look at the filesystem. |
Here are the list of timeshift files with created date and the log file with a lot of warnings for the buffer. |
I did 2 type of test (on ARM): B. I pause directly the stream, I play after 5 min of pause and stuttering start again after 2min (playback is smooth before) |
There should be a new segment file every 12 seconds. For some reason the timings are far more than that for you arm device. Can you check what the timings for the segment files are on windows for the same stream and compare them? It must be how the data is flushed to disk. If windows looks correct maybe I can create some testbuilds to try different options for ARM. |
Could you also provide the contents of the |
For ARM, zip file contains .idx file, log file et timings |
For Windows |
I notice that the issue is less important when the resolution is low. Stuttering is more widely spaced. |
Ok, so the log matches the creation timestamps which means the files are being written correctly. But the data appears to be arriving slowly to the inputsream. I.e. it takes nearly a minute for the first 12 seconds of data to arrive on Android. Is there anyway you can disable using OMX player and see if it's any different? |
I notice that the issue is less important when the resolution is low. Stuttering is more widely spaced.
How can I disable OMX player? Is it the hardware acceleration? |
I think I found. I modified the decoderfilter.xml like this |
@Gregsr This resembles our own experience on ARM with/without OMX Player. Multiple add-ons have reported issues with specific streams (often all streams from a single VOD provider). You can test the streams using any of the following stream validation tools or online players: It could help identify specific issues with streams. Note that it is not because streams have issues, Kodi should not be able to handle those better. That is why it helps if you can verify that other players work flawlessly where Kodi has difficulties. Update: If you click through referenced issues you will find an easy fix that worked for us, which was to increase the buffer queue, but this was not acceptable for Kodi devs. I don't know if this would work for your specific streams either, it will depend on the specific issue with the stream. |
Thank you for sharing your experience. My experience shows I have no issue when timeshift/catchup is not enabled (then when I don't use ffmeg inputstream) and OMX player is enabled. If OMX is disabled, I have stuttering |
The only ARM devices I have are Rbpi’s. Let me try this on both a 3 and a 4. Both will be running LibreElec and not the Android build though so maybe not a comparative test. |
What if this is because the ARM32 build of ffmpegdirect is not using HW acceleration like it should be causing the delay. Or it’s incorrectly configured somehow. Can you try a test where you only open a stream with ffmpegdirect but don’t use catchup or timeshift? If you add this line just above one M3U entry it should simply open the stream with ffmpegdirect: What ARM chip is used in your device? |
I will try next week because I am not at home until July. For the ARM chip: Thank for your help! |
If you have a 64bit cpu where do you install the 32 bit android build? |
I will try next week because I am not at home until July. For the ARM chip: Thank for your help!
I tried to install the 64 bit build but it did not work, it was a new installation, not a update. I don't know why. |
It doesn't work |
Very strange. |
With the Stb Emu app, there is no problem with pause function or catch-up function. However, I do not know the videoplayer. I wonder if the app is not using ijkplayer but I'm not sure |
I can try on another device (ARMv7 32 bit) but I cannot find the pvr add-on in the kodi repo. How can I install the add-on? |
It should install the same way as your current device. did you install using the android apk? |
Yes the same nightly. |
If you go to My Addons do you see PVR clients? You may need a new nightly version but I think the latest version of iptvsimple is 5.2.2 |
On the "second" Android device with the fresh installation, I do not see PVR clients in My Addons. OK, I will use the latest nightly version. Is it possible that the PVR addon has been banned? |
You will only see PVR addons in My Addons agreeing installing them. Otherwise you need to install from repository. I don’t use android so not exactly sure how this works on that platform. Ffmpegdirect will only work with kodi 19. The addons are installed from a remote repo so it’s not possible to ban them. |
That is the first time I have this problem on my Android devices (Xiaomi Mi box S and Minix X8H-Plus). I believed that the official Kodi repo could blacklist addons like PVR IPTV simple addon. |
Iptvsimple is in the official Kodi repo so it’s not that. When you try and install the addon do you see all the other PVR addons? |
That looks like the addons you have installed. There should be a dialog listing all the PVR addons you don’t have installed. Can you see that? |
Strange. There should be about 20 PVR addons available to install. |
On win7 64bit, I have made a fresh installation with the latest nightly version and I recover PVR clients in the repo. I will try this evening with my Android devices. |
On my both Android devices, I have made a fresh installation with the latest nightly and I could to install the 6.2.2 release of the PVR. Timeshift and catchup work nice and smooth. I would like to test a few days before closing the issue. Ok for you? Did you modify something to solve this issue? |
Nope, I didn’t change anything! |
I suppose that it was because of the nightly version. |
NP |
We can close. |
When I enable timeshift or catchup in PVR IPTV Simple Client, the streams stutter (caching/playing continuously; I don't use any functions "rewind/pause and fast-forward"). When I disable, it is smooth.
On Win7 64bits, no issue
kodi.log
The text was updated successfully, but these errors were encountered: