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.51k stars 201 forks source link

Unable to copy HDR metadata #1624

Closed EniciOnA closed 1 year ago

EniciOnA commented 1 year ago

I am trying to copy the video stream with HDR metadata from the MKV to an MP4, but the HDR metadata isn't being copied. I attached my logs and below is my AutoProcess.ini. I am running inside the docker container with FFMPEG 5.1.2.

Any ideas on what I am doing wrong? Any help would be appreciated! Thanks.

[Converter]
ffmpeg = ffmpeg
ffprobe = ffprobe
threads = 0
hwaccels = 
hwaccel-decoders = 
hwdevices = 
hwaccel-output-format = 
output-directory = 
output-format = mp4
output-extension = mp4
temp-extension = 
minimum-size = 0
ignored-extensions = nfo, ds_store
copy-to = 
move-to = 
delete-original = True
sort-streams = True
process-same-extensions = False
force-convert = False
post-process = False
wait-post-process = False
detailed-progress = True
preopts = 
postopts = 
bypass-if-copying-all = False
opts-separator = ,
regex-directory-replace = [^\w\-_\. ]
temp-output = False

[Permissions]
chmod = 0644
uid = -1
gid = -1

[Metadata]
relocate-moov = True
full-path-guess = True
tag = True
tag-language = eng
download-artwork = poster
sanitize-disposition = 
strip-metadata = False
keep-titles = False

[Video]
codec = h264,x264,h265,x265,hevc
max-bitrate = 0
crf = -1
crf-profiles = 
preset = 
codec-parameters = 
dynamic-parameters = True
max-width = 0
profile = 
max-level = 0.0
pix-fmt = yuv420p10le,p010le
filter = 
force-filter = False
bitrate-ratio = 
prioritize-source-pix-fmt = True

[HDR]
pix-fmt = 
space = bt2020nc
transfer = smpte2084
primaries = bt2020
preset = 
codec-parameters = 
filter = 
force-filter = False
codec = 
profile = 

[Audio]
codec = eac3,ac3,dts,aac
languages = 
default-language = 
first-stream-of-language = False
allow-language-relax = True
channel-bitrate = 0
max-bitrate = 0
max-channels = 0
prefer-more-channels = True
filter = 
force-filter = False
sample-rates = 
copy-original = True
aac-adtstoasc = False
ignore-truehd = mp4, m4v
ignored-dispositions = 
unique-dispositions = False
sample-format = 
stream-codec-combinations = 
variable-bitrate = 0
profile = 
relax-to-default = False
force-default = False
include-original-language = True

[Universal Audio]
codec = libfdk_aac, aac
channel-bitrate = 256
first-stream-only = True
filter = 
force-filter = False
variable-bitrate = 0
profile = 

[Subtitle]
codec = mov_text
codec-image-based = 
languages = 
default-language = 
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 = 
unique-dispositions = False
attachment-codec = 
remove-bitstream-subs = False
force-default = False
include-original-language = False

[Sonarr]
host = 192.168.55.30
port = 8989
apikey = def9c1495a9947cb81ef5b5d52531b7a
ssl = False
webroot = 
force-rename = False
rescan = True
block-reprocess = False

[Radarr]
host = 192.168.55.30
port = 7878
apikey = 229bac077cc341629351a8068ec58844
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 = 

[CouchPotato]
host = localhost
port = 5050
username = 
password = 
apikey = 
delay = 65
method = renamer
delete-failed = False
ssl = False
webroot = 

[SABNZBD]
convert = True
sickbeard-category = sickbeard
sickrage-category = sickrage
couchpotato-category = couchpotato
sonarr-category = tv
radarr-category = movies
bypass-category = bypass
output-directory = 
path-mapping = 

[Deluge]
couchpotato-label = couchpotato
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]
couchpotato-label = couchpotato
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]
couchpotato-label = couchpotato
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 = 192.168.55.32
port = 32400
refresh = True
token = iwBxcv3oNP7kQYyaYweh

[Subtitle.Subliminal]
download-subs = False
download-hearing-impaired-subs = False
providers = 
download-forced-subs = False
include-hearing-impaired-subs = False

[Audio.ChannelFilters]
6-2 = pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE

[Subtitle.Subliminal.Auth]
opensubtitles = 
tvsubtitles = 

[Subtitle.CleanIt]
enabled = False
config-path = 
tags = 

[Audio.Sorting]
sorting = language, channels.d, d.comment
default-sorting = channels.d, d.comment
codecs = 

[Subtitle.Sorting]
sorting = language, d.comment, d.default.d, d.forced.d
codecs = 
burn-sorting = language, d.comment, d.default.d, d.forced.d

[Subtitle.FFSubsync]
enabled = False

Original File:

Screenshot 2022-10-23 at 10 34 52 AM

Converted File:

Screenshot 2022-10-23 at 10 32 19 AM

Log File:

2022-10-23 10:20:44 - MANUAL - INFO - {
    "source": [
        "/tv-4k/The Lord of the Rings - The Rings of Power 4K/Season 01/The Lord of the Rings - The Rings of Power (2022) - S01E01 - A Shadow of the Past [AMZN WEBDL-2160p][DV][EAC3 Atmos 5.1][h265]-NTb.mkv"
    ],
    "format": "mp4",
    "video": {
        "codec": "copy",
        "map": 0,
        "bitrate": 18357.6727,
        "crf": -1,
        "maxrate": null,
        "bufsize": null,
        "level": 0.0,
        "profile": null,
        "preset": null,
        "pix_fmt": "yuv420p10le",
        "field_order": "unknown",
        "width": null,
        "filter": null,
        "params": null,
        "framedata": {
            "pix_fmt": "yuv420p10le",
            "side_data_list": [
                {
                    "side_data_type": "Dolby Vision RPU Data"
                },
                {
                    "side_data_type": "Dolby Vision Metadata",
                    "rpu_type": 2,
                    "rpu_format": 18,
                    "vdr_rpu_profile": 0,
                    "vdr_rpu_level": 0,
                    "chroma_resampling_explicit_filter_flag": 0,
                    "coef_data_type": 0,
                    "coef_log2_denom": 23,
                    "vdr_rpu_normalized_idc": 1,
                    "bl_video_full_range_flag": 1,
                    "bl_bit_depth": 10,
                    "el_bit_depth": 10,
                    "vdr_bit_depth": 12,
                    "spatial_resampling_filter_flag": 0,
                    "el_spatial_resampling_filter_flag": 0,
                    "disable_residual_flag": 1,
                    "vdr_rpu_id": 0,
                    "mapping_color_space": 0,
                    "mapping_chroma_format_idc": 0,
                    "nlq_method_idc": -1,
                    "nlq_method_idc_name": "none",
                    "num_x_partitions": 1,
                    "num_y_partitions": 1,
                    "components": [
                        {
                            "pivots": "0 57 225 481 737 951 1009",
                            "pieces": [
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 2,
                                    "poly_coef": "3101 4142825 -21271918"
                                },
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 2,
                                    "poly_coef": "60828 2098170 -2034122"
                                },
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 2,
                                    "poly_coef": "117985 1507032 -492766"
                                },
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 2,
                                    "poly_coef": "169831 1273786 -228174"
                                },
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 2,
                                    "poly_coef": "522858 295488 449588"
                                },
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 2,
                                    "poly_coef": "2037184 -3056804 2305541"
                                }
                            ]
                        },
                        {
                            "pivots": "0 1023",
                            "pieces": [
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 1,
                                    "poly_coef": "4194304 0"
                                }
                            ]
                        },
                        {
                            "pivots": "0 1023",
                            "pieces": [
                                {
                                    "mapping_idc": 0,
                                    "mapping_idc_name": "polynomial",
                                    "poly_order": 1,
                                    "poly_coef": "4194304 0"
                                }
                            ]
                        }
                    ],
                    "dm_metadata_id": 0,
                    "scene_refresh_flag": 1,
                    "ycc_to_rgb_matrix": "8192/8192 799/8192 1681/8192 8192/8192 -933/8192 1091/8192 8192/8192 267/8192 -5545/8192",
                    "ycc_to_rgb_offset": "0/268435456 134217728/268435456 134217728/268435456",
                    "rgb_to_lms_matrix": "17081/16384 -349/16384 -349/16384 -349/16384 17081/16384 -349/16384 -349/16384 -349/16384 17081/16384",
                    "signal_eotf": 65535,
                    "signal_eotf_param0": 0,
                    "signal_eotf_param1": 0,
                    "signal_eotf_param2": 0,
                    "signal_bit_depth": 12,
                    "signal_color_space": 2,
                    "signal_chroma_format": 0,
                    "signal_full_range_flag": 1,
                    "source_min_pq": 7,
                    "source_max_pq": 3079,
                    "source_diagonal": 42
                }
            ]
        },
        "bsf": null,
        "debug": "video",
        "title": "4K"
    },
    "audio": [
        {
            "map": 1,
            "codec": "copy",
            "channels": 6,
            "bitrate": 576.0,
            "profile": null,
            "quality": 0,
            "filter": null,
            "samplerate": null,
            "sampleformat": "",
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "bsf": null,
            "debug": "audio",
            "title": "5.1 Channel"
        },
        {
            "map": 1,
            "codec": "libfdk_aac",
            "channels": 2,
            "bitrate": 256,
            "quality": 0,
            "profile": null,
            "samplerate": null,
            "sampleformat": "",
            "filter": "pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "universal-audio",
            "title": "Stereo"
        }
    ],
    "subtitle": [
        {
            "map": 2,
            "codec": "mov_text",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": "Forced"
        },
        {
            "map": 3,
            "codec": "mov_text",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 4,
            "codec": "mov_text",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": "Hearing Impaired"
        },
        {
            "map": 5,
            "codec": "mov_text",
            "language": "ara",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 6,
            "codec": "mov_text",
            "language": "cat",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 7,
            "codec": "mov_text",
            "language": "ces",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 8,
            "codec": "mov_text",
            "language": "dan",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 9,
            "codec": "mov_text",
            "language": "deu",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 10,
            "codec": "mov_text",
            "language": "ell",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 11,
            "codec": "mov_text",
            "language": "spa",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 12,
            "codec": "mov_text",
            "language": "spa",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 13,
            "codec": "mov_text",
            "language": "eus",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 14,
            "codec": "mov_text",
            "language": "fin",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 15,
            "codec": "mov_text",
            "language": "fil",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 16,
            "codec": "mov_text",
            "language": "fra",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 17,
            "codec": "mov_text",
            "language": "fra",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 18,
            "codec": "mov_text",
            "language": "glg",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 19,
            "codec": "mov_text",
            "language": "heb",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 20,
            "codec": "mov_text",
            "language": "hin",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 21,
            "codec": "mov_text",
            "language": "hun",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 22,
            "codec": "mov_text",
            "language": "ind",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 23,
            "codec": "mov_text",
            "language": "ita",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 24,
            "codec": "mov_text",
            "language": "jpn",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 25,
            "codec": "mov_text",
            "language": "kan",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 26,
            "codec": "mov_text",
            "language": "kor",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 27,
            "codec": "mov_text",
            "language": "mal",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 28,
            "codec": "mov_text",
            "language": "msa",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 29,
            "codec": "mov_text",
            "language": "nob",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 30,
            "codec": "mov_text",
            "language": "nld",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 31,
            "codec": "mov_text",
            "language": "pol",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 32,
            "codec": "mov_text",
            "language": "por",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 33,
            "codec": "mov_text",
            "language": "por",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 34,
            "codec": "mov_text",
            "language": "ron",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 35,
            "codec": "mov_text",
            "language": "rus",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 36,
            "codec": "mov_text",
            "language": "swe",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 37,
            "codec": "mov_text",
            "language": "tam",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 38,
            "codec": "mov_text",
            "language": "tel",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 39,
            "codec": "mov_text",
            "language": "tha",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 40,
            "codec": "mov_text",
            "language": "tur",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 41,
            "codec": "mov_text",
            "language": "ukr",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 42,
            "codec": "mov_text",
            "language": "vie",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 43,
            "codec": "mov_text",
            "language": "zho",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        },
        {
            "map": 44,
            "codec": "mov_text",
            "language": "zho",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "debug": "subtitle.embed-subs",
            "title": null
        }
    ],
    "attachment": []
}
2022-10-23 10:20:44 - MANUAL - INFO - Preopts
2022-10-23 10:20:44 - MANUAL - INFO - [
    "-fix_sub_duration"
]
2022-10-23 10:20:44 - MANUAL - INFO - Postopts
2022-10-23 10:20:44 - MANUAL - INFO - [
    "-threads",
    "0",
    "-metadata:g",
    "encoding_tool=SMA",
    "-tag:v",
    "hvc1"
]
2022-10-23 10:20:44 - MANUAL - INFO - Starting conversion.
2022-10-23 10:20:44 - MANUAL - INFO - FFmpeg command:
2022-10-23 10:20:44 - MANUAL - INFO - ======================
2022-10-23 10:20:44 - MANUAL - INFO - /usr/local/bin/ffmpeg -fix_sub_duration -i "/tv-4k/The Lord of the Rings - The Rings of Power 4K/Season 01/The Lord of the Rings - The Rings of Power (2022) - S01E01 - A Shadow of the Past [AMZN WEBDL-2160p][DV][EAC3 Atmos 5.1][h265]-NTb.mkv" -vcodec copy -map 0:0 -metadata:s:v title=4K -metadata:s:v handler_name=4K -c:a:0 copy -map 0:1 -metadata:s:a:0 "title=5.1 Channel" -metadata:s:a:0 "handler_name=5.1 Channel" -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:1 libfdk_aac -map 0:1 -ac:a:1 2 -b:a:1 256k -metadata:s:a:1 BPS=256000 -metadata:s:a:1 BPS-eng=256000 -filter:a:1 "pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE" -metadata:s:a:1 title=Stereo -metadata:s:a:1 handler_name=Stereo -metadata:s:a:1 language=eng -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 mov_text -map 0:2 -metadata:s:s:0 title=Forced -metadata:s:s:0 handler_name=Forced -metadata:s:s:0 language=eng -disposition:s:0 -default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -c:s:1 mov_text -map 0:3 -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 mov_text -map 0:4 -metadata:s:s:2 "title=Hearing Impaired" -metadata:s:s:2 "handler_name=Hearing Impaired" -metadata:s:s:2 language=eng -disposition:s:2 -default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired-captions -c:s:3 mov_text -map 0:5 -metadata:s:s:3 title= -metadata:s:s:3 handler_name= -metadata:s:s:3 language=ara -disposition:s:3 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:4 mov_text -map 0:6 -metadata:s:s:4 title= -metadata:s:s:4 handler_name= -metadata:s:s:4 language=cat -disposition:s:4 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:5 mov_text -map 0:7 -metadata:s:s:5 title= -metadata:s:s:5 handler_name= -metadata:s:s:5 language=ces -disposition:s:5 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:6 mov_text -map 0:8 -metadata:s:s:6 title= -metadata:s:s:6 handler_name= -metadata:s:s:6 language=dan -disposition:s:6 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:7 mov_text -map 0:9 -metadata:s:s:7 title= -metadata:s:s:7 handler_name= -metadata:s:s:7 language=deu -disposition:s:7 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:8 mov_text -map 0:10 -metadata:s:s:8 title= -metadata:s:s:8 handler_name= -metadata:s:s:8 language=ell -disposition:s:8 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:9 mov_text -map 0:11 -metadata:s:s:9 title= -metadata:s:s:9 handler_name= -metadata:s:s:9 language=spa -disposition:s:9 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:10 mov_text -map 0:12 -metadata:s:s:10 title= -metadata:s:s:10 handler_name= -metadata:s:s:10 language=spa -disposition:s:10 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:11 mov_text -map 0:13 -metadata:s:s:11 title= -metadata:s:s:11 handler_name= -metadata:s:s:11 language=eus -disposition:s:11 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:12 mov_text -map 0:14 -metadata:s:s:12 title= -metadata:s:s:12 handler_name= -metadata:s:s:12 language=fin -disposition:s:12 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:13 mov_text -map 0:15 -metadata:s:s:13 title= -metadata:s:s:13 handler_name= -metadata:s:s:13 language=fil -disposition:s:13 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:14 mov_text -map 0:16 -metadata:s:s:14 title= -metadata:s:s:14 handler_name= -metadata:s:s:14 language=fra -disposition:s:14 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:15 mov_text -map 0:17 -metadata:s:s:15 title= -metadata:s:s:15 handler_name= -metadata:s:s:15 language=fra -disposition:s:15 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:16 mov_text -map 0:18 -metadata:s:s:16 title= -metadata:s:s:16 handler_name= -metadata:s:s:16 language=glg -disposition:s:16 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:17 mov_text -map 0:19 -metadata:s:s:17 title= -metadata:s:s:17 handler_name= -metadata:s:s:17 language=heb -disposition:s:17 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:18 mov_text -map 0:20 -metadata:s:s:18 title= -metadata:s:s:18 handler_name= -metadata:s:s:18 language=hin -disposition:s:18 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:19 mov_text -map 0:21 -metadata:s:s:19 title= -metadata:s:s:19 handler_name= -metadata:s:s:19 language=hun -disposition:s:19 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:20 mov_text -map 0:22 -metadata:s:s:20 title= -metadata:s:s:20 handler_name= -metadata:s:s:20 language=ind -disposition:s:20 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:21 mov_text -map 0:23 -metadata:s:s:21 title= -metadata:s:s:21 handler_name= -metadata:s:s:21 language=ita -disposition:s:21 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:22 mov_text -map 0:24 -metadata:s:s:22 title= -metadata:s:s:22 handler_name= -metadata:s:s:22 language=jpn -disposition:s:22 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:23 mov_text -map 0:25 -metadata:s:s:23 title= -metadata:s:s:23 handler_name= -metadata:s:s:23 language=kan -disposition:s:23 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:24 mov_text -map 0:26 -metadata:s:s:24 title= -metadata:s:s:24 handler_name= -metadata:s:s:24 language=kor -disposition:s:24 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:25 mov_text -map 0:27 -metadata:s:s:25 title= -metadata:s:s:25 handler_name= -metadata:s:s:25 language=mal -disposition:s:25 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:26 mov_text -map 0:28 -metadata:s:s:26 title= -metadata:s:s:26 handler_name= -metadata:s:s:26 language=msa -disposition:s:26 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:27 mov_text -map 0:29 -metadata:s:s:27 title= -metadata:s:s:27 handler_name= -metadata:s:s:27 language=nob -disposition:s:27 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:28 mov_text -map 0:30 -metadata:s:s:28 title= -metadata:s:s:28 handler_name= -metadata:s:s:28 language=nld -disposition:s:28 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:29 mov_text -map 0:31 -metadata:s:s:29 title= -metadata:s:s:29 handler_name= -metadata:s:s:29 language=pol -disposition:s:29 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:30 mov_text -map 0:32 -metadata:s:s:30 title= -metadata:s:s:30 handler_name= -metadata:s:s:30 language=por -disposition:s:30 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:31 mov_text -map 0:33 -metadata:s:s:31 title= -metadata:s:s:31 handler_name= -metadata:s:s:31 language=por -disposition:s:31 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:32 mov_text -map 0:34 -metadata:s:s:32 title= -metadata:s:s:32 handler_name= -metadata:s:s:32 language=ron -disposition:s:32 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:33 mov_text -map 0:35 -metadata:s:s:33 title= -metadata:s:s:33 handler_name= -metadata:s:s:33 language=rus -disposition:s:33 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:34 mov_text -map 0:36 -metadata:s:s:34 title= -metadata:s:s:34 handler_name= -metadata:s:s:34 language=swe -disposition:s:34 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:35 mov_text -map 0:37 -metadata:s:s:35 title= -metadata:s:s:35 handler_name= -metadata:s:s:35 language=tam -disposition:s:35 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:36 mov_text -map 0:38 -metadata:s:s:36 title= -metadata:s:s:36 handler_name= -metadata:s:s:36 language=tel -disposition:s:36 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:37 mov_text -map 0:39 -metadata:s:s:37 title= -metadata:s:s:37 handler_name= -metadata:s:s:37 language=tha -disposition:s:37 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:38 mov_text -map 0:40 -metadata:s:s:38 title= -metadata:s:s:38 handler_name= -metadata:s:s:38 language=tur -disposition:s:38 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:39 mov_text -map 0:41 -metadata:s:s:39 title= -metadata:s:s:39 handler_name= -metadata:s:s:39 language=ukr -disposition:s:39 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:40 mov_text -map 0:42 -metadata:s:s:40 title= -metadata:s:s:40 handler_name= -metadata:s:s:40 language=vie -disposition:s:40 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:41 mov_text -map 0:43 -metadata:s:s:41 title= -metadata:s:s:41 handler_name= -metadata:s:s:41 language=zho -disposition:s:41 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:42 mov_text -map 0:44 -metadata:s:s:42 title= -metadata:s:s:42 handler_name= -metadata:s:s:42 language=zho -disposition:s:42 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -tag:v hvc1 -y "/tv-4k/The Lord of the Rings - The Rings of Power 4K/Season 01/The Lord of the Rings - The Rings of Power (2022) - S01E01 - A Shadow of the Past [AMZN WEBDL-2160p][DV][EAC3 Atmos 5.1][h265]-NTb.mp4"
2022-10-23 10:20:44 - MANUAL - INFO - ======================
2022-10-23 10:23:54 - MANUAL - INFO - /tv-4k/The Lord of the Rings - The Rings of Power 4K/Season 01/The Lord of the Rings - The Rings of Power (2022) - S01E01 - A Shadow of the Past [AMZN WEBDL-2160p][DV][EAC3 Atmos 5.1][h265]-NTb.mp4 created.
mdhiggins commented 1 year ago

What metadata isn't being copied? Typically when you remux the stream everything should be copied over on FFMPEGs end

EniciOnA commented 1 year ago

I apologize, I am not sure if metadata is the right terminology. As you can see in the screenshots in my original post, the re-muxed mp4 output file doesn't contain the Dolby Vision profile 5 (the original mkv does).

mdhiggins commented 1 year ago

Got it, try adding -strict, unofficial to your postopts, apparently for dolby vision that's a parameter FFMPEG needs

faceoff34 commented 1 year ago

Looks like the recent changes to the repo broke manual.py usage for me. Should there be a dash before "unofficial" on the postopts?

I am receiving the following error when running manual.py:

2022-10-24 10:48:06 - MANUAL - ERROR - Unable to generate options, unexpected exception occurred.
Traceback (most recent call last):
  File "/usr/local/sma/resources/mediaprocessor.py", line 134, in process
    options, preopts, postopts, ripsubopts, downloaded_subs = self.generateOptions(inputfile, info=info, original=original, tagdata=tagdata)
  File "/usr/local/sma/resources/mediaprocessor.py", line 814, in generateOptions
    postopts.extend(['-strict', 'unofficial'])
UnboundLocalError: local variable 'postopts' referenced before assignment

2022-10-24 10:48:06 - MANUAL - ERROR - There was an error processing file
mdhiggins commented 1 year ago

Whoops, should be fixed

5e55a5d3b072cc81471305c883afcc42fc7a5915

EniciOnA commented 1 year ago

Perfect, that last fix did the trick! Really appreciate your work and all the help.

Weezzel commented 1 year ago

So is this the correct statement to use? -strict, unofficial. To get DolbyVision metadata to carry over or is it not needed after this update?

Whoops, should be fixed

5e55a5d

mdhiggins commented 1 year ago

Not needed anymore at least for remuxing, that update looks for Dolby Vision and applies the parameter automatically