Hi,
how can i detect an aspectratio change during play? At the moment i use "notify::caps" on the videodecoder-src-pad to calculate the correct aspect for my videowindow which works fine, but if the stream changes between 4:3 <-> 16:9 this isn't detected. I have to stop/start the pipeline to correct this manually. Any hints? Thank you, Thomas |
On Wed, Feb 11, 2009 at 11:25 AM, Thomas Loewe <[hidden email]> wrote:
> > Hi, > > how can i detect an aspectratio change during play? > > At the moment i use "notify::caps" on the videodecoder-src-pad to calculate > the correct aspect for my videowindow which works fine, but if the stream > changes between 4:3 <-> 16:9 this isn't detected. I have to stop/start the > pipeline to correct this manually. That should work fine - you're describing the right way to do it, maybe there's just a bug in your code? Mike ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
> That should work fine - you're describing the right way to do it, maybe there's just a bug in your code?
But the callback isn't called again at a streamchange, only at startup. Are you sure that the function is called when the stream changes? It's a mpeg2-ts livestream (neonhttpsrc->flutsdemux->mpeg2dec->videosink) if this is relevant... |
On Wed, Feb 11, 2009 at 12:13 PM, Thomas Loewe <[hidden email]> wrote:
> >> That should work fine - you're describing the right way to do it, maybe > there's just a bug in your code? > > But the callback isn't called again at a streamchange, only at startup. Are > you sure that the function is called when the stream changes? If there's a change in the aspect ratio at all, then the caps will change, which should call your notify callback. It might be possible that the decoder isn't noticing the change in aspect ratio at all - I would expect it to, but I might be wrong. Mike ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
> If there's a change in the aspect ratio at all, then the caps will change, which should call your notify callback.
> It might be possible that the decoder isn't noticing the change in aspect ratio at all - I would expect it to, but I might be wrong. Ok, then i should better ask at fluendo. Thank you for the infos, Thomas |
In reply to this post by Thomas Loewe
Very strange: it works under Linux but doesn't work under Windows!?
Is there any option/configure required to make this work under Windows too? I cross compile GStreamer under Linux... |
On Fri, Feb 13, 2009 at 5:46 AM, Thomas Loewe <[hidden email]> wrote:
> > Very strange: it works under Linux but doesn't work under Windows!? > > Is there any option/configure required to make this work under Windows too? > I cross compile GStreamer under Linux... No. Maybe your windows version is different? Or the plugins you're using on windows are slightly different? It's hard to guess at this sort of thing. Mike ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |