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

bug: 录制的视频文件只剩下左上部分的画面,原因未知 #90

Open
B1lli opened this issue Jan 2, 2024 · 3 comments
Open
Labels
bug Something isn't working P2 one day it will be done

Comments

@B1lli
Copy link

B1lli commented Jan 2, 2024

今天检查视频文件,发现最近一段时间的视频文件都只剩下左上部分的画面
image

回去检查了一下这个现象从什么时候开始出现,发现是从自己元旦那会开始玩博德之门3的时候,打开博德之门3之后在游戏内和游戏外切换了数次,随后就这样了,我的电脑是笔记本电脑,N卡,开了独显直连模式,可能和独显处理信号切换有关

该问题在重启start_app.bat后消失

@B1lli
Copy link
Author

B1lli commented Jan 2, 2024

可能的临时解决办法:允许用户自定义一个时间间隔,到达该间隔时自动重启一下start_app.bat

@Antonoko
Copy link
Collaborator

Antonoko commented Jan 2, 2024

感谢反馈!目前的录制逻辑是每次录制时都重新读取屏幕分辨率,如果在录制下一个15分钟片段的中途改变了分辨率便会出现这样的问题(我最近开始玩游戏时也注意到了😵‍💫,打算接下来把策略改为只在start_app.bat打开时读取一次分辨率,之后便固定下来;config 中也提供非显式的选型允许用户自定义固定分辨率

image

update: 感觉即使固定分辨率也比较难解决覆盖此问题,想了想还是应该每次新录制视频时都对屏幕分辨率进行一次检测,希冀当15分钟切片开始录制时,获取到的是比较正确的目标分辨率。在重构录制方式前,这个问题可能都不具有较有效解决方案。

@Antonoko Antonoko added bug Something isn't working P1 second priority labels Jan 2, 2024
@Antonoko Antonoko added P2 one day it will be done and removed P1 second priority labels Jan 24, 2024
@ASC8384
Copy link
Collaborator

ASC8384 commented Apr 6, 2024

感觉可以在托盘加个重启功能

def on_restart(icon: pystray.Icon, item: pystray.MenuItem):
    """重启当前的python程序"""
    icon.notify(message=_t("tray_restart"), title=_t("tray_restart"))
    logger.info("Restarting Windrecorder...")
    os.execl(os.execl, os.path.abspath(os.path.abspath(__file__)), * sys.argv)

但这么写似乎没用。。。

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

No branches or pull requests

3 participants