comparison Packetized vs byte stream format in x264enc over the network

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

comparison Packetized vs byte stream format in x264enc over the network

gstreader
Hi,

I am using the following pipeline for video streaming application .

Server pipeline running in two paths:
 1) after encoding save the encoded data(264 file) in a file.
filesrc->videoparse->x264enc->tee->queue->filesink
2) after encoding send the data over the network.
tee->queue->rtph264pay->rtpbin->udpsink


I have set the encoder property byte-stream = TRUE , otherwise I can not save the encoded data in a .264 file locally(server side).

My question is when we send the file over the network how it will go in RTP packetized format?

Will it contains a full NAL unit or more than one NAL unit in packet(but I have set byte-stream= TRUE)?

or  how it will send in byte-stream format packet?

Please add your comment.

Thanks in advance




Reply | Threaded
Open this post in threaded view
|

Re: comparison Packetized vs byte stream format in x264enc over the network

Arjen Veenhuizen
I think RFC6184 should give you the answer.  That is basically what rtph264pay (and its counterpart rtph264depay) is doing