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: 录制时关机或关闭Windrecoder会导致录像文件损坏 | Shutting down or closing Windrecoder during recording might cause the video file to be damaged. #153

Open
RTLiang opened this issue Apr 24, 2024 · 1 comment
Labels
bug Something isn't working P0 highest priority

Comments

@RTLiang
Copy link

RTLiang commented Apr 24, 2024

运行环境:Win10 Home 22H2, AMD 5800H, 录制编码器 AMD_h265, 录制比特率 150kbps
bug描述:录制时关机或关闭Windrecoder会导致录像文件损坏,而且OCR模块会正常更改文件名为 xxx-OCRED.mp4,potplayer无法打开视频文件。
image

个人推测是因为使用mp4封装文件导致文件损坏,可以尝试使用mkv录制,再在索引文件前封装为mp4(OBS推荐做法)
image

Edit:相同码率下mkv视频好像比mp4糊一些

@ASC8384 ASC8384 added bug Something isn't working P0 highest priority labels Apr 24, 2024
@Antonoko
Copy link
Collaborator

感谢反馈!目前由关机情况导致的录制停止有时会造成文件损坏;从托盘退出时默认会给录制进程发送退出信号、从而使 ffmpeg 正常退出封装完文件(当超时未退出时则会强制停止、从而造成文件损坏)。确实直接用 mp4 容器可能不是一个安全的、能面对各种非正常退出状况的方案。

@Antonoko Antonoko changed the title 录制时关机或关闭Windrecoder会导致录像文件损坏 bug: 录制时关机或关闭Windrecoder会导致录像文件损坏 | Shutting down or closing Windrecoder during recording will cause the video file to be damaged. Apr 24, 2024
@Antonoko Antonoko changed the title bug: 录制时关机或关闭Windrecoder会导致录像文件损坏 | Shutting down or closing Windrecoder during recording will cause the video file to be damaged. bug: 录制时关机或关闭Windrecoder会导致录像文件损坏 | Shutting down or closing Windrecoder during recording might cause the video file to be damaged. Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 highest priority
Projects
None yet
Development

No branches or pull requests

3 participants