Closed wuqingzhou828 closed 3 months ago
i have to stop by KeyboardInterrupt
rtmp @ 0x555986dfd140] Sending bytes read report0:00:11.16 bitrate=1244160.0kbits/s speed= 1.8x
^CTraceback (most recent call last):1150kB time=00:00:20.88 bitrate=1244160.0kbits/s speed=1.34x
File "test_infer.py", line 120, in
@wuqingzhou828 That is because you're processing frames in GPU memory which is separated from main thread and will continue to process until you manually kill the process or send SIGINT signal to terminate process. However I can add a flag to kill process immediately, I'll look into that,
@wuqingzhou828 Successfully resolved and merged in commit: https://github.com/abhiTronix/deffcode/commit/f4682f3a317d77481bc146ad020104b01c2fdb96
Issue guidelines
Issue Checklist
Describe your Question
source: 'rtmp://xxxx/live/xxx' is a online stream while the online stream haved close, my code will not stop but just hold on
Terminal log output(Optional)
No response
Python Code(Optional)
DeFFcode Version
0.2.5
Python version
3.8
Operating System version
nvcr.io/nvidia/tensorrt:22.04-py3 and ffmpeg gpu
Any other Relevant Information?
No response