最新消息:20210917 已从crifan.com换到crifan.org

【已解决】调节ass字幕配置字幕字体大小和背景色再用ffmpeg嵌入视频中

字幕 crifan 1275浏览 0评论
折腾:
【已解决】Mac中用ffmpeg调整mp4默认字幕为中文
后,参考:
[FFmpeg] Windows下使用ffmpeg为视频添加字幕 – SunrayME的专栏 – CSDN博客
“从容器中提取字幕流,生成字幕文件(例子中生成的是 srt 格式的,可以任意生成所需的格式,改一下扩展名即可):
ffmpeg -i input.mkv output.srt”
前面已经提取出srt了
但是缺了字幕的透明背景
而看到之前从srt转出的ass,貌似支持设置背景色的
所以现在去试试转出ass
➜  ffmpeg_edit_subtitle ffmpeg -i CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4 -map 0:s:0 subtitle_directExtract.ass
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2018-10-13T03:27:31.000000Z
    encoder         : HandBrake 1.1.2 2018090500
  Duration: 00:26:52.03, start: 0.000000, bitrate: 1762 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1599 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 157 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : Stereo
    Stream #0:2(zho): Subtitle: mov_text (tx3g / 0x67337874), 1280x108, 0 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : SubtitleHandler
Output #0, ass, to 'subtitle_directExtract.ass':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
    Stream #0:0(zho): Subtitle: ass (ssa), 1280x108 (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : SubtitleHandler
      encoder         : Lavc58.18.100 ssa
Stream mapping:
  Stream #0:2 -> #0:0 (mov_text (native) -> ass (ssa))
Press [q] to stop, [?] for help
size=      30kB time=00:26:17.56 bitrate=   0.2kbits/s speed=6.2e+03x
video:0kB audio:0kB subtitle:20kB other streams:0kB global headers:1kB muxing overhead: 50.602230%
然后去对比:
  • 从srt转出的ass
  • 直接从mp4提取出的ass
结果发现:
  • 貌似背景色啥的,是一样的?
  • 突然发现font的size,都是36???而不是之前的16?
    • {\fs36}然后就是放焰火   然后就到结尾了{\fs}
    • 推测fs=fontsize,fs36=font size是36
很是奇怪啊
-》所以,估计把此处的font的size,从36改为16,再去用Handbrake压制,
也是可以得到对应的font size=16的,字体看起来正常的,不是(36的)很大的字体的
有空再去试试吧。
后来突然想到:
可以不用在ffmpeg命令行中调节font size和background color等参数,会导致多次录制,才能达到要的效果
而可以:在录制之前,调节ass中的字幕里的参数,然后外挂字幕到mp4视频看效果,效果对了,再去用ffmpeg嵌入到mp4中。
然后就接着去搞清楚:
【已解决】ass字幕文件中如何设置字幕的半透明背景色
然后再去用ffmpeg压制嵌入带字体背景半透明的ass字幕
➜  ffmpeg_edit_subtitle ll
total 2884288
-rw-r--r--@ 1 crifan  staff   339M 10 13 12:37 CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4
-rw-r--r--  1 crifan  staff     0B 10 14 11:42 addedAssSubtitle.mp4
-rw-r--r--  1 crifan  staff   382M 10 14 22:16 burnedInAssSubtitle.mp4
-rw-r--r--  1 crifan  staff   339M 10 14 11:46 movTextSubtitle.mp4
-rw-r--r--@ 1 crifan  staff   339M 10 14 11:32 softSubtitle.mp4
-rw-r--r--@ 1 crifan  staff    33K 10 14 11:40 subtitle.ass
-rw-r--r--@ 1 crifan  staff    31K 10 14 10:58 subtitle.srt
-rw-r--r--@ 1 crifan  staff    30K 10 15 20:17 subtitle_adjustFontSizeBackgroundColor.ass
-rw-r--r--@ 1 crifan  staff    30K 10 14 23:10 subtitle_directExtract.ass
-rw-r--r--@ 1 crifan  staff    24K 10 14 22:27 subtitle_noFontSize.srt
➜  ffmpeg_edit_subtitle ffmpeg -i CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4 -vf ass=subtitle_adjustFontSizeBackgroundColor.ass fontSize16HalfTransparentBackgroud.mp4
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2018-10-13T03:27:31.000000Z
    encoder         : HandBrake 1.1.2 2018090500
  Duration: 00:26:52.03, start: 0.000000, bitrate: 1762 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1599 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 157 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : Stereo
    Stream #0:2(zho): Subtitle: mov_text (tx3g / 0x67337874), 1280x108, 0 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : SubtitleHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_ass_0 @ 0x7fe2dcf07dc0] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.9.0 (COMPLEX)
[Parsed_ass_0 @ 0x7fe2dcf07dc0] Using font provider coretext
[Parsed_ass_0 @ 0x7fe2dcf07dc0] Added subtitle file: 'subtitle_adjustFontSizeBackgroundColor.ass' (2 styles, 317 events)
[libx264 @ 0x7fe2dd003c00] using SAR=1/1
[libx264 @ 0x7fe2dd003c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fe2dd003c00] profile High, level 3.1
[libx264 @ 0x7fe2dd003c00] 264 - core xxx e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 
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=6 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 'fontSize16HalfTransparentBackgroud.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : VideoHandler
      encoder         : Lavc58.18.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : Stereo
      encoder         : Lavc58.18.100 aac
[Parsed_ass_0 @ 0x7fe2dcf07dc0] fontselect: (Arial, 700, 0) -> /Library/Fonts/Arial Bold.ttf, -1, Arial-BoldMT
[Parsed_ass_0 @ 0x7fe2dcf07dc0] Glyph 0x5927 not found, selecting one more font for (Arial, 700, 0)
[Parsed_ass_0 @ 0x7fe2dcf07dc0] fontselect: (Arial, 700, 0) -> /System/Library/Fonts/PingFang.ttc, -1, PingFangSC-Semibold
frame=40300 fps= 28 q=-1.0 Lsize=  380276kB time=00:26:51.98 bitrate=1932.5kbits/s speed=1.12x
video:353815kB audio:25285kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.309970%
[libx264 @ 0x7fe2dd003c00] frame I:344   Avg QP:18.30  size: 76738
[libx264 @ 0x7fe2dd003c00] frame P:12933 Avg QP:21.70  size: 16558
[libx264 @ 0x7fe2dd003c00] frame B:27023 Avg QP:24.66  size:  4506
[libx264 @ 0x7fe2dd003c00] consecutive B-frames:  5.4% 10.2% 16.5% 67.9%
[libx264 @ 0x7fe2dd003c00] mb I  I16..4: 28.4% 14.1% 57.5%
[libx264 @ 0x7fe2dd003c00] mb P  I16..4:  6.9%  4.9%  3.3%  P16..4: 42.3% 11.5%  4.5%  0.0%  0.0%    skip:26.6%
[libx264 @ 0x7fe2dd003c00] mb B  I16..4:  0.7%  0.5%  0.5%  B16..8: 34.7%  3.3%  0.5%  direct: 1.6%  skip:58.2%  L0:46.4% L1:48.9% BI: 4.7%
[libx264 @ 0x7fe2dd003c00] 8x8 transform intra:29.4% inter:58.9%
[libx264 @ 0x7fe2dd003c00] coded y,uvDC,uvAC intra: 37.7% 63.8% 19.8% inter: 7.5% 11.6% 1.1%
[libx264 @ 0x7fe2dd003c00] i16 v,h,dc,p: 29% 25% 14% 32%
[libx264 @ 0x7fe2dd003c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 35%  3%  4%  4%  4%  4%  4%
[libx264 @ 0x7fe2dd003c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 14%  8%  9%  9%  9%  7%  6%
[libx264 @ 0x7fe2dd003c00] i8c dc,h,v,p: 52% 21% 21%  6%
[libx264 @ 0x7fe2dd003c00] Weighted P-Frames: Y:1.2% UV:0.5%
[libx264 @ 0x7fe2dd003c00] ref P L0: 68.0%  7.7% 16.8%  7.4%  0.0%
[libx264 @ 0x7fe2dd003c00] ref B L0: 87.5%  9.8%  2.7%
[libx264 @ 0x7fe2dd003c00] ref B L1: 96.7%  3.3%
[libx264 @ 0x7fe2dd003c00] kb/s:1798.05
[aac @ 0x7fe2dd808c00] Qavg: 244.729
然后去看看
的确是可以的了:
但是却还是和原始的字幕有点不一样:
原始的字幕:
  • 字体更好看-》估计是其他字体
    • 不知道截图是否能识别出字体是什么字体
    • 或者去苹果系统中找找是什么字体
  • 字体更大一点点 -》估计原始字幕是18的字体大小
然后去:
【已解决】用Aegisub字幕编辑器去调整字体大小和字幕背景半透明效果
然后再去用ffmpeg合并调整好的字幕:
➜  ffmpeg_edit_subtitle ffmpeg -i CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4 -vf ass=subtitle_fontLarggerBackgroundAlpha-4.ass fontPingFangSC20HalfTransparent.mp4
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2018-10-13T03:27:31.000000Z
    encoder         : HandBrake 1.1.2 2018090500
  Duration: 00:26:52.03, start: 0.000000, bitrate: 1762 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1599 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 157 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : Stereo
    Stream #0:2(zho): Subtitle: mov_text (tx3g / 0x67337874), 1280x108, 0 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : SubtitleHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_ass_0 @ 0x7f912bf06900] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.9.0 (COMPLEX)
[Parsed_ass_0 @ 0x7f912bf06900] Using font provider coretext
[Parsed_ass_0 @ 0x7f912bf06900] Added subtitle file: 'subtitle_fontLarggerBackgroundAlpha-4.ass' (2 styles, 317 events)
[libx264 @ 0x7f912d007600] using SAR=1/1
[libx264 @ 0x7f912d007600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7f912d007600] profile High, level 3.1
[libx264 @ 0x7f912d007600] 264 - core xxx e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 
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=6 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 'fontPingFangSC20HalfTransparent.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : VideoHandler
      encoder         : Lavc58.18.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2018-10-13T03:27:31.000000Z
      handler_name    : Stereo
      encoder         : Lavc58.18.100 aac
[Parsed_ass_0 @ 0x7f912bf06900] fontselect: (PingFang SC, 400, 0) -> /System/Library/Fonts/PingFang.ttc, -1, PingFangSC-Regular
frame=40300 fps= 26 q=-1.0 Lsize=  382542kB time=00:26:51.98 bitrate=1944.0kbits/s speed=1.04x
video:356081kB audio:25285kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.308289%
[libx264 @ 0x7f912d007600] frame I:338   Avg QP:18.34  size: 76707
[libx264 @ 0x7f912d007600] frame P:12851 Avg QP:21.71  size: 16750
[libx264 @ 0x7f912d007600] frame B:27111 Avg QP:24.68  size:  4553
[libx264 @ 0x7f912d007600] consecutive B-frames:  5.2%  9.9% 16.2% 68.7%
[libx264 @ 0x7f912d007600] mb I  I16..4: 28.1% 14.9% 57.0%
[libx264 @ 0x7f912d007600] mb P  I16..4:  6.9%  5.0%  3.3%  P16..4: 42.2% 11.5%  4.6%  0.0%  0.0%    skip:26.6%
[libx264 @ 0x7f912d007600] mb B  I16..4:  0.7%  0.5%  0.5%  B16..8: 34.6%  3.3%  0.5%  direct: 1.6%  skip:58.2%  L0:46.5% L1:48.8% BI: 4.7%
[libx264 @ 0x7f912d007600] 8x8 transform intra:29.9% inter:59.4%
[libx264 @ 0x7f912d007600] coded y,uvDC,uvAC intra: 38.0% 63.9% 19.9% inter: 7.6% 11.6% 1.1%
[libx264 @ 0x7f912d007600] i16 v,h,dc,p: 29% 25% 14% 32%
[libx264 @ 0x7f912d007600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 35%  3%  4%  4%  4%  4%  4%
[libx264 @ 0x7f912d007600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 14%  8%  9%  9%  9%  7%  6%
[libx264 @ 0x7f912d007600] i8c dc,h,v,p: 52% 21% 21%  6%
[libx264 @ 0x7f912d007600] Weighted P-Frames: Y:1.2% UV:0.5%
[libx264 @ 0x7f912d007600] ref P L0: 67.8%  7.9% 16.9%  7.4%  0.0%
[libx264 @ 0x7f912d007600] ref B L0: 87.5%  9.8%  2.7%
[libx264 @ 0x7f912d007600] ref B L1: 96.7%  3.3%
[libx264 @ 0x7f912d007600] kb/s:1809.56
[aac @ 0x7f912c80b200] Qavg: 244.729
然后等看最终效果
基本上效果很一致了。算是终于完成想要的效果了。
【总结】
此处是用:
【已解决】用Aegisub字幕编辑器去调整字体大小和字幕背景半透明效果
得到了新的ass字幕后,然后去用
ffmpeg -i CTT_Folge_01_CH_Subs_DefaultZhcnButNotShow.mp4 -vf ass=subtitle_fontLarggerBackgroundAlpha-4.ass fontPingFangSC20HalfTransparent.mp4
把ass字幕 集成=嵌入=烧录burned in 到了视频中。

转载请注明:在路上 » 【已解决】调节ass字幕配置字幕字体大小和背景色再用ffmpeg嵌入视频中

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
91 queries in 0.200 seconds, using 23.42MB memory