timestamp from buffer always 99:99:99.999999999

SpicyChicken xch0929 at 126.com
Thu Apr 16 21:55:41 PDT 2015


UP my question.

I am not sure, cause timestamp output from "mpegpsmux" is not valid, so 
rtpmp2pspay always gets invalid timestamp, am I right?




SpicyChicken wrote
> Hi,
> 
> I am working on the application streaming with PS stream, and the pipeline
> as following:

>  ! 'video/x-h264, width=640, height=480, framerate=25/2' !  mpegpsmux !
> rtpmp2pspay pt=96 ssrc=100000001  ! udpsink host=
> <IP address >
>  port=
> <port>
>  sync=false
> 
> 
> the plugin rtpmp2pspay is created by ourselves which is just modified from
> rtpmp2tpay.
> 
> we create function gst_rtp_mp2ps_pay_handle_buffer() to handle the
> incoming buffer
> 
> 
> GstFlowReturn
> gst_rtp_mp2ps_pay_handle_buffer (GstRTPBasePayload * basepayload,
>     GstBuffer * buffer)
> {
>   ... ... 
> 
>   rtpmp2pspay = GST_RTP_MP2PS_PAY (basepayload);
> 
>   timestamp = GST_BUFFER_TIMESTAMP (buffer);
>   duration = GST_BUFFER_DURATION (buffer);
> 
>     GST_DEBUG_OBJECT (rtpmp2pspay,
>       "ts from buffer: %" GST_TIME_FORMAT "",
>       GST_TIME_ARGS (timestamp));
> 
>   ... ...
> 
> }
> 
> but debug message as following:
> 0:00:01.852021510  4149   0x7b7720 DEBUG            rtpmp2pspay
> gst_rtp_mp2ps_pay_handle_buffer: ts from buffer: 99:99:99.999999999
> 
> It seems that the timestamp is not correct, but I do not why?
> 
> Anyone can help me have a look.
> 
> Thanks,





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/timestamp-from-buffer-always-99-99-99-999999999-tp4671426p4671603.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list