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

点击托盘时很长时间才能弹出选项,并且很卡 #157

Open
1298345095 opened this issue Apr 29, 2024 · 13 comments
Open

点击托盘时很长时间才能弹出选项,并且很卡 #157

1298345095 opened this issue Apr 29, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@1298345095
Copy link

使用0.012版本

@1298345095
Copy link
Author

设置时和切换开关时都会卡死

@Antonoko Antonoko added the bug Something isn't working label Apr 29, 2024
@Antonoko
Copy link
Member

感谢反馈,请问方便提供操作系统、运行配置、cache\log 下的部分日记等信息以便进一步排查吗?

目前托盘菜单中启动webui与控制录制均为阻塞的,需要等待点击后的操作完成才能响应;如果过程中出现异常则会被阻塞、直到操作失败超时才能再次控制托盘菜单。

此外提供手动的排查方法:

  • 在 windrecorder 目录下打开终端,执行poetry shell,进入虚拟环境
  • 执行streamlit run webui.py,可尝试启动 webui;
  • 执行python record_screen.py,可尝试直接记录屏幕;(托盘的主要作用本质上是控制这两个 py 脚本的执行)

@1298345095
Copy link
Author

系统:Windows11专业版 22H2 22621.2134
运行配置:
{ "record_screen_res": "3840x2160", "target_screen_res": "scale=1920:1080", "record_seconds": 900, "record_framerate": 2, "record_bitrate": 200, "record_videos_dir": "videos", "config_src_dir": "windrecorder\\config_src", "db_path": "db", "db_filename": "ocrSaved.db", "userdata_dir": "userdata", "flag_mark_note_filename": "flag_mark_note.csv", "search_history_note_filename": "search_history.csv", "thumbnail_generation_size_width": 70, "thumbnail_generation_jpg_quality": 30, "vdb_img_path": "db_imgemb", "search_max_num": "50", "lang": "sc", "ocr_lang": "zh-Hans-CN", "ocr_short_size": "768", "max_page_result": 20, "ocr_engine": "Windows.Media.Ocr.Cli", "exclude_words": [], "wordcloud_user_stop_words": [ "login", "account", "twitter", "reddit", "youtube" ], "ocr_image_crop_URBL": [ 1, 1, 6, 1 ], "vid_store_day": 1200, "vid_compress_day": 300, "OCR_index_strategy": 1, "wordcloud_result_dir": "result_wordcloud", "timeline_result_dir": "result_timeline", "lightbox_result_dir": "result_lightbox", "wintitle_result_dir": "result_wintitle", "screentime_not_change_to_pause_record": 5, "user_name": "ctrls", "use_similar_ch_char_to_search": true, "release_ver": false, "video_compress_rate": "0.5", "oneday_timeline_pic_num": 50, "enable_ocr_chineseocr_lite_onnx": false, "compress_encoder": "cpu", "compress_accelerator": "cpu", "compress_quality": 39, "start_recording_on_startup": true, "lock_file_dir": "cache\\locks", "maintain_lock_subdir": "LOCK_MAINTAIN", "record_lock_name": "LOCK_FILE_RECORD.MD", "tray_lock_name": "LOCK_FILE_TRAY.MD", "img_emb_lock_name": "LOCK_FILE_IMG_EMB.MD", "last_idle_maintain_file_path": "cache\\LAST_IDLE_MAINTAIN.MD", "iframe_dir": "cache\\i_frames", "log_dir": "cache\\logs", "win_title_dir": "cache\\win_title", "webui_access_password_md5": "", "enable_img_embed_search": false, "img_embed_search_recall_result_per_db": 30, "img_embed_module_install": false, "day_begin_minutes": 180, "enable_search_history_record": true, "batch_size_embed_video_in_idle": 14, "batch_size_remove_video_in_idle": 80, "batch_size_compress_video_in_idle": 50, "enable_3_columns_in_oneday": false, "enable_synonyms_recommend": false, "multi_display_record_strategy": "all", "record_single_display_index": 1, "record_encoder": "cpu_h264", "record_crf": 39, "index_reduce_same_content_at_different_time": true }

