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
CUDA ERROR when use gstEncoder!please help! #56
Comments
Hi jcyhcs, it needs to be a CUDA pointer that you supply to the function, but you supply CPU-only pointer from OpenCV. Allocate CUDA memory with cudaAllocMapped() from my cudaMappedMemory.h and memcpy() into it. Then use that CUDA pointer.
…________________________________
From: jcyhcs <notifications@github.com>
Sent: Monday, March 1, 2021 7:56:13 PM
To: dusty-nv/jetson-utils <jetson-utils@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [dusty-nv/jetson-utils] CUDA ERROR when use gstEncoder!please help! (#56)
hi,prrofessor:
i use gstEncoder API to encode OpenCV Mat frame ,then push stream with RTMP, i use gst pipeline :
[image]<https://user-images.githubusercontent.com/34532224/109579898-b2032b00-7b34-11eb-8d1e-dbaa537e3610.png>
and is OK!
then i use Render API to encode a Mat frame , code this:
[image]<https://user-images.githubusercontent.com/34532224/109580011-dfe86f80-7b34-11eb-8d01-91b9143d9255.png>
then run the program, i got a CUDA ERROR!:
[image]<https://user-images.githubusercontent.com/34532224/109580070-fdb5d480-7b34-11eb-934b-aa06d11fa2e7.png>
what's the problem?? and how can i do ?
help me,please!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#56>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADVEGK56OFFZ6HH5SZRPXWTTBQZS3ANCNFSM4YNVWDBA>.
|
hi @dusty-nv , i modify my code like this: |
hello, have you solved the problem about pipeline full? |
I also want to push rtsp stream, however jetson-utils not yet support, but hw-encode in jetson-utils is great to use; so I use jetson-utils + rtsp-server, I want to get the buffer which after encoding to H264(H265), do you know how to get? I guess the buffer which I need is in "gstEncoder.h" that named 'RingBuffer mBufferYUV', but I haven't test it, if you also have same demand we can finish together. |
Hi @lzcchl, the encoded output isn't typically directly accessible in the code, instead GStreamer handles it (i.e. in filesink or rtpsink). The Is there a GStreamer-based RTSP server element that could be integrated into the pipeline? For example, https://github.com/GStreamer/gst-rtsp-server This would be the ideal way, to have it all stay inside GStreamer. |
hi,prrofessor:
i use gstEncoder API to encode OpenCV Mat frame ,then push stream with RTMP, i use gst pipeline :
and is OK!
then i use Render API to encode a Mat frame , code this:
then run the program, i got a CUDA ERROR!:
what's the problem?? and how can i do ?
help me,please!
The text was updated successfully, but these errors were encountered: