[] Ffmpeg ffmpeg de vídeo y añadir agua a problemas de fuentes solucionar problemas No se pudo cargar fuente "FreeSerif.ttf": recurso no puede OpenCV

La fuente de resolver el problema de la fuente No se pudo cargar "FreeSerif.ttf": recurso no puede OpenCV

[root@localhost test]# ffmpeg -i 123.mp4 -vf "drawtext=fontsize=100:fontfile=FreeSerif.ttf:text='Hello World':x=20:y=20" output02.mp4

un error

[Parsed_drawtext_0 @ 0x12006fff0] No se pudo cargar fuente "FreeSerif.ttf": recurso no puede abrir

[AVFilterGraph @ 0x12006f010] Error al inicializar filtro 'DrawText' con args 'FontSize = 100: fontfile = FreeSerif.ttf: text = Hello World: x = 20: y = 20'

filtros de apertura de error!

Ir a la página oficial de descarga fuentes

http://font.downloadatoz.com/download,33689,freeserif.html

abrir la cremallera

Ver la ubicación actual del archivo de fuente

[root@localhost freeserif-1333163334]# pwd
/root/桌面/ffmpeg/freeserif-1333163334

Añadir marca de agua Fuentes

ffmpeg -i 123.mp4 -vf "drawtext=fontsize=100:fontfile=/root/桌面/ffmpeg/freeserif-1333163334/FreeSerif.ttf:text='Hello World':fontcolor=red:box=1:boxcolor=yellow:x=20:y=20"  -strict -2  output5.mp4

Broadcast

[root@localhost test]# ffplay output5.mp4 

Publicados 201 artículos originales · alabanza won 46 · Vistas a 90000 +

Supongo que te gusta

Origin blog.csdn.net/rong11417/article/details/104610077
Recomendado
Clasificación