diff --git a/base_test/receiver.py b/base_test/receiver.py index 8f4c0a2..2b4a6c4 100644 --- a/base_test/receiver.py +++ b/base_test/receiver.py @@ -112,7 +112,8 @@ class JPEG2H264Streamer: # 转换色彩空间 (BGR -> RGB) 并封装为 PyAV 帧 frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) - av_frame = av.VideoFrame.from_numpy_array(frame_rgb, format='rgb24') + # 修改后 + av_frame = av.VideoFrame.from_ndarray(frame_rgb, format='rgb24') # 分配高精度时钟戳 av_frame.pts = pts