Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-pix_fmts error with recent change #1548

Closed
JasonMeudt opened this issue Feb 25, 2022 · 9 comments
Closed

-pix_fmts error with recent change #1548

JasonMeudt opened this issue Feb 25, 2022 · 9 comments

Comments

@JasonMeudt
Copy link

JasonMeudt commented Feb 25, 2022

Describe the bug

It appears that the recent pix-fmt changes may have affected the usage of my hardware encode via hevc_qsv. "Pix_fmt selected None is not compatible with encoder hevc_qsv and source video format is not compatible , using nv12"

Command or context you are trying to run

python3 manual.py -i "/media/wd1/Videos/Movies/Get Out (2017)/" -a

autoProcess.ini settings

[Converter]
ffmpeg = /usr/lib/jellyfin-ffmpeg/ffmpeg
ffprobe = /usr/lib/jellyfin-ffmpeg/ffprobe
threads = 0
hwaccels = qsv, vaapi, xva2, cuvid, d3d11va
hwaccel-decoders = hevc_qsv, h264_qsv, hevc_vaapi, h264_vaapi
#hwaccel-decoders = hevc_qsv, h264_qsv, hevc_vaapi, h264_vaapi, h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid
hwdevices = vaapi:/dev/dri/renderD128
hwaccel-output-format = vaapi:vaapi
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 = True
bypass-if-copying-all = True
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 = True
keep-titles = False

[Video]
codec = hevc_qsv, hevc, h265, x265
max-bitrate = 0
bitrate-ratio =
crf = 23
crf-profiles =
preset = fast
codec-parameters =
dynamic-parameters = True
max-width = 0
profile = main
max-level = 0.0
pix-fmt =
prioritize-source-pix-fmt = True
filter =
force-filter = False

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

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

[Universal Audio]
codec = aac
channel-bitrate = 128
variable-bitrate = 0
first-stream-only = False
move-after = 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 = eng
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 =

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

[Subtitle.Subliminal.Auth]
opensubtitles =
tvsubtitles =

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

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

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

[Deluge]
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]
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]
host = localhost
port = 32400
refresh = False
token =

Log files

2022-02-24 17:32:43 - MANUAL - INFO - Manual processor started.
2022-02-24 17:32:43 - MANUAL - INFO - Python 64-bit 3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0].
2022-02-24 17:32:43 - MANUAL - INFO - Guessit version: 3.4.3.
2022-02-24 17:32:43 - MANUAL - INFO - /usr/bin/python3
2022-02-24 17:32:43 - MANUAL - INFO - Loading config file /media/data/git-clone/sickbeard_mp4_automator1/config/autoProcess.ini.
2022-02-24 17:32:44 - MANUAL - INFO - Processing file /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4
2022-02-24 17:32:49 - MANUAL - INFO - Matched movie title as: Get Out 2017-02-24 (TMDB ID: 419430)
2022-02-24 17:32:49 - MANUAL - INFO - Processing Get Out
2022-02-24 17:32:49 - MANUAL - INFO - Input Data
2022-02-24 17:32:49 - MANUAL - INFO - {
    "format": "mov,mp4,m4a,3gp,3g2,mj2",
    "format-fullname": "QuickTime / MOV",
    "video": {
        "index": 0,
        "codec": "h264",
        "bitrate": 2049593,
        "pix_fmt": "yuv420p",
        "profile": "high",
        "fps": 23.97598627787307,
        "framedata": {
            "pix_fmt": "yuv420p",
            "side_data_list": [
                {
                    "side_data_type": "H.26[45] User Data Unregistered SEI message"
                }
            ]
        },
        "dimensions": "1920x800",
        "level": 4.1,
        "field_order": "unknown"
    },
    "audio": [
        {
            "index": 1,
            "codec": "aac",
            "bitrate": 122943,
            "channels": 2,
            "samplerate": 48000,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
        }
    ],
    "subtitle": [],
    "attachment": []
}
2022-02-24 17:32:49 - MANUAL - INFO - Reading video stream.
2022-02-24 17:32:49 - MANUAL - INFO - Video codec detected: h264.
2022-02-24 17:32:49 - MANUAL - INFO - Pix Fmt: yuv420p.
2022-02-24 17:32:49 - MANUAL - INFO - Profile: high.
2022-02-24 17:32:49 - MANUAL - INFO - Pix_fmt selected None is not compatible with encoder hevc_qsv and source video format is not compatible , using nv12
2022-02-24 17:32:49 - MANUAL - INFO - Video codec parameters None.
2022-02-24 17:32:49 - MANUAL - INFO - Creating hevc_qsv video stream from source stream 0.
2022-02-24 17:32:49 - MANUAL - INFO - Reading audio streams.
2022-02-24 17:32:49 - MANUAL - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2022-02-24 17:32:49 - MANUAL - INFO - Audio detected for stream 1 - aac eng 2 channel.
2022-02-24 17:32:49 - MANUAL - INFO - Creating copy audio stream from source stream 1.
2022-02-24 17:32:49 - MANUAL - INFO - Found 0 streams that can be removed from the output file since they will dupcliates [stream-codec-combinations].
2022-02-24 17:32:49 - MANUAL - INFO - Default audio stream set to eng copy 2 channel stream [default-more-channels: True].
2022-02-24 17:32:49 - MANUAL - INFO - Reading subtitle streams.
2022-02-24 17:32:49 - MANUAL - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2022-02-24 17:32:49 - MANUAL - INFO - qsv hwaccel is supported by this ffmpeg build and will be used [hwaccels].
2022-02-24 17:32:49 - MANUAL - INFO - h264_qsv decoder is also supported by this ffmpeg build and will also be used [hwaccel-decoders].
2022-02-24 17:32:50 - MANUAL - INFO - Output Data
2022-02-24 17:32:50 - MANUAL - INFO - {
    "source": [
        "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4"
    ],
    "format": "mp4",
    "video": {
        "codec": "hevc_qsv",
        "map": 0,
        "bitrate": 1953.66835,
        "crf": 23,
        "maxrate": null,
        "bufsize": null,
        "level": 0.0,
        "profile": "main",
        "preset": "fast",
        "pix_fmt": "nv12",
        "field_order": "unknown",
        "width": null,
        "filter": null,
        "params": null,
        "framedata": null,
        "title": "FHD",
        "debug": "video.profile"
    },
    "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",
            "bsf": null,
            "title": "Stereo",
            "debug": "universal-audio"
        }
    ],
    "subtitle": [],
    "attachment": []
}
2022-02-24 17:32:50 - MANUAL - INFO - Preopts
2022-02-24 17:32:50 - MANUAL - INFO - [
    "-hwaccel",
    "qsv",
    "-vcodec",
    "h264_qsv"
]
2022-02-24 17:32:50 - MANUAL - INFO - Postopts
2022-02-24 17:32:50 - MANUAL - INFO - [
    "-threads",
    "0",
    "-metadata:g",
    "encoding_tool=SMA"
]
2022-02-24 17:32:50 - MANUAL - INFO - Starting conversion.
2022-02-24 17:32:50 - MANUAL - INFO - FFmpeg command:
2022-02-24 17:32:50 - MANUAL - INFO - ======================
2022-02-24 17:32:50 - MANUAL - INFO - /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel qsv -vcodec h264_qsv -i "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4.original" -map_metadata -1 -vcodec hevc_qsv -map 0:0 -pix_fmt nv12 -crf 23 -metadata:s:v BPS=1953000 -metadata:s:v BPS-eng=1953000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset fast -profile:v main -tag:v hvc1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4"
2022-02-24 17:32:50 - MANUAL - INFO - ======================
2022-02-24 17:32:50 - MANUAL - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
  File "/media/data/git-clone/sickbeard_mp4_automator1/resources/mediaprocessor.py", line 1896, in convert
    for timecode, debug in conv:
  File "/media/data/git-clone/sickbeard_mp4_automator1/converter/__init__.py", line 321, in convert
    for timecode, debug in self.ffmpeg.convert(outfile,
  File "/media/data/git-clone/sickbeard_mp4_automator1/converter/ffmpeg.py", line 747, in convert
    raise FFMpegConvertError('Exited with code %d' % p.returncode, cmd,
converter.ffmpeg.FFMpegConvertError: <unprintable FFMpegConvertError object>
2022-02-24 17:32:50 - MANUAL - ERROR - /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel qsv -vcodec h264_qsv -i /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4.original -map_metadata -1 -vcodec hevc_qsv -map 0:0 -pix_fmt nv12 -crf 23 -metadata:s:v BPS=1953000 -metadata:s:v BPS-eng=1953000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset fast -profile:v main -tag:v hvc1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4
2022-02-24 17:32:50 - MANUAL - ERROR - ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4.original':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.48.101
  Duration: 01:44:05.21, start: 0.000000, bitrate: 2179 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 2049 kb/s, 23.98 fps, 23.98 tbr, 13978 tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 122 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_qsv) -> hevc (hevc_qsv))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!

2022-02-24 17:32:50 - MANUAL - ERROR - /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4 deleted.
2022-02-24 17:32:50 - MANUAL - ERROR - There was an error processing file /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4, no output data received

System Information

  • OS: ZorinOS (Ubuntu Focal)
  • Python version: Python 3.8.10
  • FFMPEG version: ffmpeg version 4.4.1-Jellyfin

Expected behavior

Convert the file from it's current h264 format to that of hevc

Additional context

Pixel formats:
I.... = Supported Input format for conversion
.O... = Supported Output format for conversion
..H.. = Hardware accelerated format
...P. = Paletted format
....B = Bitstream format
FLAGS NAME NB_COMPONENTS BITS_PER_PIXEL

IO... yuv420p 3 12
IO... yuyv422 3 16
IO... rgb24 3 24
IO... bgr24 3 24
IO... yuv422p 3 16
IO... yuv444p 3 24
IO... yuv410p 3 9
IO... yuv411p 3 12
IO... gray 1 8
IO..B monow 1 1
IO..B monob 1 1
I..P. pal8 1 8
IO... yuvj420p 3 12
IO... yuvj422p 3 16
IO... yuvj444p 3 24
IO... uyvy422 3 16
..... uyyvyy411 3 12
IO... bgr8 3 8
.O..B bgr4 3 4
IO... bgr4_byte 3 4
IO... rgb8 3 8
.O..B rgb4 3 4
IO... rgb4_byte 3 4
IO... nv12 3 12
IO... nv21 3 12
IO... argb 4 32
IO... rgba 4 32
IO... abgr 4 32
IO... bgra 4 32
IO... gray16be 1 16
IO... gray16le 1 16
IO... yuv440p 3 16
IO... yuvj440p 3 16
IO... yuva420p 4 20
IO... rgb48be 3 48
IO... rgb48le 3 48
IO... rgb565be 3 16
IO... rgb565le 3 16
IO... rgb555be 3 15
IO... rgb555le 3 15
IO... bgr565be 3 16
IO... bgr565le 3 16
IO... bgr555be 3 15
IO... bgr555le 3 15
..H.. vaapi_moco 0 0
..H.. vaapi_idct 0 0
..H.. vaapi_vld 0 0
IO... yuv420p16le 3 24
IO... yuv420p16be 3 24
IO... yuv422p16le 3 32
IO... yuv422p16be 3 32
IO... yuv444p16le 3 48
IO... yuv444p16be 3 48
..H.. dxva2_vld 0 0
IO... rgb444le 3 12
IO... rgb444be 3 12
IO... bgr444le 3 12
IO... bgr444be 3 12
IO... ya8 2 16
IO... bgr48be 3 48
IO... bgr48le 3 48
IO... yuv420p9be 3 13
IO... yuv420p9le 3 13
IO... yuv420p10be 3 15
IO... yuv420p10le 3 15
IO... yuv422p10be 3 20
IO... yuv422p10le 3 20
IO... yuv444p9be 3 27
IO... yuv444p9le 3 27
IO... yuv444p10be 3 30
IO... yuv444p10le 3 30
IO... yuv422p9be 3 18
IO... yuv422p9le 3 18
IO... gbrp 3 24
IO... gbrp9be 3 27
IO... gbrp9le 3 27
IO... gbrp10be 3 30
IO... gbrp10le 3 30
IO... gbrp16be 3 48
IO... gbrp16le 3 48
IO... yuva422p 4 24
IO... yuva444p 4 32
IO... yuva420p9be 4 22
IO... yuva420p9le 4 22
IO... yuva422p9be 4 27
IO... yuva422p9le 4 27
IO... yuva444p9be 4 36
IO... yuva444p9le 4 36
IO... yuva420p10be 4 25
IO... yuva420p10le 4 25
IO... yuva422p10be 4 30
IO... yuva422p10le 4 30
IO... yuva444p10be 4 40
IO... yuva444p10le 4 40
IO... yuva420p16be 4 40
IO... yuva420p16le 4 40
IO... yuva422p16be 4 48
IO... yuva422p16le 4 48
IO... yuva444p16be 4 64
IO... yuva444p16le 4 64
..H.. vdpau 0 0
IO... xyz12le 3 36
IO... xyz12be 3 36
..... nv16 3 16
..... nv20le 3 20
..... nv20be 3 20
IO... rgba64be 4 64
IO... rgba64le 4 64
IO... bgra64be 4 64
IO... bgra64le 4 64
IO... yvyu422 3 16
IO... ya16be 2 32
IO... ya16le 2 32
IO... gbrap 4 32
IO... gbrap16be 4 64
IO... gbrap16le 4 64
..H.. qsv 0 0
..H.. mmal 0 0
..H.. d3d11va_vld 0 0
..H.. cuda 0 0
IO... 0rgb 3 24
IO... rgb0 3 24
IO... 0bgr 3 24
IO... bgr0 3 24
IO... yuv420p12be 3 18
IO... yuv420p12le 3 18
IO... yuv420p14be 3 21
IO... yuv420p14le 3 21
IO... yuv422p12be 3 24
IO... yuv422p12le 3 24
IO... yuv422p14be 3 28
IO... yuv422p14le 3 28
IO... yuv444p12be 3 36
IO... yuv444p12le 3 36
IO... yuv444p14be 3 42
IO... yuv444p14le 3 42
IO... gbrp12be 3 36
IO... gbrp12le 3 36
IO... gbrp14be 3 42
IO... gbrp14le 3 42
IO... yuvj411p 3 12
I.... bayer_bggr8 3 8
I.... bayer_rggb8 3 8
I.... bayer_gbrg8 3 8
I.... bayer_grbg8 3 8
I.... bayer_bggr16le 3 16
I.... bayer_bggr16be 3 16
I.... bayer_rggb16le 3 16
I.... bayer_rggb16be 3 16
I.... bayer_gbrg16le 3 16
I.... bayer_gbrg16be 3 16
I.... bayer_grbg16le 3 16
I.... bayer_grbg16be 3 16
..H.. xvmc 0 0
IO... yuv440p10le 3 20
IO... yuv440p10be 3 20
IO... yuv440p12le 3 24
IO... yuv440p12be 3 24
IO... ayuv64le 4 64
..... ayuv64be 4 64
..H.. videotoolbox_vld 0 0
IO... p010le 3 15
IO... p010be 3 15
IO... gbrap12be 4 48
IO... gbrap12le 4 48
IO... gbrap10be 4 40
IO... gbrap10le 4 40
..H.. mediacodec 0 0
IO... gray12be 1 12
IO... gray12le 1 12
IO... gray10be 1 10
IO... gray10le 1 10
IO... p016le 3 24
IO... p016be 3 24
..H.. d3d11 0 0
IO... gray9be 1 9
IO... gray9le 1 9
IO... gbrpf32be 3 96
IO... gbrpf32le 3 96
IO... gbrapf32be 4 128
IO... gbrapf32le 4 128
..H.. drm_prime 0 0
..H.. opencl 0 0
IO... gray14be 1 14
IO... gray14le 1 14
IO... grayf32be 1 32
IO... grayf32le 1 32
IO... yuva422p12be 4 36
IO... yuva422p12le 4 36
IO... yuva444p12be 4 48
IO... yuva444p12le 4 48
IO... nv24 3 24
IO... nv42 3 24
..H.. vulkan 0 0
..... y210be 3 20
I.... y210le 3 20
IO... 0yuv 3 24
....B y410le 3 30
....B y410be 3 30
IO... x2rgb10le 3 30
..... x2rgb10be 3 30

@mdhiggins
Copy link
Owner

65fe6fc

That update should revert back to the original behavior if no pix_fmt options are specified

That being said, can you run the following command and post the output

ffmpeg -h encoder=hevc_qsv

and

ffmpeg -h decoder=h264_qsv

@mdhiggins
Copy link
Owner

Also you might want to change
hwaccel-output-format = vaapi:vaapi to hwaccel-output-format = qsv:qsv to silence this error

WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".

@JasonMeudt
Copy link
Author

@mdhiggins

encoder:

ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Encoder hevc_qsv [HEVC (Intel Quick Sync Video acceleration)]:
General capabilities: delay hybrid
Threading capabilities: none
Supported hardware devices: qsv qsv qsv
Supported pixel formats: nv12 p010le qsv
hevc_qsv encoder AVOptions:
-async_depth E..V....... Maximum processing parallelism (from 1 to INT_MAX) (default 4)
-avbr_accuracy E..V....... Accuracy of the AVBR ratecontrol (from 0 to INT_MAX) (default 0)
-avbr_convergence E..V....... Convergence of the AVBR ratecontrol (from 0 to INT_MAX) (default 0)
-preset E..V....... (from 1 to 7) (default medium)
veryfast 7 E..V.......
faster 6 E..V.......
fast 5 E..V.......
medium 4 E..V.......
slow 3 E..V.......
slower 2 E..V.......
veryslow 1 E..V.......
-rdo E..V....... Enable rate distortion optimization (from -1 to 1) (default -1)
-max_frame_size E..V....... Maximum encoded frame size in bytes (from -1 to 65535) (default -1)
-max_slice_size E..V....... Maximum encoded slice size in bytes (from -1 to 65535) (default -1)
-bitrate_limit E..V....... Toggle bitrate limitations (from -1 to 1) (default -1)
-mbbrc E..V....... MB level bitrate control (from -1 to 1) (default -1)
-extbrc E..V....... Extended bitrate control (from -1 to 1) (default -1)
-adaptive_i E..V....... Adaptive I-frame placement (from -1 to 1) (default -1)
-adaptive_b E..V....... Adaptive B-frame placement (from -1 to 1) (default -1)
-b_strategy E..V....... Strategy to choose between I/P/B-frames (from -1 to 1) (default -1)
-forced_idr E..V....... Forcing I frames as IDR frames (default false)
-low_power E..V....... enable low power mode(experimental: many limitations by mfx version, BRC modes, etc.) (default auto)
-idr_interval E..V....... Distance (in I-frames) between IDR frames (from -1 to INT_MAX) (default 0)
begin_only -1 E..V....... Output an IDR-frame only at the beginning of the stream
-load_plugin E..V....... A user plugin to load in an internal session (from 0 to 2) (default hevc_hw)
none 0 E..V.......
hevc_sw 1 E..V.......
hevc_hw 2 E..V.......
-load_plugins E..V....... A :-separate list of hexadecimal plugin UIDs to load in an internal session (default "")
-profile E..V....... (from 0 to INT_MAX) (default unknown)
unknown 0 E..V.......
main 1 E..V.......
main10 2 E..V.......
mainsp 3 E..V.......
rext 4 E..V.......
-gpb E..V....... 1: GPB (generalized P/B frame); 0: regular P frame (default true)
-tile_cols E..V....... Number of columns for tiled encoding (from 0 to 65535) (default 0)
-tile_rows E..V....... Number of rows for tiled encoding (from 0 to 65535) (default 0)

decoder:

ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Decoder h264_qsv [H264 video (Intel Quick Sync Video acceleration)]:
General capabilities: dr1 delay avoidprobe hybrid
Threading capabilities: none
Supported hardware devices: qsv
Supported pixel formats: nv12 p010le qsv
h264_qsv AVOptions:
-async_depth .D.V....... Internal parallelization depth, the higher the value the higher the latency. (from 1 to INT_MAX) (default 4)
-gpu_copy .D.V....... A GPU-accelerated copy between video and system memory (from 0 to 2) (default default)
default 0 .D.V.......
on 1 .D.V.......
off 2 .D.V.......

Also, in looking through some past files where the conversion worked, the colorspace was set to yuv420p(tv, progressive).

@JasonMeudt
Copy link
Author

@mdhiggins

Conversion ran as expected using commit 31c05c3 with a pix_fmt result of yuv420p(tv, progressive).

Changing the pix-fmt to p010le (with or without main10 as the profile), however, resulted in an error.

2022-02-25 06:09:00 - MANUAL - INFO - Manual processor started.
2022-02-25 06:09:00 - MANUAL - INFO - Python 64-bit 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0].
2022-02-25 06:09:00 - MANUAL - INFO - Guessit version: 3.4.3.
2022-02-25 06:09:00 - MANUAL - INFO - /usr/bin/python3
2022-02-25 06:09:00 - MANUAL - INFO - Loading config file /media/data/git-clone/sickbeard_mp4_automator1/config/autoProcess.ini.
2022-02-25 06:09:00 - MANUAL - INFO - Processing file /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4
2022-02-25 06:09:06 - MANUAL - INFO - Matched movie title as: The Shape of Water 2017-12-01 (TMDB ID: 399055)
2022-02-25 06:09:06 - MANUAL - INFO - Processing The Shape of Water
2022-02-25 06:09:06 - MANUAL - INFO - Input Data
2022-02-25 06:09:06 - MANUAL - INFO - {
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"format-fullname": "QuickTime / MOV",
"video": {
"index": 0,
"codec": "h264",
"bitrate": 4046788,
"pix_fmt": "yuv420p",
"profile": "high",
"fps": 23.976023976023978,
"framedata": {
"pix_fmt": "yuv420p",
"color_space": "bt709",
"color_primaries": "bt709",
"color_transfer": "bt709",
"side_data_list": [
{
"side_data_type": "H.26[45] User Data Unregistered SEI message"
}
]
},
"dimensions": "1280x692",
"level": 3.1,
"field_order": "unknown"
},
"audio": [
{
"index": 1,
"codec": "aac",
"bitrate": 252556,
"channels": 2,
"samplerate": 48000,
"language": "eng",
"disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
},
{
"index": 2,
"codec": "ac3",
"bitrate": 384000,
"channels": 6,
"samplerate": 48000,
"language": "eng",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
}
],
"subtitle": [],
"attachment": []
}
2022-02-25 06:09:06 - MANUAL - INFO - Reading video stream.
2022-02-25 06:09:06 - MANUAL - INFO - Video codec detected: h264.
2022-02-25 06:09:06 - MANUAL - INFO - Pix Fmt: yuv420p.
2022-02-25 06:09:06 - MANUAL - INFO - Profile: high.
2022-02-25 06:09:06 - MANUAL - INFO - Video codec parameters None.
2022-02-25 06:09:06 - MANUAL - INFO - Creating hevc_qsv video stream from source stream 0.
2022-02-25 06:09:06 - MANUAL - INFO - Reading audio streams.
2022-02-25 06:09:06 - MANUAL - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2022-02-25 06:09:06 - MANUAL - INFO - Audio detected for stream 2 - ac3 eng 6 channel.
2022-02-25 06:09:06 - MANUAL - INFO - Creating copy audio stream from source stream 2.
2022-02-25 06:09:06 - MANUAL - INFO - Creating aac audio stream from source audio stream 2 [universal-audio].
2022-02-25 06:09:06 - MANUAL - INFO - Audio detected for stream 1 - aac eng 2 channel.
2022-02-25 06:09:06 - MANUAL - INFO - Creating copy audio stream from source stream 1.
2022-02-25 06:09:06 - MANUAL - INFO - Found 0 streams that can be removed from the output file since they will dupcliates [stream-codec-combinations].
2022-02-25 06:09:06 - MANUAL - INFO - Default audio stream set to eng copy 2 channel stream [default-more-channels: True].
2022-02-25 06:09:06 - MANUAL - INFO - Reading subtitle streams.
2022-02-25 06:09:06 - MANUAL - INFO - Scanned for external subtitles and found 3 results in your approved languages.
2022-02-25 06:09:06 - MANUAL - INFO - Creating mov_text subtitle stream by importing Text-based The Shape of Water (2017) [720p] [AVC AAC].en.forced.srt [embed-subs].
2022-02-25 06:09:06 - MANUAL - INFO - Creating mov_text subtitle stream by importing Text-based The Shape of Water (2017) [720p] [AVC AAC].eng.srt [embed-subs].
2022-02-25 06:09:06 - MANUAL - INFO - Creating mov_text subtitle stream by importing Text-based The Shape of Water (2017) [720p] [AVC AAC].forced.srt [embed-subs].
2022-02-25 06:09:06 - MANUAL - INFO - qsv hwaccel is supported by this ffmpeg build and will be used [hwaccels].
2022-02-25 06:09:06 - MANUAL - INFO - h264_qsv decoder is also supported by this ffmpeg build and will also be used [hwaccel-decoders].
2022-02-25 06:09:06 - MANUAL - INFO - Output Data
2022-02-25 06:09:06 - MANUAL - INFO - {
"source": [
"/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4",
"/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].en.forced.srt",
"/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].eng.srt",
"/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].forced.srt"
],
"format": "mp4",
"video": {
"codec": "hevc_qsv",
"map": 0,
"bitrate": 3846.5205499999997,
"crf": 23,
"maxrate": null,
"bufsize": null,
"level": 0.0,
"profile": null,
"preset": "fast",
"pix_fmt": "p010le",
"field_order": "unknown",
"width": null,
"filter": null,
"params": null,
"framedata": null,
"title": "HD",
"debug": "video.pix_fmt"
},
"audio": [
{
"map": 2,
"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",
"title": "Stereo",
"debug": "universal-audio"
},
{
"map": 2,
"codec": "copy",
"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",
"bsf": null,
"title": "5.1 Channel",
"debug": "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",
"bsf": null,
"title": "Stereo",
"debug": "universal-audio"
}
],
"subtitle": [
{
"source": 1,
"map": 0,
"codec": "mov_text",
"disposition": "+default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired",
"title": "Forced",
"language": "eng",
"debug": "subtitle.embed-subs"
},
{
"source": 2,
"map": 0,
"codec": "mov_text",
"disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
"title": null,
"language": "eng",
"debug": "subtitle.embed-subs"
},
{
"source": 3,
"map": 0,
"codec": "mov_text",
"disposition": "-default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired",
"title": "Forced",
"language": "eng",
"debug": "subtitle.embed-subs"
}
],
"attachment": []
}
2022-02-25 06:09:06 - MANUAL - INFO - Preopts
2022-02-25 06:09:06 - MANUAL - INFO - [
"-fix_sub_duration",
"-hwaccel",
"qsv",
"-hwaccel_output_format",
"qsv",
"-vcodec",
"h264_qsv"
]
2022-02-25 06:09:06 - MANUAL - INFO - Postopts
2022-02-25 06:09:06 - MANUAL - INFO - [
"-threads",
"0",
"-metadata:g",
"encoding_tool=SMA"
]
2022-02-25 06:09:06 - MANUAL - INFO - Starting conversion.
2022-02-25 06:09:06 - MANUAL - INFO - FFmpeg command:
2022-02-25 06:09:06 - MANUAL - INFO - ======================
2022-02-25 06:09:06 - MANUAL - INFO - /usr/lib/jellyfin-ffmpeg/ffmpeg -fix_sub_duration -hwaccel qsv -hwaccel_output_format qsv -vcodec h264_qsv -i "/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4.original" -i "/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].en.forced.srt" -i "/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].eng.srt" -i "/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].forced.srt" -map_metadata -1 -vcodec hevc_qsv -map 0:0 -pix_fmt p010le -crf 23 -metadata:s:v BPS=3846000 -metadata:s:v BPS-eng=3846000 -metadata:s:v title=HD -metadata:s:v handler_name=HD -preset fast -tag:v hvc1 -c:a:0 aac -map 0:2 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -filter:a:0 "pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE" -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 copy -map 0:2 -metadata:s:a:1 "title=5.1 Channel" -metadata:s:a:1 "handler_name=5.1 Channel" -metadata:s:a:1 language=eng -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:2 copy -map 0:1 -metadata:s:a:2 title=Stereo -metadata:s:a:2 handler_name=Stereo -metadata:s:a:2 language=eng -disposition:a:2 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 mov_text -map 1:0 -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 2:0 -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 3:0 -metadata:s:s:2 title=Forced -metadata:s:s:2 handler_name=Forced -metadata:s:s:2 language=eng -disposition:s:2 -default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4"
2022-02-25 06:09:06 - MANUAL - INFO - ======================
2022-02-25 06:09:06 - MANUAL - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
File "/media/data/git-clone/sickbeard_mp4_automator1/resources/mediaprocessor.py", line 1896, in convert
for timecode, debug in conv:
File "/media/data/git-clone/sickbeard_mp4_automator1/converter/init.py", line 321, in convert
for timecode, debug in self.ffmpeg.convert(outfile,
File "/media/data/git-clone/sickbeard_mp4_automator1/converter/ffmpeg.py", line 747, in convert
raise FFMpegConvertError('Exited with code %d' % p.returncode, cmd,
converter.ffmpeg.FFMpegConvertError:
2022-02-25 06:09:06 - MANUAL - ERROR - /usr/lib/jellyfin-ffmpeg/ffmpeg -fix_sub_duration -hwaccel qsv -hwaccel_output_format qsv -vcodec h264_qsv -i /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4.original -i /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].en.forced.srt -i /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].eng.srt -i /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].forced.srt -map_metadata -1 -vcodec hevc_qsv -map 0:0 -pix_fmt p010le -crf 23 -metadata:s:v BPS=3846000 -metadata:s:v BPS-eng=3846000 -metadata:s:v title=HD -metadata:s:v handler_name=HD -preset fast -tag:v hvc1 -c:a:0 aac -map 0:2 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -filter:a:0 pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 copy -map 0:2 -metadata:s:a:1 title=5.1 Channel -metadata:s:a:1 handler_name=5.1 Channel -metadata:s:a:1 language=eng -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:2 copy -map 0:1 -metadata:s:a:2 title=Stereo -metadata:s:a:2 handler_name=Stereo -metadata:s:a:2 language=eng -disposition:a:2 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 mov_text -map 1:0 -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 2:0 -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 3:0 -metadata:s:s:2 title=Forced -metadata:s:s:2 handler_name=Forced -metadata:s:s:2 language=eng -disposition:s:2 -default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4
2022-02-25 06:09:06 - MANUAL - ERROR - ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4.original':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.72.100
Duration: 02:03:58.51, start: 0.000000, bitrate: 4685 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 385.468000
Metadata:
title : Chapter 01
Chapter #0:1: start 385.468000, end 775.774000
Metadata:
title : Chapter 02
Chapter #0:2: start 775.774000, end 1113.987000
Metadata:
title : Chapter 03
Chapter #0:3: start 1113.987000, end 1426.591000
Metadata:
title : Chapter 04
Chapter #0:4: start 1426.591000, end 1780.653000
Metadata:
title : Chapter 05
Chapter #0:5: start 1780.653000, end 2130.836000
Metadata:
title : Chapter 06
Chapter #0:6: start 2130.836000, end 2371.535000
Metadata:
title : Chapter 07
Chapter #0:7: start 2371.535000, end 2563.435000
Metadata:
title : Chapter 08
Chapter #0:8: start 2563.435000, end 2915.036000
Metadata:
title : Chapter 09
Chapter #0:9: start 2915.036000, end 3147.935000
Metadata:
title : Chapter 10
Chapter #0:10: start 3147.935000, end 3451.196000
Metadata:
title : Chapter 11
Chapter #0:11: start 3451.196000, end 3713.541000
Metadata:
title : Chapter 12
Chapter #0:12: start 3713.541000, end 4056.550000
Metadata:
title : Chapter 13
Chapter #0:13: start 4056.550000, end 4334.494000
Metadata:
title : Chapter 14
Chapter #0:14: start 4334.494000, end 4671.789000
Metadata:
title : Chapter 15
Chapter #0:15: start 4671.789000, end 4878.120000
Metadata:
title : Chapter 16
Chapter #0:16: start 4878.120000, end 5166.908000
Metadata:
title : Chapter 17
Chapter #0:17: start 5166.908000, end 5569.477000
Metadata:
title : Chapter 18
Chapter #0:18: start 5569.477000, end 5839.747000
Metadata:
title : Chapter 19
Chapter #0:19: start 5839.747000, end 6205.112000
Metadata:
title : Chapter 20
Chapter #0:20: start 6205.112000, end 6367.607000
Metadata:
title : Chapter 21
Chapter #0:21: start 6367.607000, end 6632.663000
Metadata:
title : Chapter 22
Chapter #0:22: start 6632.663000, end 7115.854000
Metadata:
title : Chapter 23
Chapter #0:23: start 7115.854000, end 7438.514000
Metadata:
title : Chapter 24
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x692 [SAR 1:1 DAR 320:173], 4046 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 32k tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 252 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream #0:2(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main
Stream #0:3(und): Data: bin_data (text / 0x74786574)
Metadata:
handler_name : SubtitleHandler
Input #1, srt, from '/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].en.forced.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
Input #2, srt, from '/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].eng.srt':
Duration: N/A, bitrate: N/A
Stream #2:0: Subtitle: subrip
Input #3, srt, from '/media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].forced.srt':
Duration: N/A, bitrate: N/A
Stream #3:0: Subtitle: subrip
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_qsv) -> hevc (hevc_qsv))
Stream #0:2 -> #0:1 (ac3 (native) -> aac (native))
Stream #0:2 -> #0:2 (copy)
Stream #0:1 -> #0:3 (copy)
Stream #1:0 -> #0:4 (subrip (srt) -> mov_text (native))
Stream #2:0 -> #0:5 (subrip (srt) -> mov_text (native))
Stream #3:0 -> #0:6 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!

2022-02-25 06:09:06 - MANUAL - ERROR - /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4 deleted.
2022-02-25 06:09:06 - MANUAL - ERROR - There was an error processing file /media/wd1/Videos/Movies/The Shape of Water (2017)/The Shape of Water (2017) [720p] [AVC AAC].mp4, no output data received

@mdhiggins
Copy link
Owner

Looks like the new pix_fmt change isn't going to work and not ready for prime time, reverting it for now and closing this out, thanks for following up

Doesn't seem to be a way to pre-check the pix_fmt options against the selected encoder reliably

@mdhiggins
Copy link
Owner

Do you have the conversion logs for the file that did work? The one that resulted in yuv420p?

Also, could you post the resulting ffprobe -show_streams output for that file that was created

I don't currently have an intel CPU so I'm having a hard time testing QSV but my tests on NVENC are not having this same issue

@JasonMeudt
Copy link
Author

@mdhiggins

Here are the logs from the finished coversion...

2022-02-25 05:36:51 - MANUAL - INFO - Manual processor started.
2022-02-25 05:36:51 - MANUAL - INFO - Python 64-bit 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0].
2022-02-25 05:36:51 - MANUAL - INFO - Guessit version: 3.4.3.
2022-02-25 05:36:51 - MANUAL - INFO - /usr/bin/python3
2022-02-25 05:36:51 - MANUAL - INFO - Loading config file /media/data/git-clone/sickbeard_mp4_automator1/config/autoProcess.ini.
2022-02-25 05:36:51 - MANUAL - INFO - Processing file /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4
2022-02-25 05:36:57 - MANUAL - INFO - Matched movie title as: Get Out 2017-02-24 (TMDB ID: 419430)
2022-02-25 05:36:57 - MANUAL - INFO - Processing Get Out
2022-02-25 05:36:57 - MANUAL - INFO - Input Data
2022-02-25 05:36:57 - MANUAL - INFO - {
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"format-fullname": "QuickTime / MOV",
"video": {
"index": 0,
"codec": "h264",
"bitrate": 2049593,
"pix_fmt": "yuv420p",
"profile": "high",
"fps": 23.97598627787307,
"framedata": {
"pix_fmt": "yuv420p",
"side_data_list": [
{
"side_data_type": "H.26[45] User Data Unregistered SEI message"
}
]
},
"dimensions": "1920x800",
"level": 4.1,
"field_order": "unknown"
},
"audio": [
{
"index": 1,
"codec": "aac",
"bitrate": 122943,
"channels": 2,
"samplerate": 48000,
"language": "eng",
"disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
}
],
"subtitle": [],
"attachment": []
}
2022-02-25 05:36:57 - MANUAL - INFO - Reading video stream.
2022-02-25 05:36:57 - MANUAL - INFO - Video codec detected: h264.
2022-02-25 05:36:57 - MANUAL - INFO - Pix Fmt: yuv420p.
2022-02-25 05:36:57 - MANUAL - INFO - Profile: high.
2022-02-25 05:36:57 - MANUAL - INFO - Video codec parameters None.
2022-02-25 05:36:57 - MANUAL - INFO - Creating hevc_qsv video stream from source stream 0.
2022-02-25 05:36:57 - MANUAL - INFO - Reading audio streams.
2022-02-25 05:36:57 - MANUAL - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2022-02-25 05:36:57 - MANUAL - INFO - Audio detected for stream 1 - aac eng 2 channel.
2022-02-25 05:36:57 - MANUAL - INFO - Creating copy audio stream from source stream 1.
2022-02-25 05:36:57 - MANUAL - INFO - Found 0 streams that can be removed from the output file since they will dupcliates [stream-codec-combinations].
2022-02-25 05:36:57 - MANUAL - INFO - Default audio stream set to eng copy 2 channel stream [default-more-channels: True].
2022-02-25 05:36:57 - MANUAL - INFO - Reading subtitle streams.
2022-02-25 05:36:57 - MANUAL - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2022-02-25 05:36:57 - MANUAL - INFO - qsv hwaccel is supported by this ffmpeg build and will be used [hwaccels].
2022-02-25 05:36:57 - MANUAL - INFO - h264_qsv decoder is also supported by this ffmpeg build and will also be used [hwaccel-decoders].
2022-02-25 05:36:57 - MANUAL - INFO - Output Data
2022-02-25 05:36:57 - MANUAL - INFO - {
"source": [
"/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4"
],
"format": "mp4",
"video": {
"codec": "hevc_qsv",
"map": 0,
"bitrate": 1953.66835,
"crf": 23,
"maxrate": null,
"bufsize": null,
"level": 0.0,
"profile": "main",
"preset": "fast",
"pix_fmt": null,
"field_order": "unknown",
"width": null,
"filter": null,
"params": null,
"framedata": null,
"title": "FHD",
"debug": "video.profile"
},
"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",
"bsf": null,
"title": "Stereo",
"debug": "universal-audio"
}
],
"subtitle": [],
"attachment": []
}
2022-02-25 05:36:57 - MANUAL - INFO - Preopts
2022-02-25 05:36:57 - MANUAL - INFO - [
"-hwaccel",
"qsv",
"-hwaccel_output_format",
"qsv",
"-vcodec",
"h264_qsv"
]
2022-02-25 05:36:57 - MANUAL - INFO - Postopts
2022-02-25 05:36:57 - MANUAL - INFO - [
"-threads",
"0",
"-metadata:g",
"encoding_tool=SMA"
]
2022-02-25 05:36:57 - MANUAL - INFO - Starting conversion.
2022-02-25 05:36:57 - MANUAL - INFO - FFmpeg command:
2022-02-25 05:36:57 - MANUAL - INFO - ======================
2022-02-25 05:36:57 - MANUAL - INFO - /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel qsv -hwaccel_output_format qsv -vcodec h264_qsv -i "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4.original" -map_metadata -1 -vcodec hevc_qsv -map 0:0 -crf 23 -metadata:s:v BPS=1953000 -metadata:s:v BPS-eng=1953000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset fast -profile:v main -tag:v hvc1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4"
2022-02-25 05:36:57 - MANUAL - INFO - ======================
2022-02-25 05:38:50 - MANUAL - INFO - Manual processor started.
2022-02-25 05:38:50 - MANUAL - INFO - Python 64-bit 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0].
2022-02-25 05:38:50 - MANUAL - INFO - Guessit version: 3.4.3.
2022-02-25 05:38:50 - MANUAL - INFO - /usr/bin/python3
2022-02-25 05:38:50 - MANUAL - INFO - Loading config file /media/data/git-clone/sickbeard_mp4_automator1/config/autoProcess.ini.
2022-02-25 05:38:50 - MANUAL - INFO - Processing file /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4
2022-02-25 05:38:56 - MANUAL - INFO - Matched movie title as: Get Out 2017-02-24 (TMDB ID: 419430)
2022-02-25 05:38:56 - MANUAL - INFO - Processing Get Out
2022-02-25 05:38:56 - MANUAL - INFO - Input Data
2022-02-25 05:38:56 - MANUAL - INFO - {
"format": "mov,mp4,m4a,3gp,3g2,mj2",
"format-fullname": "QuickTime / MOV",
"video": {
"index": 0,
"codec": "h264",
"bitrate": 2049593,
"pix_fmt": "yuv420p",
"profile": "high",
"fps": 23.97598627787307,
"framedata": {
"pix_fmt": "yuv420p",
"side_data_list": [
{
"side_data_type": "H.26[45] User Data Unregistered SEI message"
}
]
},
"dimensions": "1920x800",
"level": 4.1,
"field_order": "unknown"
},
"audio": [
{
"index": 1,
"codec": "aac",
"bitrate": 122943,
"channels": 2,
"samplerate": 48000,
"language": "eng",
"disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
}
],
"subtitle": [],
"attachment": []
}
2022-02-25 05:38:56 - MANUAL - INFO - Reading video stream.
2022-02-25 05:38:56 - MANUAL - INFO - Video codec detected: h264.
2022-02-25 05:38:56 - MANUAL - INFO - Pix Fmt: yuv420p.
2022-02-25 05:38:56 - MANUAL - INFO - Profile: high.
2022-02-25 05:38:56 - MANUAL - INFO - Video codec parameters None.
2022-02-25 05:38:56 - MANUAL - INFO - Creating hevc_qsv video stream from source stream 0.
2022-02-25 05:38:56 - MANUAL - INFO - Reading audio streams.
2022-02-25 05:38:56 - MANUAL - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2022-02-25 05:38:56 - MANUAL - INFO - Audio detected for stream 1 - aac eng 2 channel.
2022-02-25 05:38:56 - MANUAL - INFO - Creating copy audio stream from source stream 1.
2022-02-25 05:38:56 - MANUAL - INFO - Found 0 streams that can be removed from the output file since they will dupcliates [stream-codec-combinations].
2022-02-25 05:38:56 - MANUAL - INFO - Default audio stream set to eng copy 2 channel stream [default-more-channels: True].
2022-02-25 05:38:56 - MANUAL - INFO - Reading subtitle streams.
2022-02-25 05:38:56 - MANUAL - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2022-02-25 05:38:56 - MANUAL - INFO - qsv hwaccel is supported by this ffmpeg build and will be used [hwaccels].
2022-02-25 05:38:56 - MANUAL - INFO - h264_qsv decoder is also supported by this ffmpeg build and will also be used [hwaccel-decoders].
2022-02-25 05:38:56 - MANUAL - INFO - Output Data
2022-02-25 05:38:56 - MANUAL - INFO - {
"source": [
"/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4"
],
"format": "mp4",
"video": {
"codec": "hevc_qsv",
"map": 0,
"bitrate": 1953.66835,
"crf": 23,
"maxrate": null,
"bufsize": null,
"level": 0.0,
"profile": "main",
"preset": "fast",
"pix_fmt": null,
"field_order": "unknown",
"width": null,
"filter": null,
"params": null,
"framedata": null,
"title": "FHD",
"debug": "video.profile"
},
"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",
"bsf": null,
"title": "Stereo",
"debug": "universal-audio"
}
],
"subtitle": [],
"attachment": []
}
2022-02-25 05:38:56 - MANUAL - INFO - Preopts
2022-02-25 05:38:56 - MANUAL - INFO - [
"-hwaccel",
"qsv",
"-hwaccel_output_format",
"qsv",
"-vcodec",
"h264_qsv"
]
2022-02-25 05:38:56 - MANUAL - INFO - Postopts
2022-02-25 05:38:56 - MANUAL - INFO - [
"-threads",
"0",
"-metadata:g",
"encoding_tool=SMA"
]
2022-02-25 05:38:56 - MANUAL - INFO - Starting conversion.
2022-02-25 05:38:56 - MANUAL - INFO - FFmpeg command:
2022-02-25 05:38:56 - MANUAL - INFO - ======================
2022-02-25 05:38:56 - MANUAL - INFO - /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel qsv -hwaccel_output_format qsv -vcodec h264_qsv -i "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4.original" -map_metadata -1 -vcodec hevc_qsv -map 0:0 -crf 23 -metadata:s:v BPS=1953000 -metadata:s:v BPS-eng=1953000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset fast -profile:v main -tag:v hvc1 -c:a:0 copy -map 0:1 -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4"
2022-02-25 05:38:56 - MANUAL - INFO - ======================
2022-02-25 05:54:39 - MANUAL - INFO - /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4 created.
2022-02-25 05:54:39 - MANUAL - INFO - Tagging file: /media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4.
2022-02-25 05:54:45 - MANUAL - INFO - Trying to write tags.
2022-02-25 05:54:45 - MANUAL - INFO - Tags written successfully using mutagen.
2022-02-25 05:54:45 - MANUAL - INFO - Relocating MOOV atom to start of file.

and here is the ffprobe you requested...

ffprobe version 4.4.1-Jellyfin Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x560ca96db580] stream 0, timescale not set
[mjpeg @ 0x560ca98196c0] EOI missing, emulating
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/wd1/Videos/Movies/Get Out (2017)/Get Out (2017) [Bluray-1080p].mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
title : Get Out
genre : Mystery
date : 2017-02-24
encoder : SMA:Get Out (2017) [Bluray-1080p].mp4
iTunEXTC : mpaa|R|400
iTunMOVI :
: cast
: nameDaniel Kaluuya
: nameAllison Williams
: nameCatherine Keener
: nameBradley Whitford
: nameCaleb Landry Jones
:
: screenwriters
: nameJordan Peele
:
: directors
: nameJordan Peele
: nameRhona Rubio
: nameGerard DiNardi
: nameRam Paul Silbey
:
: producers
: nameTerri Taylor
: nameSean McKittrick
: nameJason Blum
: nameJordan Peele
: nameJeanette Volturno
:
:
:
hd_video : 2
media_type : 9
description : Just because you're invited, doesn't mean you're welcome.
synopsis : Chris and his girlfriend Rose go upstate to visit her parents for the weekend. At first, Chris reads the family's overly accommodating behavior as nervous attempts to deal with their daughter's interracial relationship, but as the weekend progresses, a se
Duration: 01:44:05.16, start: 0.000000, bitrate: 1095 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 1920x800 [SAR 1:1 DAR 12:5], 964 kb/s, 23.98 fps, 23.98 tbr, 13978 tbn, 23.98 tbc (default)
Metadata:
handler_name : FHD
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 122 kb/s (default)
Metadata:
handler_name : Stereo
vendor_id : [0][0][0][0]
Stream #0:2: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 2000x3000 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn, 90k tbc (attached pic)
[STREAM]
index=0
codec_name=hevc
codec_long_name=H.265 / HEVC (High Efficiency Video Coding)
profile=Main
codec_type=video
codec_tag_string=hvc1
codec_tag=0x31637668
width=1920
height=800
coded_width=1920
coded_height=800
closed_captions=0
has_b_frames=3
sample_aspect_ratio=1:1
display_aspect_ratio=12:5
pix_fmt=yuv420p
level=120
color_range=tv
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=progressive
refs=1
id=N/A
r_frame_rate=13978/583
avg_frame_rate=13978/583
time_base=1/13978
start_pts=0
start_time=0.000000
duration_ts=87293756
duration=6245.081986
bit_rate=964950
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=149732
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=und
TAG:handler_name=FHD
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=299767824
duration=6245.163000
bit_rate=122943
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=292744
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:language=eng
TAG:handler_name=Stereo
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=2
codec_name=mjpeg
codec_long_name=Motion JPEG
profile=Progressive
codec_type=video
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=2000
height=3000
coded_width=2000
coded_height=3000
closed_captions=0
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=2:3
pix_fmt=yuvj420p
level=-99
color_range=pc
color_space=bt470bg
color_transfer=unknown
color_primaries=unknown
chroma_location=center
field_order=unknown
refs=1
id=N/A
r_frame_rate=90000/1
avg_frame_rate=0/0
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=562064670
duration=6245.163000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=1
DISPOSITION:timed_thumbnails=0
[/STREAM]

@JasonMeudt
Copy link
Author

JasonMeudt commented Feb 26, 2022

@mdhiggins

And just as a quick comment on the 10Bit format transcode comment from above...

Simply changing the pix-fmt option to p010le is not the only change needed for 10bit hevc_qsv transcodes.

https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210805081910.9386-14-haihao.xiang@intel.com/

Based on this, the video filter needs "scale_qsv=format=p010" I am thinking... I will get a chance to try this out later...

@mdhiggins
Copy link
Owner

Thanks for that, looks my approach of pre-validating the pix_fmt selections before attempting conversion won't work, the help files from ffmpeg don't seem to give enough data from the decoders/encoders for that

Would be a nice win for automation if I could figure that out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants