question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HDR setting applied to autoProcess.ini but not being carried over during Transcoding\Remux

See original GitHub issue

HDR setting applied to autoProcess.ini and seem to be pushed to the manual.py. They are being Identified from the original file and processing is successful but transcoded\remuxed copy does not have the correct Metadata

I don’t think that the Master display & Max cll\Max fall needed for HDR10 is being carried over.

Mastering Display_Maxcll-fall

sma.log

2020-07-24` 09:08:33 - MANUAL - INFO - Reading video stream. 2020-07-24 09:08:33 - MANUAL - INFO - Video codec detected: hevc. 2020-07-24 09:08:33 - MANUAL - INFO - Pix Fmt: yuv420p10le. 2020-07-24 09:08:33 - MANUAL - INFO - Profile: main 10. 2020-07-24 09:08:33 - MANUAL - INFO - HDR video stream detected for 0. 2020-07-24 09:08:33 - MANUAL - INFO - Reading audio streams. 2020-07-24 09:08:33 - MANUAL - INFO - Audio detected for stream 1 - eac3 eng 6 channel. 2020-07-24 09:08:33 - MANUAL - INFO - Creating aac audio stream source audio stream 1 [universal-audio]. 2020-07-24 09:08:33 - MANUAL - INFO - Creating copy audio stream from source stream 1. 2020-07-24 09:08:33 - MANUAL - INFO - Default audio stream set to eng copy 6 channel stream [default-more-channels: True]. 2020-07-24 09:08:33 - MANUAL - INFO - Reading subtitle streams. 2020-07-24 09:08:34 - MANUAL - INFO - Text-based subtitle detected for stream 2 - subrip eng. 2020-07-24 09:08:34 - MANUAL - INFO - Creating mov_text subtitle stream from source stream 2. 2020-07-24 09:08:34 - MANUAL - INFO - Text-based subtitle detected for stream 3 - subrip eng. 2020-07-24 09:08:35 - MANUAL - INFO - Text-based subtitle detected for stream 4 - subrip spa. 2020-07-24 09:08:35 - MANUAL - INFO - Text-based subtitle detected for stream 5 - subrip spa. 2020-07-24 09:08:35 - MANUAL - INFO - Text-based subtitle detected for stream 6 - subrip fra. 2020-07-24 09:08:35 - MANUAL - INFO - Text-based subtitle detected for stream 7 - subrip deu. 2020-07-24 09:08:36 - MANUAL - INFO - Text-based subtitle detected for stream 8 - subrip ita. 2020-07-24 09:08:36 - MANUAL - INFO - Text-based subtitle detected for stream 9 - subrip por. 2020-07-24 09:08:37 - MANUAL - INFO - Text-based subtitle detected for stream 10 - subrip por. 2020-07-24 09:08:38 - MANUAL - INFO - Text-based subtitle detected for stream 11 - subrip pol. 2020-07-24 09:08:38 - MANUAL - INFO - Text-based subtitle detected for stream 12 - subrip tur. 2020-07-24 09:08:38 - MANUAL - INFO - Text-based subtitle detected for stream 13 - subrip swe. 2020-07-24 09:08:39 - MANUAL - INFO - Text-based subtitle detected for stream 14 - subrip dan. 2020-07-24 09:08:39 - MANUAL - INFO - Text-based subtitle detected for stream 15 - subrip fin. 2020-07-24 09:08:39 - MANUAL - INFO - Text-based subtitle detected for stream 16 - subrip nld. 2020-07-24 09:08:40 - MANUAL - INFO - Text-based subtitle detected for stream 17 - subrip nor. 2020-07-24 09:08:40 - MANUAL - INFO - Text-based subtitle detected for stream 18 - subrip rus. 2020-07-24 09:08:40 - MANUAL - INFO - Text-based subtitle detected for stream 19 - subrip hun. 2020-07-24 09:08:41 - MANUAL - INFO - Text-based subtitle detected for stream 20 - subrip ell. 2020-07-24 09:08:41 - MANUAL - INFO - Text-based subtitle detected for stream 21 - subrip heb. 2020-07-24 09:08:41 - MANUAL - INFO - Text-based subtitle detected for stream 22 - subrip ara. 2020-07-24 09:08:42 - MANUAL - INFO - Text-based subtitle detected for stream 23 - subrip ron. 2020-07-24 09:08:42 - MANUAL - INFO - Text-based subtitle detected for stream 24 - subrip ces. 2020-07-24 09:08:42 - MANUAL - INFO - Text-based subtitle detected for stream 25 - subrip ind. 2020-07-24 09:08:43 - MANUAL - INFO - Text-based subtitle detected for stream 26 - subrip vie. 2020-07-24 09:08:43 - MANUAL - INFO - Text-based subtitle detected for stream 27 - subrip tha. 2020-07-24 09:08:43 - MANUAL - INFO - Text-based subtitle detected for stream 28 - subrip kor. 2020-07-24 09:08:44 - MANUAL - INFO - Text-based subtitle detected for stream 29 - subrip zho. 2020-07-24 09:08:44 - MANUAL - INFO - Text-based subtitle detected for stream 30 - subrip zho. 2020-07-24 09:08:44 - MANUAL - INFO - Text-based subtitle detected for stream 31 - subrip jpn. 2020-07-24 09:08:45 - MANUAL - INFO - cuda hwaccel is supported by this ffmpeg build and will be used [hwaccels]. 2020-07-24 09:08:45 - MANUAL - INFO - Output Data 2020-07-24 09:08:45 - MANUAL - INFO - { “source”: [ “D:\TV\13 Reasons Why (2017)\Season 03\13 Reasons Why.S03E01.Yeah. I’m the New Girl.WEBDL-1080p.HEVC.EAC3-5.1.HDR-MZABI.mkv” ], “format”: “mp4”, “video”: { “codec”: “h265_nvenc”, “map”: 0, “bitrate”: 5787.0, “crf”: -18, “maxrate”: null, “bufsize”: null, “level”: 5.1, “profile”: “main10”, “pix_fmt”: null, “field_order”: “unknown”, “width”: null, “filter”: null, “title”: “FHD HDR”, “debug”: “video.max-level.profile” }, “audio”: [ { “map”: 1, “codec”: “aac”, “channels”: 2, “bitrate”: 256, “samplerate”: null, “filter”: null, “language”: “eng”, “disposition”: “-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired”, “title”: “Stereo”, “debug”: “universal-audio” }, { “map”: 1, “codec”: “copy”, “channels”: 6, “bitrate”: 1536, “filter”: null, “samplerate”: null, “language”: “eng”, “disposition”: “+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired”, “bsf”: null, “title”: “5.1 Channel”, “debug”: “audio” } ], “subtitle”: [ { “map”: 2, “codec”: “mov_text”, “language”: “eng”, “encoding”: “”, “disposition”: “+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired”, “title”: “”, “debug”: “subtitle.embed-subs” } ], “attachment”: [] } 2020-07-24 09:08:45 - MANUAL - INFO - Preopts 2020-07-24 09:08:45 - MANUAL - INFO - [ “-fix_sub_duration”, “-hwaccel”, “cuda”, “-loglevel”, “debug”, “-probesize”, “1000000”, “-analyzeduration”, “10000000” ] 2020-07-24 09:08:45 - MANUAL - INFO - Postopts 2020-07-24 09:08:45 - MANUAL - INFO - [ “-threads”, “0”, “-metadata:g”, “encoding_tool=SMA” ] 2020-07-24 09:08:45 - MANUAL - INFO - Starting conversion. 2020-07-24 09:16:55 - MANUAL - INFO - D:\TV\13 Reasons Why (2017)\Season 03\13 Reasons Why.S03E01.Yeah. I’m the New Girl.WEBDL-1080p.HEVC.EAC3-5.1.HDR-MZABI.mp4 created. 2020-07-24 09:16:56 - MANUAL - INFO - Tagging file: D:\TV\13 Reasons Why (2017)\Season 03\13 Reasons Why.S03E01.Yeah. I’m the New Girl.WEBDL-1080p.HEVC.EAC3-5.1.HDR-MZABI.mp4. 2020-07-24 09:16:56 - MANUAL - INFO - Trying to write tags. 2020-07-24 09:16:56 - MANUAL - INFO - Tags written successfully using mutagen. 2020-07-24 09:16:56 - MANUAL - INFO - Relocating MOOV atom to start of file. 2020-07-24 09:20:04 - MANUAL - INFO - Manual processor started. 2020-07-24 09:20:04 - MANUAL - INFO - C:\Python38\python.exe 2020-07-24 09:20:04 - MANUAL - INFO - Loading config file C:\Sick_MP4\config\autoProcess.ini. 2020-07-24 09:20:04 - MANUAL - INFO - Processing file D:\TV\13 Reasons Why (2017)\Season 03\13 Reasons Why.S03E01.Yeah. I’m the New Girl.WEBDL-1080p.HEVC.EAC3-5.1.HDR-MZABI.mp4 2020-07-24 09:20:06 - MANUAL - INFO - Matched TV episode as 13 Reasons Why (TMDB ID: 66788) S03E01 2020-07-24 09:20:06 - MANUAL - INFO - Processing 13 Reasons Why Season 03 Episode 01 - Yeah. I’m the New Girl 2020-07-24 09:20:06 - MANUAL - INFO - Input and output extensions are the same so passing back the original file [process-same-extensions: False]. 2020-07-24 09:20:06 - MANUAL - INFO - Bypassing conversion and setting outputfile to inputfile. 2020-07-24 09:20:06 - MANUAL - INFO - Tagging file: D:\TV\13 Reasons Why (2017)\Season 03\13 Reasons Why.S03E01.Yeah. I’m the New Girl.WEBDL-1080p.HEVC.EAC3-5.1.HDR-MZABI.mp4. 2020-07-24 09:20:07 - MANUAL - INFO - Trying to write tags. 2020-07-24 09:20:09 - MANUAL - INFO - Tags written successfully using mutagen. 2020-07-24 09:20:11 - MANUAL - INFO - Relocating MOOV atom to start of file. 2020-07-24 09:20:11 - MANUAL - WARNING - QT FastStart did not run - perhaps moov atom was at the start already or file is in the wrong format.

autoProcess.zip

[Converter] ffmpeg = ffmpeg.exe ffprobe = ffprobe.exe threads = 0 hwaccels = hevc_cuvid,cuda,dxva2,d3d11va,qsv hwaccel-decoders = h265_nvenc,hevc_cuvid,h265_cuvid,hevc_nvenc 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 preopts = -loglevel,debug,-probesize,1000000,-analyzeduration,10000000 postopts =

[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 =

[Video] codec = h265_nvenc,h265,x265 max-bitrate = 0 crf = -18 crf-profiles = max-width = 0 profile = Main10 max-level = 5.1 pix-fmt = yuv420p10le,p010le filter = force-filter = False

[HDR] space = bt2020nc transfer = smpte2084 primaries = bt2020 filter = force-filter = False

[Audio] codec = eac3,TrueHD,dts,ac3,flac languages = eng default-language = eng first-stream-of-language = False allow-language-relax = True channel-bitrate = 256 max-bitrate = 0 max-channels = 0 prefer-more-channels = True default-more-channels = True filter = force-filter = False sample-rates = copy-original = False aac-adtstoasc = False ignore-truehd = false

[Universal Audio] codec = aac channel-bitrate = 128 first-stream-only = False move-after = True filter = force-filter = False

[Subtitle] codec = mov_text codec-image-based = copy,sup,subrip,dvdsub,ass,pgs,pgssub,hdmv_pgs_subtitle languages = eng default-language = eng first-stream-of-language = True encoding = burn-subtitles = False burn-dispositions = download-subs = False download-hearing-impaired-subs = False download-providers = embed-subs = True embed-image-subs = True embed-only-internal-subs = True filename-dispositions = forced ignore-embedded-subs = False attachment-codec =

Pictures of File Before script:

Before proccessing Before 1 Before 2 Before 1_LI Screenshot (10)

After running the manual.py script:

After After processing After2 after3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:113 (52 by maintainers)

github_iconTop GitHub Comments

1reaction
mdhigginscommented, Sep 9, 2020

Good news though You might be able to turn on at least hwaccel again, though I still think due to FFMPEG limitations you won’t be able to use nvenc and preserve the framedata

1reaction
morpheus2n2commented, Sep 9, 2020

So is it running now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 years later still not hdr when transcoding or remuxing - Emby
HDR playback using MPV player is horrible and HDR is not triggered. If video and audio is supported by Apple TV you don't...
Read more >
Noob question. Will Jellyfin play 4k HDR content (remux files ...
The server will not transcode if it can be directly played, so no clue why users think this must be off. So just...
Read more >
Encoding UHD 4K HDR10 and HDR10+ Videos
I talked about this before with my encoding setting for handbrake post, but there is was a fundamental flaw using Handbrake for HDR...
Read more >
Apple Devices settings in Compressor - Apple Support (AL)
Two of the Apple Devices settings—Apple Devices 4K (HEVC 8-bit) and Apple ... the processing algorithm used to adjust the frame rate during...
Read more >
Keyboard Control - mpv.io
(This is different from MPlayer and mplayer2.) Also, if any option is changed at runtime (via input commands), they are not reset when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found