EasyPusher-Android icon indicating copy to clipboard operation
EasyPusher-Android copied to clipboard

推流设置带黑色背景框的时间水印不起作用

Open TomYang1985 opened this issue 5 years ago • 1 comments

public void overlay(byte[] data, String txt) { // txt = "drawtext=fontfile="+context.getFileStreamPath("SIMYOU.ttf")+": text='EasyPusher // 2017':x=(w-text_w)/2:y=H-60 :fontcolor=white :box=1:[email protected]"; // txt = "movie=/sdcard/qrcode.png [logo];[in][logo] " // + "overlay=" + 0 + ":" + 0 // + " [out]"; // if (ctx == 0) throw new RuntimeException("init should be called at first!"); if (ctx == 0) return; String txt2 = String.format( "drawtext=fontfile=%s: text='%s%s':x=(w-text_w)/2:y=H-60 :fontcolor=white :box=1:[email protected]", context.getFileStreamPath("SIMYOU.ttf"), "EasyPusher", new SimpleDateFormat("yyyy-MM-ddHHmmss").format(new Date())); // txtOverlay(ctx, data, String.format(OVERLAY_FORMAT, // context.getFileStreamPath("SIMYOU.ttf"), txt)); txtOverlay(ctx, data, txt2); } image

@Wellsen @babosa

TomYang1985 avatar Jul 17 '19 09:07 TomYang1985

Is there a way to change the color of the overlay text?

silvioalvim avatar Apr 14 '21 21:04 silvioalvim