How to adjust the display ratio to original size

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

How to adjust the display ratio to original size

forestzhu
This post was updated on .
Hi all,
I am a beginner of a gstreamer.
I met an issue in coding a gstreamer program,can anyone give me a hint ?
 
If the videosink must to be used has no "force-aspect-ratio" or "pixel-aspect-ratio" property.
How to adjust the output video to the original ratio?
Maybe videoscale can do this job.
But where can I get some example code for usage of videoscale?

With thanks!
alex
July 25

Reply | Threaded
Open this post in threaded view
|

Re: How to adjust the display ratio to original size

forestzhu
OK ,I overcome it myself.
The key issue is getting the size of the screen first.
And then add a capfilter between videoscale and videosink.

With pleasure!

alex
July 25