AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1458297
Accepted
Van Nguyen
Van Nguyen
Asked: 2019-07-11 08:02:16 +0800 CST2019-07-11 08:02:16 +0800 CST 2019-07-11 08:02:16 +0800 CST

使用 forced_subs_only 的 FFMPEG 不会在强制 subs 中燃烧

  • 772

我正在尝试对安静的地方进行编码...我知道事实上有强制潜艇,但是当尝试将其从 4K(本机)编码为 4K(x265)或 1080(x264)时,强制潜艇不会被烧毁在生成的文件中。

同样的命令在为另一部电影刻录强制字幕时效果很好。当我使用 Handbrake 时,它​​确实会刻录强制字幕。

这是我正在使用的命令:

ffmpeg -y -probesize 2048M -analyzeduration 2048M -forced_subs_only 1 -i ../in/A Quiet Place.mkv -map 0:0 -map 0:1 -map 0:1 -c:v libx264 -preset slower -profile:v high -level 5.1 -crf:v 22 -vf scale=1920:-1 -x264-params ref=5:bframes=5:b_adapt=2:direct=auto:analyse=all:me=umh:merange=24:subme=10:trellis=2:vbv-bufsize=512000:vbv-maxrate=512000:rc-lookahead=60:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc -c:a:0 aac -ac 6 -c:a:1 ac3 -ac 6  -disposition:a:0 default -disposition:a:1 none ../temp/A Quiet Place - 1080p.mp4

这是我的 mkv 文件:

General
Unique ID                                : 23590760640855359557197555294735710745 (0x11BF6A4CB436978F1FFA81AF8C2C3A19)
Complete name                            : ../in/A Quiet Place (2018).mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 45.1 GiB
Duration                                 : 1 h 30 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 71.5 Mb/s
Movie name                               : A Quiet Place
Encoded date                             : UTC 2018-08-03 16:35:34
Writing application                      : MakeMKV v1.12.3 win(x64-release)
Writing library                          : libmakemkv v1.12.3 (1.3.5/1.4.7) win(x64-release)

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main [email protected]@High
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 30 min
Bit rate                                 : 66.3 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.333
Stream size                              : 41.8 GiB (93%)
Language                                 : English
Default                                  : No
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Original source medium                   : Blu-ray
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2

Audio #1
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : TrueHD
Format profile                           : TrueHD+Atmos / TrueHD
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 30 min
Bit rate mode                            : Variable
Bit rate                                 : 3 890 kb/s
Maximum bit rate                         : 8 064 kb/s
Channel(s)                               : Object Based / 8 channels
Channel positions                        : Object Based / Front: L C R, Side: L R, Back: L R, LFE
Sampling rate                            :  / 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 2.45 GiB (5%)
Title                                    : Surround 7.1
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray

Audio #2
ID                                       : 3
ID in the original source medium         : 4352 (0x1100)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Codec ID                                 : A_AC3
Duration                                 : 1 h 30 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 413 MiB (1%)
Title                                    : Surround 5.1
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Audio #3
ID                                       : 4
ID in the original source medium         : 4353 (0x1101)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Codec ID                                 : A_AC3
Duration                                 : 1 h 30 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 413 MiB (1%)
Title                                    : Surround 5.1
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Text #1
ID                                       : 5
ID in the original source medium         : 4768 (0x12A0)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 11 min
Bit rate                                 : 1 932 b/s
Count of elements                        : 302
Stream size                              : 1 016 KiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Text #2
ID                                       : 6
ID in the original source medium         : 4768 (0x12A0)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 11 min
Bit rate                                 : 1 252 b/s
Count of elements                        : 200
Stream size                              : 658 KiB (0%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray

Text #3
ID                                       : 7
ID in the original source medium         : 4769 (0x12A1)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 22 min
Bit rate                                 : 3 951 b/s
Count of elements                        : 652
Stream size                              : 2.32 MiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Menu
00:00:00.000                             : en:Chapter 01
00:10:19.118                             : en:Chapter 02
00:14:38.002                             : en:Chapter 03
00:21:52.894                             : en:Chapter 04
00:25:09.674                             : en:Chapter 05
00:31:05.029                             : en:Chapter 06
00:36:23.389                             : en:Chapter 07
00:43:47.124                             : en:Chapter 08
00:47:42.526                             : en:Chapter 09
00:53:48.058                             : en:Chapter 10
01:00:31.377                             : en:Chapter 11
01:05:55.326                             : en:Chapter 12
01:10:57.836                             : en:Chapter 13
01:15:29.066                             : en:Chapter 14
01:23:47.147                             : en:Chapter 15
ffmpeg subtitles
  • 1 1 个回答
  • 1343 Views

1 个回答

  • Voted
  1. Best Answer
    Gyan
    2019-07-11T08:50:48+08:002019-07-11T08:50:48+08:00

    所做的是-forced_subs_only告诉 PGS 解码器只解码标记为强制的潜艇。您需要叠加这些基于图像的潜艇,以使其在输出视频中可见。所以,

    ffmpeg -y -probesize 2048M -analyzeduration 2048M -forced_subs_only 1 -i ../in/A Quiet Place.mkv -map 0:0 -map 0:1 -map 0:1 -c:v libx264 -preset slower -profile:v high -level 5.1 -crf:v 22 -filter_complex [0:v]scale=1920:-1[v];[v][0:s:0]overlay -x264-params ref=5:bframes=5:b_adapt=2:direct=auto:analyse=all:me=umh:merange=24:subme=10:trellis=2:vbv-bufsize=512000:vbv-maxrate=512000:rc-lookahead=60:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc -c:a:0 aac -ac 6 -c:a:1 ac3 -ac 6 -disposition:a:0 default -disposition:a:1 none ../temp/A Quiet Place - 1080p.mp4

    叠加过滤器会将第一个字幕流中的强制字幕刻录到视频中。根据字幕帧大小,您可能希望在叠加之前缩放该流。

    • 0

相关问题

  • -map_metadata 抓取多个音频流元数据

  • 最低比特率 ffmpeg 输出的编解码器和设置

  • 如何用ffmpeg 2.0.2保存TS视频流?

  • 快速提取 I 帧到图像

  • 压缩视频可以解码回未压缩的原始格式吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve