<div dir="ltr">Hi All,<br><br>I am facing the issue that the video (h264) is not being played in GStreamer.<br><br>Here's the details of the workflow,<br><br>1. I have RTSP server running on a Windows machine. It streams video frames/packets (h264).<br><br>2. Tested the server using VLC and the video plays fine.<br><br>3. Tested the server using GStreamer. First I used the following command,<br>gst-launch-1.0 playbin uri=rtsp://<a href="http://127.0.0.1:8554/live">127.0.0.1:8554/live</a><br><br>And then also tried with,<br>gst-launch-1.0 rtspsrc location=rtsp://<a href="http://127.0.0.1:8554/live">127.0.0.1:8554/live</a> ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink<br><br>4. In both the cases I was getting warning as follows,<br>WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstRtpH264Depay:rtph264depay0: Could not decode stream.<br>Additional debug info:<br>../gst/rtp/gstrtph264depay.c(1443): gst_rtp_h264_depay_process (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstRtpH264Depay:rtph264depay0:<br>Undefined packet type<br><br>5. I analyzed the warning and investigated further. My finding was that the h264 header has start codes (00 00 00 01) zeros followed by one. And maybe GStreamer expects h264 without start codes. So I removed the start codes in the RTSP server before streaming.<br><br>6. Tested with VLC to ensure that the video plays fine after removing start codes. Yes the video plays fine.<br><br>7. Tested again with GStreamer and I don't get the warning for "Undefined packet type". Now I get some logs as follows,<br>Progress: (open) Opened Stream<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br>Progress: (request) Sending PLAY request<br>Redistribute latency...<br>Progress: (request) Sending PLAY request<br>Redistribute latency...<br>Progress: (request) Sent PLAY request<br>Redistribute latency...<br>Redistribute latency...<br><br>And nothing happens after this. The video is not being played.<br><br>I also output logs using gst-debug but couldn't find the root cause of the issue.<br><br>Please advise what is missing here and how I can look into this further.<br><br>Regards,<br>Narayan<br></div>