What is alignment capability in h264parse or rtph264depay element?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

What is alignment capability in h264parse or rtph264depay element?

I have created a pipeline to capture the h264 raw and decoded frames from a

Pipeline is shown below:

*rtspsrc location="cam url" ! tee name=t ! queue ! rtph264depay !
video/x-h264, stream-format=byte-stream ! queue ! h264parse ! appsink
name=sinkRaw max -buffers=100 drop=true t. ! queue ! rtph264depay ! queue !
h264parse ! omxh264dec ! nvvidconv ! video/x-raw, format=I420 ! appsink
name=sinkDec max-buffers=100 drop=true*

Everything works fine.
I am able to pull raw data form "sinkRaw" appsink and write it into a video
file to create a video.
Video is playable.

*But if I skip some raw data frames and then start writing them to a file,
the video file created is corrupted(contain some green-black patterns).

But if I set alignment=au in rtph264depay element , everything works fine.*

/*So can someone please explain me how by setting the alignment. the above
corrupted video problem is solved and what is the difference between nal and
au alignment?*/

I have already read the post :
but can't understand the difference between au and nal alignment.

Sent from: http://gstreamer-devel.966125.n4.nabble.com/
gstreamer-devel mailing list
[hidden email]