Gstreamer and MPEG TS Constant Bit Rate

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

Gstreamer and MPEG TS Constant Bit Rate

Tom Hendrick
Hi,

I heard there is something called MPEG4-TS which can give a constant bit rate but I don't know if that is supported by gstreamer.  Does anyone know?

I have an application that requires constant bitrate and the input to the gstreamer (an AXIS IP camera) isn't quite giving me a constant bitrate

Here is an example of my transmit gstreamer call:

gst-launch-0.10 -e rtspsrc location=rtsp://192.168.0.90/mpeg4/media.amp ! rtpmp4vdepay ! mpeg4videoparse ! gdppay ! filesink location=txfifo.ts&

the receiver looks like (txout.ts is the demodulated piped file):

gst-launch-0.10 filesrc location=txout.ts ! gdpdepay ! ffdec_mpeg4 ! xvimagesink

I was hoping to try something simple with gstreamer like MPEG4-TS because changes to the C++ code are too difficult for me to do. Any advice would be greatly appreciated.
Thanks. Tom

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer and MPEG TS Constant Bit Rate

David Schleef-2
On Tue, Apr 26, 2011 at 08:14:04AM -0700, Tom Hendrick wrote:
> Hi,
>
> I heard there is something called MPEG4-TS which can give a
> constant bit rate but I don't know if that is supported by gstreamer.  Does anyone know?
>
> I have an application that requires constant bitrate and the input to the gstreamer (an AXIS IP camera) isn't quite giving me a constant bitrate

If you want convert a variable bit rate stream to a constant bit rate
stream, you have to reencode.



David

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer and MPEG TS Constant Bit Rate

Tom Hendrick
Hi,
Thanks David.  I was hoping to let all the encoding happen with the AXIS IP camera since I am resource limited on the processor that modulates the incoming bitstream.  I was hoping for some muxer type option.
-Tom

--- On Tue, 4/26/11, David Schleef <[hidden email]> wrote:

From: David Schleef <[hidden email]>
Subject: Re: Gstreamer and MPEG TS Constant Bit Rate
To: "Discussion of the development of and with GStreamer" <[hidden email]>
Date: Tuesday, April 26, 2011, 10:00 PM

On Tue, Apr 26, 2011 at 08:14:04AM -0700, Tom Hendrick wrote:
> Hi,
>
> I heard there is something called MPEG4-TS which can give a
> constant bit rate but I don't know if that is supported by gstreamer.  Does anyone know?
>
> I have an application that requires constant bitrate and the input to the gstreamer (an AXIS IP camera) isn't quite giving me a constant bitrate

If you want convert a variable bit rate stream to a constant bit rate
stream, you have to reencode.



David

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@...
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer and MPEG TS Constant Bit Rate

Tim-Philipp Müller-2
In reply to this post by David Schleef-2
On Tue, 2011-04-26 at 18:00 -0400, David Schleef wrote:
 

> > I heard there is something called MPEG4-TS which can give a
> > constant bit rate but I don't know if that is supported by
> > gstreamer.Does anyone know?
> >
> > I have an application that requires constant bitrate and
> > the input to the gstreamer (an AXIS IP camera) isn't
> > quite giving me a constant bitrate
>
> If you want convert a variable bit rate stream to a constant bit rate
> stream, you have to reencode.

Or maybe it would be possible to just add padding, if the original
stream is "fairly constant" and can be configured to encode to slightly
less than required? (Not that we support that either at the moment, as
far as I know)

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer and MPEG TS Constant Bit Rate

Tom Hendrick
Hi Tim,
Thanks.  That could be an interesting option but I don't have the coding skills to implement something like that so I was just trying to see what existing solutions exist with Gstreamer for CBR without heavy encoding.
Thanks, Tom

--- On Thu, 4/28/11, Tim-Philipp Müller <[hidden email]> wrote:

From: Tim-Philipp Müller <[hidden email]>
Subject: Re: Gstreamer and MPEG TS Constant Bit Rate
To: [hidden email]
Date: Thursday, April 28, 2011, 8:17 AM

On Tue, 2011-04-26 at 18:00 -0400, David Schleef wrote:

> > I heard there is something called MPEG4-TS which can give a
> > constant bit rate but I don't know if that is supported by
> > gstreamer.Does anyone know?
> >
> > I have an application that requires constant bitrate and
> > the input to the gstreamer (an AXIS IP camera) isn't
> > quite giving me a constant bitrate
>
> If you want convert a variable bit rate stream to a constant bit rate
> stream, you have to reencode.

Or maybe it would be possible to just add padding, if the original
stream is "fairly constant" and can be configured to encode to slightly
less than required? (Not that we support that either at the moment, as
far as I know)

Cheers
-Tim

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@...
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel