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

m4s视频文件remux失败后在webhook返回错误的文件路径 #263

Open
q513902026 opened this issue Apr 8, 2024 · 0 comments
Open

Comments

@q513902026
Copy link

q513902026 commented Apr 8, 2024

日志

2024-04-08 00:22:21.447 | DEBUG | blrec.postprocess.postprocessor:_postprocess:159 | 1163043 - Postprocessing... N:\录播\Videos\1163043\1163043_20240407-23-59-45.m4s
2024-04-08 00:22:21.448 | DEBUG | blrec.core.recorder:on_stream_recording_completed:431 | 1163043 - Stream recording completed
2024-04-08 00:22:21.490 | INFO | blrec.postprocess.postprocessor:_remux_video_to_mp4:259 | 1163043 - Remuxing 'N:\录播\Videos\1163043\1163043_20240407-23-59-45.m3u8' to 'N:\录播\Videos\1163043\1163043_20240407-23-59-45.mp4' ...
2024-04-08 00:22:22.027 | DEBUG | blrec.hls.metadata_dumper:_do_disable:39 | 1163043 - Disabled metadata dumper
2024-04-08 00:22:22.027 | DEBUG | blrec.core.stream_recorder_impl:_do_stop:302 | 1163043 - Stopped stream recorder
2024-04-08 00:22:22.028 | DEBUG | blrec.core.danmaku_dumper:_do_disable:105 | 1163043 - Disabled danmaku dumper
2024-04-08 00:22:22.028 | DEBUG | blrec.core.danmaku_receiver:_do_stop:33 | 1163043 - Stopped danmaku receiver
2024-04-08 00:22:22.028 | DEBUG | blrec.core.cover_downloader:_do_disable:69 | 1163043 - Disabled cover downloader
2024-04-08 00:22:22.028 | INFO | blrec.core.recorder:_stop_recording:494 | 1163043 - Recording Finished
2024-04-08 00:22:22.029 | INFO | blrec.core.recorder:_print_waiting_message:504 | 1163043 - Waiting... until the live starts
2024-04-08 00:22:22.029 | DEBUG | blrec.bili.live_monitor:_handle_status_change:166 | 1163043 - Number of sequential LIVE status: 0
2024-04-08 00:22:29.631 | DEBUG | blrec.bili.live_monitor:_handle_status_change:138 | 22259479 - Live status changed from LIVE to PREPARING
2024-04-08 00:22:29.631 | DEBUG | blrec.bili.live_monitor:_handle_status_change:166 | 22259479 - Number of sequential LIVE status: 0
2024-04-08 00:22:48.354 | ERROR | blrec.postprocess.postprocessor:_remux_video_to_mp4:263 | 1163043 - Failed to remux 'N:\录播\Videos\1163043\1163043_20240407-23-59-45.m3u8' to 'N:\录播\Videos\1163043\1163043_20240407-23-59-45.mp4'

经过检查 应该是此处的 ext判断错误
https://github.com/acgnhiki/blrec/blob/master/src/blrec/postprocess/postprocessor.py#L262-L264
根据上下文判断应为
result_path = _in_path if ext == '.m4s' else in_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant