h264 video decoding and coverting to RGB frame with gstreamer using cpu or gpu

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

h264 video decoding and coverting to RGB frame with gstreamer using cpu or gpu

sulli_xue
Hello everyone!
Sorry to bother you,however I do need help.I have decoded h264 live video and converted it to RGB frame successfully with gstreamer's pipeline as follows:
#define CAPS "video/x-raw,format=RGB,width=1920,height=1080"
rtspsrc location=rtsp://admin:admin12345@192.168.1.88:554/h264/ch33/main/av_stream latency=0 ! tee name=t ! queue ! rtph264depay ! h264parse ! mpegtsmux ! filesink location=\"test.avi\" t. ! queue ! decodebin ! videoconvert ! appsink name=sink sync=false caps=\"" CAPS "\"
Now i have a confused question.As I 've learned from the Internet that gstreamer uses hardware decoding so it can speed decoding task,and I did see that gstreamer is more faster than ffmpeg in my task,but when I used "top" command and "watch -n 0.1 nvidia-smi" command to see CPU util and GPU util of the playing gst-launch-1.0 pipeline,I found that  cpu had 24% util which was much higher than no gstreamer pipeline running,and GPU had 0%~1% util which was same as no gstreamer pipeline running.
So could someone help me to fix the problem that whether cpu or gpu is used when I use gstreamer to do h264 video decoding and coverting to RGB frame.If cpu ,why gstreamer speeds this task?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel