Force Kodi to fill cachemembuffer - kodi

I am trying to avoid waiting for caching during playback. Waiting before starting playback is acceptable.
We can assume the server is slow, so the goal is to make Kodi cache several minutes of video no matter how long this takes.
Using the add-on Easy Advanced Settings I have changed:
<advancedsettings>
<network>
<buffermode>1</buffermode>
<readbufferfactor>20</readbufferfactor> (I have also tried 2 here)
<cachemembuffersize> 312345678 </cachemembuffersize>
</network>
</advancedsettings>
So if the video rate is 10 Mbit/s I want the system to cache 4 minutes of video.
The above only caches less than 30 seconds.
How can I tell Kodi to read-ahead and fill the complete cachemembuffer?
Kodi version: 17 Android

The tags are renamed in version 17:
https://kodi.wiki/view/HOW-TO:Modify_the_video_cache

Related

Exclude material fonts from flutter web release

I'm currently developing a flutter web application.
I notice that the application takes a lot of time to load (an average of 20 seconds).
The fetch of the 'FontManifest.json' and the fonts 'MaterialIcons-Regular.otf' and 'CupertinoIcons.tff' takes an average of 10 seconds.
I'm not using any of these fonts, as I installed google fonts. It's just wasting time and data.
My question is: how can I get rid of these two fonts in flutter web or how can I reduce the time of waiting tffb + content downloading?
I tried to edit the 'FontManifest.json' and remove the '.otf' and '.tff' but as the files are auto generated, flutter rewrite them during each build.
I don't want to set use-material-design to false because i need some other features.
I already tried to edit the 'fonts' field of the 'pubspec.yaml' file, it doesn't work.
I have already read a few posts, but the questions mostly concerns display problems.
Thanks in advance for your help!
There is a way instead to possibly optimize the build time of the other packages by using the command
cp -r ./build/app/intermediates/flutter/release/flutter_assets/ ./build/web/assets
and the treeshake function available by flutter
--tree-shake-icons
you can read more here

FPS Test Issue with Onvif Test Tool v21.12 rev.7225

When I test with v21.12 rev.7225,
Test items with issue:
RTSS-1-1-46-v21.12 VIDEO ENCODER CONFIGURATION - JPEG RESOLUTION
RTSS-1-1-48-v21.12 VIDEO ENCODER CONFIGURATION - H.264 RESOLUTION
Test camera:
AXIS P1375 with f/w 10.8.1, or 10.9.4 (It claims to pass v21.12)
IndigoVision BX620-4MP with f/w 2.2.0
Error Message:
"Only 0 frames captured (0.0 FPS)"
Note that we've tried increase Operation Delay, yet still fail the test items.
What we confuse:
We've tested numerous cameras with both OTT v21.06 and OTT v21.12.
With OTT v21.06, we passed both test items without issues.
Yet with OTT v21.12, the fail rate is at around 80% as we tested several times with each cameras.
All setups are exactly the same, except the OTT version.
It's also quite weird to us that not every time we test with OTT v21.12 result fail.
We'd like to know if there's any change on test procedure or criteria for both test items to help us solve the issues.
I also encountered the same problem and found that the new version updated the UDP port used to obtain the URL stream is fixed
So nice
We had the same problem and we were looking
https://github.com/onvif/testspecs/discussions/21
If you check the link above, this is an ONVIF Test Tool bug
Maybe it will be fixed in v22.06! Hope this helps!
And check the ONVIF_Device_Test_Tool_Errata v3.50 file!
You can get that file at onvif.org
good news,
v22.06 already fix this problem written on ONVIF_Device_Test_Tool_Errata v3.51.pdf,
Erratum number: 60
share with everyone
BR,
You need to remember two things about the ONVIF conformance (none of those are related to programming):
Each ONVIF compliant camera published on https://www.onvif.org/conformant-products/ has an Interface Guide that explains if special settings are required before starting the test.
To be ONVIF conformant, cameras must have one FW tested with the testtool that was valid at the time of the certification. There is no requirement to re-certify the FW once newer versions of the test tool are released. Therefore it may happen that they pass with 21.06 and not with 21.12

Too much storage in IndexedDB using GunDB

I try to synchronize VR scene using GunDB.
In order to experiment it, I put a few data in GunDB.
But I got this warning.
storage warning
I use IndexedDB, and I can keep going it with hitting 'allow'
But I'm wondering why it uses too much storage!!!!!
setInterval(putLocation, Math.ceil(1000 / 50));
// putLocation
obj.get('attributes').get('position').put(object.attributes.position);
It updates data every 200ms in the same node. (object.attributes.position)
please let me know how could I fix it.
Thank you.
#huhsame 1.2GB for VR scene data? That seems suspicious.
By chance is this in Safari?
Safari has a known bug (#go1dfish found this) where it creates run-away storage accumulation (with or without gunDB) that gets triggered if its file descriptor is left open too long.
Could you see if the same thing happens in Chrome? If it does, it is a GUN bug then.
If it is just Safari, we tried to add code that would reset/reopen Safari's IndexedDB instance every 15 seconds, and have had success so far with that approach.
However, clearly, either Safari has changed something, or that workaround is no longer viable, so we'll need to figure something new out.
I understand Safari is very important because of iOS, it is just unfortunate that Safari lags behind on several very serious and important fronts (WebRTC, IndexedDB, & WebM). There is only so much our team can do to work around these bugs until Safari is more standards compliant. But where we can workaround, we will.
#marknadal
thanks for your answer.
and sorry I am late.
I tested it on Chrome and Safari after clearing storage.
after 30 minutes, Chrome used about
1MB,
and on the Safari, I did not find the usage panel but there is no pop-up for warning like the previous one.
I guess it was total data since September when I had started this experiment.
but it's just my opinion.
And I am still wondering that users should delete data in WebStorage regularly?
please answer me.

Osascript in Yosemite broken/slow - anyone can confirm?

During 10.8 times I created macro in Keyboard Maestro for adding web pages to Reminders list to read them later.
In Mountain Lion and Maverics it worked fine but in Yosemite something wrong is going on resulting very slow executions.
Previously execution time was about 1-2 seconds now its over 40 seconds or even one minute!
Apple team provided me with wrong solution ordered to "code sign" my script, but there is no "file" to codesign and applescripts can be executed in command line. So IMO they messed up something in osascript and still couldn't fix it till 10.10.4. But I need someone to confirm or to advice me how to debug problem, because I cannot find in system console log lines relevant to problem.
UPDATE:
On El Capitan 10.11.1 problem still persist.
Macro
Could anyone test and confirm this? I provided link to macro.
It is bind currently to F1 - change as you like. Before execution create "2Read" list in Reminders on OSX.
I've tried it and it's done in about 1-2 seconds on my machine. So I do not experience the same problem as you.
I'm running OS X 10.10.4 on a late 2013 MBP Retina.
Maybe your "2Read" list is too long?
Another tip:
I used to have a problem with long lists in Applescript, too. Sometimes it would take minutes to run through a list, but after using some if these tips the time for the lists was brought back to only seconds.
From your pastebin link (yeah, I did warn you it'd look like mince):
Keyboard Maestro event logs
(1) KM sends an 'open' event ('aevt/odoc') to Growl, telling it to open a temp file (presumably to make Growl display a message)
(2) Bartender sends a 'get scripting terminology' event ('ascr/gdut') to KM
(3) Bartender sends a 'BTDR/Load' event to KM, which looks like Bt telling KM to load a plugin named "BartenderHelperNinetyOne.bbundle"
(4) KM send a 'KeyC/KeyB' event to something (it doesn't give the name of the process, only its Process Serial Number, which is the classic MacOS equivalent to a Unix process ID). Probably easiest just to ask the KM devs about that one.
(5,6,7) KM then sends three 'application died' events ('aevt/obit') to Keyboard Maestro Engine (I'm guessing that's a faceless helper app that runs constantly in the background), informing it that three osascript processes (PSNs 312312, 315315, 316316) have terminated. This doesn't necessarily mean that osascript has crashed as those events contain an error number ('errn') parameter with value 0, and command-line processes normally return error code 0 to indicate they've completed successfully. It's quite likely these are normal internal notifications sent between KM and KME to indicate when a task is completed. The first of those osascript processes (PSN 312312) is related to the Reminders activity below; the other two I'm guessing are you running other AppleScript macros and probably not relevant here.
Reminders event logs
(1,2,3) The 'osascript' process with PSN 312312 sends Reminders a 'make' ('core/crel') event and two 'set' ('core/setd') events, which is obviously your AppleScript being run.
(4) The Dock sends it a 'reopen' ('aevt/rapp') event, which is probably just you clicking on Reminders' dock icon to bring it to the front.
The main problem, of course, is that without timestamps I can't tell you where your 40-second delay is occurring. You'd really need to do it again, this time manually noting the time at which each message is logged. And if you see a single 40-second delay somewhere in the middle, it should easy enough to determine which events it's occurring inbetween, which should start to point towards a cause. At which point, you're probably best contacting the KM vendor to discuss it with them.
HTH

Need software to create/run macro to automatically reconnect to the internet

I'm looking for software that will allow me to write a macro/script to get EasyTether to re-connect my Android O/S phone (Ally) to the internet (desktop PC) when the connection gets dropped. The problem is that EasyTether constantly drops the connection. (Every few minutes - a bit random.) I have checked the forums and many, many people have been having the same problem for a long time.
I want the macro/script to check the internet connection every few seconds, and if there's no connection then do a I right click on the EasyTether status bar icon, and select "connect."
I will write the script. I'm looking for the software.
Thanks for any help.
You could do this with AutoIt. (http://www.autoitscript.com/site/autoit/) You can use the "Ping" function (AutoIt) once every few min/sec/whatever and if it returns 0 you run the subroutine to "click" (AutoIt) on the re-connect menu item.