textoverlay clockoverlay in Gstreamer pipeline

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

textoverlay clockoverlay in Gstreamer pipeline

跳至解决方案
3,252 次查看
hiephuynh
Contributor III

Hello,  I'm trying to add clockoverlay into my video stream.  However, the text displayed is not correct (i.e. it shows "boxy" character instead of time digits).  What's the issue? Fonts not found?  Please help.  I've attached the screenshot (see text in top right corner of BBB stream).

Thanks for your help.

1 解答
2,655 次查看
aurelienbouin
Contributor IV

So I finally find what was wrong using the fontconfig-utils package

FYI fc-list can list the embedded fonts, and none was appearing ...

So what was missing is the package : liberation-fonts

Once installed fc-list could list the fonts and gstreamer textoverlay was then working ...

So guessing that you use yocto : add liberation-fonts into IMAGE_INSTALL of the image built

Regards,

Aurelien BOUIN

在原帖中查看解决方案

4 回复数
2,656 次查看
aurelienbouin
Contributor IV

So I finally find what was wrong using the fontconfig-utils package

FYI fc-list can list the embedded fonts, and none was appearing ...

So what was missing is the package : liberation-fonts

Once installed fc-list could list the fonts and gstreamer textoverlay was then working ...

So guessing that you use yocto : add liberation-fonts into IMAGE_INSTALL of the image built

Regards,

Aurelien BOUIN

2,655 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Hiep,

Can you share your pipeline of gstreamer,?  at first review it seems that there is no fonts, or using an incorrect language dictionary,   try with this pipeline:

gst-launch videotestsrc ! video/x-raw-yuv,width=640,height=480,framerate=15/1 ! textoverlay text="Hello" ! ffmpegcolorspace ! ximagesink

0 项奖励
回复
2,655 次查看
hiephuynh
Contributor III

I've tried with textoverlay too but the same result.  How can I make sure that my fonts are in place and correct language dictionary?  I'm using Buildroot 2016.05.

Thanks a bunch.

0 项奖励
回复
2,655 次查看
aurelienbouin
Contributor IV

Hello Hiep,

I have exactly the same problem, attached is the "boxy" character you probably are talking about :tmp.jpg

have you figured out what was wrong ?

regards

Aurelien BOUIN

0 项奖励
回复