mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.53k stars 200 forks source link

Some attached fonts are not included in output file #1515

Closed lizardfish0 closed 2 years ago

lizardfish0 commented 2 years ago

Certain attached files (in this case, fonts) are not being included in the output file, even though their extensions are included in attachment-codec.

autoProcess.ini

[Subtitle]
codec = ass, srt, ssa
codec-image-based = pgs
languages = eng, en
default-language = eng
first-stream-of-language = False
encoding = 
burn-subtitles = False
burn-dispositions = 
embed-subs = True
embed-image-subs = True
embed-only-internal-subs = False
filename-dispositions = forced
ignore-embedded-subs = False
attachment-codec = ttf,otf
ignored-dispositions = 
unique-dispositions = False

input

General
Unique ID                                : 103042815008739644106485242003869270114 (0x4D855305306592931B05A8E433A20062)
Complete name                            : [Judas] Attack on Titan - S04E17.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 581 MiB
Duration                                 : 24 min 18 s
Overall bit rate                         : 3 340 kb/s
Encoded date                             : UTC 2022-01-09 23:36:18
Writing application                      : mkvmerge v59.0.0 ('Shining Star') 64-bit
Writing library                          : libebml v1.4.2 + libmatroska v1.6.4 / Lavf58.76.100
Attachments                              : NotoSans-Medium.ttf / AGARAMONDPRO-REGULAR.OTF / ANGIE-BOLD.TTF / ANGIE-BOLDITALIC.TTF / BSOD.TTF / CLEARFACESSIBOLD.TTF / DAYROMAN.TTF / KINESISSTD-BLACKITALIC.OTF / arialbd.ttf / arialbi.ttf / Arial_0.ttf / ariblk_0.TTF / calibri.ttf / comicbd.ttf / comic_0.ttf / georgiab.ttf / georgiaz.ttf / georgia_0.ttf / impact_0.ttf / Tahoma_0.ttf / times_0.ttf / trebuc_0.ttf / verdana_0.ttf / AdobeArabic-Bold.otf / AdobeArabic-BoldItalic.otf / AdobeArabic-Italic.otf / AdobeArabic-Regular.otf

output

General
Unique ID                                : 80220432727279156134968650101214082449 (0x3C59E4B2DAFBB889F291CD95215AF591)
Complete name                            : Attack on Titan - S04E17 - Judgment HDTV-1080p.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 580 MiB
Duration                                 : 24 min 17 s
Overall bit rate                         : 3 340 kb/s
Movie name                               : Judgment
Released date                            : 2022-01-10
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
Cover                                    : Yes
Comment                                  : The Marleyan military's air force invades Paradis, while Eren Yeager continues battling Porco Galliard, who is soon joined by Reiner Braun in his Armored Titan form.
ErrorDetectionType                       : Per level 1
Attachments                              : arialbd.ttf / arialbi.ttf / Arial_0.ttf / ariblk_0.TTF / calibri.ttf / comicbd.ttf / comic_0.ttf / georgiab.ttf / georgiaz.ttf / georgia_0.ttf / impact_0.ttf / Tahoma_0.ttf / times_0.ttf / trebuc_0.ttf / verdana_0.ttf / AdobeArabic-Bold.otf / AdobeArabic-BoldItalic.otf / AdobeArabic-Italic.otf / AdobeArabic-Regular.otf / cover.jpg
ALBUM                                    : Attack on Titan, Season 4
DATE                                     : 2022-01-10
GENRE                                    : Sci-Fi & Fantasy

log

2022-01-10 14:25:28 - SonarrPostProcess - INFO - Sonarr extra script post processing started.
2022-01-10 14:25:28 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3
2022-01-10 14:25:28 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini.
2022-01-10 14:25:29 - resources.mediaprocessor - INFO - Processing /media/anime/Attack on Titan/Season 4/Attack on Titan - S04E17 - Judgment HDTV-1080p.mkv.
2022-01-10 14:25:29 - resources.mediaprocessor - INFO - Input Data
2022-01-10 14:25:29 - resources.mediaprocessor - INFO - {
"format": "matroska,webm",
"format-fullname": "Matroska / WebM",
"video": {
"index": 0,
"codec": "hevc",
"pix_fmt": "yuv420p10le",
"profile": "main 10",
"fps": 23.976023976023978,
"framedata": {
"pix_fmt": "yuv420p10le"
},
"dimensions": "1920x1080",
"level": 5.0,
"field_order": "unknown"
},
"audio": [
{
"index": 1,
"codec": "aac",
"channels": 2,
"samplerate": 48000,
"language": "jpn",
"disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
}
],
"subtitle": [
{
"index": 2,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "eng"
},
{
"index": 3,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "eng"
},
{
"index": 4,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "fra"
},
{
"index": 5,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "deu"
},
{
"index": 6,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "ita"
},
{
"index": 7,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "rus"
},
{
"index": 8,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "spa"
},
{
"index": 9,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "spa"
},
{
"index": 10,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "por"
},
{
"index": 11,
"codec": "ass",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"language": "ara"
}
],
"attachment": [
{
"index": 12,
"codec": "unknown"
},
{
"index": 13,
"codec": "unknown"
},
{
"index": 14,
"codec": "unknown"
},
{
"index": 15,
"codec": "unknown"
},
{
"index": 16,
"codec": "unknown"
},
{
"index": 17,
"codec": "unknown"
},
{
"index": 18,
"codec": "unknown"
},
{
"index": 19,
"codec": "unknown"
},
{
"index": 20,
"codec": "ttf"
},
{
"index": 21,
"codec": "ttf"
},
{
"index": 22,
"codec": "ttf"
},
{
"index": 23,
"codec": "ttf"
},
{
"index": 24,
"codec": "ttf"
},
{
"index": 25,
"codec": "ttf"
},
{
"index": 26,
"codec": "ttf"
},
{
"index": 27,
"codec": "ttf"
},
{
"index": 28,
"codec": "ttf"
},
{
"index": 29,
"codec": "ttf"
},
{
"index": 30,
"codec": "ttf"
},
{
"index": 31,
"codec": "ttf"
},
{
"index": 32,
"codec": "ttf"
},
{
"index": 33,
"codec": "ttf"
},
{
"index": 34,
"codec": "ttf"
},
{
"index": 35,
"codec": "ttf"
},
{
"index": 36,
"codec": "ttf"
},
{
"index": 37,
"codec": "ttf"
},
{
"index": 38,
"codec": "ttf"
}
]
}

Looks like the problem is that the first 8 font files get their codec tagged as unknown, even though it should be ttf or otf.

lizardfish0 commented 2 years ago

My workaround was to add "unknown" to attachment-codecs, which ensures that those fonts end up in the output file.

mdhiggins commented 2 years ago

Seems like a bad source file. Attachments shouldn’t be tagged as unknown. Are you seeing this with multiple files? Might be a be source if all the files are reported this way but if you want to send me a sample I can try and find a workaround

Sent from my iPhone

On Jan 10, 2022, at 4:38 PM, lizardfish0 @.***> wrote:

 Certain attached files (in this case, fonts) are not being included in the output file, even though their extensions are included in attachment-codec.

autoProcess.ini

[Subtitle] codec = ass, srt, ssa codec-image-based = pgs languages = eng, en default-language = eng first-stream-of-language = False encoding = burn-subtitles = False burn-dispositions = embed-subs = True embed-image-subs = True embed-only-internal-subs = False filename-dispositions = forced ignore-embedded-subs = False attachment-codec = ttf,otf ignored-dispositions = unique-dispositions = False input

General Unique ID : 103042815008739644106485242003869270114 (0x4D855305306592931B05A8E433A20062) Complete name : [Judas] Attack on Titan - S04E17.mkv Format : Matroska Format version : Version 4 File size : 581 MiB Duration : 24 min 18 s Overall bit rate : 3 340 kb/s Encoded date : UTC 2022-01-09 23:36:18 Writing application : mkvmerge v59.0.0 ('Shining Star') 64-bit Writing library : libebml v1.4.2 + libmatroska v1.6.4 / Lavf58.76.100 Attachments : NotoSans-Medium.ttf / AGARAMONDPRO-REGULAR.OTF / ANGIE-BOLD.TTF / ANGIE-BOLDITALIC.TTF / BSOD.TTF / CLEARFACESSIBOLD.TTF / DAYROMAN.TTF / KINESISSTD-BLACKITALIC.OTF / arialbd.ttf / arialbi.ttf / Arial_0.ttf / ariblk_0.TTF / calibri.ttf / comicbd.ttf / comic_0.ttf / georgiab.ttf / georgiaz.ttf / georgia_0.ttf / impact_0.ttf / Tahoma_0.ttf / times_0.ttf / trebuc_0.ttf / verdana_0.ttf / AdobeArabic-Bold.otf / AdobeArabic-BoldItalic.otf / AdobeArabic-Italic.otf / AdobeArabic-Regular.otf output

General Unique ID : 80220432727279156134968650101214082449 (0x3C59E4B2DAFBB889F291CD95215AF591) Complete name : Attack on Titan - S04E17 - Judgment HDTV-1080p.mkv Format : Matroska Format version : Version 4 File size : 580 MiB Duration : 24 min 17 s Overall bit rate : 3 340 kb/s Movie name : Judgment Released date : 2022-01-10 Writing application : Lavf58.45.100 Writing library : Lavf58.45.100 Cover : Yes Comment : The Marleyan military's air force invades Paradis, while Eren Yeager continues battling Porco Galliard, who is soon joined by Reiner Braun in his Armored Titan form. ErrorDetectionType : Per level 1 Attachments : arialbd.ttf / arialbi.ttf / Arial_0.ttf / ariblk_0.TTF / calibri.ttf / comicbd.ttf / comic_0.ttf / georgiab.ttf / georgiaz.ttf / georgia_0.ttf / impact_0.ttf / Tahoma_0.ttf / times_0.ttf / trebuc_0.ttf / verdana_0.ttf / AdobeArabic-Bold.otf / AdobeArabic-BoldItalic.otf / AdobeArabic-Italic.otf / AdobeArabic-Regular.otf / cover.jpg ALBUM : Attack on Titan, Season 4 DATE : 2022-01-10 GENRE : Sci-Fi & Fantasy log

2022-01-10 14:25:28 - SonarrPostProcess - INFO - Sonarr extra script post processing started. 2022-01-10 14:25:28 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3 2022-01-10 14:25:28 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini. 2022-01-10 14:25:29 - resources.mediaprocessor - INFO - Processing /media/anime/Attack on Titan/Season 4/Attack on Titan - S04E17 - Judgment HDTV-1080p.mkv. 2022-01-10 14:25:29 - resources.mediaprocessor - INFO - Input Data 2022-01-10 14:25:29 - resources.mediaprocessor - INFO - { "format": "matroska,webm", "format-fullname": "Matroska / WebM", "video": { "index": 0, "codec": "hevc", "pix_fmt": "yuv420p10le", "profile": "main 10", "fps": 23.976023976023978, "framedata": { "pix_fmt": "yuv420p10le" }, "dimensions": "1920x1080", "level": 5.0, "field_order": "unknown" }, "audio": [ { "index": 1, "codec": "aac", "channels": 2, "samplerate": 48000, "language": "jpn", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired" } ], "subtitle": [ { "index": 2, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "eng" }, { "index": 3, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "eng" }, { "index": 4, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "fra" }, { "index": 5, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "deu" }, { "index": 6, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "ita" }, { "index": 7, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "rus" }, { "index": 8, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "spa" }, { "index": 9, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "spa" }, { "index": 10, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "por" }, { "index": 11, "codec": "ass", "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired", "language": "ara" } ], "attachment": [ { "index": 12, "codec": "unknown" }, { "index": 13, "codec": "unknown" }, { "index": 14, "codec": "unknown" }, { "index": 15, "codec": "unknown" }, { "index": 16, "codec": "unknown" }, { "index": 17, "codec": "unknown" }, { "index": 18, "codec": "unknown" }, { "index": 19, "codec": "unknown" }, { "index": 20, "codec": "ttf" }, { "index": 21, "codec": "ttf" }, { "index": 22, "codec": "ttf" }, { "index": 23, "codec": "ttf" }, { "index": 24, "codec": "ttf" }, { "index": 25, "codec": "ttf" }, { "index": 26, "codec": "ttf" }, { "index": 27, "codec": "ttf" }, { "index": 28, "codec": "ttf" }, { "index": 29, "codec": "ttf" }, { "index": 30, "codec": "ttf" }, { "index": 31, "codec": "ttf" }, { "index": 32, "codec": "ttf" }, { "index": 33, "codec": "ttf" }, { "index": 34, "codec": "ttf" }, { "index": 35, "codec": "ttf" }, { "index": 36, "codec": "ttf" }, { "index": 37, "codec": "ttf" }, { "index": 38, "codec": "ttf" } ] } Looks like the problem is that the first 8 font files get their codec tagged as unknown, even though it should be ttf or otf.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

mdhiggins commented 2 years ago

Does adding 'unknown' to your codecs solve the issue?

lizardfish0 commented 2 years ago

Just realized I never closed this, but yes, adding unknown solves the issue (though that does feel hacky).