by demomode · 6y ago · 0 comments
You can't use some expresions on the command line like `x=(w-text_w)/2:y=(h-text_h)` but it can be workaround with some scripting using python bindings for example.
Some (simple) text overlay can be acomplished with:
gst-launch filesrc location=sample.mp4 \
! decodebin \
! videoconvert \
! textoverlay text="Hello" font-desc="Sans Bold 150px" y-absolute=0.5 \
! autovideosink
1. http://manpages.org/gst-launchUnrelated but wow, BBC has quite a bit of interesting and relevant open source projects. Simorgh, their react SSR framework, caught my eye “used on some of our biggest websites”. Encouraging for those looking to build out performance react/amp platforms https://github.com/bbc/simorgh
As far as I know in gst-launch you can't access properties from one element (video stream width) in other elements.