mofury
mofury

Reputation: 725

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

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.

Upvotes: 3

Views: 3249

Answers (1)

Florian Zwoch
Florian Zwoch

Reputation: 7373

rtph264depay: RTP -> H.264 bitstream

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

Upvotes: 6

Related Questions