raw h264 to rtp

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Sep 15 18:45:59 PDT 2015


Le mardi 15 septembre 2015 à 18:10 -0500, Carl Petersen a écrit :
> Im using a pipeline similar to this
>  
> gst-launch-1.0 -v filesrc location=rawh264.264 ! h264parse !
> rtph264pay ! udpsink host=XX.XX.XX.XX
>  
> The problem is I can’t get the timestamps on the rtp packets to be
> reliable nor can I get the rtp to be sent at the correct interval.
> Normally 15,24 or 30 frames per second.
>  
> My understanding is the raw h264 has no timing information. I know
> the framerate etc and could specify it but whatever I try on  the
> launch command doesnt appear to change anything.
>  
> The timestamps are all the same and don’t increment. The pts on the
> data buffers says “none”. The duration is “none”. The raw h264 can be
> played with other tools if the framerate is specified in those other
> tools. So what I need is; if I specify 15 fps , the pipeline puts out
> 15 fps and the timestamps are incremented accordingly based on 90000
> rtp clock rate. Ive had no luck with this.

You can create an application, and set the timestamp using a pad probe.
The other way around, it to not store ES streams without a container so
you can preserve the timestamp information.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150915/0e84e79c/attachment.sig>


More information about the gstreamer-devel mailing list