Hi folks,
I try decode h.264 streaming from multicast IP using Gstreamer.
Finally I want that my program run on python but first I try the command line.
Parameters:
I work on Jetson nano.
multicast IP: 234.0.0.0
port: 46002
pipeline that I try:
gst-launch-1.0 udpsrc port=46002 multicast-group=234.0.0.0 ! application/x-rtp,encoding-name=H264 ! rtpjitterbuffer latency=500 ! rtph264depay ! h264parse ! nvv4l2decoder ! autovideosink
but I get this error
WARNING: from element /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0: Could not decode stream.
Additional debug info:
gstrtpbasedepayload.c(466): gst_rtp_base_depayload_handle_buffer (): /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0:
Received invalid RTP payload, dropping
my python pipeline:
pipeline='udpsrc port=46002 multicast-group=234.0.0.0 ! application/x-rtp,encoding-name=H264 ! rtpjitterbuffer latency=500 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink drop=1
Of course not working first I need that pipeline work from the command line.
When I run ffmpeg with opencv python everything work but it’s very slow. I want to optimize my code.
I would be happy for any help.