recording.err
ffmpeg version N-115020-ga9a69a5a31-20240428 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13.2.0 (crosstool-NG 1.26.0.65_ecc5e41) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g++ --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20240428 libavutil 59. 16.101 / 59. 16.101 libavcodec 61. 5.103 / 61. 5.103 libavformat 61. 3.103 / 61. 3.103 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.101 / 10. 2.101 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100 [gdigrab @ 0000021ff5cc0140] Capturing whole desktop as 2560x1600x32 at (0,0) [gdigrab @ 0000021ff5cc0140] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, gdigrab, from 'desktop': Duration: N/A, start: 1714977115.627379, bitrate: 262144 kb/s Stream #0:0: Video: bmp, bgra, 2560x1600, 262144 kb/s, 2 fps, 1000k tbr, 1000k tbn Stream mapping: Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0000021ff5cc1bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0000021ff5cc1bc0] profile High, level 5.0, 4:2:0, 8-bit [libx264 @ 0000021ff5cc1bc0] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2024 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=30 lookahead_threads=5 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'userdata\videos\2024-05\2024-05-06_14-31-55.mp4': Metadata: encoder : Lavf61.3.103 Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 2560x1600, q=2-31, 200 kb/s, 2 fps, 16384 tbn Metadata: encoder : Lavc61.5.103 libx264 Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A [out#0/mp4 @ 0000021ff3c9d080] video:851KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.199039% frame= 73 fps=2.0 q=-1.0 Lsize= 852KiB time=00:00:35.50 bitrate= 196.7kbits/s speed=0.966x [libx264 @ 0000021ff5cc1bc0] frame I:1 Avg QP:11.92 size:357487 [libx264 @ 0000021ff5cc1bc0] frame P:18 Avg QP:31.41 size: 12598 [libx264 @ 0000021ff5cc1bc0] frame B:54 Avg QP:34.19 size: 5301 [libx264 @ 0000021ff5cc1bc0] consecutive B-frames: 1.4% 0.0% 0.0% 98.6% [libx264 @ 0000021ff5cc1bc0] mb I I16..4: 52.1% 18.6% 29.3% [libx264 @ 0000021ff5cc1bc0] mb P I16..4: 0.3% 0.3% 0.2% P16..4: 7.9% 2.9% 1.6% 0.0% 0.0% skip:86.9% [libx264 @ 0000021ff5cc1bc0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 6.9% 2.0% 0.4% direct: 0.4% skip:90.1% L0:49.0% L1:48.9% BI: 2.0% [libx264 @ 0000021ff5cc1bc0] final ratefactor: 32.26 [libx264 @ 0000021ff5cc1bc0] 8x8 transform intra:21.4% inter:42.3% [libx264 @ 0000021ff5cc1bc0] coded y,uvDC,uvAC intra: 29.2% 31.0% 27.2% inter: 1.5% 1.3% 0.6% [libx264 @ 0000021ff5cc1bc0] i16 v,h,dc,p: 65% 29% 3% 3% [libx264 @ 0000021ff5cc1bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 18% 39% 2% 2% 1% 2% 1% 3% [libx264 @ 0000021ff5cc1bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 26% 20% 4% 4% 4% 4% 4% 4% [libx264 @ 0000021ff5cc1bc0] i8c dc,h,v,p: 76% 14% 8% 2% [libx264 @ 0000021ff5cc1bc0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0000021ff5cc1bc0] ref P L0: 54.6% 6.3% 21.3% 17.8% [libx264 @ 0000021ff5cc1bc0] ref B L0: 77.2% 16.0% 6.8% [libx264 @ 0000021ff5cc1bc0] ref B L1: 91.9% 8.1% [libx264 @ 0000021ff5cc1bc0] kb/s:190.79 Exiting normally, received signal 2.
recording.log
No conda env active, defaulting to base ffmpeg version N-115020-ga9a69a5a31-20240428 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13.2.0 (crosstool-NG 1.26.0.65_ecc5e41) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g++ --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20240428 libavutil 59. 16.101 / 59. 16.101 libavcodec 61. 5.103 / 61. 5.103 libavformat 61. 3.103 / 61. 3.103 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.101 / 10. 2.101 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100
wr.log
2024-05-06 14:26:02,661 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:26:02,662 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:26:03,605 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:26:03,605 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:26:03,652 - [record_screen.py:234] - main - INFO - Windrecorder: config.OCR_index_strategy: 1 2024-05-06 14:26:03,652 - [record_screen.py:241] - main - INFO - Windrecorder: config.screentime_not_change_to_pause_record: 5 2024-05-06 14:26:03,652 - [ocr_manager.py:708] - ocr_process_videos - INFO - Processing all video files. 2024-05-06 14:26:03,659 - [file_utils.py:42] - ensure_dir - INFO - files: created folder cache\i_frames\2024-05-06_14-20-47 2024-05-06 14:26:03,659 - [ocr_manager.py:58] - extract_iframe - INFO - extracting video i-frame: userdata\videos\2024-05\2024-05-06_14-20-47-INDEX.mp4 2024-05-06 14:26:03,699 - [record.py:92] - record_screen - INFO - record_screen: ffmpeg cmd: ['ffmpeg', '-hwaccel', 'auto', '-f', 'gdigrab', '-framerate', '2', '-i', 'desktop', '-c:v', 'libx264', '-b:v', '200k', '-pix_fmt', 'yuv420p', '-t', '900', 'userdata\\videos\\2024-05\\2024-05-06_14-26-03.mp4'] 2024-05-06 14:26:03,702 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:None 2024-05-06 14:26:21,503 - [ocr_manager.py:674] - ocr_process_single_video - INFO - Add tags to video file 2024-05-06 14:26:21,504 - [ocr_manager.py:677] - ocr_process_single_video - INFO - --------- userdata\videos\2024-05\2024-05-06_14-20-47-INDEX.mp4 Finished! --------- 2024-05-06 14:26:34,035 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.3757455268389662] 2024-05-06 14:27:04,148 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.21157684630738524] 2024-05-06 14:27:34,250 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.25948103792415167] 2024-05-06 14:28:04,371 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.196] 2024-05-06 14:28:34,475 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.192] 2024-05-06 14:29:04,574 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.6047904191616766] 2024-05-06 14:29:34,673 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.5409181636726547] 2024-05-06 14:30:04,782 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.142] 2024-05-06 14:30:11,814 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:30:11,815 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:30:12,446 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:30:12,450 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:30:12,452 - [db_manager.py:558] - db_num_records - INFO - db_filepath: userdata\db\ctrls_2024-04_wind_TEMP_READ.db, rows_count: 246 2024-05-06 14:30:12,455 - [db_manager.py:558] - db_num_records - INFO - db_filepath: userdata\db\ctrls_2024-05_wind_TEMP_READ.db, rows_count: 20 2024-05-06 14:30:12,456 - [db_manager.py:559] - db_num_records - INFO - rows_count_all: 266 2024-05-06 14:30:12,460 - [db_manager.py:259] - db_search_data - INFO - Querying keywords 2024-05-06 14:30:12,461 - [db_manager.py:275] - db_search_data - INFO - datetime_start=datetime.datetime(2024, 5, 6, 3, 0), datetime_end=datetime.datetime(2024, 5, 7, 2, 59, 59) 2024-05-06 14:30:12,464 - [db_manager.py:283] - db_search_data - INFO - Querying userdata\db\ctrls_2024-05_wind_TEMP_READ.db 2024-05-06 14:30:12,464 - [db_manager.py:331] - db_search_data - INFO - SQL query: SELECT * FROM video_text WHERE ocr_text LIKE '%%' AND (videofile_time BETWEEN 1714964400 AND 1715050799) 2024-05-06 14:30:12,467 - [oneday.py:93] - render - INFO - day_min_timestamp_dt=datetime.datetime(2024, 5, 6, 14, 20, 47), day_max_timestamp_dt=datetime.datetime(2024, 5, 6, 14, 23, 19) 2024-05-06 14:30:12,473 - [db_manager.py:259] - db_search_data - INFO - Querying keywords 2024-05-06 14:30:12,473 - [db_manager.py:275] - db_search_data - INFO - datetime_start=datetime.datetime(2024, 5, 6, 14, 20, 47), datetime_end=datetime.datetime(2024, 5, 6, 14, 23, 19) 2024-05-06 14:30:12,474 - [db_manager.py:283] - db_search_data - INFO - Querying userdata\db\ctrls_2024-05_wind_TEMP_READ.db 2024-05-06 14:30:12,474 - [db_manager.py:331] - db_search_data - INFO - SQL query: SELECT * FROM video_text WHERE ocr_text LIKE '%%' AND (videofile_time BETWEEN 1715005247 AND 1715005399) 2024-05-06 14:30:12,476 - [oneday.py:269] - render - INFO - webui: Deleted file: userdata\result_timeline\2024-04-29-today-.png 2024-05-06 14:30:12,860 - [db_manager.py:259] - db_search_data - INFO - Querying keywords 2024-05-06 14:30:12,860 - [db_manager.py:275] - db_search_data - INFO - datetime_start=datetime.datetime(2024, 5, 6, 3, 0), datetime_end=datetime.datetime(2024, 5, 7, 2, 59, 59) 2024-05-06 14:30:12,861 - [db_manager.py:283] - db_search_data - INFO - Querying userdata\db\ctrls_2024-05_wind_TEMP_READ.db 2024-05-06 14:30:12,862 - [db_manager.py:331] - db_search_data - INFO - SQL query: SELECT * FROM video_text WHERE ocr_text LIKE '%%' AND (videofile_time BETWEEN 1714964400 AND 1715050799) 2024-05-06 14:30:12,868 - [oneday.py:436] - show_and_locate_video_timestamp_by_filename_and_time - INFO - webui: videofile_path: userdata\videos\2024-05\2024-05-06_14-20-47-OCRED.mp4 2024-05-06 14:30:13,072 - [utils.py:562] - get_cmd_tool_echo - INFO - command: ['ocr_lib\\Windows.Media.Ocr.Cli.exe', '-s'] 2024-05-06 14:30:13,422 - [db_manager.py:259] - db_search_data - INFO - Querying keywords 2024-05-06 14:30:13,422 - [db_manager.py:275] - db_search_data - INFO - datetime_start=datetime.datetime(2024, 5, 6, 3, 0), datetime_end=datetime.datetime(2024, 5, 7, 2, 59, 59) 2024-05-06 14:30:13,423 - [db_manager.py:283] - db_search_data - INFO - Querying userdata\db\ctrls_2024-05_wind_TEMP_READ.db 2024-05-06 14:30:13,424 - [db_manager.py:331] - db_search_data - INFO - SQL query: SELECT * FROM video_text WHERE ocr_text LIKE '%%' AND (videofile_time BETWEEN 1714964400 AND 1715050799) 2024-05-06 14:30:13,427 - [oneday.py:93] - render - INFO - day_min_timestamp_dt=datetime.datetime(2024, 5, 6, 14, 20, 47), day_max_timestamp_dt=datetime.datetime(2024, 5, 6, 14, 23, 19) 2024-05-06 14:30:13,431 - [db_manager.py:259] - db_search_data - INFO - Querying keywords 2024-05-06 14:30:13,431 - [db_manager.py:275] - db_search_data - INFO - datetime_start=datetime.datetime(2024, 5, 6, 14, 20, 47), datetime_end=datetime.datetime(2024, 5, 6, 14, 23, 19) 2024-05-06 14:30:13,433 - [db_manager.py:283] - db_search_data - INFO - Querying userdata\db\ctrls_2024-05_wind_TEMP_READ.db 2024-05-06 14:30:13,433 - [db_manager.py:331] - db_search_data - INFO - SQL query: SELECT * FROM video_text WHERE ocr_text LIKE '%%' AND (videofile_time BETWEEN 1715005247 AND 1715005399) 2024-05-06 14:30:13,461 - [oneday.py:436] - show_and_locate_video_timestamp_by_filename_and_time - INFO - webui: videofile_path: userdata\videos\2024-05\2024-05-06_14-20-47-OCRED.mp4 2024-05-06 14:30:34,896 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.226] 2024-05-06 14:31:17,974 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:31:17,974 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:31:19,018 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:31:19,019 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:31:19,069 - [record_screen.py:234] - main - INFO - Windrecorder: config.OCR_index_strategy: 1 2024-05-06 14:31:19,069 - [record_screen.py:241] - main - INFO - Windrecorder: config.screentime_not_change_to_pause_record: 5 2024-05-06 14:31:19,069 - [ocr_manager.py:708] - ocr_process_videos - INFO - Processing all video files. 2024-05-06 14:31:19,076 - [file_utils.py:42] - ensure_dir - INFO - files: created folder cache\i_frames\2024-05-06_14-26-03 2024-05-06 14:31:19,076 - [ocr_manager.py:58] - extract_iframe - INFO - extracting video i-frame: userdata\videos\2024-05\2024-05-06_14-26-03-INDEX.mp4 2024-05-06 14:31:19,115 - [record.py:92] - record_screen - INFO - record_screen: ffmpeg cmd: ['ffmpeg', '-hwaccel', 'auto', '-f', 'gdigrab', '-framerate', '2', '-i', 'desktop', '-c:v', 'libx264', '-b:v', '200k', '-pix_fmt', 'yuv420p', '-t', '900', 'userdata\\videos\\2024-05\\2024-05-06_14-31-19.mp4'] 2024-05-06 14:31:19,118 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:None 2024-05-06 14:31:40,776 - [ocr_manager.py:674] - ocr_process_single_video - INFO - Add tags to video file 2024-05-06 14:31:40,776 - [ocr_manager.py:677] - ocr_process_single_video - INFO - --------- userdata\videos\2024-05\2024-05-06_14-26-03-INDEX.mp4 Finished! --------- 2024-05-06 14:31:49,481 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.444] 2024-05-06 14:31:54,977 - [db_manager.py:45] - db_main_initialize - INFO - Initialize the database... 2024-05-06 14:31:54,978 - [db_manager.py:88] - db_initialize - INFO - db existed and not empty 2024-05-06 14:31:55,037 - [record_screen.py:234] - main - INFO - Windrecorder: config.OCR_index_strategy: 1 2024-05-06 14:31:55,038 - [record_screen.py:241] - main - INFO - Windrecorder: config.screentime_not_change_to_pause_record: 5 2024-05-06 14:31:55,039 - [ocr_manager.py:708] - ocr_process_videos - INFO - Processing all video files. 2024-05-06 14:31:55,042 - [file_utils.py:42] - ensure_dir - INFO - files: created folder cache\i_frames\2024-05-06_14-31-19 2024-05-06 14:31:55,046 - [ocr_manager.py:58] - extract_iframe - INFO - extracting video i-frame: userdata\videos\2024-05\2024-05-06_14-31-19-INDEX.mp4 2024-05-06 14:31:55,089 - [record.py:92] - record_screen - INFO - record_screen: ffmpeg cmd: ['ffmpeg', '-hwaccel', 'auto', '-f', 'gdigrab', '-framerate', '2', '-i', 'desktop', '-c:v', 'libx264', '-b:v', '200k', '-pix_fmt', 'yuv420p', '-t', '900', 'userdata\\videos\\2024-05\\2024-05-06_14-31-55.mp4'] 2024-05-06 14:31:55,094 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:None 2024-05-06 14:31:58,121 - [ocr_manager.py:674] - ocr_process_single_video - INFO - Add tags to video file 2024-05-06 14:31:58,121 - [ocr_manager.py:677] - ocr_process_single_video - INFO - --------- userdata\videos\2024-05\2024-05-06_14-31-19-INDEX.mp4 Finished! --------- 2024-05-06 14:32:25,449 - [record_screen.py:194] - monitor_compare_screenshot - INFO - monitor_idle_minutes:0, similarity:[0.816]

