how to use nvdec decode rtp stream. I want to use multimedia api.But the samples only have h264 and h265 decode samples.
I think that MMAPI doesn’t provide so much for any container to file or network stream.
So you may use gstreamer that has many plugins for this (nvv4l2decoder uses NVDEC). A typical pipeline for reading a video from RTSP server (here on localhost port 8554 path test) to X display on Jetson would be:
gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/test ! nvvidconv ! xvimagesink
In case you’re reading H264 encoded video from RTP over UDP/5000, the pipeline would be:
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H264 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvidconv ! xvimagesink # Or if reading from multicast: gst-launch-1.0 udpsrc port=5000 multicast-group=126.96.36.199 auto-multicast=true ! application/x-rtp,encoding-name=H264 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvidconv ! xvimagesink
thanks.i will try