Question on conventional properties/events to descript run-time request

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

Question on conventional properties/events to descript run-time request

Chen, Weian

 

Hi,

 

Do we have some conventional properties/events to support runtime/dynamic requests for key-frame/bit-rate/frame-rate/frame-size etc, and I know there is an event GstForceKeyUnit to handle dynamic key-frame request, my question here is do we also have such events/properties for other parameters?

 

Thanks in advance.

 

Weian

 


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question on conventional properties/events to descript run-time request

Olivier Crête-2
Hi,

You can change the framerate/resolution by changing the caps before the
encoder. And the bitrate is normally a property of the encoder (if it is
configurable).

Olivier

On Tue, 2010-06-15 at 09:25 +0800, Chen, Weian wrote:

>  
>
> Hi,
>
>  
>
> Do we have some conventional properties/events to support
> runtime/dynamic requests for key-frame/bit-rate/frame-rate/frame-size
> etc, and I know there is an event GstForceKeyUnit to handle dynamic
> key-frame request, my question here is do we also have such
> events/properties for other parameters?
>
>  
>
> Thanks in advance.
>
>  
>
> Weian
>
>  
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
--
Olivier Crête
[hidden email]

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

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

Re: Question on conventional properties/events to descript run-time request

Chen, Weian

Thanks a lot for your reply.

And what I want is to change bit-rate etc at run time after the encoding process starts.

So my question is does Gstreamer framework have conventional properties/events for run-time configuration?

thanks,
Weian

-----Original Message-----
From: Olivier Crête [mailto:[hidden email]]
Sent: 2010年6月15日 10:02
To: [hidden email]
Subject: Re: [gst-devel] Question on conventional properties/events to descript run-time request

Hi,

You can change the framerate/resolution by changing the caps before the
encoder. And the bitrate is normally a property of the encoder (if it is
configurable).

Olivier

On Tue, 2010-06-15 at 09:25 +0800, Chen, Weian wrote:

>  
>
> Hi,
>
>  
>
> Do we have some conventional properties/events to support
> runtime/dynamic requests for key-frame/bit-rate/frame-rate/frame-size
> etc, and I know there is an event GstForceKeyUnit to handle dynamic
> key-frame request, my question here is do we also have such
> events/properties for other parameters?
>
>  
>
> Thanks in advance.
>
>  
>
> Weian
>
>  
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

--
Olivier Crête
[hidden email]
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question on conventional properties/events to descript run-time request

michael smith-6-3
2010/6/14 Chen, Weian <[hidden email]>:
>
> Thanks a lot for your reply.
>
> And what I want is to change bit-rate etc at run time after the encoding process starts.
>
> So my question is does Gstreamer framework have conventional properties/events for run-time configuration?

Properties can be changed at runtime. Whether this actually works is
entirely up to the particular element. GStreamer doesn't currently
have any mechanism to query whether a property can be modified in a
particular element state, though.

Most encoders do not let you modify the bitrate target at runtime -
but if you have an encoder that can do that, you should simply make
setting the property during encoding set the changed bitrate on the
underlying encoder properly.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question on conventional properties/events to descript run-time request

Chen, Weian

Thanks a lot for your information.

And for resolution/frame-rate stuff, the one way we can do is to re-negotiate the caps and invoke the GST_EVENT_NEWSEGMENT event? If so do we need to set the pipeline state to PAUSE, or it can keep on PLAYING state?

thanks,
Weian

-----Original Message-----
From: Michael Smith [mailto:[hidden email]]
Sent: 2010年6月15日 11:42
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] Question on conventional properties/events to descript run-time request

2010/6/14 Chen, Weian <[hidden email]>:
>
> Thanks a lot for your reply.
>
> And what I want is to change bit-rate etc at run time after the encoding process starts.
>
> So my question is does Gstreamer framework have conventional properties/events for run-time configuration?

Properties can be changed at runtime. Whether this actually works is
entirely up to the particular element. GStreamer doesn't currently
have any mechanism to query whether a property can be modified in a
particular element state, though.

Most encoders do not let you modify the bitrate target at runtime -
but if you have an encoder that can do that, you should simply make
setting the property during encoding set the changed bitrate on the
underlying encoder properly.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question on conventional properties/events to descript run-time request

Stefan Sauer
In reply to this post by michael smith-6-3
On 15.06.2010 06:41, Michael Smith wrote:

> 2010/6/14 Chen, Weian <[hidden email]>:
>  
>> Thanks a lot for your reply.
>>
>> And what I want is to change bit-rate etc at run time after the encoding process starts.
>>
>> So my question is does Gstreamer framework have conventional properties/events for run-time configuration?
>>    
> Properties can be changed at runtime. Whether this actually works is
> entirely up to the particular element. GStreamer doesn't currently
> have any mechanism to query whether a property can be modified in a
> particular element state, though.
>  
We do, but imho its not widely used:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParamSpec.html#GST-PARAM-MUTABLE-PAUSED:CAPS

Stfean

> Most encoders do not let you modify the bitrate target at runtime -
> but if you have an encoder that can do that, you should simply make
> setting the property during encoding set the changed bitrate on the
> underlying encoder properly.
>
> Mike
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel