Closed sdfg2 closed 2 years ago
This is unique to the cleanit pass and not general ripping of subs, expanding the functionality to include other text based subs that can be extracted (srt, ass, webvtt)
Changes on the ffsubsync branch which will be merged to master soon
https://github.com/mdhiggins/sickbeard_mp4_automator/commit/9d6bfe0c088929d187bfb96b53eed44b4819b832
Well that fixes it! :-)
Describe the bug
Subtitle.Codec = subrip, ass
-ass
files are ignored.Command or context you are trying to run
manual.py -i
autoProcess.ini settings
``` [Converter] ffmpeg = ffmpeg ffprobe = ffprobe threads = 4 hwaccels = cuda hwaccel-decoders = hwdevices = hwaccel-output-format = cuda output-directory = output-format = mkv output-extension = mkv temp-extension = minimum-size = 0 ignored-extensions = nfo, ds_store copy-to = move-to = delete-original = False process-same-extensions = True bypass-if-copying-all = True force-convert = False post-process = False wait-post-process = False detailed-progress = False opts-separator = , preopts = postopts = regex-directory-replace = [^\w\-_\. ] [Permissions] chmod = 0664 uid = -1 gid = -1 [Metadata] relocate-moov = True full-path-guess = True tag = True tag-language = eng download-artwork = False sanitize-disposition = strip-metadata = True keep-titles = False [Video] codec = hevc_nvenc, h265, x265 max-bitrate = 0 bitrate-ratio = crf = -1 crf-profiles = preset = codec-parameters = dynamic-parameters = False max-width = 0 profile = max-level = 0.0 pix-fmt = prioritize-source-pix-fmt = True filter = force-filter = False [HDR] codec = pix-fmt = space = bt2020nc transfer = smpte2084 primaries = bt2020 preset = codec-parameters = filter = force-filter = False profile = [Audio] codec = ac3 languages = default-language = include-original-language = True first-stream-of-language = False channel-bitrate = 128 variable-bitrate = 0 max-bitrate = 0 max-channels = 2 filter = profile = force-filter = False sample-rates = sample-format = copy-original = False aac-adtstoasc = False ignored-dispositions = force-default = False unique-dispositions = False stream-codec-combinations = [Audio.Sorting] sorting = language, channels.d, map, d.comment default-sorting = channels.d, map, d.comment codecs = [Universal Audio] codec = channel-bitrate = 128 variable-bitrate = 0 first-stream-only = False filter = profile = force-filter = False [Audio.ChannelFilters] 6-2 = pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR 7-2 = pan=stereo|FL < 0.321953*FC+0.455310*FL+0.394310*SL+0.227655*SR+0.278819*BC+0.321953*LFE|FR < 0.321953*FC+0.455310*FR+0.394310*SR+0.227655*SL+0.278819*BC+0.321953*LFE 8-2 = pan=stereo|FL < 0.274804*FC+0.388631*FL+0.336565*SL+0.194316*SR+0.336565*BL+0.194316*BR+0.274804*LFE|FR < 0.274804*FC+0.388631*FR+0.336565*SR+0.194316*SL+0.336565*BR+0.194316*BL+0.274804*LFE [Subtitle] codec = subrip, ass codec-image-based = languages = eng default-language = eng include-original-language = False first-stream-of-language = False encoding = burn-subtitles = False burn-dispositions = embed-subs = True embed-image-subs = False embed-only-internal-subs = False filename-dispositions = forced ignore-embedded-subs = False ignored-dispositions = force-default = False unique-dispositions = False attachment-codec = remove-bitstream-subs = False [Subtitle.Sorting] sorting = d.forced.d, language, d.comment, d.default.d, codecs = burn-sorting = d.forced.d, language, d.comment, d.default.d [Subtitle.CleanIt] enabled = True config-path = tags = default, no-style [Subtitle.Subliminal] download-subs = True download-forced-subs = True include-hearing-impaired-subs = False providers = dynamic-download = False [Subtitle.Subliminal.Auth] opensubtitles = present tvsubtitles = [Sonarr] host = localhost port = 8989 apikey = ssl = False webroot = force-rename = False rescan = True block-reprocess = False [Radarr] host = localhost port = 7878 apikey = ssl = False webroot = force-rename = False rescan = True block-reprocess = False [Sickbeard] host = localhost port = 8081 ssl = False apikey = webroot = username = password = [Sickrage] host = localhost port = 8081 ssl = False apikey = webroot = username = password = [SABNZBD] convert = True sickbeard-category = sickbeard sickrage-category = sickrage sonarr-category = sonarr radarr-category = radarr bypass-category = bypass output-directory = path-mapping = [Deluge] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = sonarr radarr-label = radarr bypass-label = bypass convert = True host = localhost port = 58846 username = password = output-directory = remove = False path-mapping = [qBittorrent] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = sonarr radarr-label = radarr bypass-label = bypass convert = True action-before = action-after = host = localhost port = 8080 ssl = False username = password = output-directory = path-mapping = [uTorrent] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = sonarr radarr-label = radarr bypass-label = bypass convert = True webui = False action-before = action-after = host = localhost ssl = False port = 8080 username = password = output-directory = path-mapping = [Plex] host = localhost port = 32400 refresh = False token = [Subtitle.FFSubsync] enabled = False ```
Log files
``` 2022-09-11 19:36:34 - MANUAL - INFO - Manual processor started. 2022-09-11 19:36:34 - MANUAL - INFO - Python 64-bit 3.10.6 (main, Aug 3 2022, 17:39:45) [GCC 12.1.1 20220730]. 2022-09-11 19:36:34 - MANUAL - INFO - Guessit version: 3.4.3. 2022-09-11 19:36:34 - MANUAL - INFO - /usr/bin/python3 2022-09-11 19:36:34 - MANUAL - INFO - Loading config file /store/.bin/sma/config/autoProcess.ini. 2022-09-11 19:36:35 - MANUAL - INFO - Matched TV episode as Nichijou: My Ordinary Life (TMDB ID: 44684) S01E09 2022-09-11 19:36:39 - MANUAL - INFO - Processing Nichijou: My Ordinary Life Season 01 Episode 09 - Episode 9 2022-09-11 19:36:39 - MANUAL - INFO - Input Data 2022-09-11 19:36:39 - MANUAL - INFO - { "format": "matroska,webm", "format-fullname": "Matroska / WebM", "video": { "index": 0, "codec": "hevc", "bitrate": 6458256, "pix_fmt": "yuv420p10le", "profile": "main10", "fps": 23.976023976023978, "framedata": { "pix_fmt": "yuv420p10le", "color_space": "bt709", "side_data_list": [ { "side_data_type": "H.26[45] User Data Unregistered SEI message" }, { "side_data_type": "H.26[45] User Data Unregistered SEI message" } ] }, "dimensions": "1920x1080", "field_order": "unknown" }, "audio": [ { "index": 1, "codec": "flac", "bitrate": 719310, "channels": 2, "samplerate": 48000, "language": "jpn", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions" }, { "index": 2, "codec": "flac", "bitrate": 1262843, "channels": 6, "samplerate": 44100, "language": "eng", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions" }, { "index": 3, "codec": "ac3", "bitrate": 640000, "channels": 2, "samplerate": 48000, "language": "jpn", "disposition": "+default-dub-original+comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions" } ], "subtitle": [ { "index": 4, "codec": "ass", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng" }, { "index": 5, "codec": "ass", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng" }, { "index": 6, "codec": "ass", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng" } ], "attachment": [ { "index": 7, "codec": "unknown", "filename": "akbar.ttf", "mimetype": "font/ttf" }, { "index": 8, "codec": "unknown", "filename": "aller_rg.ttf", "mimetype": "font/ttf" }, { "index": 9, "codec": "unknown", "filename": "avgardneclipse.ttf", "mimetype": "font/ttf" }, { "index": 10, "codec": "unknown", "filename": "brushstp.ttf", "mimetype": "font/ttf" }, { "index": 11, "codec": "unknown", "filename": "calist.ttf", "mimetype": "font/ttf" }, { "index": 12, "codec": "unknown", "filename": "chinrg.ttf", "mimetype": "font/ttf" }, { "index": 13, "codec": "unknown", "filename": "clarendonltstd.otf", "mimetype": "font/otf" }, { "index": 14, "codec": "unknown", "filename": "complete in him.ttf", "mimetype": "font/ttf" }, { "index": 15, "codec": "unknown", "filename": "corbel.ttf", "mimetype": "font/ttf" }, { "index": 16, "codec": "unknown", "filename": "du766bd.ttf", "mimetype": "font/ttf" }, { "index": 17, "codec": "unknown", "filename": "du766bdpl.ttf", "mimetype": "font/ttf" }, { "index": 18, "codec": "unknown", "filename": "edosz.ttf", "mimetype": "font/ttf" }, { "index": 19, "codec": "unknown", "filename": "erasdus0.ttf", "mimetype": "font/ttf" }, { "index": 20, "codec": "unknown", "filename": "erasdus2.ttf", "mimetype": "font/ttf" }, { "index": 21, "codec": "unknown", "filename": "eraserdust.ttf", "mimetype": "font/ttf" }, { "index": 22, "codec": "unknown", "filename": "fansubblock.ttf", "mimetype": "font/ttf" }, { "index": 23, "codec": "unknown", "filename": "frabk.ttf", "mimetype": "font/ttf" }, { "index": 24, "codec": "unknown", "filename": "gothic.ttf", "mimetype": "font/ttf" }, { "index": 25, "codec": "unknown", "filename": "helveticaltstd-cond.otf", "mimetype": "font/otf" }, { "index": 26, "codec": "unknown", "filename": "impresja.ttf", "mimetype": "font/ttf" }, { "index": 27, "codec": "unknown", "filename": "japab__.ttf", "mimetype": "font/ttf" }, { "index": 28, "codec": "unknown", "filename": "josschri.ttf", "mimetype": "font/ttf" }, { "index": 29, "codec": "unknown", "filename": "kaiu.ttf", "mimetype": "font/ttf" }, { "index": 30, "codec": "unknown", "filename": "karet.ttf", "mimetype": "font/ttf" }, { "index": 31, "codec": "unknown", "filename": "loveyalikeasister.ttf", "mimetype": "font/ttf" }, { "index": 32, "codec": "unknown", "filename": "mtcorsva.ttf", "mimetype": "font/ttf" }, { "index": 33, "codec": "unknown", "filename": "qarmic_sans_abridged.ttf", "mimetype": "font/ttf" }, { "index": 34, "codec": "unknown", "filename": "seeis.ttf", "mimetype": "font/ttf" }, { "index": 35, "codec": "unknown", "filename": "vesta-bold.otf", "mimetype": "font/otf" } ] } 2022-09-11 19:36:39 - MANUAL - INFO - Reading video stream. 2022-09-11 19:36:39 - MANUAL - INFO - Video codec detected: hevc. 2022-09-11 19:36:39 - MANUAL - INFO - Pix Fmt: yuv420p10le. 2022-09-11 19:36:39 - MANUAL - INFO - Profile: main10. 2022-09-11 19:36:39 - MANUAL - INFO - Video codec parameters None. 2022-09-11 19:36:39 - MANUAL - INFO - Creating copy video stream from source stream 0. 2022-09-11 19:36:39 - MANUAL - INFO - Reading audio streams. 2022-09-11 19:36:39 - MANUAL - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations]. 2022-09-11 19:36:39 - MANUAL - INFO - Audio detected for stream 1 - flac jpn 2 channel. 2022-09-11 19:36:39 - MANUAL - INFO - Creating ac3 audio stream from source stream 1. 2022-09-11 19:36:39 - MANUAL - INFO - Audio detected for stream 2 - flac eng 6 channel. 2022-09-11 19:36:39 - MANUAL - INFO - Audio detected for stream 3 - ac3 jpn 2 channel. 2022-09-11 19:36:39 - MANUAL - INFO - Creating copy audio stream from source stream 3. 2022-09-11 19:36:39 - MANUAL - INFO - Found 0 streams that can be removed from the output file since they will be duplicates [stream-codec-combinations]. 2022-09-11 19:36:39 - MANUAL - INFO - Final sorting: 2022-09-11 19:36:39 - MANUAL - INFO - ['0->0', '1->1'] 2022-09-11 19:36:39 - MANUAL - INFO - Final sorting: 2022-09-11 19:36:39 - MANUAL - INFO - ['0->0', '1->1'] 2022-09-11 19:36:39 - MANUAL - INFO - Default audio stream set to jpn ac3 2 channel stream [audio-default-sorting: ['channels.d', 'map', 'd.comment']]. 2022-09-11 19:36:39 - MANUAL - INFO - Reading subtitle streams. 2022-09-11 19:36:39 - MANUAL - INFO - Subtitle detected for stream 4 - ass eng. 2022-09-11 19:36:39 - MANUAL - INFO - Stream 4 is text-based subtitle for codec ass. 2022-09-11 19:36:39 - MANUAL - INFO - Ripping eng subtitle from source stream 4 into external file. 2022-09-11 19:36:39 - MANUAL - INFO - /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.srt created. 2022-09-11 19:36:40 - MANUAL - INFO - Subtitle /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.srt extracted for cleaning/syncing [subtitles.cleanit, subtitles.ffsubsync]. 2022-09-11 19:36:40 - MANUAL - INFO - Subtitle detected for stream 5 - ass eng. 2022-09-11 19:36:40 - MANUAL - INFO - Stream 5 is text-based subtitle for codec ass. 2022-09-11 19:36:40 - MANUAL - INFO - Ripping eng subtitle from source stream 5 into external file. 2022-09-11 19:36:40 - MANUAL - INFO - /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.2.srt created. 2022-09-11 19:36:40 - MANUAL - INFO - Subtitle /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.2.srt extracted for cleaning/syncing [subtitles.cleanit, subtitles.ffsubsync]. 2022-09-11 19:36:40 - MANUAL - INFO - Subtitle detected for stream 6 - ass eng. 2022-09-11 19:36:40 - MANUAL - INFO - Stream 6 is text-based subtitle for codec ass. 2022-09-11 19:36:40 - MANUAL - INFO - Ripping eng subtitle from source stream 6 into external file. 2022-09-11 19:36:41 - MANUAL - INFO - /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.3.srt created. 2022-09-11 19:36:41 - MANUAL - INFO - Subtitle /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.3.srt extracted for cleaning/syncing [subtitles.cleanit, subtitles.ffsubsync]. 2022-09-11 19:36:41 - MANUAL - INFO - Attempting to download subtitles. 2022-09-11 19:36:42 - MANUAL - INFO - Scanned for external subtitles and found 3 results in your approved languages. 2022-09-11 19:36:42 - MANUAL - INFO - Creating subrip subtitle stream by importing Text-based subtitle Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.srt [embed-subs]. 2022-09-11 19:36:42 - MANUAL - INFO - Creating subrip subtitle stream by importing Text-based subtitle Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.2.srt [embed-subs]. 2022-09-11 19:36:42 - MANUAL - INFO - Creating subrip subtitle stream by importing Text-based subtitle Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.3.srt [embed-subs]. 2022-09-11 19:36:42 - MANUAL - INFO - Final sorting: 2022-09-11 19:36:42 - MANUAL - INFO - ['0->0', '1->1', '2->2'] 2022-09-11 19:36:42 - MANUAL - INFO - Tagging copied video stream as hvc1 2022-09-11 19:36:42 - MANUAL - INFO - Output Data 2022-09-11 19:36:42 - MANUAL - INFO - { "source": [ "Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.mkv", "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.srt", "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.2.srt", "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.3.srt" ], "format": "mkv", "video": { "codec": "copy", "map": 0, "bitrate": 6168.5732499999995, "crf": -1, "maxrate": null, "bufsize": null, "level": 0.0, "profile": null, "preset": null, "pix_fmt": null, "field_order": "unknown", "width": null, "filter": null, "params": null, "framedata": null, "bsf": null, "debug": "video", "title": "FHD" }, "audio": [ { "map": 1, "codec": "ac3", "channels": 2, "bitrate": 256, "profile": null, "quality": 0, "filter": null, "samplerate": null, "sampleformat": "", "language": "jpn", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "bsf": null, "debug": "audio", "title": "Stereo" }, { "map": 3, "codec": "copy", "channels": 2, "bitrate": 256, "profile": null, "quality": 0, "filter": null, "samplerate": null, "sampleformat": "", "language": "jpn", "disposition": "-default-dub-original+comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "bsf": null, "debug": "audio", "title": "Stereo (Commentary)" } ], "subtitle": [ { "source": 1, "map": 0, "codec": "subrip", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng", "debug": "subtitle.embed-subs", "title": null }, { "source": 2, "map": 0, "codec": "subrip", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng", "debug": "subtitle.embed-subs", "title": null }, { "source": 3, "map": 0, "codec": "subrip", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng", "debug": "subtitle.embed-subs", "title": null } ], "attachment": [] } 2022-09-11 19:36:42 - MANUAL - INFO - Preopts 2022-09-11 19:36:42 - MANUAL - INFO - [ "-fix_sub_duration" ] 2022-09-11 19:36:42 - MANUAL - INFO - Postopts 2022-09-11 19:36:42 - MANUAL - INFO - [ "-threads", "3", "-metadata:g", "encoding_tool=SMA", "-tag:v", "hvc1" ] 2022-09-11 19:36:42 - MANUAL - INFO - Downloaded Subtitles 2022-09-11 19:36:42 - MANUAL - INFO - [] 2022-09-11 19:36:42 - MANUAL - INFO - Starting conversion. 2022-09-11 19:36:42 - MANUAL - INFO - FFmpeg command: 2022-09-11 19:36:42 - MANUAL - INFO - ====================== 2022-09-11 19:36:42 - MANUAL - INFO - /usr/bin/ffmpeg -fix_sub_duration -i "Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.mkv.original" -i "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.srt" -i "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.2.srt" -i "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.eng.3.srt" -map_metadata -1 -vcodec copy -map 0:0 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -c:a:0 ac3 -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=jpn -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:1 copy -map 0:3 -metadata:s:a:1 "title=Stereo (Commentary)" -metadata:s:a:1 "handler_name=Stereo (Commentary)" -metadata:s:a:1 language=jpn -disposition:a:1 -default-dub-original+comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 subrip -map 1:0 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:1 subrip -map 2:0 -metadata:s:s:1 title= -metadata:s:s:1 handler_name= -metadata:s:s:1 language=eng -disposition:s:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:2 subrip -map 3:0 -metadata:s:s:2 title= -metadata:s:s:2 handler_name= -metadata:s:s:2 language=eng -disposition:s:2 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f matroska -threads 3 -metadata:g encoding_tool=SMA -tag:v hvc1 -y "/store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.mkv" 2022-09-11 19:36:42 - MANUAL - INFO - ====================== 2022-09-11 19:36:47 - MANUAL - INFO - /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.mkv created. 2022-09-11 19:36:48 - MANUAL - INFO - Tagging file: /store/.trans/Nichijou - My Ordinary Life - S01E09 - Episode 9 [Bluray-1080p Proper][FLAC 2.0][x265]-Omotenashi.mkv. ```
From
ffmpeg -codecs
:System Information
Python 3.10.6
Expected behavior
ass
files are extracted and saved, then embedded into the mkv.Additional context Add any other context about the problem here.
Issues posted without any logs or autoProcess settings will be closed