[FFmpeg-trac] #9227(avfilter:new): Cannot use any fonts including system fonts

FFmpeg trac at avcodec.org
Sat May 8 15:08:42 EEST 2021


#9227: Cannot use any fonts including system fonts
-------------------------------------+-------------------------------------
             Reporter:  Jefferson    |                    Owner:  (none)
  Villasan Josol                     |
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  Incorrect    |               Blocked By:
  fonts                              |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Jefferson Villasan Josol:

Old description:

> {{{
> ffmpeg -y -i "/storage/0040-18A0/Music Videos on YouTube/TO be
> synced/ICSM dance.mkv" -c:s copy -q:s 0 -c:a copy -c:d copy -c:v
> mpeg2video -q:v 0 -map_metadata 0 -vf
> "scale=1920:-1,colorspace=all=bt2020,ass=/storage/0040-18A0/Music Videos
> on YouTube/TO be synced/ICSM
> dance.ass:fontsdir=/system/fonts/DroidSans.ttf" -bufsize 960M -maxrate
> 480M -r:v 30 -r:a 30 -t 30 -movflags +write_colr
> "/storage/0040-18A0/Music Videos on YouTube/TO be synced/30s samples.ts"
> }}}
>
> Can anyone help me how to use system fonts on ffmpeg Termux? Whatever I
> try is only giving me DroidSansFallback. Here is another one that ffmpeg
> says....
>

>
> {{{
> [Parsed_ass_2 @ 0xa51dd240] fontselect: ("/system/fonts/DroidSans.ttf",
> 400, 0) -> /system/fonts/Lohit-Punjabi.ttf, 0, Lohit-Punjabi
> [Parsed_ass_2 @ 0xa51dd240] fontselect: (DroidSansChinese, 400, 0) ->
> /system/fonts/Lohit-Punjabi.ttf, 0, Lohit-Punjabi
> [Parsed_ass_2 @ 0xa51dd240] Glyph 0x41 not found, selecting one more font
> for (DroidSansChinese, 16, 400)
> [Parsed_ass_2 @ 0xa51dd240] fontselect: (DroidSansChinese, 400, 0) ->
> /system/fonts/DroidSansFallback.ttf, 0, DroidSansFallback
> }}}
>
> Thanks in advance for those who can help me!

New description:

 {{{
 ffmpeg -y -i "/storage/0040-18A0/Music Videos on YouTube/TO be synced/ICSM
 dance.mkv" -c:s copy -q:s 0 -c:a copy -c:d copy -c:v mpeg2video -q:v 0
 -map_metadata 0 -vf
 "scale=1920:-1,colorspace=all=bt2020,ass=/storage/0040-18A0/Music Videos
 on YouTube/TO be synced/ICSM
 dance.ass:fontsdir=/system/fonts/DroidSans.ttf" -bufsize 960M -maxrate
 480M -r:v 30 -r:a 30 -t 30 -movflags +write_colr "/storage/0040-18A0/Music
 Videos on YouTube/TO be synced/30s samples.ts"
 }}}

 Can anyone help me how to use system fonts on ffmpeg Termux? Whatever I
 try is only giving me DroidSansFallback. Here is another one that ffmpeg
 says....



 {{{
 [Parsed_ass_2 @ 0xa51dd240] fontselect: ("/system/fonts/DroidSans.ttf",
 400, 0) -> /system/fonts/Lohit-Punjabi.ttf, 0, Lohit-Punjabi
 [Parsed_ass_2 @ 0xa51dd240] fontselect: (DroidSansChinese, 400, 0) ->
 /system/fonts/Lohit-Punjabi.ttf, 0, Lohit-Punjabi
 [Parsed_ass_2 @ 0xa51dd240] Glyph 0x41 not found, selecting one more font
 for (DroidSansChinese, 16, 400)
 [Parsed_ass_2 @ 0xa51dd240] fontselect: (DroidSansChinese, 400, 0) ->
 /system/fonts/DroidSansFallback.ttf, 0, DroidSansFallback
 }}}

 This the last ffmpeg says...


 {{{
 frame=  899 fps=1.7 q=0.0 Lsize=   25350kB time=00:00:29.97
 bitrate=6927.5kbits/s speed=0.0563x
 video:24095kB audio:469kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 3.197927%
 }}}


 Thanks in advance for those who can help me!

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9227#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list