![]() If you don’t need video hardware, as in your simple example, you might as well. If gstreamer is bad at that even after troubleshooting, in your case you might be better off using ffmpeg. You’re just taking a stream out of one container and putting it in another. Muxing and demuxing in general cannot be hardware accelerated. “Streamable” might be doing some surgery on the stream you don’t need (or you might, again, not a gstreamer expert).Īs I understand it, only the gstreamer components starting with ‘nv’ are hardware accelerated (or omx). Removing them could possibly reduce cpu usage. I’m not a gstreamer expert so I can’t say for certain what’s wrong with your above example, but I don’t think those queues are necessary in that context. I use it on a pi zero to stream video and it uses <10% cpu. With the ffmpeg example above you are using the copy codec which simply copies the stream without touching it’s contents. Hardware won’t accelerate demuxing and remuxing, only decode or operations on the video itself. To do that I need to transcode H265 to H264 in order to mux it in a FLV, so I need HW acceleration. PS: If you are next to tell me “well… use ffmpeg”, the reply is: “no” cause I need also to grep H265 packets from RTSP and not only H264. I really cannot understand how is possible? any idea? Pipeline: gst-launch-1.0 rtspsrc latency=150 ! queue ! rtph264depay ! queue ! h264parse ! flvmux streamable=true name=mux ! rtmpsink location=rtmp://127.0.0.1:1935/live/camera1Ĭommand: ffmpeg -fflags nobuffer -i -c copy -f flv rtmp://127.0.0.1:1935/source/camera1 ![]() ![]() I found that Gstreamer uses more CPU (despite hw support) than FFMPEG. Here me again boring you about Gstreamer.Īs we know Gstreamer is ufficially supported by Nvidia and it can access to HW acceleration to encode/decode/crop/resize…īut I’m trying to copy H264 packets from an RTSP to a RTMP, one of the easier thing that is possible to do.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |