How to convet raw h264 file to rtp ts stream?

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

How to convet raw h264 file to rtp ts stream?

General195
Hi, All
     I want to read a raw h264 file, then convert it to ts stream and send out with rtp/udp.
script as follow as :
    gst-launch -v filesrc location=raw.h264 \
        ! h264parse \
        ! mpegtsmux \
        ! rtpmp2tpay \
        ! udpsink port=6688 host=172.16.5.140

My problem is that, I receive all the  ts/rtp pockets immediately.  :)
And all rtp pockets with the same timestamps, so i can't play it with vlc.
So how can i get a normal speed stream ?

Thanks!!


--
Bercy Li
+8615954811012
[hidden email]



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to convet raw h264 file to rtp ts stream?

Tiago Katcipis
It seems that you don't have any element providing a clock so the pipeline will run as fast as possible, at least this happened when i had a similar problem. Your problem seems to be a little different since the timestamps are all the same, i would try to see if there is not missing some other parser or muxer on your pipeline (the one that would do the timestamping and provide a clock).

Maybe the clock documentation helps you:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-clocks.html

cheers,
Katcipis

2010/3/29 libing195 <[hidden email]>
Hi, All
     I want to read a raw h264 file, then convert it to ts stream and send out with rtp/udp.
script as follow as :
    gst-launch -v filesrc location=raw.h264 \
        ! h264parse \
        ! mpegtsmux \
        ! rtpmp2tpay \
        ! udpsink port=6688 host=172.16.5.140

My problem is that, I receive all the  ts/rtp pockets immediately.  :)
And all rtp pockets with the same timestamps, so i can't play it with vlc.
So how can i get a normal speed stream ?

Thanks!!


--
Bercy Li
+8615954811012
[hidden email]



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to convet raw h264 file to rtp ts stream?

Mark Nauwelaerts

Basically, see https://bugzilla.gnome.org/show_bug.cgi?id=587799
(in as much as anything more can be done about it).

Mark.

Tiago Katcipis wrote:

> It seems that you don't have any element providing a clock so the
> pipeline will run as fast as possible, at least this happened when i had
> a similar problem. Your problem seems to be a little different since the
> timestamps are all the same, i would try to see if there is not missing
> some other parser or muxer on your pipeline (the one that would do the
> timestamping and provide a clock).
>
> Maybe the clock documentation helps you:
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-clocks.html
>
> cheers,
> Katcipis
>
> 2010/3/29 libing195 <[hidden email] <mailto:[hidden email]>>
>
>     Hi, All
>          I want to read a raw h264 file, then convert it to ts stream
>     and send out with rtp/udp.
>     script as follow as :
>         gst-launch -v filesrc location=raw.h264 \
>             ! h264parse \
>             ! mpegtsmux \
>             ! rtpmp2tpay \
>             ! udpsink port=6688 host=172.16.5.140
>
>     My problem is that, I receive all the  ts/rtp pockets immediately.  :)
>     And all rtp pockets with the same timestamps, so i can't play it
>     with vlc.
>     So how can i get a normal speed stream ?


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel