change the gstreamer element paramter dynamic

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

change the gstreamer element paramter dynamic

Aaron
Hi  everyone !
 
     I want to change the paramter of  x264enc  when this encoder  are encoding the video stream,but i find  after i set the pipeline state  to PLAYING,
i can not set the x264enc paramter .so i want to know  if the pipeline is running , Can  i  change  paramter of the element in this pipeline?
Thanks very much!
 
                                                                                                                                                                                                            yangliming                

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

Re: change the gstreamer element parameter dynamic

Tim-Philipp Müller-2
On Thu, 2012-03-15 at 14:34 +0800, 杨立明 wrote:

Hi,
 
>      I want to change the paramter of  x264enc  when this encoder  are
> encoding the video stream,but i find  after i set the pipeline state
> to PLAYING,
> i can not set the x264enc paramter .so i want to know  if the pipeline
> is running , Can  i  change  paramter of the element in this
> pipeline?

Perhaps you should mention which parameter(s) you would like to change
at runtime, and what version of x264enc and libx264 you are using.

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: change the gstreamer element parameter dynamic

Olivier Crête-3
Hi,

On Thu, 2012-03-15 at 10:53 +0000, Tim-Philipp Müller wrote:
> On Thu, 2012-03-15 at 14:34 +0800, 杨立明 wrote:
> >      I want to change the paramter of  x264enc  when this encoder  are
> > encoding the video stream,but i find  after i set the pipeline state
> > to PLAYING,
> > i can not set the x264enc paramter .so i want to know  if the pipeline
> > is running , Can  i  change  paramter of the element in this
> > pipeline?

Only the "bitrate" and "vbv-buf-capacity" can currently be changed. Look
for "PLAYING" in the output of "gst-inspect x264enc".

--
Olivier Crête
[hidden email]

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

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: change the gstreamer element parameter dynamic

Aaron
I   have  try  to  change  the  "bitrate"  when  the  pipeline  was  playing  state.  the  x264enc  element  and omx_h264enc  cannot  be  changed . In  the  output  of  " gst-inspect x264enc",  I  cannot  find  the "PLAYING".  the  version  of  gstreamer  is  0.10  , x264  is  0.10.14  ,  omx  is  0.10.35. the  day  before yesterday, I has changed the state of the pipe to  PAUSED and change the parameter ,i failed too.  I  find the GstController  . I have  try  it , failed  too.I  can  not   understand  the  function  of  GstController  in the  Plugin Writer's Guide Chapter 15,i think it can support dynamic parameters.
Reply | Threaded
Open this post in threaded view
|

Re: change the gstreamer element parameter dynamic

Stefan Sauer
On 03/19/2012 06:20 AM, liming.yang wrote:
> I   have  try  to  change  the  "bitrate"  when  the  pipeline  was  playing
> state.  the  x264enc  element  and omx_h264enc  cannot  be  changed . In
> the  output  of  " gst-inspect x264enc",  I  cannot  find  the "PLAYING".
> the  version  of  gstreamer  is  0.10
We have 0.10.X since years, please mention the exact version.
>  , x264  is  0.10.14  ,  omx  is
> 0.10.35. the  day  before yesterday, I has changed the state of the pipe to
> PAUSED and change the parameter ,i failed too.  I  find the GstController  .
> I have  try  it , failed  too.I  can  not   understand  the  function  of
> GstController  in the  Plugin Writer's Guide Chapter 15,i think it can
> support dynamic parameters.
GstController is for making dynamic parameter changes when you know them
ahead of time. Think of a video editor or music sequenzer. You just want
to use g_object_set(element, "bitrate", new_value, NULL);. But for that
to be useful, element needs to support taking such changes into account.
In the case of x264enc, it will need to switch the bitrate on the x264
library. If that does not work, someone needs to so see if it can be
addded and make a patch.

Stefan
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/change-the-gstreamer-element-paramter-dynamic-tp4474415p4483858.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> 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: change the gstreamer element parameter dynamic

Aaron
Sorry,I have find  two versions,one is 0.10.35   ,other is 0.10.28 and the version of gst-plugins-ugly is 0.10.14. last night  i found the url    https://bugzilla.gnome.org/show_bug.cgi?id=647648     so  i set and get the value "bitrate" like the page.the value of bitrate changed,but  ,the x264enc encode only a few data which before change value of "bitrate" and later the x264enc was stop.
Reply | Threaded
Open this post in threaded view
|

Re: change the gstreamer element parameter dynamic

Nicolas Dufresne
Here's a small program that we use to check that bitrate setting is
accurate. Hopefully it will help you,
http://cgit.collabora.com/git/user/sjoerd/dynamic-bitrate-test.git/

Le lundi 19 mars 2012 à 19:17 -0700, liming.yang a écrit :

> Sorry,I have find  two versions,one is 0.10.35   ,other is 0.10.28 and the
> version of gst-plugins-ugly is 0.10.14. last night  i found the url  
> https://bugzilla.gnome.org/show_bug.cgi?id=647648     so  i set and get the
> value "bitrate" like the page.the value of bitrate changed,but  ,the x264enc
> encode only a few data which before change value of "bitrate" and later the
> x264enc was stop.
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/change-the-gstreamer-element-paramter-dynamic-tp4474415p4487417.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> 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: change the gstreamer element parameter dynamic

Aaron
I hava run this program  and the bitrate of x264enc can not changed when it running.the theoraenc can changed.so i think the reason is libx264 do not suppot this change.