What is the difference between H.264 depay and H.264 parse in GStreamer world?

Viewed 432

I have a RTSP source. The data come in as stream of NAL units. I suppose that the RTP packets need to be "depay" or "parsed" into something that H.264 decoder can understand.

rtspsrc ! rtph264depay ! h264parse ! avdec_h264 ! ...

What's the actual difference between depay and parse? Intuitively it seems to me that they are doing the same thing. But Gstreamer pipeline won't work if I remove one of them.

1 Answers

rtph264depay: RTP -> H.264 bitstream

h264parse: H.264 bitsream -> bytestream or AVC samples and NAL or AU packing

Related