How to use text overlay in GStreamer?

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

How to use text overlay in GStreamer?

跳至解决方案
3,648 次查看
toanjunifer
Senior Contributor I

Hi,

I'm using gstreamer to stream video with text overlay. I get this error:

(gst-launch-1.0:2763): GStreamer-CRITICAL **: gst_buffer_get_memory_range: assertion '(len == 0 && idx == 0 && length == -1) || (length == -1 && idx < len) || (length > 0 && length + idx <= len)' failed

With commandline:

gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=300 ! videoconvert ! 'video/x-raw,width=1280,height=720,framerate=(fraction)30/1' ! textoverlay text="Hi There" valignment=top halignment=left font-desc="Sans, 12" ! queue ! x264 ! mp4mux ! filesink location=video.mp4

I don't know why does it happen. What should I do now ?

Thank you so much,

Toan

1 解答
3,589 次查看
toanjunifer
Senior Contributor I

I found that it's just is a warning. But it's actually impact to video quality if I run it directly. If I run it with schedule, it's will be fine. So I decide to close this question. Thank you joanxie‌ for your help. 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,590 次查看
toanjunifer
Senior Contributor I

I found that it's just is a warning. But it's actually impact to video quality if I run it directly. If I run it with schedule, it's will be fine. So I decide to close this question. Thank you joanxie‌ for your help. 

0 项奖励
回复
3,589 次查看
joanxie
NXP TechSupport
NXP TechSupport

what board and bsp version do you use?

3,589 次查看
toanjunifer
Senior Contributor I

I'm using iMX6S Varisite board. BSP is 4.1.15

0 项奖励
回复