修正使用webrtc时,全身bug

This commit is contained in:
omanhom 2024-04-16 18:46:10 +08:00
parent 50a1dc0f34
commit 91e73839f3
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class NeRFReal:
if self.opt.transport=='rtmp': if self.opt.transport=='rtmp':
self.streamer.stream_frame(image_fullbody) self.streamer.stream_frame(image_fullbody)
else: else:
new_frame = VideoFrame.from_ndarray(image, format="rgb24") new_frame = VideoFrame.from_ndarray(image_fullbody, format="rgb24")
asyncio.run_coroutine_threadsafe(video_track._queue.put(new_frame), loop) asyncio.run_coroutine_threadsafe(video_track._queue.put(new_frame), loop)
#self.pipe.stdin.write(image.tostring()) #self.pipe.stdin.write(image.tostring())
for _ in range(2): for _ in range(2):