Question about dynamical changing video size

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Aug 24 00:51:50 PDT 2012


On Fri, 2012-08-24 at 00:10 -0700, bboyavatar wrote:

Hi,

>     I struggled with the problem for a period of time, and I know a lot of
> people had the same question as I do. I made up a pipeline to play a video,
> and I set a timer in the  program. When the timer is timeout, I change the
> video size through the capsfilter after videoscale element. Then I read the
> caps of the xvimagesink's sinkpad, and the result shows the videosize do
> changed. But the video size on the screen does not change at all. I doubt if
> there is something wrong with the xvimagesink, should it be refreshed
> anyway? The code is attached in the end.
> http://gstreamer-devel.966125.n4.nabble.com/file/n4656057/hello.c hello.c  I
> hope someone could help me ,thanks very much!

xvimagesink will scale the input video to whatever size your output
window is, so changing the input caps won't have any effect on the
window size, it will just lead to videoscale doing some scaling as well
before xvimagesink gets to it. (If I understood your situation
correctly, I didn't look at the code).

Cheers
 -Tim



More information about the gstreamer-devel mailing list