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.5k stars 206 forks source link

SABPostProcess.py ignoring relocate-moov flag #1670

Closed Speshled closed 11 months ago

Speshled commented 11 months ago

Describe the bug "relocate-moov = True" is no longer being applied when handled by SABPostProcess.py.

Command or context you are trying to run SABPostProcess.py

autoProcess.ini settings [Converter] ffmpeg = C:\Encoding\MP4 Automator - GPU\FFMPEG\bin\ffmpeg.exe ffprobe = C:\Encoding\MP4 Automator - GPU\FFMPEG\bin\ffprobe.exe threads = 0 hwaccels = cuda hwaccel-decoders = hwdevices = hwaccel-output-format = cuda output-directory = output-directory-space-ratio = 0.0 output-format = mp4 output-extension = mp4 temp-extension = minimum-size = 0 ignored-extensions = nfo, dsstore copy-to = move-to = delete-original = True process-same-extensions = True bypass-if-copying-all = False force-convert = False post-process = False wait-post-process = False detailed-progress = False opts-separator = , preopts = postopts = regex-directory-replace = [^\w-. ]

[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 = hevc_nvenc max-bitrate = 0 bitrate-ratio = crf = 20 crf-profiles = preset = p7 codec-parameters = dynamic-parameters = False max-width = 1920 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 = eng default-language = include-original-language = True first-stream-of-language = False channel-bitrate = 128 variable-bitrate = 0 max-bitrate = 0 max-channels = 0 filter = profile = force-filter = False sample-rates = sample-format = copy-original = False aac-adtstoasc = False ignored-dispositions = commentary, comment 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 = aac channel-bitrate = 128 variable-bitrate = 0 first-stream-only = False filter = profile = force-filter = False

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

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

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

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

[Subtitle.FFSubsync] enabled = False

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

[Subtitle.Subliminal.Auth] opensubtitles = tvsubtitles =

[Sonarr] host = localhost port = 8989 apikey = XXXXXXXXXX ssl = False webroot = force-rename = False rescan = True in-progress-check = True block-reprocess = False

[Radarr] host = localhost port = 7878 apikey = XXXXXXXXXX ssl = False webroot = force-rename = False rescan = True in-progress-check = 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 = tv radarr-category = movies bypass-category = bypass output-directory = path-mapping =

[Deluge] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = tv-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] username = password = servername = host = localhost port = 32400 refresh = False token = ssl = True ignore-certs = False path-mapping =

Log files 2023-08-19 20:51:58 - SABPostProcess - INFO - SAB post processing started. 2023-08-19 20:51:58 - resources.readsettings - INFO - C:\Users\chase\AppData\Local\Programs\Python\Python311\python.exe 2023-08-19 20:51:58 - resources.readsettings - DEBUG - Loading default config file. 2023-08-19 20:51:58 - resources.readsettings - INFO - Loading config file C:\Encoding\MP4 Automator - GPU\config\autoProcess.ini. 2023-08-19 20:51:58 - SABPostProcess - DEBUG - Path: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:58 - SABPostProcess - DEBUG - Category: tv. 2023-08-19 20:51:58 - SABPostProcess - DEBUG - Categories: ['sickbeard', 'tv', 'movies', 'sickrage', 'bypass']. 2023-08-19 20:51:58 - SABPostProcess - DEBUG - NZB: Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.nzb. 2023-08-19 20:51:58 - SABPostProcess - INFO - Performing conversion 2023-08-19 20:51:58 - SABPostProcess - INFO - Processing file C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Process started. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Found sdh in stream title, setting hearing_impaired disposition to True. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Input Data 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - { "format": "matroska,webm", "format-fullname": "Matroska / WebM", "video": { "index": 0, "codec": "h264", "bitrate": 23800792, "pix_fmt": "yuv420p", "profile": "high", "fps": 23.976023976023978, "framedata": { "pix_fmt": "yuv420p", "tags": { "timecode": "00:59:58:00" }, "side_data_list": [ { "side_data_type": "SMPTE 12-1 timecode", "timecodes": [ { "value": "00:59:58:00" } ] } ] }, "dimensions": "1920x1080", "level": 4.1, "field_order": "progressive" }, "audio": [ { "index": 1, "codec": "dts", "bitrate": 3076977, "channels": 6, "samplerate": 48000, "language": "eng", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions" } ], "subtitle": [ { "index": 2, "codec": "subrip", "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng" }, { "index": 3, "codec": "hdmv_pgs_subtitle", "bitrate": 61981, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "eng" }, { "index": 4, "codec": "hdmv_pgs_subtitle", "bitrate": 52983, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired-captions", "language": "eng" }, { "index": 5, "codec": "hdmv_pgs_subtitle", "bitrate": 32553, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "ara" }, { "index": 6, "codec": "hdmv_pgs_subtitle", "bitrate": 54822, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "dan" }, { "index": 7, "codec": "hdmv_pgs_subtitle", "bitrate": 41551, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "nld" }, { "index": 8, "codec": "hdmv_pgs_subtitle", "bitrate": 50928, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "fin" }, { "index": 9, "codec": "hdmv_pgs_subtitle", "bitrate": 42529, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "fra" }, { "index": 10, "codec": "hdmv_pgs_subtitle", "bitrate": 60823, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "deu" }, { "index": 11, "codec": "hdmv_pgs_subtitle", "bitrate": 54389, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "ita" }, { "index": 12, "codec": "hdmv_pgs_subtitle", "bitrate": 51423, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "nor" }, { "index": 13, "codec": "hdmv_pgs_subtitle", "bitrate": 51432, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "spa" }, { "index": 14, "codec": "hdmv_pgs_subtitle", "bitrate": 57039, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "swe" }, { "index": 15, "codec": "hdmv_pgs_subtitle", "bitrate": 57076, "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions", "language": "tur" } ], "attachment": [] } 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Reading video stream. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Video codec detected: h264. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Pix Fmt: yuv420p. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Profile: high. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Stream is not HDR, color parameter unknown does not match ['bt2020nc'] [hdr-['bt2020nc']]. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Codec pool is missing the FFPROBE value of the primary conversion codec hevc_nvenc which will prevent remuxing, adding hevc to the list. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Pool of video codecs is ['hevc_nvenc', 'hevc']. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Total bitrate is 27070978.0. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Total audio bitrate is 3076977. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Estimated video bitrate is 23994001.0. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Using video bitrate ratio of 1.000000, which results in 22794.300950 changing to 22794.300950. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Source bit-depth 8, output 0, using depth 8. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video codec: hevc_nvenc. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video bitrate: 22794.30095. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video CRF: 20. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video maxrate: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video bufsize: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video level: 0.0. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video profile: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video preset: p7. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video pix_fmt: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video field order: progressive. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video width: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Video debug video. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Video codec parameters None. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Creating hevc_nvenc video stream from source stream 0. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Reading audio streams. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations]. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Pool universal audio codecs is ['aac']. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Pool of audio codecs is ['ac3']. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Audio detected for stream 1 - dts eng 6 channel. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Found an audio filter for converting from 6 channels to 2 channels. Applying filter pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE to UA. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Audio codec: aac. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Channels: 2. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Filter: pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Bitrate: 256. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - VBR: 0. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Profile: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Language: eng. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Disposition: +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Audio codec: ac3. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Channels: 6. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Bitrate: 768. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - VBR: 0. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Audio Profile: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Language: eng. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Filter: None. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Disposition: +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Debug: audio. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Creating ac3 audio stream from source stream 1. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Creating aac audio stream from source audio stream 1 [universal-audio]. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Purging the following streams: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - [] 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Found 0 streams that can be removed from the output file since they will be duplicates [stream-codec-combinations]. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Triggering audio track sort [audio.sorting-sorting]. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorting streams with keys ['language', 'channels.d', 'map', 'd.comment']. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted ascending with language: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted descending with channels: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted ascending with map: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted ascending with d.comment: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Final sorting: 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorting streams with keys ['channels.d', 'map', 'd.comment']. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted descending with channels: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted ascending with map: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorted ascending with d.comment: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Final sorting: 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - ['0->0', '1->1'] 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - Sorting audio streams for default audio stream designation. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - 2 total audio streams with 2 set to default disposition. 2 defaults in your preferred language (), 0 in other languages. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - 1 streams in preferred language cleared of default disposition flag from preferred language. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Default audio stream set to eng ac3 6 channel stream [audio-default-sorting: ['channels.d', 'map', 'd.comment']]. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Reading subtitle streams. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Subtitle detected for stream 2 - subrip eng. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - isImageBasedSubtitle FFmpeg command: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - "C:\Encoding\MP4 Automator - GPU\FFMPEG\bin\ffmpeg.exe" -i C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv -c:s:0 srt -map 0:2 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=und -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f srt -t 00:00:01 -f null - 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Stream 2 is text-based subtitle for codec subrip. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Creating mov_text subtitle stream from source stream 2. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Subtitle detected for stream 3 - hdmv_pgs_subtitle eng. 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - isImageBasedSubtitle FFmpeg command: 2023-08-19 20:51:58 - resources.mediaprocessor - DEBUG - "C:\Encoding\MP4 Automator - GPU\FFMPEG\bin\ffmpeg.exe" -i C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv -c:s:0 srt -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=und -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f srt -t 00:00:01 -f null - 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Stream 3 is image-based subtitle for codec hdmv_pgs_subtitle. 2023-08-19 20:51:58 - resources.mediaprocessor - INFO - Subtitle detected for stream 4 - hdmv_pgs_subtitle eng. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - isImageBasedSubtitle FFmpeg command: 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - "C:\Encoding\MP4 Automator - GPU\FFMPEG\bin\ffmpeg.exe" -i C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv -c:s:0 srt -map 0:4 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=und -disposition:s:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f srt -t 00:00:01 -f null - 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Stream 4 is image-based subtitle for codec hdmv_pgs_subtitle. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 5 - hdmv_pgs_subtitle ara. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 6 - hdmv_pgs_subtitle dan. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 7 - hdmv_pgs_subtitle nld. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 8 - hdmv_pgs_subtitle fin. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 9 - hdmv_pgs_subtitle fra. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 10 - hdmv_pgs_subtitle deu. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 11 - hdmv_pgs_subtitle ita. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 12 - hdmv_pgs_subtitle nor. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 13 - hdmv_pgs_subtitle spa. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 14 - hdmv_pgs_subtitle swe. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Subtitle detected for stream 15 - hdmv_pgs_subtitle tur. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Scanned for external subtitles and found 0 results in your approved languages. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Subtitle output is empty or no default subtitle language is set, will not pass over subtitle output to set a default stream. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Sorting streams with keys ['language', 'd.comment', 'd.default.d', 'd.forced.d']. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Final sorting: 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - ['0->0'] 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Subtitle streams detected, adding fix_sub_duration option to preopts. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Selected hwaccel options: 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - ['cuda'] 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Selected hwaccel decoder pairs: 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - [] 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - FFMPEG hwaccels: 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - ['cuda', 'qsv', 'd3d11va', 'opencl', 'vulkan'] 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Input format yuv420p bit depth 8. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - cuda hwaccel is supported by this ffmpeg build and will be used [hwaccels]. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Decoder: h264_cuda. 2023-08-19 20:51:59 - resources.mediaprocessor - WARNING - ===========WARNING=========== 2023-08-19 20:51:59 - resources.mediaprocessor - WARNING - The encoder you have chosen hevc_nvenc (hevc_nvenc) is not listed as supported in your FFMPEG build, conversion will likely fail, please use a build of FFMPEG that supports hevc_nvenc or choose a different encoder. 2023-08-19 20:51:59 - resources.mediaprocessor - WARNING - Other encoders your current FFMPEG build does support for codec hevc: 2023-08-19 20:51:59 - resources.mediaprocessor - WARNING - ['hevc'] 2023-08-19 20:51:59 - resources.mediaprocessor - WARNING - ===========WARNING=========== 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - canBypassConvert returned False. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Output Data 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - { "source": [ "C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv" ], "format": "mp4", "video": { "codec": "hevc_nvenc", "map": 0, "bitrate": 22794.30095, "crf": 20, "maxrate": null, "bufsize": null, "level": 0.0, "profile": null, "preset": "p7", "pix_fmt": null, "field_order": "progressive", "width": null, "filter": null, "params": null, "framedata": null, "bsf": null, "debug": "video", "title": "FHD" }, "audio": [ { "map": 1, "codec": "ac3", "channels": 6, "bitrate": 768, "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": "aac", "channels": 2, "bitrate": 256, "quality": 0, "profile": null, "samplerate": null, "sampleformat": "", "filter": "pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE", "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": null } ], "attachment": [] } 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Preopts 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - [ "-fix_sub_duration", "-hwaccel", "cuda" ] 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Postopts 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - [ "-threads", "0", "-metadata:g", "encoding_tool=SMA" ] 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - Starting conversion. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Input directory: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - File name: Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Input extension: mkv. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Output directory: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Output extension: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Output file: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mp4. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Input directory: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - File name: Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Input extension: mkv. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Output directory: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Output extension: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Output file: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mp4. 2023-08-19 20:51:59 - resources.mediaprocessor - DEBUG - Final output file: C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mp4. 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - FFmpeg command: 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - ====================== 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - "C:\Encoding\MP4 Automator - GPU\FFMPEG\bin\ffmpeg.exe" -fix_sub_duration -hwaccel cuda -i C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv -vcodec hevc_nvenc -map 0:0 -field_order progressive -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset p7 -tag:v hvc1 -qp 20 -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 768k -metadata:s:a:0 BPS=768000 -metadata:s:a:0 BPS-eng=768000 -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 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.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE" -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 -strict experimental -c:s:0 mov_text -map 0:2 -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 -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mp4 2023-08-19 20:51:59 - resources.mediaprocessor - INFO - ====================== 2023-08-19 20:57:16 - resources.mediaprocessor - INFO - C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mp4 created. 2023-08-19 20:57:16 - resources.mediaprocessor - DEBUG - C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mp4 created from C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv successfully. 2023-08-19 20:57:16 - resources.mediaprocessor - DEBUG - Attempting to remove C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv. 2023-08-19 20:57:16 - resources.mediaprocessor - DEBUG - C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv deleted. 2023-08-19 20:57:16 - resources.mediaprocessor - DEBUG - Height: 1080 2023-08-19 20:57:16 - resources.mediaprocessor - DEBUG - Width: 1920 2023-08-19 20:57:16 - SABPostProcess - INFO - Successfully processed C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv. 2023-08-19 20:57:16 - SABPostProcess - INFO - Passing C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP directory to Sonarr. 2023-08-19 20:57:16 - autoprocess.sonarr - INFO - Sonarr notifier started. 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - Sonarr host: localhost. 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - Sonarr port: 8989. 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - Sonarr webroot: . 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - Sonarr apikey: XXXXXXXXXX. 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - Sonarr protocol: http://. 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - URL 'http://localhost:8989/api/v3/command' with payload '{'name': 'DownloadedEpisodesScan', 'path': 'C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP', 'importMode': 'Move'}.' 2023-08-19 20:57:16 - autoprocess.sonarr - INFO - Requesting Sonarr to scan directory 'C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP'. 2023-08-19 20:57:16 - autoprocess.sonarr - DEBUG - {'name': 'DownloadedEpisodesScan', 'commandName': 'Downloaded Episodes Scan', 'body': {'path': 'C:\Downloads\Complete\Justified.S01E10.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP', 'importMode': 'move', 'requiresDiskAccess': True, 'isLongRunning': True, 'sendUpdatesToClient': True, 'updateScheduledTask': True, 'completionMessage': 'Completed', 'isExclusive': False, 'name': 'DownloadedEpisodesScan', 'trigger': 'manual', 'suppressMessages': True}, 'priority': 'normal', 'status': 'started', 'result': 'unknown', 'queued': '2023-08-20T03:57:16Z', 'started': '2023-08-20T03:57:16Z', 'trigger': 'manual', 'stateChangeTime': '2023-08-20T03:57:16Z', 'sendUpdatesToClient': True, 'updateScheduledTask': True, 'id': 813260} 2023-08-19 20:57:16 - autoprocess.sonarr - INFO - Sonarr response DownloadedEpisodesScan command: ID 813260 started. `

FFMpeg headers `PS C:\Encoding\MP4 Automator - GPU\FFMPEG\bin> ffmpeg.exe ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

System Information

Expected behavior MOOV atom should be relocated to start of file.

Additional context The moov atom is relocated correctly when converting through manual.py. I also noticed the TMDB poster is not grabbed when processed through SABPostProcess.py.

mdhiggins commented 11 months ago

Intended behavior and covered in about a million other issues. The post downloaded scripts do not have metadata information so they do not tag and therefore do not move the moov atoms. It's not until the final steps (postRadarr/postSonarr or equivalent) that those steps are performed.