@1298345095
Copy link
Author

每次启动也非常耗时。CPU是13900H,存储位置也是SSD,不应该有性能上的问题。

@1298345095
Copy link
Author

不同设备上还会都偶尔出现卡在 Trying to hide CLI window... 的后几步上不再运行

@ASC8384
Copy link
Collaborator

ASC8384 commented May 6, 2024

每次启动也非常耗时。CPU是13900H,存储位置也是SSD,不应该有性能上的问题。

请问您后台是否有诸如 360 等安全监控软件?有的话,可以先关闭再试试。

@Antonoko
Copy link
Member

Antonoko commented May 7, 2024

每次启动也非常耗时。CPU是13900H,存储位置也是SSD,不应该有性能上的问题。

我也有类似的体验,感觉可能是 python 或虚拟环境的问题?🤔不大清楚,对这方面如何运作知之甚少…(在启动一次后退出,第二次启动就很快了,它如何运作的呢

不同设备上还会都偶尔出现卡在 Trying to hide CLI window... 的后几步上不再运行

在执行 CLI 时,程序会检测当前活动窗口标题名是否为 Windrecorder,是则隐藏 CLI 窗口。这步大概会尝试轮询 10 次,如果前台窗口标题都不是则放弃隐藏了…(因为上边虚拟环境启动需要一些时间,导致如果用户此时切到了其他窗口,不进行检测匹配的话就会导致其他窗口被隐藏了而不是 CLI😥

@1298345095
Copy link
Author

每次启动也非常耗时。CPU是13900H,存储位置也是SSD,不应该有性能上的问题。

请问您后台是否有诸如 360 等安全监控软件?有的话,可以先关闭再试试。

并没有,甚至连wd都关闭了

@1298345095
Copy link
Author

每次启动也非常耗时。CPU是13900H,存储位置也是SSD,不应该有性能上的问题。

我也有类似的体验,感觉可能是 python 或虚拟环境的问题?🤔不大清楚,对这方面如何运作知之甚少…(在启动一次后退出,第二次启动就很快了,它如何运作的呢

不同设备上还会都偶尔出现卡在 Trying to hide CLI window... 的后几步上不再运行

在执行 CLI 时,程序会检测当前活动窗口标题名是否为 Windrecorder,是则隐藏 CLI 窗口。这步大概会尝试轮询 10 次,如果前台窗口标题都不是则放弃隐藏了…(因为上边虚拟环境启动需要一些时间,导致如果用户此时切到了其他窗口,不进行检测匹配的话就会导致其他窗口被隐藏了而不是 CLI😥

我这里的情况应该是,开机以后没有及时解锁锁屏页面,他自动启动时还没有解锁,找不到窗口。
这样子的做法实在是有很多问题。。。python不适合做主程序

@Antonoko
Copy link
Member

Antonoko commented May 10, 2024

我这里的情况应该是,开机以后没有及时解锁锁屏页面,他自动启动时还没有解锁,找不到窗口。 这样子的做法实在是有很多问题。。。

我也有一样的使用感受lol,是有锁屏判断能力的,我给加到隐藏窗口的环节 添加了更多的尝试次数,目前只要在1200秒(20分钟)内解锁屏幕应该都能尝试隐藏了(

python不适合做主程序

(说到底还是我太菜了实在不擅长开发工作

@1298345095
Copy link
Author

仍然有这样的问题,在我的laptop上能正常运行,也很流畅。但到了台式机上,就会出现托盘卡死的情况。开始以为是python版本或者系统的问题,但我重装系统之后再次使用,相同的环境,还是出现卡死的情况,就很迷惑。。。

@Antonoko
Copy link
Member

💔确实迷惑了55……最近版本有添加debug模式,你可以在目录下新建一个DEBUGMODE.txt,执行程序后、在cache/logs/wr.log中会实时更新调试日志,可以用vscode等软件打开监视着,看看在进行各个操作时会有什么提示…(托盘菜单的问题听上去太玄学了

@1298345095
Copy link
Author

💔确实迷惑了55……最近版本有添加debug模式,你可以在目录下新建一个DEBUGMODE.txt,执行程序后、在cache/logs/wr.log中会实时更新调试日志,可以用vscode等软件打开监视着,看看在进行各个操作时会有什么提示…(托盘菜单的问题听上去太玄学了

卡死以后等了半天,根本就没反应啊。。。操作托盘至卡死期间,log也没输出东西

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants