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.

Bit depth 10 is not supported

See original GitHub issue

Describe the bug When running manual.py I’m receiving the error “[h264_cuvid @ 000001a3a06b07c0] Bit depth 10 is not supported.”

Command or context you are trying to run manual.py -i "C:\Media\manual" --auto

autoProcess.ini settings

[Converter]
ffmpeg = C:\Media\sma\ffmpeg-5.0-full_build\bin\ffmpeg.exe
ffprobe = C:\Media\sma\ffmpeg-5.0-full_build\bin\ffprobe.exe
threads = 0
hwaccels = 
hwaccel-decoders = h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, hevc_qsv, h264_qsv, hevc_vaapi, h264_vaapi
hwdevices = vaapi:/dev/dri/renderD128
hwaccel-output-format = vaapi:vaapi
output-directory = 
output-format = mkv
output-extension = mkv
temp-extension = 
minimum-size = 0
ignored-extensions = nfo, ds_store
copy-to = 
move-to = 
delete-original = True
sort-streams = True
process-same-extensions = True
bypass-if-copying-all = True
force-convert = False
post-process = False
wait-post-process = False
detailed-progress = False
opts-separator = ,
preopts = 
postopts = -max_muxing_queue_size, 2048
regex-directory-replace = ''

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

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

[Video]
codec = h264, x264
max-bitrate = 0
bitrate-ratio = 
crf = -1
crf-profiles = 
preset = 
codec-parameters = 
dynamic-parameters = False
max-width = 0
profile = High
max-level = 4.1
pix-fmt = YUV420p
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 = aac
languages = 
default-language = eng
first-stream-of-language = True
allow-language-relax = True
channel-bitrate = 128
variable-bitrate = 0
max-bitrate = 0
max-channels = 2
prefer-more-channels = True
default-more-channels = True
profile = 
filter = 
force-filter = False
sample-rates = 
sample-format = 
copy-original = False
copy-original-before = False
aac-adtstoasc = False
ignore-truehd = mp4, m4v
ignored-dispositions = Commentary
unique-dispositions = False
stream-codec-combinations = 

[Universal Audio]
codec = 
channel-bitrate = 128
variable-bitrate = 0
first-stream-only = False
move-after = False
profile = 
filter = 
force-filter = 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]
codec = ass
codec-image-based = pgs
languages = 
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
ignored-dispositions = Commentary
unique-dispositions = False
attachment-codec = ttf, otf

Log files

2022-03-06 14:44:09 - MANUAL - INFO - Manual processor started.
2022-03-06 14:44:09 - MANUAL - INFO - Python 64-bit 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)].
2022-03-06 14:44:09 - MANUAL - INFO - Guessit version: 3.4.3.
2022-03-06 14:44:09 - MANUAL - INFO - C:\Program Files\Python310\python.exe
2022-03-06 14:44:09 - MANUAL - INFO - Loading config file C:\Media\sma\sickbeard_mp4_automator\config\autoProcess.ini.
2022-03-06 14:44:10 - MANUAL - INFO - Processing file C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv
2022-03-06 14:44:10 - MANUAL - INFO - Processing file C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv
2022-03-06 14:44:10 - MANUAL - INFO - Input Data
2022-03-06 14:44:10 - MANUAL - INFO - {
    "format": "matroska,webm",
    "format-fullname": "Matroska / WebM",
    "video": {
        "index": 0,
        "codec": "h264",
        "bitrate": 4965616,
        "pix_fmt": "yuv420p10le",
        "profile": "high10",
        "fps": 23.976023976023978,
        "framedata": {
            "pix_fmt": "yuv420p10le",
            "color_space": "bt709",
            "color_primaries": "bt709",
            "color_transfer": "bt709",
            "side_data_list": [
                {
                    "side_data_type": "H.26[45] User Data Unregistered SEI message"
                }
            ]
        },
        "dimensions": "1920x1080",
        "level": 5.1,
        "field_order": "progressive"
    },
    "audio": [
        {
            "index": 1,
            "codec": "aac",
            "bitrate": 128000,
            "channels": 2,
            "samplerate": 44100,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions"
        },
        {
            "index": 2,
            "codec": "aac",
            "bitrate": 128000,
            "channels": 2,
            "samplerate": 44100,
            "language": "jpn",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions"
        }
    ],
    "subtitle": [
        {
            "index": 3,
            "codec": "ass",
            "bitrate": 1265,
            "disposition": "+default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions",
            "language": "eng"
        },
        {
            "index": 4,
            "codec": "ass",
            "bitrate": 1351,
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "language": "eng"
        }
    ],
    "attachment": [
        {
            "index": 5,
            "codec": "ttf",
            "filename": "arial.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 6,
            "codec": "ttf",
            "filename": "at-amigo.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 7,
            "codec": "ttf",
            "filename": "averiasans-light.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 8,
            "codec": "otf",
            "filename": "baqa.otf",
            "mimetype": "application/vnd.ms-opentype"
        },
        {
            "index": 9,
            "codec": "ttf",
            "filename": "barthowheel-regular.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 10,
            "codec": "ttf",
            "filename": "bip.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 11,
            "codec": "ttf",
            "filename": "brush-strokes.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 12,
            "codec": "otf",
            "filename": "cocon-next.otf",
            "mimetype": "application/vnd.ms-opentype"
        },
        {
            "index": 13,
            "codec": "ttf",
            "filename": "d3-streetism.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 14,
            "codec": "otf",
            "filename": "folkpro-en-bold.otf",
            "mimetype": "application/vnd.ms-opentype"
        },
        {
            "index": 15,
            "codec": "ttf",
            "filename": "janda-manatee-solid.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 16,
            "codec": "ttf",
            "filename": "kg-happy-solid.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 17,
            "codec": "ttf",
            "filename": "ragnar.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 18,
            "codec": "ttf",
            "filename": "barthowheel-regular.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 19,
            "codec": "ttf",
            "filename": "boopee.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 20,
            "codec": "ttf",
            "filename": "cabin-bold-italic.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "index": 21,
            "codec": "ttf",
            "filename": "cabin-bold.ttf",
            "mimetype": "application/x-truetype-font"
        }
    ]
}
2022-03-06 14:44:10 - MANUAL - INFO - Reading video stream.
2022-03-06 14:44:10 - MANUAL - INFO - Video codec detected: h264.
2022-03-06 14:44:10 - MANUAL - INFO - Pix Fmt: yuv420p10le.
2022-03-06 14:44:10 - MANUAL - INFO - Profile: high10.
2022-03-06 14:44:10 - MANUAL - INFO - Video codec parameters None.
2022-03-06 14:44:10 - MANUAL - INFO - Creating h264 video stream from source stream 0.
2022-03-06 14:44:10 - MANUAL - INFO - Reading audio streams.
2022-03-06 14:44:10 - MANUAL - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2022-03-06 14:44:10 - MANUAL - INFO - Audio detected for stream 1 - aac eng 2 channel.
2022-03-06 14:44:10 - MANUAL - INFO - Creating copy audio stream from source stream 1.
2022-03-06 14:44:10 - MANUAL - INFO - Audio detected for stream 2 - aac jpn 2 channel.
2022-03-06 14:44:10 - MANUAL - INFO - Creating copy audio stream from source stream 2.
2022-03-06 14:44:10 - MANUAL - INFO - Found 0 streams that can be removed from the output file since they will dupcliates [stream-codec-combinations].
2022-03-06 14:44:10 - MANUAL - INFO - Default audio stream set to eng copy 2 channel stream [default-more-channels: True].
2022-03-06 14:44:10 - MANUAL - INFO - Reading subtitle streams.
2022-03-06 14:44:10 - MANUAL - INFO - Text-based subtitle detected for stream 3 - ass eng.
2022-03-06 14:44:10 - MANUAL - INFO - Creating copy subtitle stream from source stream 3.
2022-03-06 14:44:10 - MANUAL - INFO - Text-based subtitle detected for stream 4 - ass eng.
2022-03-06 14:44:10 - MANUAL - INFO - Creating copy subtitle stream from source stream 4.
2022-03-06 14:44:10 - MANUAL - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2022-03-06 14:44:10 - MANUAL - INFO - h264_cuvid decoder is supported by this ffmpeg build and will also be used [hwaccel-decoders].
2022-03-06 14:44:10 - MANUAL - INFO - Output Data
2022-03-06 14:44:10 - MANUAL - INFO - {
    "source": [
        "C:\\Media\\manual\\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv"
    ],
    "format": "mkv",
    "video": {
        "codec": "h264",
        "map": 0,
        "bitrate": 4751.5979,
        "crf": -1,
        "maxrate": null,
        "bufsize": null,
        "level": 4.1,
        "profile": "high",
        "preset": null,
        "pix_fmt": "yuv420p",
        "field_order": "progressive",
        "width": null,
        "filter": null,
        "params": null,
        "framedata": null,
        "title": "FHD",
        "debug": "video.max-level.profile.pix_fmt"
    },
    "audio": [
        {
            "map": 1,
            "codec": "copy",
            "channels": 2,
            "bitrate": 256,
            "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,
            "title": "English",
            "debug": "audio"
        },
        {
            "map": 2,
            "codec": "copy",
            "channels": 2,
            "bitrate": 256,
            "profile": null,
            "quality": 0,
            "filter": null,
            "samplerate": null,
            "sampleformat": "",
            "language": "jpn",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "bsf": null,
            "title": "Japanese",
            "debug": "audio"
        }
    ],
    "subtitle": [
        {
            "map": 3,
            "codec": "copy",
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions",
            "title": "Signs & Songs",
            "debug": "subtitle.embed-subs"
        },
        {
            "map": 4,
            "codec": "copy",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "title": "Full Subtitles [Kaizoku]",
            "debug": "subtitle.embed-subs"
        }
    ],
    "attachment": [
        {
            "map": 5,
            "codec": "copy",
            "filename": "arial.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 6,
            "codec": "copy",
            "filename": "at-amigo.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 7,
            "codec": "copy",
            "filename": "averiasans-light.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 8,
            "codec": "copy",
            "filename": "baqa.otf",
            "mimetype": "application/vnd.ms-opentype"
        },
        {
            "map": 9,
            "codec": "copy",
            "filename": "barthowheel-regular.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 10,
            "codec": "copy",
            "filename": "bip.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 11,
            "codec": "copy",
            "filename": "brush-strokes.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 12,
            "codec": "copy",
            "filename": "cocon-next.otf",
            "mimetype": "application/vnd.ms-opentype"
        },
        {
            "map": 13,
            "codec": "copy",
            "filename": "d3-streetism.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 14,
            "codec": "copy",
            "filename": "folkpro-en-bold.otf",
            "mimetype": "application/vnd.ms-opentype"
        },
        {
            "map": 15,
            "codec": "copy",
            "filename": "janda-manatee-solid.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 16,
            "codec": "copy",
            "filename": "kg-happy-solid.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 17,
            "codec": "copy",
            "filename": "ragnar.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 18,
            "codec": "copy",
            "filename": "barthowheel-regular.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 19,
            "codec": "copy",
            "filename": "boopee.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 20,
            "codec": "copy",
            "filename": "cabin-bold-italic.ttf",
            "mimetype": "application/x-truetype-font"
        },
        {
            "map": 21,
            "codec": "copy",
            "filename": "cabin-bold.ttf",
            "mimetype": "application/x-truetype-font"
        }
    ]
}
2022-03-06 14:44:10 - MANUAL - INFO - Preopts
2022-03-06 14:44:10 - MANUAL - INFO - [
    "-fix_sub_duration",
    "-vcodec",
    "h264_cuvid"
]
2022-03-06 14:44:10 - MANUAL - INFO - Postopts
2022-03-06 14:44:10 - MANUAL - INFO - [
    "-threads",
    "0",
    "-metadata:g",
    "encoding_tool=SMA",
    "-max_muxing_queue_size",
    "2048"
]
2022-03-06 14:44:10 - MANUAL - INFO - Starting conversion.
2022-03-06 14:44:11 - MANUAL - INFO - FFmpeg command:
2022-03-06 14:44:11 - MANUAL - INFO - ======================
2022-03-06 14:44:11 - MANUAL - INFO - C:\Media\sma\ffmpeg-5.0-full_build\bin\ffmpeg.exe -fix_sub_duration -vcodec h264_cuvid -i "C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv.original" -map_metadata -1 -vcodec libx264 -map 0:0 -pix_fmt yuv420p -field_order progressive -vb 4751k -metadata:s:v BPS=4751000 -metadata:s:v BPS-eng=4751000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -profile:v high -level 4.1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=English -metadata:s:a:0 handler_name=English -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:1 copy -map 0:2 -metadata:s:a:1 title=Japanese -metadata:s:a:1 handler_name=Japanese -metadata:s:a:1 language=jpn -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 copy -map 0:3 -metadata:s:s:0 "title=Signs & Songs" -metadata:s:s:0 "handler_name=Signs & Songs" -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -c:s:1 copy -map 0:4 -metadata:s:s:1 "title=Full Subtitles [Kaizoku]" -metadata:s:s:1 "handler_name=Full Subtitles [Kaizoku]" -metadata:s:s:1 language=eng -disposition:s:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:t:0 copy -metadata:s:t:0 filename=arial.ttf -metadata:s:t:0 mimetype=application/x-truetype-font -map 0:5 -c:t:1 copy -metadata:s:t:1 filename=at-amigo.ttf -metadata:s:t:1 mimetype=application/x-truetype-font -map 0:6 -c:t:2 copy -metadata:s:t:2 filename=averiasans-light.ttf -metadata:s:t:2 mimetype=application/x-truetype-font -map 0:7 -c:t:3 copy -metadata:s:t:3 filename=baqa.otf -metadata:s:t:3 mimetype=application/vnd.ms-opentype -map 0:8 -c:t:4 copy -metadata:s:t:4 filename=barthowheel-regular.ttf -metadata:s:t:4 mimetype=application/x-truetype-font -map 0:9 -c:t:5 copy -metadata:s:t:5 filename=bip.ttf -metadata:s:t:5 mimetype=application/x-truetype-font -map 0:10 -c:t:6 copy -metadata:s:t:6 filename=brush-strokes.ttf -metadata:s:t:6 mimetype=application/x-truetype-font -map 0:11 -c:t:7 copy -metadata:s:t:7 filename=cocon-next.otf -metadata:s:t:7 mimetype=application/vnd.ms-opentype -map 0:12 -c:t:8 copy -metadata:s:t:8 filename=d3-streetism.ttf -metadata:s:t:8 mimetype=application/x-truetype-font -map 0:13 -c:t:9 copy -metadata:s:t:9 filename=folkpro-en-bold.otf -metadata:s:t:9 mimetype=application/vnd.ms-opentype -map 0:14 -c:t:10 copy -metadata:s:t:10 filename=janda-manatee-solid.ttf -metadata:s:t:10 mimetype=application/x-truetype-font -map 0:15 -c:t:11 copy -metadata:s:t:11 filename=kg-happy-solid.ttf -metadata:s:t:11 mimetype=application/x-truetype-font -map 0:16 -c:t:12 copy -metadata:s:t:12 filename=ragnar.ttf -metadata:s:t:12 mimetype=application/x-truetype-font -map 0:17 -c:t:13 copy -metadata:s:t:13 filename=barthowheel-regular.ttf -metadata:s:t:13 mimetype=application/x-truetype-font -map 0:18 -c:t:14 copy -metadata:s:t:14 filename=boopee.ttf -metadata:s:t:14 mimetype=application/x-truetype-font -map 0:19 -c:t:15 copy -metadata:s:t:15 filename=cabin-bold-italic.ttf -metadata:s:t:15 mimetype=application/x-truetype-font -map 0:20 -c:t:16 copy -metadata:s:t:16 filename=cabin-bold.ttf -metadata:s:t:16 mimetype=application/x-truetype-font -map 0:21 -f matroska -threads 0 -metadata:g encoding_tool=SMA -max_muxing_queue_size 2048 -y "C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv"
2022-03-06 14:44:11 - MANUAL - INFO - ======================
2022-03-06 14:44:11 - MANUAL - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
  File "C:\Media\sma\sickbeard_mp4_automator\resources\mediaprocessor.py", line 1896, in convert
    for timecode, debug in conv:
  File "C:\Media\sma\sickbeard_mp4_automator\converter\__init__.py", line 321, in convert
    for timecode, debug in self.ffmpeg.convert(outfile,
  File "C:\Media\sma\sickbeard_mp4_automator\converter\ffmpeg.py", line 743, in convert
    raise FFMpegConvertError('Encoding error', cmd, total_output,
converter.ffmpeg.FFMpegConvertError: <FFMpegConvertError error="Error while opening decoder for input stream #0:0 : Invalid argument
", pid=153508, cmd="C:\Media\sma\ffmpeg-5.0-full_build\bin\ffmpeg.exe -fix_sub_duration -vcodec h264_cuvid -i C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv.original -map_metadata -1 -vcodec libx264 -map 0:0 -pix_fmt yuv420p -field_order progressive -vb 4751k -metadata:s:v BPS=4751000 -metadata:s:v BPS-eng=4751000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -profile:v high -level 4.1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=English -metadata:s:a:0 handler_name=English -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:1 copy -map 0:2 -metadata:s:a:1 title=Japanese -metadata:s:a:1 handler_name=Japanese -metadata:s:a:1 language=jpn -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 copy -map 0:3 -metadata:s:s:0 title=Signs & Songs -metadata:s:s:0 handler_name=Signs & Songs -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -c:s:1 copy -map 0:4 -metadata:s:s:1 title=Full Subtitles [Kaizoku] -metadata:s:s:1 handler_name=Full Subtitles [Kaizoku] -metadata:s:s:1 language=eng -disposition:s:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:t:0 copy -metadata:s:t:0 filename=arial.ttf -metadata:s:t:0 mimetype=application/x-truetype-font -map 0:5 -c:t:1 copy -metadata:s:t:1 filename=at-amigo.ttf -metadata:s:t:1 mimetype=application/x-truetype-font -map 0:6 -c:t:2 copy -metadata:s:t:2 filename=averiasans-light.ttf -metadata:s:t:2 mimetype=application/x-truetype-font -map 0:7 -c:t:3 copy -metadata:s:t:3 filename=baqa.otf -metadata:s:t:3 mimetype=application/vnd.ms-opentype -map 0:8 -c:t:4 copy -metadata:s:t:4 filename=barthowheel-regular.ttf -metadata:s:t:4 mimetype=application/x-truetype-font -map 0:9 -c:t:5 copy -metadata:s:t:5 filename=bip.ttf -metadata:s:t:5 mimetype=application/x-truetype-font -map 0:10 -c:t:6 copy -metadata:s:t:6 filename=brush-strokes.ttf -metadata:s:t:6 mimetype=application/x-truetype-font -map 0:11 -c:t:7 copy -metadata:s:t:7 filename=cocon-next.otf -metadata:s:t:7 mimetype=application/vnd.ms-opentype -map 0:12 -c:t:8 copy -metadata:s:t:8 filename=d3-streetism.ttf -metadata:s:t:8 mimetype=application/x-truetype-font -map 0:13 -c:t:9 copy -metadata:s:t:9 filename=folkpro-en-bold.otf -metadata:s:t:9 mimetype=application/vnd.ms-opentype -map 0:14 -c:t:10 copy -metadata:s:t:10 filename=janda-manatee-solid.ttf -metadata:s:t:10 mimetype=application/x-truetype-font -map 0:15 -c:t:11 copy -metadata:s:t:11 filename=kg-happy-solid.ttf -metadata:s:t:11 mimetype=application/x-truetype-font -map 0:16 -c:t:12 copy -metadata:s:t:12 filename=ragnar.ttf -metadata:s:t:12 mimetype=application/x-truetype-font -map 0:17 -c:t:13 copy -metadata:s:t:13 filename=barthowheel-regular.ttf -metadata:s:t:13 mimetype=application/x-truetype-font -map 0:18 -c:t:14 copy -metadata:s:t:14 filename=boopee.ttf -metadata:s:t:14 mimetype=application/x-truetype-font -map 0:19 -c:t:15 copy -metadata:s:t:15 filename=cabin-bold-italic.ttf -metadata:s:t:15 mimetype=application/x-truetype-font -map 0:20 -c:t:16 copy -metadata:s:t:16 filename=cabin-bold.ttf -metadata:s:t:16 mimetype=application/x-truetype-font -map 0:21 -f matroska -threads 0 -metadata:g encoding_tool=SMA -max_muxing_queue_size 2048 -y C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv">
2022-03-06 14:44:11 - MANUAL - ERROR - C:\Media\sma\ffmpeg-5.0-full_build\bin\ffmpeg.exe -fix_sub_duration -vcodec h264_cuvid -i C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv.original -map_metadata -1 -vcodec libx264 -map 0:0 -pix_fmt yuv420p -field_order progressive -vb 4751k -metadata:s:v BPS=4751000 -metadata:s:v BPS-eng=4751000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -profile:v high -level 4.1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=English -metadata:s:a:0 handler_name=English -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:1 copy -map 0:2 -metadata:s:a:1 title=Japanese -metadata:s:a:1 handler_name=Japanese -metadata:s:a:1 language=jpn -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 copy -map 0:3 -metadata:s:s:0 title=Signs & Songs -metadata:s:s:0 handler_name=Signs & Songs -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -c:s:1 copy -map 0:4 -metadata:s:s:1 title=Full Subtitles [Kaizoku] -metadata:s:s:1 handler_name=Full Subtitles [Kaizoku] -metadata:s:s:1 language=eng -disposition:s:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:t:0 copy -metadata:s:t:0 filename=arial.ttf -metadata:s:t:0 mimetype=application/x-truetype-font -map 0:5 -c:t:1 copy -metadata:s:t:1 filename=at-amigo.ttf -metadata:s:t:1 mimetype=application/x-truetype-font -map 0:6 -c:t:2 copy -metadata:s:t:2 filename=averiasans-light.ttf -metadata:s:t:2 mimetype=application/x-truetype-font -map 0:7 -c:t:3 copy -metadata:s:t:3 filename=baqa.otf -metadata:s:t:3 mimetype=application/vnd.ms-opentype -map 0:8 -c:t:4 copy -metadata:s:t:4 filename=barthowheel-regular.ttf -metadata:s:t:4 mimetype=application/x-truetype-font -map 0:9 -c:t:5 copy -metadata:s:t:5 filename=bip.ttf -metadata:s:t:5 mimetype=application/x-truetype-font -map 0:10 -c:t:6 copy -metadata:s:t:6 filename=brush-strokes.ttf -metadata:s:t:6 mimetype=application/x-truetype-font -map 0:11 -c:t:7 copy -metadata:s:t:7 filename=cocon-next.otf -metadata:s:t:7 mimetype=application/vnd.ms-opentype -map 0:12 -c:t:8 copy -metadata:s:t:8 filename=d3-streetism.ttf -metadata:s:t:8 mimetype=application/x-truetype-font -map 0:13 -c:t:9 copy -metadata:s:t:9 filename=folkpro-en-bold.otf -metadata:s:t:9 mimetype=application/vnd.ms-opentype -map 0:14 -c:t:10 copy -metadata:s:t:10 filename=janda-manatee-solid.ttf -metadata:s:t:10 mimetype=application/x-truetype-font -map 0:15 -c:t:11 copy -metadata:s:t:11 filename=kg-happy-solid.ttf -metadata:s:t:11 mimetype=application/x-truetype-font -map 0:16 -c:t:12 copy -metadata:s:t:12 filename=ragnar.ttf -metadata:s:t:12 mimetype=application/x-truetype-font -map 0:17 -c:t:13 copy -metadata:s:t:13 filename=barthowheel-regular.ttf -metadata:s:t:13 mimetype=application/x-truetype-font -map 0:18 -c:t:14 copy -metadata:s:t:14 filename=boopee.ttf -metadata:s:t:14 mimetype=application/x-truetype-font -map 0:19 -c:t:15 copy -metadata:s:t:15 filename=cabin-bold-italic.ttf -metadata:s:t:15 mimetype=application/x-truetype-font -map 0:20 -c:t:16 copy -metadata:s:t:16 filename=cabin-bold.ttf -metadata:s:t:16 mimetype=application/x-truetype-font -map 0:21 -f matroska -threads 0 -metadata:g encoding_tool=SMA -max_muxing_queue_size 2048 -y C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv
2022-03-06 14:44:11 - MANUAL - ERROR - ffmpeg version 5.0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers

  built with gcc 11.2.0 (Rev5, 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-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --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      57. 17.100 / 57. 17.100

  libavcodec     59. 18.100 / 59. 18.100

  libavformat    59. 16.100 / 59. 16.100

  libavdevice    59.  4.100 / 59.  4.100

  libavfilter     8. 24.100 /  8. 24.100

  libswscale      6.  4.100 /  6.  4.100

  libswresample   4.  3.100 /  4.  3.100

  libpostproc    56.  3.100 / 56.  3.100

Input #0, matroska,webm, from 'C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv.original':

  Metadata:

    encoder         : libebml v1.4.2 + libmatroska v1.6.4

    creation_time   : 2022-03-06T14:26:15.000000Z

  Duration: 00:23:55.65, start: 0.000000, bitrate: 5257 kb/s

  Chapters:

    Chapter #0:0: start 0.000000, end 54.950000

      Metadata:

        title           : Intro

    Chapter #0:1: start 54.950000, end 145.000000

      Metadata:

        title           : Opening

    Chapter #0:2: start 145.000000, end 705.140000

      Metadata:

        title           : Part A

    Chapter #0:3: start 705.140000, end 1424.990000

      Metadata:

        title           : Part B

    Chapter #0:4: start 1424.990000, end 1435.650000

      Metadata:

        title           : Preview

  Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le(tv, bt709, progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)

    Metadata:

      title           : Kaizoku

      BPS             : 4965616

      DURATION        : 00:23:55.017000000

      NUMBER_OF_FRAMES: 34406

      NUMBER_OF_BYTES : 890718037

      _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit

      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:26:15

      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

  Stream #0:1(eng): Audio: aac (LC), 44100 Hz, stereo, fltp (default)

    Metadata:

      title           : English

      BPS             : 128000

      DURATION        : 00:23:55.086000000

      NUMBER_OF_FRAMES: 61804

      NUMBER_OF_BYTES : 22961378

      _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit

      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:26:15

      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

  Stream #0:2(jpn): Audio: aac (LC), 44100 Hz, stereo, fltp

    Metadata:

      title           : Japanese

      BPS             : 128000

      DURATION        : 00:23:55.086000000

      NUMBER_OF_FRAMES: 61804

      NUMBER_OF_BYTES : 22961378

      _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit

      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:26:15

      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

  Stream #0:3(eng): Subtitle: ass (default) (forced)

    Metadata:

      title           : Signs & Songs

      BPS             : 1265

      DURATION        : 00:22:50.690000000

      NUMBER_OF_FRAMES: 630

      NUMBER_OF_BYTES : 216850

      _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit

      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:26:15

      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

  Stream #0:4(eng): Subtitle: ass

    Metadata:

      title           : Full Subtitles [Kaizoku]

      BPS             : 1351

      DURATION        : 00:23:53.580000000

      NUMBER_OF_FRAMES: 1023

      NUMBER_OF_BYTES : 242167

      _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit

      _STATISTICS_WRITING_DATE_UTC: 2022-03-06 14:26:15

      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

  Stream #0:5: Attachment: ttf

    Metadata:

      filename        : arial.ttf

      mimetype        : application/x-truetype-font

  Stream #0:6: Attachment: ttf

    Metadata:

      filename        : AT-Amigo.ttf

      mimetype        : application/x-truetype-font

  Stream #0:7: Attachment: ttf

    Metadata:

      filename        : AveriaSans-Light.ttf

      mimetype        : application/x-truetype-font

  Stream #0:8: Attachment: otf

    Metadata:

      filename        : Baqa.otf

      mimetype        : application/vnd.ms-opentype

  Stream #0:9: Attachment: ttf

    Metadata:

      filename        : Barthowheel-Regular.ttf

      mimetype        : application/x-truetype-font

  Stream #0:10: Attachment: ttf

    Metadata:

      filename        : BIP.ttf

      mimetype        : application/x-truetype-font

  Stream #0:11: Attachment: ttf

    Metadata:

      filename        : Brush-Strokes.ttf

      mimetype        : application/x-truetype-font

  Stream #0:12: Attachment: otf

    Metadata:

      filename        : Cocon-Next.OTF

      mimetype        : application/vnd.ms-opentype

  Stream #0:13: Attachment: ttf

    Metadata:

      filename        : D3-Streetism.ttf

      mimetype        : application/x-truetype-font

  Stream #0:14: Attachment: otf

    Metadata:

      filename        : FolkPro-En-Bold.OTF

      mimetype        : application/vnd.ms-opentype

  Stream #0:15: Attachment: ttf

    Metadata:

      filename        : Janda-Manatee-Solid.ttf

      mimetype        : application/x-truetype-font

  Stream #0:16: Attachment: ttf

    Metadata:

      filename        : KG-HAPPY-Solid.ttf

      mimetype        : application/x-truetype-font

  Stream #0:17: Attachment: ttf

    Metadata:

      filename        : Ragnar.ttf

      mimetype        : application/x-truetype-font

  Stream #0:18: Attachment: ttf

    Metadata:

      filename        : Barthowheel-Regular.ttf

      mimetype        : application/x-truetype-font

  Stream #0:19: Attachment: ttf

    Metadata:

      filename        : Boopee.ttf

      mimetype        : application/x-truetype-font

  Stream #0:20: Attachment: ttf

    Metadata:

      filename        : Cabin-Bold-Italic.ttf

      mimetype        : application/x-truetype-font

  Stream #0:21: Attachment: ttf

    Metadata:

      filename        : Cabin-Bold.ttf

      mimetype        : application/x-truetype-font

[h264_cuvid @ 000001a3a06b07c0] Bit depth 10 is not supported.

Stream mapping:

  Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (libx264))

  Stream #0:1 -> #0:1 (copy)

  Stream #0:2 -> #0:2 (copy)

  Stream #0:3 -> #0:3 (copy)

  Stream #0:4 -> #0:4 (copy)

  Stream #0:5 -> #0:5 (copy)

  Stream #0:6 -> #0:6 (copy)

  Stream #0:7 -> #0:7 (copy)

  Stream #0:8 -> #0:8 (copy)

  Stream #0:9 -> #0:9 (copy)

  Stream #0:10 -> #0:10 (copy)

  Stream #0:11 -> #0:11 (copy)

  Stream #0:12 -> #0:12 (copy)

  Stream #0:13 -> #0:13 (copy)

  Stream #0:14 -> #0:14 (copy)

  Stream #0:15 -> #0:15 (copy)

  Stream #0:16 -> #0:16 (copy)

  Stream #0:17 -> #0:17 (copy)

  Stream #0:18 -> #0:18 (copy)

  Stream #0:19 -> #0:19 (copy)

  Stream #0:20 -> #0:20 (copy)

  Stream #0:21 -> #0:21 (copy)

Error while opening decoder for input stream #0:0 : Invalid argument


2022-03-06 14:44:11 - MANUAL - ERROR - C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv deleted.
2022-03-06 14:44:11 - MANUAL - ERROR - There was an error processing file C:\Media\manual\[LostYears] Jujutsu Kaisen - 01 (WEB 1080p x264 10-bit AAC) [1F8EFA3D].mkv, no output data received

FFMpeg headers

ffmpeg version 5.0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev5, 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-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --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      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

System Information

  • OS: Windows
  • Python version: 3.10.2

Expected behavior I would expect the file to be converted from yuv420p10le High 10 into yuv420p High without error.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mdhigginscommented, Mar 21, 2022

All good, thanks for testing it and glad it’s working

I can pull the bit-depths of the various pix-fmts from FFMEPG but have to manually specify if a decoder or encoder has a maximum depth it can handle, seems to be primarily the hardware decoders/encoders impacted and I’ve only included maximum depths for a small subset of them for now since its poorly documented

If you run into any other encoders or decoders giving you an error let me know, might be that I just need to specify the maximum depth in the class definition

1reaction
Smalfinncommented, Mar 21, 2022

Sorry I missed this post.

I’ve added back the cuvid decoders hwaccel-decoders = av1_cuvid, h264_cuvid, hevc_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, vp8_cuvid, vp9_cuvid

Everything seems to be working great now.

Really appreciate the update

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to properly setup 10-bit output on Windows 10 for HDR
Right click on the Windows desktop · Open the NVIDA control panel · On the left side, click on Resolutions · click on...
Read more >
Hardware acceleration blocks playback with certain formats
Attempt playback of 10-bit h264 video in browser; See log for FFmpeg error ... When playing video unsupported by hardware acceleration, fall back ......
Read more >
Enable 10 bit on Windows 11 #shorts - YouTube
Enabling 10 bit color in Windows 11. I noticed that windows 11 color depth was capped at 8 bits despite me having a...
Read more >
Can Intel® Graphics Support 10-Bit Color Depth?
Intel Graphics supports 10-bit and 12-bit color depths (known as deep color). The current Intel Graphics Driver sets the color depth per the...
Read more >
Can't convert with FFMPEG using NVENC "10 bit encode not ...
I filmed a test input video on a SamSung Galaxy S22 ultra at 1920x2080. The Galaxy S22 encodes videos with a HVC1 codec....
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