Closed Hongfeng-mtec closed 11 months ago
another data point: if I just modify python/examples/cuda_from_numpy.py, and append
output = videoOutput('webrtc://@:8555/live')
while True:
output.Render(cuda_mem)
time.sleep(0.1)
that script works fine, I am wondering what's the difference here.
it turns out nothing related to videoOutput Render(), if I add "return 0" to the new-sample callback, the error message goes away. sorry for the false alarm.
I am trying to use appsink to get a video frame, which I convert to cudaImage, then try to stream it to webrtc. The code is largely like this:
Now the cudaImage object looks legit, but I am get following error on the render function.
If I output the video to v4l2sink, then run video_viewer using input from the loopback device, it works fine. L4T: 32.7.4, Hardware: TX2