Issue regarding the extraction of subtitles
See original GitHub issueI have a video file in MKV Format with the following information:
General
Unique ID : 141713911095963505082473410969543873118 (0x6A9D1B43087C65CA09F87D670317925E)
Complete name : Z:\Test - Test\Tag\Tag 2\2A - 1V - 5T\Source.mkv
Format : Matroska
Format version : Version 4
File size : 33.8 MiB
Duration : 2 min 1 s
Overall bit rate : 2 340 kb/s
Encoded date : UTC 2020-11-04 17:02:47
Writing application : mkvmerge v50.0.0 ('Awakenings') 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.2
Cover : Yes
Attachments : cover.jpg
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 min 0 s
Bit rate : 1 821 kb/s
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Original frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.049
Stream size : 26.1 MiB (77%)
Writing library : x265 3.3+4-rarbg-30eb4de83092:[Linux][GCC 8.3.1][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=4 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x800 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / no-sao / no-sao-non-deblock / rd=4 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=2000 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=2 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30 / aq-mode=3 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.01 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0
Language : English
Default : Yes
Forced : No
Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 2 min 0 s
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -6 ms
Stream size : 3.66 MiB (11%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 2 min 0 s
Bit rate : 224 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : -43 ms
Stream size : 3.21 MiB (9%)
Language : English
Default : No
Forced : No
Text #1
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 54 s 622 ms
Bit rate : 118 b/s
Count of elements : 26
Stream size : 807 Bytes (0%)
Language : English
Default : Yes
Forced : No
Text #2
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 min 8 s
Bit rate : 81 b/s
Count of elements : 19
Stream size : 694 Bytes (0%)
Language : French
Default : No
Forced : No
Text #3
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 54 s 137 ms
Bit rate : 124 b/s
Count of elements : 26
Stream size : 843 Bytes (0%)
Language : Spanish
Default : No
Forced : No
Text #4
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 54 s 622 ms
Bit rate : 195 b/s
Count of elements : 26
Stream size : 1.31 KiB (0%)
Language : Persian
Default : No
Forced : No
Text #5
ID : 8
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 54 s 622 ms
Bit rate : 120 b/s
Count of elements : 25
Stream size : 822 Bytes (0%)
Language : Turkish
Default : No
Forced : No
Here is the AutoProcess.ini regarding subtitles:
[Subtitle]
codec = mov_text
codec-image-based =
languages =
default-language = eng
first-stream-of-language = False
encoding =
burn-subtitles = False
burn-dispositions =
download-subs = False
download-hearing-impaired-subs = False
download-providers =
embed-subs = False
embed-image-subs = False
embed-only-internal-subs = False
filename-dispositions = forced
ignore-embedded-subs = False
ignored-dispositions =
unique-dispositions = False
attachment-codec =
Expected behavior: Extraction of 5 embedded subtitles, since “embed-subs” is set to “false”.
Result: All subtitles are removed with no extraction.
Any idea?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Automatic extraction of subtitles not working #711 - GitHub
I have automatic extraction of embedded subtitles enabled. I refreshed all metadata of my tv show library. So I'm expecting everything with ...
Read more >Subtitle extraction error - General/Windows - Emby Community
Since upgrade to v4.4.3 on Windows I get a daily error for the extraction of subtitles for a particular movie. The error is...
Read more >Easy Steps to Extract Subtitles from MP4 Quickly in 2022
How to extract subtitles from MP4? This article will introduce 5 top subtitle extractors and how to remove subtitles from MP4 easily with...
Read more >Subtitle extraction takes 20-30 seconds. Any way to speed up ...
Any way to speed up the process? I'm not sure how VLC handles subtitles, but it takes around 1-2 seconds to load in...
Read more >Adaptive Video Caption Detection and Extraction Method ...
Abstract. Based on the principle of color (RGB) filtering, an improved adaptive video caption detection and extraction method is proposed.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
lol the code I linked is code that’s already in mediaprocessor.py
I was showing you where the filename is created for the ripped subtitles so that if you wanted to write custom code to convert from 3 to 2 character codes using babelfish you would know where to start. Pasting it again at the end isn’t going to do anything
😉