[FFmpeg-trac] #8738(undetermined:reopened): subtitle filter can't render indic languages
FFmpeg
trac at avcodec.org
Sun Jun 14 23:39:40 EEST 2020
#8738: subtitle filter can't render indic languages
-------------------------------------+-------------------------------------
Reporter: webofunni | Owner:
Type: defect | Status: reopened
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by webofunni):
'''subtitle filter not working :'''
{{{
# ffmpeg -i /media/test.mp4 -vf subtitles=/media/test.srt
/media/testout.mp4 -y
ffmpeg version N-98194-g584d334 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
configuration: --prefix=/home/unni/ffmpeg_build --pkg-config-
flags=--static --extra-cflags=-I/home/unni/ffmpeg_build/include --extra-
ldflags=-L/home/unni/ffmpeg_build/lib --extra-libs=-lpthread --extra-
libs=-lm --bindir=/home/unni/bin --enable-gpl --enable-libfdk_aac
--enable-libfreetype --enable-libmp3lame --enable-libx264 --enable-nonfree
--enable-libass
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 92.100 / 58. 92.100
libavformat 58. 46.101 / 58. 46.101
libavdevice 58. 11.100 / 58. 11.100
libavfilter 7. 86.100 / 7. 86.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 00:00:10.00, start: 0.000000, bitrate: 13 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 10 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
(default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[Parsed_subtitles_0 @ 0x49f6700] Shaper: FriBidi 1.0.9 (SIMPLE) HarfBuzz-
ng 2.6.7 (COMPLEX)
[Parsed_subtitles_0 @ 0x49f6700] Using font provider fontconfig
[libx264 @ 0x4302440] using SAR=1/1
[libx264 @ 0x4302440] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3
SSE4.2 AVX
[libx264 @ 0x4302440] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x4302440] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft
2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/media/testout.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.46.101
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.92.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 56 fps=0.0 q=29.0 size= 0kB time=00:00:00.40 bitrate=
1.0kbits/s speed=0.777x
[Parsed_subtitles_0 @ 0x49f6700] fontselect: (Arial, 400, 0) ->
/usr/share/fonts/dejavu/DejaVuSans.ttf, 0, DejaVuSans
[Parsed_subtitles_0 @ 0x49f6700] Glyph 0xD38 not found, selecting one more
font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x49f6700] fontselect: (Arial, 400, 0) ->
/usr/share/fonts/smc/RaghuMalayalamSans.ttf, 0, RaghuMalayalamSans
frame= 89 fps= 88 q=29.0 size= 0kB time=00:00:01.50 bitrate=
0.3kbits/s speed=1.47x
frame= 136 fps= 89 q=29.0 size= 0kB time=00:00:03.06 bitrate=
0.1kbits/s speed=2.01x
frame= 183 fps= 90 q=29.0 size= 0kB time=00:00:04.63 bitrate=
0.1kbits/s speed=2.28x
frame= 227 fps= 89 q=29.0 size= 0kB time=00:00:06.10 bitrate=
0.1kbits/s speed= 2.4x
frame= 276 fps= 91 q=29.0 size= 0kB time=00:00:07.73 bitrate=
0.0kbits/s speed=2.54x
frame= 300 fps= 86 q=29.0 Lsize= 33kB time=00:00:09.90 bitrate=
27.0kbits/s speed=2.85x
video:28kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 15.360404%
[libx264 @ 0x4302440] frame I:3 Avg QP: 8.75 size: 4692
[libx264 @ 0x4302440] frame P:75 Avg QP:10.15 size: 71
[libx264 @ 0x4302440] frame B:222 Avg QP:13.67 size: 40
[libx264 @ 0x4302440] consecutive B-frames: 1.0% 0.0% 3.0% 96.0%
[libx264 @ 0x4302440] mb I I16..4: 94.7% 3.5% 1.7%
[libx264 @ 0x4302440] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0%
0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x4302440] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.1% 0.0%
0.0% direct: 0.0% skip:99.9% L0:81.9% L1:18.1% BI: 0.0%
[libx264 @ 0x4302440] 8x8 transform intra:4.0% inter:3.7%
[libx264 @ 0x4302440] coded y,uvDC,uvAC intra: 1.3% 0.0% 0.0% inter: 0.0%
0.0% 0.0%
[libx264 @ 0x4302440] i16 v,h,dc,p: 98% 0% 2% 0%
[libx264 @ 0x4302440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 64% 11% 25% 0% 0%
0% 0% 0% 0%
[libx264 @ 0x4302440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 18% 20% 4% 5%
6% 5% 5% 3%
[libx264 @ 0x4302440] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x4302440] Weighted P-Frames: Y:1.3% UV:0.0%
[libx264 @ 0x4302440] ref P L0: 90.3% 4.0% 2.4% 3.2%
[libx264 @ 0x4302440] ref B L0: 76.0% 24.0%
[libx264 @ 0x4302440] ref B L1: 97.4% 2.6%
[libx264 @ 0x4302440] kb/s:22.59
}}}
'''ass filter working :'''
{{{
# ffmpeg -i /media/test.mp4 -vf ass=/media/test.ass /media/testout.mp4 -y
ffmpeg version N-98194-g584d334 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
configuration: --prefix=/home/unni/ffmpeg_build --pkg-config-
flags=--static --extra-cflags=-I/home/unni/ffmpeg_build/include --extra-
ldflags=-L/home/unni/ffmpeg_build/lib --extra-libs=-lpthread --extra-
libs=-lm --bindir=/home/unni/bin --enable-gpl --enable-libfdk_aac
--enable-libfreetype --enable-libmp3lame --enable-libx264 --enable-nonfree
--enable-libass
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 92.100 / 58. 92.100
libavformat 58. 46.101 / 58. 46.101
libavdevice 58. 11.100 / 58. 11.100
libavfilter 7. 86.100 / 7. 86.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 00:00:10.00, start: 0.000000, bitrate: 13 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 10 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
(default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[Parsed_ass_0 @ 0x3c90700] Shaper: FriBidi 1.0.9 (SIMPLE) HarfBuzz-ng
2.6.7 (COMPLEX)
[Parsed_ass_0 @ 0x3c90700] Using font provider fontconfig
[Parsed_ass_0 @ 0x3c90700] Added subtitle file: '/media/test.ass' (2
styles, 3 events)
[libx264 @ 0x359c440] using SAR=1/1
[libx264 @ 0x359c440] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3
SSE4.2 AVX
[libx264 @ 0x359c440] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x359c440] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft
2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/media/testout.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.46.101
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.92.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[Parsed_ass_0 @ 0x3c90700] fontselect: (Arial, 400, 0) ->
/usr/share/fonts/dejavu/DejaVuSans.ttf, 0, DejaVuSans
[Parsed_ass_0 @ 0x3c90700] Glyph 0xD38 not found, selecting one more font
for (Arial, 400, 0)
[Parsed_ass_0 @ 0x3c90700] fontselect: (Arial, 400, 0) ->
/usr/share/fonts/smc/RaghuMalayalamSans.ttf, 0, RaghuMalayalamSans
frame= 69 fps=0.0 q=29.0 size= 0kB time=00:00:00.83 bitrate=
0.5kbits/s speed=1.66x
frame= 120 fps=118 q=29.0 size= 0kB time=00:00:02.53 bitrate=
0.2kbits/s speed=2.49x
frame= 173 fps=114 q=29.0 size= 0kB time=00:00:04.30 bitrate=
0.1kbits/s speed=2.83x
frame= 223 fps=110 q=29.0 size= 0kB time=00:00:05.96 bitrate=
0.1kbits/s speed=2.94x
frame= 274 fps=108 q=29.0 size= 0kB time=00:00:07.66 bitrate=
0.1kbits/s speed=3.02x
frame= 300 fps=100 q=29.0 Lsize= 31kB time=00:00:09.90 bitrate=
25.5kbits/s speed=3.31x
video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 16.406828%
[libx264 @ 0x359c440] frame I:3 Avg QP: 8.42 size: 4101
[libx264 @ 0x359c440] frame P:75 Avg QP:10.16 size: 71
[libx264 @ 0x359c440] frame B:222 Avg QP:13.67 size: 40
[libx264 @ 0x359c440] consecutive B-frames: 1.0% 0.0% 3.0% 96.0%
[libx264 @ 0x359c440] mb I I16..4: 96.9% 1.6% 1.5%
[libx264 @ 0x359c440] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0%
0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x359c440] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0%
0.0% direct: 0.0% skip:100.0% L0:81.0% L1:19.0% BI: 0.0%
[libx264 @ 0x359c440] 8x8 transform intra:1.9% inter:0.0%
[libx264 @ 0x359c440] coded y,uvDC,uvAC intra: 1.2% 0.0% 0.0% inter: 0.0%
0.0% 0.0%
[libx264 @ 0x359c440] i16 v,h,dc,p: 98% 0% 2% 0%
[libx264 @ 0x359c440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 10% 43% 0% 0%
0% 0% 0% 0%
[libx264 @ 0x359c440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 19% 17% 3% 5%
6% 4% 6% 3%
[libx264 @ 0x359c440] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x359c440] Weighted P-Frames: Y:1.3% UV:0.0%
[libx264 @ 0x359c440] ref P L0: 88.0% 8.0% 4.0%
[libx264 @ 0x359c440] ref B L0: 73.4% 26.6%
[libx264 @ 0x359c440] kb/s:21.11
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8738#comment:9>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list