Skip to content
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

Closed
jcyhcs opened this issue Mar 2, 2021 · 5 comments
Closed

CUDA ERROR when use gstEncoder!please help! #56

jcyhcs opened this issue Mar 2, 2021 · 5 comments

Comments

@jcyhcs
Copy link

jcyhcs commented Mar 2, 2021

hi,prrofessor:
i use gstEncoder API to encode OpenCV Mat frame ,then push stream with RTMP, i use gst pipeline :
image
and is OK!
then i use Render API to encode a Mat frame , code this:
image
then run the program, i got a CUDA ERROR!:
image

what's the problem?? and how can i do ?
help me,please!

@dusty-nv
Copy link
Owner

dusty-nv commented Mar 2, 2021 via email

@jcyhcs
Copy link
Author

jcyhcs commented Mar 2, 2021

hi @dusty-nv , i modify my code like this:
image
then CUDA encode ok.
BUT i got other ERROR!:
image
why the pipeline FULL? how can i fix it? PLEASE!

@lzcchl
Copy link

lzcchl commented Mar 12, 2021

hello, have you solved the problem about pipeline full?

@lzcchl
Copy link

lzcchl commented Mar 12, 2021

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.

@dusty-nv
Copy link
Owner

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 mBufferYUV are the inputs that have been transformed to YUV colorspace before being sent to GStreamer for compression/transport.

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.

@dusty-nv dusty-nv reopened this Mar 16, 2021
@jcyhcs jcyhcs closed this as completed May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants