ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.01k stars 268 forks source link

Problems with event playback at high resolutions on some Android devices #1131

Closed superalino closed 7 months ago

superalino commented 7 months ago

The version of zmNinja you are reporting: 1.6.009 1.7.006

The version and OS of ZoneMinder you are using: Debian 12 - Zoneminder 1.36.33

Platform zmNinja is running on Moto G84, Android 13

Did you build the package from source code yourself? N

Describe the bug On Motorola G84 and Honor X8B I can't play events that have a resolution above 1080P. Live playback works fine. No problems on RealmeGT Explorer, Xiaomi Mi A3, And others old smartphones (RedmiNote something)

Debug logs Mar 3, 2024 04:18:49:728 PM DEBUG Modal is closed, so toggling or exiting Mar 3, 2024 04:18:48:878 PM DEBUG Modal removed - killing connkey Mar 3, 2024 04:18:48:878 PM DEBUG Setting up carousel watchers Mar 3, 2024 04:18:48:878 PM DEBUG Rebinding watchers of eventCtrl Mar 3, 2024 04:18:48:876 PM DEBUG Modal is open, closing it Mar 3, 2024 04:18:48:193 PM DEBUG Not swiping, time interval was only:499 ms Mar 3, 2024 04:18:47:961 PM DEBUG Player-Total length:0 Mar 3, 2024 04:18:47:960 PM DEBUG API-Total length:29.96 Mar 3, 2024 04:18:47:960 PM DEBUG Setting cue points.. Mar 3, 2024 04:18:47:959 PM DEBUG On Play Ready invoked Mar 3, 2024 04:18:47:860 PM DEBUG neighbors of 244362are pre=244361 next=244363 Mar 3, 2024 04:18:47:780 PM DEBUG Video url passed to player is: https://www.porcoddio.ge/zm/index.php?view=view_video&mode=mpeg&format=h264&eid=244362&token= Mar 3, 2024 04:18:47:769 PM DEBUG Neighbor pre URL=https://www.porcoddio.ge/zm/api/events/index/StartTime <:2024-03-03 16:17:52/AlarmFrames >=:1.json?sort=StartTime&direction=desc&limit=1&token= Mar 3, 2024 04:18:47:769 PM DEBUG Neighbor next URL=https://www.porcoddio.ge/zm/api/events/index/StartTime >:2024-03-03 16:17:52/AlarmFrames >=:1.json?sort=StartTime&direction=asc&limit=1&token= Mar 3, 2024 04:18:47:767 PM DEBUG No object detection found in notes Mar 3, 2024 04:18:47:713 PM INFO No imageSpinnerSrc! Mar 3, 2024 04:18:47:712 PM INFO No imageSpinnerSrc! Mar 3, 2024 04:18:47:696 PM INFO * Constructed API for detailed events: https://www.porcoddio.ge/zm/api/events/244362.json?&token= Mar 3, 2024 04:18:47:696 PM DEBUG Moving to:244362 Mar 3, 2024 04:18:47:694 PM DEBUG Video state=stop Mar 3, 2024 04:18:47:690 PM DEBUG Clearing video feed... Mar 3, 2024 04:18:47:489 PM INFO EventModalCtrl-out with old: stopNework: Calling window.stop() Mar 3, 2024 04:18:47:485 PM INFO ModalCtrl:Stopping network pull... Mar 3, 2024 04:18:47:287 PM INFO HERE: Event jump called with:244362 Mar 3, 2024 04:18:45:541 PM DEBUG Not toggling screen controls as video controls were just used Mar 3, 2024 04:18:45:526 PM DEBUG Video state=play Mar 3, 2024 04:18:43:623 PM DEBUG Video state=stop Mar 3, 2024 04:18:43:531 PM DEBUG Video state=play Mar 3, 2024 04:18:43:529 PM DEBUG Setting play at rate:1 as video can be played Mar 3, 2024 04:18:43:529 PM DEBUG obfuscate: original:6030 obfuscated:1717 scheme:lzs Mar 3, 2024 04:18:43:522 PM DEBUG This video can be played Mar 3, 2024 04:18:39:661 PM DEBUG Player-Total length:0 Mar 3, 2024 04:18:39:661 PM DEBUG API-Total length:29.82 Mar 3, 2024 04:18:39:661 PM DEBUG Setting cue points.. Mar 3, 2024 04:18:39:660 PM DEBUG On Play Ready invoked Mar 3, 2024 04:18:37:992 PM INFO >>>Starting checkAllEvents interval... Mar 3, 2024 04:18:36:467 PM DEBUG neighbors of 244363are pre=244362 next=244372 Mar 3, 2024 04:18:36:417 PM DEBUG ready for next resize Mar 3, 2024 04:18:36:359 PM DEBUG Video url passed to player is: https://www.porcoddio.ge/zm/index.php?view=view_video&mode=mpeg&format=h264&eid=244363&token= Mar 3, 2024 04:18:36:351 PM DEBUG Neighbor pre URL=https://www.porcoddio.ge/zm/api/events/index/StartTime <:2024-03-03 16:17:53/AlarmFrames >=:1.json?sort=StartTime&direction=desc&limit=1&token= Mar 3, 2024 04:18:36:350 PM DEBUG Neighbor next URL=https://www.porcoddio.ge/zm/api/events/index/StartTime >:2024-03-03 16:17:53/AlarmFrames >=:1.json?sort=StartTime&direction=asc&limit=1&token= Mar 3, 2024 04:18:36:347 PM DEBUG No object detection found in notes Mar 3, 2024 04:18:36:109 PM DEBUG recomputing all row heights Mar 3, 2024 04:18:36:078 PM DEBUG orientation: portrait-primary Mar 3, 2024 04:18:36:077 PM DEBUG giving time for collection to redraw... Mar 3, 2024 04:18:36:076 PM DEBUG Using small thumbs Mar 3, 2024 04:18:36:076 PM DEBUG resize/orient: 432(w) 894(h) Mar 3, 2024 04:18:35:990 PM INFO Constructed API for detailed events: https://www.porcoddio.ge/zm/api/events/244363.json?&token= Mar 3, 2024 04:18:35:989 PM DEBUG Generated Connkey:752956 Mar 3, 2024 04:18:35:988 PM DEBUG If recording is in progress, live feed will be shown Mar 3, 2024 04:18:35:881 PM DEBUG Setting playback to undefined Mar 3, 2024 04:18:35:881 PM DEBUG EventModalCtrl called from app.events Mar 3, 2024 04:18:35:881 PM INFO Using stream mode single Mar 3, 2024 04:18:35:854 PM DEBUG Shall I follow the same monitor for prev/next?:0 Mar 3, 2024 04:18:35:852 PM DEBUG unbinding eventCtrl watchers as modal has its own Mar 3, 2024 04:18:32:109 PM INFO --------->Setting up global key handler... Mar 3, 2024 04:18:32:109 PM INFO --------->Setting up network state handlers.... Mar 3, 2024 04:18:30:394 PM DEBUG EventCtrl: success, got 100 events Mar 3, 2024 04:18:30:394 PM DEBUG We have a total of 134 and are at page=1 Mar 3, 2024 04:18:30:291 PM DEBUG $scope.loadMore ... delta: 178 Mar 3, 2024 04:18:30:162 PM DEBUG current version: 1.7.006 & available version 1.7.006 Mar 3, 2024 04:18:30:120 PM DEBUG Setting up carousel watchers Mar 3, 2024 04:18:30:116 PM DEBUG getEvents:https://www.porcoddio.ge/zm/api/events/index/AlarmFrames >=:1.json?&sort=StartTime&direction=desc&page=1&token= Mar 3, 2024 04:18:30:114 PM DEBUG EventCtrl: grabbing events for: id=0 Date/Time:- Mar 3, 2024 04:18:30:113 PM DEBUG EventCtrl: grabbing # of event pages Mar 3, 2024 04:18:30:112 PM DEBUG getInitialEvents called Mar 3, 2024 04:18:30:003 PM DEBUG resize/orient: 432(w) * 894(h) Mar 3, 2024 04:18:30:000 PM DEBUG Starting page refresh timer Mar 3, 2024 04:18:29:997 PM DEBUG Clearing app badge count Mar 3, 2024 04:18:29:997 PM DEBUG EventServer: Not sending WSS message as event server is off Mar 3, 2024 04:18:29:996 PM DEBUG EventServer: sendMessage: received->{"event":"push","data":{"type":"badge","badge":0,"appversion":"1.7.006"},"token":""} Mar 3, 2024 04:18:29:991 PM DEBUG $scope.loadMore ... delta: NaN Mar 3, 2024 04:18:29:957 PM INFO Image padding digits reported as 5 Mar 3, 2024 04:18:29:949 PM INFO EventCtrl called with: E/MID=0 playEvent = false Mar 3, 2024 04:18:29:948 PM DEBUG getMonitorsNow: returning 10 monitors Mar 3, 2024 04:18:29:948 PM DEBUG Using small thumbs Mar 3, 2024 04:18:29:910 PM DEBUG CACHE: cached value for key:cached_zmgroups is good as 1384 <3600 Mar 3, 2024 04:18:29:910 PM DEBUG CACHE: found for key: cached_zmgroups with expiry of:3600s Mar 3, 2024 04:18:29:907 PM DEBUG no packery profile, making sure monitors are show Mar 3, 2024 04:18:29:906 PM DEBUG Loading hidden/unhidden status for profile: Mar 3, 2024 04:18:29:906 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:906 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:905 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:904 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:904 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:903 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:903 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:902 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:902 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:901 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:901 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:900 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:899 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:899 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:898 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:898 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:897 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:897 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:896 PM DEBUG Storing streaming=https://www.porcoddio.ge/zm/cgi-bin recording=https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:895 PM DEBUG No servers matched, filling defaults... Mar 3, 2024 04:18:29:893 PM DEBUG default multi-server protocol will be:https:// Mar 3, 2024 04:18:29:893 PM DEBUG Portal scheme is https, will use https for any multi-server without a protocol Mar 3, 2024 04:18:29:893 PM INFO multi server list loaded Mar 3, 2024 04:18:29:892 PM DEBUG deobfuscate: before:20 after:23 scheme:lzs Mar 3, 2024 04:18:29:891 PM DEBUG CACHE: decryption requested Mar 3, 2024 04:18:29:891 PM DEBUG CACHE: cached value for key:cached_multi_servers is good as 1384 <86400 Mar 3, 2024 04:18:29:891 PM DEBUG CACHE: found for key: cached_multi_servers with expiry of:86400s Mar 3, 2024 04:18:29:888 PM INFO Monitor load was successful, loaded 10 monitors Mar 3, 2024 04:18:29:888 PM DEBUG no packery profile, making sure monitors are show Mar 3, 2024 04:18:29:887 PM DEBUG Loading hidden/unhidden status for profile: Mar 3, 2024 04:18:29:887 PM DEBUG After duplicate processing, we have: 10 monitors Mar 3, 2024 04:18:29:887 PM DEBUG Before duplicate processing, we have: 10 monitors Mar 3, 2024 04:18:29:886 PM DEBUG CACHE: cached monitor data type is:object Mar 3, 2024 04:18:29:885 PM DEBUG deobfuscate: before:5101 after:24377 scheme:lzs Mar 3, 2024 04:18:29:882 PM DEBUG CACHE: decryption requested Mar 3, 2024 04:18:29:882 PM DEBUG CACHE: cached value for key:cached_monitors is good as 1384 <86400 Mar 3, 2024 04:18:29:881 PM DEBUG CACHE: found for key: cached_monitors with expiry of:86400s Mar 3, 2024 04:18:29:879 PM DEBUG Monitor URL to fetch is:https://www.porcoddio.ge/zm/api/monitors/index/Type!=:WebSite/Function!=:None.json?&token= Mar 3, 2024 04:18:29:879 PM DEBUG ZMS Multiport reported: 0 Mar 3, 2024 04:18:29:878 PM DEBUG ZM_MIN_STREAMING_PORT not configured, disabling Mar 3, 2024 04:18:29:878 PM DEBUG Setting multi-port to:false Mar 3, 2024 04:18:29:877 PM DEBUG CACHE: cached value for key:cached_multi_port is good as 1384 <86400 Mar 3, 2024 04:18:29:877 PM DEBUG CACHE: found for key: cached_multi_port with expiry of:86400s Mar 3, 2024 04:18:29:875 PM DEBUG Checking value of ZM_MIN_STREAMING_PORT for the first time Mar 3, 2024 04:18:29:859 PM DEBUG obfuscate: original:6030 obfuscated:1717 scheme:lzs Mar 3, 2024 04:18:29:854 PM DEBUG ZM State has not changed, still at default Mar 3, 2024 04:18:29:744 PM DEBUG Timezone API response is:Europe/Rome Mar 3, 2024 04:18:29:743 PM DEBUG CACHE: cached value for key:cached_timezone is good as 1384 <86400 Mar 3, 2024 04:18:29:741 PM DEBUG CACHE: found for key: cached_timezone with expiry of:86400s Mar 3, 2024 04:18:29:726 PM DEBUG Real value of PRIVACY is:0 Mar 3, 2024 04:18:29:694 PM INFO getMonitors:Loading all monitors Mar 3, 2024 04:18:29:693 PM DEBUG Transitioning state to: app.events with param {} Mar 3, 2024 04:18:29:688 PM INFO EventServer: No Event Server present. Not initializing Mar 3, 2024 04:18:29:687 PM INFO First invocation of TimeZone, asking server Mar 3, 2024 04:18:29:685 PM INFO Got API version: 1.36.33 Mar 3, 2024 04:18:29:682 PM DEBUG getAPI version succeeded with 1.36.33 Mar 3, 2024 04:18:29:681 PM DEBUG Setting server version to:1.36.33 Mar 3, 2024 04:18:29:679 PM DEBUG obfuscate: original:6030 obfuscated:1717 scheme:lzs Mar 3, 2024 04:18:29:666 PM DEBUG snapshot supported in image.php Mar 3, 2024 04:18:29:663 PM DEBUG CACHE: cached value for key:cached_api_version is good as 1384 <86400 Mar 3, 2024 04:18:29:654 PM DEBUG CACHE: found for key: cached_api_version with expiry of:86400s Mar 3, 2024 04:18:29:615 PM DEBUG getAPIversion called with https://www.porcoddio.ge/zm/api/host/getVersion.json?&token= Mar 3, 2024 04:18:29:614 PM DEBUG PortalLogin: auth success Mar 3, 2024 04:18:29:608 PM DEBUG auth-success broadcast:Successful Mar 3, 2024 04:18:29:605 PM INFO ----> Setting token re-login after 5760 seconds Mar 3, 2024 04:18:29:605 PM INFO Access token still has 96 minutes left, using it Mar 3, 2024 04:18:29:604 PM INFO Detected token login supported Mar 3, 2024 04:18:29:604 PM DEBUG Resetting zmCookie... Mar 3, 2024 04:18:29:603 PM DEBUG No need for re-captcha checks with tokens Mar 3, 2024 04:18:29:603 PM DEBUG Inside _doLogin() Mar 3, 2024 04:18:29:602 PM INFO No need for logout! Mar 3, 2024 04:18:29:594 PM INFO No need to do a reachability test, as there are no fallbacks Mar 3, 2024 04:18:29:594 PM INFO reached end of chain loop Mar 3, 2024 04:18:29:593 PM INFO Fallback of Zm is Mar 3, 2024 04:18:29:593 PM INFO Adding to chain stack: Zm>https://www.porcoddio.ge/zm Mar 3, 2024 04:18:29:592 PM DEBUG _doLogoutAndLogin: Clearing cookies Mar 3, 2024 04:18:29:588 PM DEBUG auth-success broadcast:Successful Mar 3, 2024 04:18:29:581 PM INFO ----> Setting token re-login after 5760 seconds Mar 3, 2024 04:18:29:581 PM INFO Access token still has 96 minutes left, using it Mar 3, 2024 04:18:29:575 PM INFO Detected token login supported Mar 3, 2024 04:18:29:573 PM DEBUG Resetting zmCookie... Mar 3, 2024 04:18:29:552 PM DEBUG No need for re-captcha checks with tokens Mar 3, 2024 04:18:29:552 PM DEBUG Inside _doLogin() Mar 3, 2024 04:18:29:551 PM DEBUG ------> Not starting login timer for token. We will start a one time timer when we know how soon the access token will live Mar 3, 2024 04:18:29:550 PM INFO Cancelling zmAutologin timer Mar 3, 2024 04:18:29:550 PM DEBUG PIN code entered is correct, or there is no PIN set Mar 3, 2024 04:18:29:550 PM DEBUG unlock called with check PIN=true Mar 3, 2024 04:18:29:549 PM INFO not checking for touchID Mar 3, 2024 04:18:29:549 PM INFO User credentials are provided Mar 3, 2024 04:18:29:548 PM DEBUG Inside Portal login Enter handler Mar 3, 2024 04:18:29:430 PM INFO Entering Portal Main Mar 3, 2024 04:18:29:390 PM DEBUG --> SSL is permissive, will allow any certs. Use at your own risk. Mar 3, 2024 04:18:29:378 PM INFO Inside init-complete in app.js: All init over, going to portal login Mar 3, 2024 04:18:29:375 PM INFO >>> Android: enabling inline image view for self signed certs Mar 3, 2024 04:18:29:368 PM INFO >>>> Disabling strict SSL checking (turn off in Dev Options if you can't connect) Mar 3, 2024 04:18:29:368 PM DEBUG Setting cordova header X-ZmNinja to zmNinja_1.7.006 Mar 3, 2024 04:18:29:367 PM INFO NVR init retrieved store loginData, marking init as complete Mar 3, 2024 04:18:29:367 PM INFO Setting NVR init bandwidth to: highbw Mar 3, 2024 04:18:29:352 PM DEBUG deobfuscate: before:1717 after:6030 scheme:lzs Mar 3, 2024 04:18:29:343 PM INFO user profile encrypted, decoding... Mar 3, 2024 04:18:29:317 PM DEBUG Android detected, using cordova-multiwindow plugin for onStop/onStart instead Mar 3, 2024 04:18:29:317 PM INFO Setting up pause and resume handler AFTER language is loaded... Mar 3, 2024 04:18:29:283 PM INFO Checking for new version updates... Mar 3, 2024 04:18:29:278 PM INFO ZMData init: checking for stored variables & setting up log file Mar 3, 2024 04:18:29:277 PM INFO Language file loaded, continuing with rest Mar 3, 2024 04:18:29:276 PM DEBUG last state=app.events param=[object Object] Mar 3, 2024 04:18:29:274 PM DEBUG isFirstUse returned: false Mar 3, 2024 04:18:29:272 PM INFO >>>>Language to be used:en Mar 3, 2024 04:18:29:271 PM INFO Device Language is:en Mar 3, 2024 04:18:29:269 PM INFO No language set, switching to en Mar 3, 2024 04:18:29:268 PM INFO App Version: 1.7.006 Mar 3, 2024 04:18:29:267 PM INFO Retrieving language before init is called... Mar 3, 2024 04:18:29:257 PM INFO Updating statusbar Mar 3, 2024 04:18:29:256 PM INFO >>>>No data to import.... Mar 3, 2024 04:18:29:253 PM INFO Cloudsync operation complete, continuing... Mar 3, 2024 04:18:29:253 PM INFO local data synced with cloud... Mar 3, 2024 04:18:29:178 PM INFO Found valid local configuration, overwriting cloud settings... Mar 3, 2024 04:18:29:177 PM DEBUG deobfuscate: before:1717 after:6030 scheme:lzs Mar 3, 2024 04:18:29:173 PM INFO user profile encrypted, decoding... Mar 3, 2024 04:18:29:170 PM INFO CloudSync: Syncing with cloud if enabled... Mar 3, 2024 04:18:29:169 PM INFO localforage driver:asyncStorage Mar 3, 2024 04:18:29:169 PM DEBUG configureStorageDB:test get/set worked, this driver is ok... Mar 3, 2024 04:18:29:158 PM INFO Got permission to post notifications Mar 3, 2024 04:18:29:144 PM DEBUG resize/orient: 432(w) * 894(h) Mar 3, 2024 04:18:29:136 PM INFO No permission to post notifications Mar 3, 2024 04:18:29:126 PM DEBUG configureStorageDB:Making sure this storage driver works... Mar 3, 2024 04:18:29:125 PM INFO configureStorageDB:localforage driver for storage:asyncStorage Mar 3, 2024 04:18:29:092 PM DEBUG configureStorageDB: trying order:["asyncStorage","localStorageWrapper"] Mar 3, 2024 04:18:29:092 PM DEBUG Inside configureStorageDB Mar 3, 2024 04:18:29:089 PM INFO You are running on android Mar 3, 2024 04:18:29:088 PM DEBUG UA is mozilla/5.0 (linux; android 13; moto g84 5g build/t3tcs33.18-48-6-2; wv) applewebkit/537.36 (khtml, like gecko) version/4.0 chrome/121.0.6167.178 mobile safari/537.36 Mar 3, 2024 04:18:29:088 PM INFO setting size Mar 3, 2024 04:18:29:087 PM INFO Device is ready Mar 3, 2024 04:18:29:084 PM INFO *** app .run device ready

Screenshots screen

connortechnology commented 7 months ago

It may be that the video is either h265 or too high a level of h264 and the phone simply can't play it. For this we likely need to switch to the jpeg viewer.

Go to Monitors->Monitor->configuration-> force MJPEG event playback

superalino commented 7 months ago

Ok, thank you, it works.