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

[Bug] Automate to av1_qsv make 0kb file. (Using Intel Arc VGA) #347

Open
asksn0w opened this issue May 19, 2024 · 8 comments
Open

[Bug] Automate to av1_qsv make 0kb file. (Using Intel Arc VGA) #347

asksn0w opened this issue May 19, 2024 · 8 comments
Labels

Comments

@asksn0w
Copy link

asksn0w commented May 19, 2024

Current Behavior

When Using automate av1 qsv make 0kb file. even default preset name as 'AV1 QSV 2160p60 4K'.

Expected Behavior

return nomal encorded file.

Steps To Reproduce

  1. Make av1 setting like this.
  2. Automate conversion.
  3. Result 0kb.
{
    "PresetList": [
        {
            "AlignAVStart": false,
            "AudioCopyMask": [
                "copy:aac"
            ],
            "AudioEncoderFallback": "none",
            "AudioLanguageList": [],
            "AudioList": [
                {
                    "AudioBitrate": 160,
                    "AudioCompressionLevel": -1.0,
                    "AudioDitherMethod": "auto",
                    "AudioEncoder": "fdk_aac",
                    "AudioMixdown": "stereo",
                    "AudioNormalizeMixLevel": false,
                    "AudioSamplerate": "auto",
                    "AudioTrackDRCSlider": 0.0,
                    "AudioTrackGainSlider": 0.0,
                    "AudioTrackQuality": 1.0,
                    "AudioTrackQualityEnable": false
                }
            ],
            "AudioSecondaryEncoderMode": true,
            "AudioTrackSelectionBehavior": "first",
            "ChapterMarkers": true,
            "ChildrenArray": [],
            "Default": false,
            "FileFormat": "av_mkv",
            "Folder": false,
            "FolderOpen": false,
            "InlineParameterSets": false,
            "MetadataPassthrough": true,
            "Mp4iPodCompatible": false,
            "Optimize": false,
            "PictureAllowUpscaling": false,
            "PictureAutoCrop": true,
            "PictureBottomCrop": 0,
            "PictureChromaSmoothCustom": "",
            "PictureChromaSmoothPreset": "off",
            "PictureChromaSmoothTune": "none",
            "PictureColorspaceCustom": "",
            "PictureColorspacePreset": "off",
            "PictureCombDetectCustom": "",
            "PictureCombDetectPreset": "off",
            "PictureCropMode": 2,
            "PictureDARWidth": 1280,
            "PictureDeblockCustom": "strength=strong:thresh=20:blocksize=8",
            "PictureDeblockPreset": "off",
            "PictureDeblockTune": "medium",
            "PictureDeinterlaceCustom": "",
            "PictureDeinterlaceFilter": "off",
            "PictureDeinterlacePreset": "",
            "PictureDenoiseCustom": "",
            "PictureDenoiseFilter": "off",
            "PictureDenoisePreset": "",
            "PictureDenoiseTune": "none",
            "PictureDetelecine": "off",
            "PictureDetelecineCustom": "",
            "PictureForceHeight": 0,
            "PictureForceWidth": 0,
            "PictureHeight": 720,
            "PictureItuPAR": false,
            "PictureKeepRatio": true,
            "PictureLeftCrop": 0,
            "PictureModulus": 2,
            "PicturePAR": "auto",
            "PicturePARHeight": 1,
            "PicturePARWidth": 1,
            "PicturePadBottom": 0,
            "PicturePadColor": "black",
            "PicturePadLeft": 0,
            "PicturePadMode": "none",
            "PicturePadRight": 0,
            "PicturePadTop": 0,
            "PictureRightCrop": 0,
            "PictureRotate": "angle=0:hflip=0",
            "PictureSharpenCustom": "",
            "PictureSharpenFilter": "off",
            "PictureSharpenPreset": "",
            "PictureSharpenTune": "",
            "PictureTopCrop": 0,
            "PictureUseMaximumSize": true,
            "PictureWidth": 1280,
            "PresetDescription": "Intel Quick Sync Video hardware accelerated AV1 video (up to 2160p) and AAC stereo audio, in an MP4 container.",
            "PresetDisabled": false,
            "PresetName": "AV1",
            "SubtitleAddCC": false,
            "SubtitleAddForeignAudioSearch": false,
            "SubtitleAddForeignAudioSubtitle": false,
            "SubtitleBurnBDSub": false,
            "SubtitleBurnBehavior": "none",
            "SubtitleBurnDVDSub": false,
            "SubtitleLanguageList": [],
            "SubtitleTrackSelectionBehavior": "none",
            "Type": 1,
            "UsesPictureFilters": true,
            "VideoAvgBitrate": 6500,
            "VideoColorMatrixCodeOverride": 0,
            "VideoEncoder": "qsv_av1",
            "VideoFramerate": "auto",
            "VideoFramerateMode": "vfr",
            "VideoGrayScale": false,
            "VideoHWDecode": 0,
            "VideoLevel": "auto",
            "VideoMultiPass": false,
            "VideoOptionExtra": "",
            "VideoPreset": "balanced",
            "VideoProfile": "auto",
            "VideoQSVDecode": true,
            "VideoQualitySlider": 24.0,
            "VideoQualityType": 2,
            "VideoScaler": "swscale",
            "VideoTune": "",
            "VideoTurboMultiPass": false,
            "x264Option": "",
            "x264UseAdvancedOptions": false
        }
    ],
    "VersionMajor": 53,
    "VersionMicro": 0,
    "VersionMinor": 0
}

Environment

  • OS: TrueNAS SCALE

  • OS version: 24.04.0

  • CPU: x86-64

  • Docker version: -

  • Device model:
    CPU : Intel(R) Core(TM) i9-10900
    RAM : 32GB
    Watch Folder : local disk
    Output Folder : nfs shared

  • Docker env:
    INSTALL_PACKAGES=intel-media-driver mesa-va-gallium mesa-dri-gallium
    AUTOMATED_CONVERSION_INSTALL_PKGS=intel-media-driver mesa-va-gallium mesa-dri-gallium

Container creation

docker setting

Container log

------- CONVERSION OUTPUT Sun May 19 22:50:37 KST 2024 -------
[22:50:37] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[22:50:37] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[22:50:37] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[22:50:37] qsv: is available on this system
[22:50:37] hb_init: starting libhb thread
[22:50:37] thread 7f2b27f97b38 started ("libhb")
HandBrake 1.7.2 (2023122500) - Linux x86_64 - https://handbrake.fr
20 CPUs detected
Opening /watch/your_desssert/your_desssert_Chaturbate_20240519-200922.mkv...
[22:50:37] CPU: Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz
[22:50:37]  - Intel microarchitecture Comet Lake
[22:50:37]  - logical processor count: 20
[22:50:37] Intel Quick Sync Video support: yes
[22:50:37] Intel Quick Sync Video discrete adapter with index 0 and renderD128
[22:50:37] Impl mfx-gen library path: /usr/lib/libmfx-gen.so.1.2.9
[22:50:37]  - Intel Media SDK hardware: API 2.9 (minimum: 1.3)
[22:50:37]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[22:50:37]  - H.264 encoder: no
[22:50:37]  - H.265 encoder: no
[22:50:37]  - AV1 encoder: yes (8bit: yes, 10bit: yes)
[22:50:37]     - preferred implementation: hardware (any) via ANY
[22:50:37]     - capabilities (hardware):  lowpower bpyramid vsinfo masteringinfo cllinfo opt1 av1bitstream
[22:50:37] hb_scan: path=/watch/1.mkv, title_index=1
Input #0, matroska,webm, from '/watch/1.mkv':
  Metadata:
    ENCODER         : Lavf59.27.100
  Duration: 00:13:54.05, start: 0.000000, bitrate: 3005 kb/s
  Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn
    Metadata:
      DURATION        : 00:13:54.041000000
  Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      DURATION        : 00:13:54.048000000
[22:50:37] scan: decoding previews for title 1
[22:50:37] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Unknown (AAC LC, 2.0 ch)
[22:50:37] using container PAR 1:1
[22:50:37] scan: 10 previews, 1280x720, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[22:50:37] scan: supported video decoders: avcodec qsv
[22:50:37] libhb: scan thread found 1 valid title(s)
+ Using preset: AV1 QSV 2160p 4K
+ title 1:
  + stream: /watch/1.mkv
  + duration: 00:13:54
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 30.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:13:54
  + audio tracks:
    + 1, Unknown (AAC LC, 2.0 ch) (iso639-2: und)
  + subtitle tracks:
[22:50:37] Starting work at: Sun May 19 22:50:37 2024

[22:50:37] 1 job(s) to process
[22:50:37] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "none"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 13,
                    "Seconds": 54,
                    "Ticks": 75064320
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/output/.dQzPm2/1.mkv",
        "InlineParameterSets": false,
        "Mux": "mkv",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 10,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 19,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "/watch/1.mkv",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "qsv_av1_10bit",
        "HardwareDecode": 0,
        "Level": "auto",
        "MultiPass": false,
        "Options": "",
        "Preset": "speed",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": true
        },
        "Quality": 24.0,
        "Tune": "",
        "Turbo": false
    }
}
[22:50:37] qsv: discrete qsv adapter with index 0 has been selected
[22:50:37] Starting Task: Encoding Pass
[22:50:37] work: skipping crop/scale filter
[22:50:37] job configuration:
[22:50:37]  * source
[22:50:37]    + /watch/1.mkv
[22:50:37]    + title 1, chapter(s) 1 to 1
[22:50:37]    + container: matroska,webm
[22:50:37]    + data rate: 3005 kbps
[22:50:37]  * destination
[22:50:37]    + /output/.dQzPm2/1.mkv
[22:50:37]    + container: Matroska (libavformat)
[22:50:37]  * video track
[22:50:37]    + decoder: h264_qsv 8-bit (yuv420p)
[22:50:37]    + filters
[22:50:37]      + Framerate Shaper (mode=0)
[22:50:37]        + frame rate: same as source (around 30.000 fps)
[22:50:37]      + Format (format=p010le)
[22:50:37]    + Output geometry
[22:50:37]      + storage dimensions: 1280 x 720
[22:50:37]      + pixel aspect ratio: 1 : 1
[22:50:37]      + display dimensions: 1280 x 720
[22:50:37]    + encoder: AV1 10-bit (Intel Media SDK)
[22:50:37]      + preset:  speed
[22:50:37]      + profile: auto
[22:50:37]      + level:   auto
[22:50:37]      + quality: 24.00 (QP)
[22:50:37]      + color profile: 1-1-1
[22:50:37]      + chroma location: left
[22:50:37]  * audio track 1
[22:50:37]    + decoder: Unknown (AAC LC, 2.0 ch) (track 1, id 0x1)
[22:50:37]      + samplerate: 48000 Hz
[22:50:37]    + mixdown: Stereo
[22:50:37]    + encoder: AAC (libfdk_aac)
[22:50:37]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:50:37] sync: expecting 25021 video frames
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[22:50:37] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[22:50:37] encqsvInit: using encode-only via system memory (LowPower) path
[22:50:37] encqsvInit: AV1 Main profile @ level 3.1
[22:50:37] encqsvInit: TargetUsage 7 AsyncDepth 6
[22:50:37] encqsvInit: GopRefDist 8 GopPicSize 64 NumRefFrame 4 IdrInterval 0
[22:50:37] encqsvInit: BFramesMax 7 BRefType pyramid
[22:50:37] encqsvInit: RateControlMethod CQP with QPI 24 QPP 26 QPB 28
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0

Container inspect

No response

Anything else?

The Truenas make log

Enter and option from 1-9: [12635.851455] HandbrakeCLI[1860904] : segfault at 7fdd6472d00 ip 00007fdd6b11f575 sp ....
[12635.851455] Code: 48 ff c1 eb f3 c3 48 83 fa ...
[12635.851455] Process 1304(HandBrakeCLI) has RLIMIT_CORE set to 1
[12635.851455] Aborting core
@asksn0w asksn0w added the bug label May 19, 2024
@asksn0w
Copy link
Author

asksn0w commented May 22, 2024

When HandbrakeCLI with av1 qsv preset then Segmentation fault

I think docker image has no intel arc driver.

Here is my full conversion log

/tmp # /usr/bin/HandBrakeCLI -i /watch/sample_1280x720_surfing_with_audio.mkv  -o /output/test.mkv --preset-import-file /config/ghb/presets.json -Z AV1
  --enable-qsv-decoding
[05:59:43] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[05:59:43] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[05:59:43] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[05:59:43] qsv: is available on this system
[05:59:43] hb_init: starting libhb thread
[05:59:43] thread 15191ffc1b38 started ("libhb")
HandBrake 1.7.3 (2024030500) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening /watch/sample_1280x720_surfing_with_audio.mkv...
[05:59:43] CPU: Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz
[05:59:43]  - Intel microarchitecture Comet Lake
[05:59:43]  - logical processor count: 4
[05:59:43] Intel Quick Sync Video support: yes
[05:59:43] Intel Quick Sync Video discrete adapter with index 0 and renderD128
[05:59:43] Impl mfx-gen library path: /usr/lib/libmfx-gen.so.1.2.9
[05:59:43]  - Intel Media SDK hardware: API 2.9 (minimum: 1.3)
[05:59:43]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[05:59:43]  - H.264 encoder: yes
[05:59:43]     - preferred implementation: hardware (any) via ANY
[05:59:43]     - capabilities (hardware):  lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[05:59:43]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[05:59:43]     - preferred implementation: hardware (any) via ANY
[05:59:43]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[05:59:43]  - AV1 encoder: yes (8bit: yes, 10bit: yes)
[05:59:43]     - preferred implementation: hardware (any) via ANY
[05:59:43]     - capabilities (hardware):  lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1 av1bitstream
[05:59:43] hb_scan: path=/watch/sample_1280x720_surfing_with_audio.mkv, title_index=1
Input #0, matroska,webm, from '/watch/sample_1280x720_surfing_with_audio.mkv':
  Metadata:
    COMPATIBLE_BRANDS: isomiso2avc1mp41
    MAJOR_BRAND     : mp42
    MINOR_VERSION   : 512
    ENCODER         : Lavf58.45.100
  Duration: 00:03:03.13, start: 0.000000, bitrate: 3111 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      HANDLER_NAME    : VideoHandler
      ENCODER         : Lavc58.91.100 libx264
      DURATION        : 00:03:03.061000000
  Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)
    Metadata:
      HANDLER_NAME    : Stereo
      ENCODER         : Lavc58.91.100 libvorbis
      DURATION        : 00:03:03.129000000
[05:59:43] scan: decoding previews for title 1
[05:59:43] scan: audio 0x1: vorbis, rate=48000Hz, bitrate=1 English (Vorbis, 2.0 ch)
[05:59:43] using container PAR 1:1
[05:59:43] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[05:59:43] scan: supported video decoders: avcodec qsv
[05:59:43] libhb: scan thread found 1 valid title(s)
+ Using preset: AV1
+ title 1:
  + stream: /watch/sample_1280x720_surfing_with_audio.mkv
  + duration: 00:03:03
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:03:03
  + audio tracks:
    + 1, English (Vorbis, 2.0 ch) (iso639-2: eng)
  + subtitle tracks:
[05:59:43] Starting work at: Wed May 22 05:59:43 2024

[05:59:43] 1 job(s) to process
[05:59:43] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "none"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 3,
                    "Ticks": 16481610
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/output/test.mkv",
        "InlineParameterSets": false,
        "Mux": "mkv",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 10,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 19,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "/watch/sample_1280x720_surfing_with_audio.mkv",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "qsv_av1",
        "HardwareDecode": 0,
        "Level": "auto",
        "MultiPass": false,
        "Options": "",
        "Preset": "balanced",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": true
        },
        "Quality": 24.0,
        "Tune": "",
        "Turbo": false
    }
}
[05:59:43] qsv: discrete qsv adapter with index 0 has been selected
[05:59:43] Starting Task: Encoding Pass
[05:59:43] work: skipping crop/scale filter
[05:59:43] job configuration:
[05:59:43]  * source
[05:59:43]    + /watch/sample_1280x720_surfing_with_audio.mkv
[05:59:43]    + title 1, chapter(s) 1 to 1
[05:59:43]    + container: matroska,webm
[05:59:43]    + data rate: 3111 kbps
[05:59:43]  * destination
[05:59:43]    + /output/test.mkv
[05:59:43]    + container: Matroska (libavformat)
[05:59:43]  * video track
[05:59:43]    + decoder: h264_qsv 8-bit (yuv420p)
[05:59:43]    + filters
[05:59:43]      + Framerate Shaper (mode=0)
[05:59:43]        + frame rate: same as source (around 23.976 fps)
[05:59:43]      + Format (format=nv12)
[05:59:43]    + Output geometry
[05:59:43]      + storage dimensions: 1280 x 720
[05:59:43]      + pixel aspect ratio: 1 : 1
[05:59:43]      + display dimensions: 1280 x 720
[05:59:43]    + encoder: AV1 (Intel Media SDK)
[05:59:43]      + preset:  balanced
[05:59:43]      + profile: auto
[05:59:43]      + level:   auto
[05:59:43]      + quality: 24.00 (ICQ)
[05:59:43]      + color profile: 1-1-1
[05:59:43]      + chroma location: left
[05:59:43]  * audio track 1
[05:59:43]    + decoder: English (Vorbis, 2.0 ch) (track 1, id 0x1)
[05:59:43]      + samplerate: 48000 Hz
[05:59:43]    + mixdown: Stereo
[05:59:43]    + encoder: AAC (libfdk_aac)
[05:59:43]      + bitrate: 160 kbps, samplerate: 48000 Hz
[05:59:43] sync: expecting 4390 video frames
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[05:59:43] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[05:59:43] encqsvInit: using encode-only via system memory (LowPower) path
[05:59:43] encqsvInit: AV1 Main profile @ level 3.1
[05:59:43] encqsvInit: TargetUsage 4 AsyncDepth 6
[05:59:43] encqsvInit: GopRefDist 8 GopPicSize 48 NumRefFrame 4 IdrInterval 0
[05:59:43] encqsvInit: BFramesMax 7 BRefType pyramid
[05:59:43] encqsvInit: RateControlMethod ICQ ICQQuality 24
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
Segmentation fault

@asksn0w asksn0w changed the title [Bug] Automate to av1_qsv make 0kb file. [Bug] Automate to av1_qsv make 0kb file. (Using Intel Arc VGA) May 22, 2024
@TNFB
Copy link

TNFB commented Jul 11, 2024

Hey !
I was confronted to this problem for at least 2 weeks from now. I did my little investigation and found out some problems.
First, I can confirm that Intel Arc drivers are present. I have an Arc A310 and it's correctly used by Handbrake for AV1 encoding.
Second, I think there's a bug with the h264_qsv decoder. I've tried with many files and codecs, and the only file who return an error was the one encoded in x264 8bit. All my files with x265 or x264 10 bit passed correctly.
So I've decided to get rid off the hardware decoder by passing the option --disable-hw-decoding in the AUTOMATED_CONVERSION_HANDBRAKE_CUSTOM_ARGS envvar (this option is mentionned in the online docs of HandbrakeCLI. But unfortunaly this option is false and the right one is --disable-qsv-decoding.
After passing this opt in the envvar mentionned above, the problem never came back. It uses the software decoder but i guess it works at least...
Tell me if it works for you !
Have a great day

@johnvick
Copy link

Works here for encoding 264 to 265 using QSV AUTOMATED_CONVERSION/watch folder method. Thanks for this, I have spent hours trying to solve this without success.

@TNFB
Copy link

TNFB commented Jul 22, 2024

Works here for encoding 264 to 265 using QSV AUTOMATED_CONVERSION/watch folder method. Thanks for this, I have spent hours trying to solve this without success.

I'm glad that works for you ! Happy encoding

@Vibes1573
Copy link

Vibes1573 commented Jul 22, 2024

I also have this error, but h265_qsv and h264_qsv. I've rebooted my device, recreated the container several times, but still coming stuck. I apprichate the workaround provided above, but Software Encoding would take a long time and take a lot of resource.

handbrake-1  | [init        ] container is starting...
handbrake-1  | [cont-env    ] loading container environment variables...
handbrake-1  | [cont-env    ] APP_NAME: loading...
handbrake-1  | [cont-env    ] APP_VERSION: loading...
handbrake-1  | [cont-env    ] DISPLAY: executing...
handbrake-1  | [cont-env    ] DISPLAY: terminated successfully.
handbrake-1  | [cont-env    ] DISPLAY: loading...
handbrake-1  | [cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
handbrake-1  | [cont-env    ] DOCKER_IMAGE_VERSION: loading...
handbrake-1  | [cont-env    ] EGL_LOG_LEVEL: executing...
handbrake-1  | [cont-env    ] EGL_LOG_LEVEL: terminated successfully.
handbrake-1  | [cont-env    ] EGL_LOG_LEVEL: loading...
handbrake-1  | [cont-env    ] GSK_RENDERER: executing...
handbrake-1  | [cont-env    ] GSK_RENDERER: terminated successfully.
handbrake-1  | [cont-env    ] GSK_RENDERER: loading...
handbrake-1  | [cont-env    ] GTK2_RC_FILES: executing...
handbrake-1  | [cont-env    ] GTK2_RC_FILES: terminated successfully.
handbrake-1  | [cont-env    ] GTK2_RC_FILES: loading...
handbrake-1  | [cont-env    ] GTK_THEME: executing...
handbrake-1  | [cont-env    ] GTK_THEME: terminated successfully.
handbrake-1  | [cont-env    ] GTK_THEME: loading...
handbrake-1  | [cont-env    ] HOME: loading...
handbrake-1  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: executing...
handbrake-1  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: terminated successfully.
handbrake-1  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: not setting variable.
handbrake-1  | [cont-env    ] LIBGL_DRIVERS_PATH: executing...
handbrake-1  | [cont-env    ] LIBGL_DRIVERS_PATH: terminated successfully.
handbrake-1  | [cont-env    ] LIBGL_DRIVERS_PATH: loading...
handbrake-1  | [cont-env    ] PULSE_CONFIG_PATH: executing...
handbrake-1  | [cont-env    ] PULSE_CONFIG_PATH: terminated successfully.
handbrake-1  | [cont-env    ] PULSE_CONFIG_PATH: not setting variable.
handbrake-1  | [cont-env    ] PULSE_COOKIE: executing...
handbrake-1  | [cont-env    ] PULSE_COOKIE: terminated successfully.
handbrake-1  | [cont-env    ] PULSE_COOKIE: not setting variable.
handbrake-1  | [cont-env    ] PULSE_SERVER: executing...
handbrake-1  | [cont-env    ] PULSE_SERVER: terminated successfully.
handbrake-1  | [cont-env    ] PULSE_SERVER: not setting variable.
handbrake-1  | [cont-env    ] QT_STYLE_OVERRIDE: executing...
handbrake-1  | [cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
handbrake-1  | [cont-env    ] QT_STYLE_OVERRIDE: loading...
handbrake-1  | [cont-env    ] SUP_GROUP_IDS_INTERNAL: executing...
handbrake-1  | [cont-env    ] SUP_GROUP_IDS_INTERNAL: terminated successfully.
handbrake-1  | [cont-env    ] SUP_GROUP_IDS_INTERNAL: loading...
handbrake-1  | [cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
handbrake-1  | [cont-env    ] XDG_CACHE_HOME: loading...
handbrake-1  | [cont-env    ] XDG_CONFIG_HOME: loading...
handbrake-1  | [cont-env    ] XDG_DATA_HOME: loading...
handbrake-1  | [cont-env    ] XDG_RUNTIME_DIR: loading...
handbrake-1  | [cont-env    ] XDG_STATE_HOME: loading...
handbrake-1  | [cont-env    ] container environment variables initialized.
handbrake-1  | [cont-secrets] loading container secrets...
handbrake-1  | [cont-secrets] container secrets loaded.
handbrake-1  | [cont-init   ] executing container initialization scripts...
handbrake-1  | [cont-init   ] 10-certs.sh: executing...
handbrake-1  | [cont-init   ] 10-certs.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-check-app-niceness.sh: executing...
handbrake-1  | [cont-init   ] 10-check-app-niceness.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-clean-logmonitor-states.sh: executing...
handbrake-1  | [cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-clean-tmp-dir.sh: executing...
handbrake-1  | [cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-fontconfig-cache-dir.sh: executing...
handbrake-1  | [cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-init-users.sh: executing...
handbrake-1  | [cont-init   ] 10-init-users.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-nginx.sh: executing...
handbrake-1  | [cont-init   ] 10-nginx.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-openbox.sh: executing...
handbrake-1  | [cont-init   ] 10-openbox.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-pkgs-mirror.sh: executing...
handbrake-1  | [cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-pulse.sh: executing...
handbrake-1  | [cont-init   ] 10-pulse.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-set-tmp-dir-perms.sh: executing...
handbrake-1  | [cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-vnc-password.sh: executing...
handbrake-1  | [cont-init   ] 10-vnc-password.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-web-data.sh: executing...
handbrake-1  | [cont-init   ] 10-web-data.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-webauth.sh: executing...
handbrake-1  | [cont-init   ] 10-webauth.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-x11-unix.sh: executing...
handbrake-1  | [cont-init   ] 10-x11-unix.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-xdg-runtime-dir.sh: executing...
handbrake-1  | [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 15-cjk-font.sh: executing...
handbrake-1  | [cont-init   ] 15-cjk-font.sh: terminated successfully.
handbrake-1  | [cont-init   ] 15-install-pkgs.sh: executing...
handbrake-1  | [cont-init   ] 15-install-pkgs.sh: terminated successfully.
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: executing...
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: looking for usable optical drives...
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: no usable optical drive found.
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: terminated successfully.
handbrake-1  | [cont-init   ] 54-check-qsv.sh: executing...
handbrake-1  | [cont-init   ] 54-check-qsv.sh: Processor: Intel(R) N100
handbrake-1  | [cont-init   ] 54-check-qsv.sh: Microarchitecture: INTEL_ADL
handbrake-1  | [cont-init   ] 54-check-qsv.sh: Kernel: 6.1.0-23-amd64
handbrake-1  | [cont-init   ] 54-check-qsv.sh: terminated successfully.
handbrake-1  | [cont-init   ] 54-check-trash-dir.sh: executing...
handbrake-1  | [cont-init   ] 54-check-trash-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 55-handbrake.sh: executing...
handbrake-1  | [cont-init   ] 55-handbrake.sh: core dump file location: core
handbrake-1  | [cont-init   ] 55-handbrake.sh: core dump file size: unlimited (blocks)
handbrake-1  | [cont-init   ] 55-handbrake.sh: terminated successfully.
handbrake-1  | [cont-init   ] 85-take-config-ownership.sh: executing...
handbrake-1  | [cont-init   ] 85-take-config-ownership.sh: terminated successfully.
handbrake-1  | [cont-init   ] 89-info.sh: executing...
handbrake-1  |     ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
handbrake-1  |     │                                                                      │
handbrake-1  |     │ Application:           HandBrake                                     │
handbrake-1  |     │ Application Version:   1.8.1                                         │
handbrake-1  |     │ Docker Image Version:  24.06.1                                       │
handbrake-1  |     │ Docker Image Platform: linux/amd64                                   │
handbrake-1  |     │                                                                      │
handbrake-1  |     ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
handbrake-1  | [cont-init   ] 89-info.sh: terminated successfully.
handbrake-1  | [cont-init   ] all container initialization scripts executed.
handbrake-1  | [init        ] giving control to process supervisor.
handbrake-1  | [supervisor  ] loading services...
handbrake-1  | [supervisor  ] loading service 'default'...
handbrake-1  | [supervisor  ] loading service 'app'...
handbrake-1  | [supervisor  ] loading service 'gui'...
handbrake-1  | [supervisor  ] loading service 'nginx'...
handbrake-1  | [supervisor  ] loading service 'webauth'...
handbrake-1  | [supervisor  ] service 'webauth' is disabled.
handbrake-1  | [supervisor  ] loading service 'certsmonitor'...
handbrake-1  | [supervisor  ] service 'certsmonitor' is disabled.
handbrake-1  | [supervisor  ] loading service 'xvnc'...
handbrake-1  | [supervisor  ] loading service 'audiorecorder'...
handbrake-1  | [supervisor  ] service 'audiorecorder' is disabled.
handbrake-1  | [supervisor  ] loading service 'xcompmgr'...
handbrake-1  | [supervisor  ] loading service 'openbox'...
handbrake-1  | [supervisor  ] loading service 'pulseaudio'...
handbrake-1  | [supervisor  ] service 'pulseaudio' is disabled.
handbrake-1  | [supervisor  ] loading service 'logmonitor'...
handbrake-1  | [supervisor  ] service 'logmonitor' is disabled.
handbrake-1  | [supervisor  ] loading service 'logrotate'...
handbrake-1  | [supervisor  ] loading service 'autovideoconverter'...
handbrake-1  | [supervisor  ] all services loaded.
handbrake-1  | [supervisor        ] starting services...
handbrake-1  | [supervisor        ] starting service 'xvnc'...
handbrake-1  | [xvnc              ] Xvnc TigerVNC 1.13.1 - built Jun 29 2024 04:33:24
handbrake-1  | [xvnc              ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
handbrake-1  | [xvnc              ] See https://www.tigervnc.org for information on TigerVNC.
handbrake-1  | [xvnc              ] Underlying X server release 12014000
handbrake-1  | [xvnc              ] Mon Jul 22 13:53:57 2024
handbrake-1  | [xvnc              ]  vncext:      VNC extension running!
handbrake-1  | [xvnc              ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
handbrake-1  | [xvnc              ]  vncext:      Listening for VNC connections on all interface(s), port 5900
handbrake-1  | [xvnc              ]  vncext:      created VNC server for screen 0
handbrake-1  | [supervisor        ] starting service 'nginx'...
handbrake-1  | [nginx             ] Listening for HTTP connections on port 5800.
handbrake-1  | [supervisor        ] starting service 'openbox'...
handbrake-1  | [supervisor        ] starting service 'xcompmgr'...
handbrake-1  | [supervisor        ] starting service 'app'...
handbrake-1  | [supervisor        ] starting service 'autovideoconverter'...
handbrake-1  | [logrotate         ] warning: Potentially dangerous mode on /opt/base/etc/logrotate.conf: 0666
handbrake-1  | [logrotate         ] error: Ignoring /opt/base/etc/logrotate.conf because it is writable by group or others.
handbrake-1  | [autovideoconverter] Processing watch folder '/watch'...
handbrake-1  | [autovideoconverter] Waiting 5 seconds before processing '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts'...
handbrake-1  | [supervisor        ] all services started.
handbrake-1  | [autovideoconverter] Starting conversion of '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts' (e8c2c25dafe44bcc7cb34e1988a7db15) using preset 'Hardware/H.265 QSV 1080p'...
handbrake-1  | [autovideoconverter] 1 title(s) to process.
handbrake-1  | [autovideoconverter] Conversion ended successfully.
handbrake-1  | [autovideoconverter] Removing '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts'...
handbrake-1  | [autovideoconverter] Removed '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts'.
handbrake-1  | [autovideoconverter] Watch folder '/watch' processing terminated.
handbrake-1  | [autovideoconverter] Change detected in watch folder '/watch'.
handbrake-1  | [autovideoconverter] Processing watch folder '/watch'...
handbrake-1  | [autovideoconverter] Waiting 5 seconds before processing '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.mp4'...
handbrake-1  | [autovideoconverter] ERROR: Could not identify titles in '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.mp4' (ccf1f7fc12216277c7a0fd5bbf296557).
handbrake-1  | [autovideoconverter] Conversion failed.
handbrake-1  | [autovideoconverter] For more details about the failure, see /config/log/hb/conversion.log.
handbrake-1  | [autovideoconverter] Watch folder '/watch' processing terminated.
------- CONVERSION OUTPUT Mon Jul 22 14:45:33 UTC 2024 -------
[14:45:33] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:33] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:33] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:33] qsv: is available on this system
[14:45:33] hb_init: starting libhb thread
[14:45:33] thread 7f263f618b30 started ("libhb")
HandBrake 1.8.1 (2024063000) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts...
[14:45:33] CPU: Intel(R) N100
[14:45:33]  - logical processor count: 4
[14:45:33] Intel Quick Sync Video support: yes
[14:45:33] Intel Quick Sync Video integrated adapter with index 0 and renderD128
[14:45:33] Impl mfx-gen library path: /usr/lib/libmfx-gen.so.1.2.10
[14:45:33]  - Intel Media SDK hardware: API 2.10 (minimum: 1.3)
[14:45:33]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[14:45:33]  - H.264 encoder: yes
[14:45:33]     - preferred implementation: hardware (any) via ANY
[14:45:33]     - capabilities (hardware):  lowpower breftype vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[14:45:33]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[14:45:33]     - preferred implementation: hardware (any) via ANY
[14:45:33]     - capabilities (hardware):  lowpower bpyramid vsinfo masteringinfo cllinfo opt1
[14:45:33]  - AV1 encoder: no
[14:45:33] hb_scan: path=/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[14:45:33] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[14:45:33] dvd: not a dvd - trying as a stream/file instead
[14:45:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:45:33] Found the following PIDS
[14:45:33]     Video PIDS : 
[14:45:33]       0x100 type H.264 (0x1b) (PCR)
[14:45:33]     Audio PIDS : 
[14:45:33]       0x101 type AAC (0xf)
[14:45:33]     Subtitle PIDS : 
[14:45:33]     Other PIDS : 
[14:45:33] stream id 0x101 (type 0xf substream 0x0) audio 0x101
[14:45:33] scan: decoding previews for title 1
[14:45:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:45:33] scan: audio 0x101: aac, rate=48000Hz, bitrate=128250 Unknown (AAC LC, 2.0 ch, 128 kbps)

Scanning title 1 of 1, preview 6, 60.00 %[14:45:33] stream: 150 good frames, 0 errors (0%)
[14:45:33] using bitstream PAR 1:1
[14:45:33] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[14:45:33] scan: supported video decoders: avcodec qsv
[14:45:33] libhb: scan thread found 1 valid title(s)
+ Using preset: H.264 QSV 1080p
+ title 1:
  + stream: /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts
  + duration: 01:55:14
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 01:55:14
  + audio tracks:
    + 1, Unknown (AAC LC, 2.0 ch, 128 kbps) (iso639-2: und)
  + subtitle tracks:
[14:45:33] Starting work at: Mon Jul 22 14:45:33 2024

[14:45:33] 1 job(s) to process
[14:45:33] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "none"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 1,
                    "Minutes": 55,
                    "Seconds": 14,
                    "Ticks": 622291719
                },
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "/output/.z7rDef/The Snapper 2024_07_21_23_00_00.mp4",
        "InlineParameterSets": false,
        "Mux": "m4v",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 11,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 20,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "qsv_h264",
        "HardwareDecode": 0,
        "Level": "auto",
        "MultiPass": false,
        "Options": "",
        "Preset": "balanced",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": true
        },
        "Quality": 15.0,
        "Tune": "",
        "Turbo": false
    }
}
[14:45:33] qsv: integrated qsv adapter with index 0 has been selected
[14:45:33] Starting Task: Encoding Pass
[14:45:33] work: skipping crop/scale filter
[14:45:33] job configuration:
[14:45:33]  * source
[14:45:33]    + /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts
[14:45:33]    + title 1, chapter(s) 1 to 1
[14:45:33]  * destination
[14:45:33]    + /output/.z7rDef/The Snapper 2024_07_21_23_00_00.mp4
[14:45:33]    + container: MPEG-4 (libavformat)
[14:45:33]  * video track
[14:45:33]    + decoder: h264_qsv 8-bit (yuv420p)
[14:45:33]      + bitrate 200 kbps
[14:45:33]    + filters
[14:45:33]      + Framerate Shaper (mode=0)
[14:45:33]        + frame rate: same as source (around 25.000 fps)
[14:45:33]      + Format (format=nv12)
[14:45:33]    + Output geometry
[14:45:33]      + storage dimensions: 1920 x 1080
[14:45:33]      + pixel aspect ratio: 1 : 1
[14:45:33]      + display dimensions: 1920 x 1080
[14:45:33]    + encoder: H.264 (Intel Media SDK)
[14:45:33]      + preset:  balanced
[14:45:33]      + profile: auto
[14:45:33]      + level:   auto
[14:45:33]      + quality: 15.00 (QP)
[14:45:33]      + color profile: 1-1-1
[14:45:33]      + color range: tv
[14:45:33]      + chroma location: left
[14:45:33]  * audio track 1
[14:45:33]    + decoder: Unknown (AAC LC, 2.0 ch, 128 kbps) (track 1, id 0x101)
[14:45:33]      + bitrate: 128 kbps, samplerate: 48000 Hz
[14:45:33]    + mixdown: Stereo
[14:45:33]    + encoder: AAC (libfdk_aac)
[14:45:33]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:45:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:45:33] sync: expecting 172858 video frames
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:34] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:34] Unknown Header.BufferId=1347637059
[14:45:34] encqsvInit: using encode-only via system memory path
[14:45:34] encqsvInit: H.264/AVC High profile @ level 4.0
[14:45:34] encqsvInit: TargetUsage 4 AsyncDepth 6
[14:45:34] encqsvInit: GopRefDist 4 GopPicSize 51 NumRefFrame 3 IdrInterval 0
[14:45:34] encqsvInit: BFramesMax 3 BRefType pyramid
[14:45:34] encqsvInit: RateControlMethod CQP with QPI 15 QPP 17 QPB 19
[h264_qsv @ 0x7f263f493c00] Invalid pkt_timebase, passing timestamps as-is.
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0

@johnvick
Copy link

The workaround uses software decoding of the source then hardware encoding. So it uses a little more CPU but not much. Converting a 264 to 265 using this method on my i7 Iris XE graphics I get 80 fps. Intel-gpu-top confirms the hardware encoding.

@TNFB
Copy link

TNFB commented Jul 23, 2024

I also have this error, but h265_qsv and h264_qsv. I've rebooted my device, recreated the container several times, but still coming stuck. I apprichate the workaround provided above, but Software Encoding would take a long time and take a lot of resource.

handbrake-1  | [init        ] container is starting...
handbrake-1  | [cont-env    ] loading container environment variables...
handbrake-1  | [cont-env    ] APP_NAME: loading...
handbrake-1  | [cont-env    ] APP_VERSION: loading...
handbrake-1  | [cont-env    ] DISPLAY: executing...
handbrake-1  | [cont-env    ] DISPLAY: terminated successfully.
handbrake-1  | [cont-env    ] DISPLAY: loading...
handbrake-1  | [cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
handbrake-1  | [cont-env    ] DOCKER_IMAGE_VERSION: loading...
handbrake-1  | [cont-env    ] EGL_LOG_LEVEL: executing...
handbrake-1  | [cont-env    ] EGL_LOG_LEVEL: terminated successfully.
handbrake-1  | [cont-env    ] EGL_LOG_LEVEL: loading...
handbrake-1  | [cont-env    ] GSK_RENDERER: executing...
handbrake-1  | [cont-env    ] GSK_RENDERER: terminated successfully.
handbrake-1  | [cont-env    ] GSK_RENDERER: loading...
handbrake-1  | [cont-env    ] GTK2_RC_FILES: executing...
handbrake-1  | [cont-env    ] GTK2_RC_FILES: terminated successfully.
handbrake-1  | [cont-env    ] GTK2_RC_FILES: loading...
handbrake-1  | [cont-env    ] GTK_THEME: executing...
handbrake-1  | [cont-env    ] GTK_THEME: terminated successfully.
handbrake-1  | [cont-env    ] GTK_THEME: loading...
handbrake-1  | [cont-env    ] HOME: loading...
handbrake-1  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: executing...
handbrake-1  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: terminated successfully.
handbrake-1  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: not setting variable.
handbrake-1  | [cont-env    ] LIBGL_DRIVERS_PATH: executing...
handbrake-1  | [cont-env    ] LIBGL_DRIVERS_PATH: terminated successfully.
handbrake-1  | [cont-env    ] LIBGL_DRIVERS_PATH: loading...
handbrake-1  | [cont-env    ] PULSE_CONFIG_PATH: executing...
handbrake-1  | [cont-env    ] PULSE_CONFIG_PATH: terminated successfully.
handbrake-1  | [cont-env    ] PULSE_CONFIG_PATH: not setting variable.
handbrake-1  | [cont-env    ] PULSE_COOKIE: executing...
handbrake-1  | [cont-env    ] PULSE_COOKIE: terminated successfully.
handbrake-1  | [cont-env    ] PULSE_COOKIE: not setting variable.
handbrake-1  | [cont-env    ] PULSE_SERVER: executing...
handbrake-1  | [cont-env    ] PULSE_SERVER: terminated successfully.
handbrake-1  | [cont-env    ] PULSE_SERVER: not setting variable.
handbrake-1  | [cont-env    ] QT_STYLE_OVERRIDE: executing...
handbrake-1  | [cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
handbrake-1  | [cont-env    ] QT_STYLE_OVERRIDE: loading...
handbrake-1  | [cont-env    ] SUP_GROUP_IDS_INTERNAL: executing...
handbrake-1  | [cont-env    ] SUP_GROUP_IDS_INTERNAL: terminated successfully.
handbrake-1  | [cont-env    ] SUP_GROUP_IDS_INTERNAL: loading...
handbrake-1  | [cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
handbrake-1  | [cont-env    ] XDG_CACHE_HOME: loading...
handbrake-1  | [cont-env    ] XDG_CONFIG_HOME: loading...
handbrake-1  | [cont-env    ] XDG_DATA_HOME: loading...
handbrake-1  | [cont-env    ] XDG_RUNTIME_DIR: loading...
handbrake-1  | [cont-env    ] XDG_STATE_HOME: loading...
handbrake-1  | [cont-env    ] container environment variables initialized.
handbrake-1  | [cont-secrets] loading container secrets...
handbrake-1  | [cont-secrets] container secrets loaded.
handbrake-1  | [cont-init   ] executing container initialization scripts...
handbrake-1  | [cont-init   ] 10-certs.sh: executing...
handbrake-1  | [cont-init   ] 10-certs.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-check-app-niceness.sh: executing...
handbrake-1  | [cont-init   ] 10-check-app-niceness.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-clean-logmonitor-states.sh: executing...
handbrake-1  | [cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-clean-tmp-dir.sh: executing...
handbrake-1  | [cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-fontconfig-cache-dir.sh: executing...
handbrake-1  | [cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-init-users.sh: executing...
handbrake-1  | [cont-init   ] 10-init-users.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-nginx.sh: executing...
handbrake-1  | [cont-init   ] 10-nginx.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-openbox.sh: executing...
handbrake-1  | [cont-init   ] 10-openbox.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-pkgs-mirror.sh: executing...
handbrake-1  | [cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-pulse.sh: executing...
handbrake-1  | [cont-init   ] 10-pulse.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-set-tmp-dir-perms.sh: executing...
handbrake-1  | [cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-vnc-password.sh: executing...
handbrake-1  | [cont-init   ] 10-vnc-password.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-web-data.sh: executing...
handbrake-1  | [cont-init   ] 10-web-data.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-webauth.sh: executing...
handbrake-1  | [cont-init   ] 10-webauth.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-x11-unix.sh: executing...
handbrake-1  | [cont-init   ] 10-x11-unix.sh: terminated successfully.
handbrake-1  | [cont-init   ] 10-xdg-runtime-dir.sh: executing...
handbrake-1  | [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 15-cjk-font.sh: executing...
handbrake-1  | [cont-init   ] 15-cjk-font.sh: terminated successfully.
handbrake-1  | [cont-init   ] 15-install-pkgs.sh: executing...
handbrake-1  | [cont-init   ] 15-install-pkgs.sh: terminated successfully.
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: executing...
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: looking for usable optical drives...
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: no usable optical drive found.
handbrake-1  | [cont-init   ] 54-check-optical-drive.sh: terminated successfully.
handbrake-1  | [cont-init   ] 54-check-qsv.sh: executing...
handbrake-1  | [cont-init   ] 54-check-qsv.sh: Processor: Intel(R) N100
handbrake-1  | [cont-init   ] 54-check-qsv.sh: Microarchitecture: INTEL_ADL
handbrake-1  | [cont-init   ] 54-check-qsv.sh: Kernel: 6.1.0-23-amd64
handbrake-1  | [cont-init   ] 54-check-qsv.sh: terminated successfully.
handbrake-1  | [cont-init   ] 54-check-trash-dir.sh: executing...
handbrake-1  | [cont-init   ] 54-check-trash-dir.sh: terminated successfully.
handbrake-1  | [cont-init   ] 55-handbrake.sh: executing...
handbrake-1  | [cont-init   ] 55-handbrake.sh: core dump file location: core
handbrake-1  | [cont-init   ] 55-handbrake.sh: core dump file size: unlimited (blocks)
handbrake-1  | [cont-init   ] 55-handbrake.sh: terminated successfully.
handbrake-1  | [cont-init   ] 85-take-config-ownership.sh: executing...
handbrake-1  | [cont-init   ] 85-take-config-ownership.sh: terminated successfully.
handbrake-1  | [cont-init   ] 89-info.sh: executing...
handbrake-1  |     ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
handbrake-1  |     │                                                                      │
handbrake-1  |     │ Application:           HandBrake                                     │
handbrake-1  |     │ Application Version:   1.8.1                                         │
handbrake-1  |     │ Docker Image Version:  24.06.1                                       │
handbrake-1  |     │ Docker Image Platform: linux/amd64                                   │
handbrake-1  |     │                                                                      │
handbrake-1  |     ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
handbrake-1  | [cont-init   ] 89-info.sh: terminated successfully.
handbrake-1  | [cont-init   ] all container initialization scripts executed.
handbrake-1  | [init        ] giving control to process supervisor.
handbrake-1  | [supervisor  ] loading services...
handbrake-1  | [supervisor  ] loading service 'default'...
handbrake-1  | [supervisor  ] loading service 'app'...
handbrake-1  | [supervisor  ] loading service 'gui'...
handbrake-1  | [supervisor  ] loading service 'nginx'...
handbrake-1  | [supervisor  ] loading service 'webauth'...
handbrake-1  | [supervisor  ] service 'webauth' is disabled.
handbrake-1  | [supervisor  ] loading service 'certsmonitor'...
handbrake-1  | [supervisor  ] service 'certsmonitor' is disabled.
handbrake-1  | [supervisor  ] loading service 'xvnc'...
handbrake-1  | [supervisor  ] loading service 'audiorecorder'...
handbrake-1  | [supervisor  ] service 'audiorecorder' is disabled.
handbrake-1  | [supervisor  ] loading service 'xcompmgr'...
handbrake-1  | [supervisor  ] loading service 'openbox'...
handbrake-1  | [supervisor  ] loading service 'pulseaudio'...
handbrake-1  | [supervisor  ] service 'pulseaudio' is disabled.
handbrake-1  | [supervisor  ] loading service 'logmonitor'...
handbrake-1  | [supervisor  ] service 'logmonitor' is disabled.
handbrake-1  | [supervisor  ] loading service 'logrotate'...
handbrake-1  | [supervisor  ] loading service 'autovideoconverter'...
handbrake-1  | [supervisor  ] all services loaded.
handbrake-1  | [supervisor        ] starting services...
handbrake-1  | [supervisor        ] starting service 'xvnc'...
handbrake-1  | [xvnc              ] Xvnc TigerVNC 1.13.1 - built Jun 29 2024 04:33:24
handbrake-1  | [xvnc              ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
handbrake-1  | [xvnc              ] See https://www.tigervnc.org for information on TigerVNC.
handbrake-1  | [xvnc              ] Underlying X server release 12014000
handbrake-1  | [xvnc              ] Mon Jul 22 13:53:57 2024
handbrake-1  | [xvnc              ]  vncext:      VNC extension running!
handbrake-1  | [xvnc              ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
handbrake-1  | [xvnc              ]  vncext:      Listening for VNC connections on all interface(s), port 5900
handbrake-1  | [xvnc              ]  vncext:      created VNC server for screen 0
handbrake-1  | [supervisor        ] starting service 'nginx'...
handbrake-1  | [nginx             ] Listening for HTTP connections on port 5800.
handbrake-1  | [supervisor        ] starting service 'openbox'...
handbrake-1  | [supervisor        ] starting service 'xcompmgr'...
handbrake-1  | [supervisor        ] starting service 'app'...
handbrake-1  | [supervisor        ] starting service 'autovideoconverter'...
handbrake-1  | [logrotate         ] warning: Potentially dangerous mode on /opt/base/etc/logrotate.conf: 0666
handbrake-1  | [logrotate         ] error: Ignoring /opt/base/etc/logrotate.conf because it is writable by group or others.
handbrake-1  | [autovideoconverter] Processing watch folder '/watch'...
handbrake-1  | [autovideoconverter] Waiting 5 seconds before processing '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts'...
handbrake-1  | [supervisor        ] all services started.
handbrake-1  | [autovideoconverter] Starting conversion of '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts' (e8c2c25dafe44bcc7cb34e1988a7db15) using preset 'Hardware/H.265 QSV 1080p'...
handbrake-1  | [autovideoconverter] 1 title(s) to process.
handbrake-1  | [autovideoconverter] Conversion ended successfully.
handbrake-1  | [autovideoconverter] Removing '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts'...
handbrake-1  | [autovideoconverter] Removed '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts'.
handbrake-1  | [autovideoconverter] Watch folder '/watch' processing terminated.
handbrake-1  | [autovideoconverter] Change detected in watch folder '/watch'.
handbrake-1  | [autovideoconverter] Processing watch folder '/watch'...
handbrake-1  | [autovideoconverter] Waiting 5 seconds before processing '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.mp4'...
handbrake-1  | [autovideoconverter] ERROR: Could not identify titles in '/watch/The Snapper/The Snapper 2024_07_21_23_00_00.mp4' (ccf1f7fc12216277c7a0fd5bbf296557).
handbrake-1  | [autovideoconverter] Conversion failed.
handbrake-1  | [autovideoconverter] For more details about the failure, see /config/log/hb/conversion.log.
handbrake-1  | [autovideoconverter] Watch folder '/watch' processing terminated.
------- CONVERSION OUTPUT Mon Jul 22 14:45:33 UTC 2024 -------
[14:45:33] Compile-time hardening features are enabled
Cannot load libnvidia-encode.so.1
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:33] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:33] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:33] qsv: is available on this system
[14:45:33] hb_init: starting libhb thread
[14:45:33] thread 7f263f618b30 started ("libhb")
HandBrake 1.8.1 (2024063000) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts...
[14:45:33] CPU: Intel(R) N100
[14:45:33]  - logical processor count: 4
[14:45:33] Intel Quick Sync Video support: yes
[14:45:33] Intel Quick Sync Video integrated adapter with index 0 and renderD128
[14:45:33] Impl mfx-gen library path: /usr/lib/libmfx-gen.so.1.2.10
[14:45:33]  - Intel Media SDK hardware: API 2.10 (minimum: 1.3)
[14:45:33]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[14:45:33]  - H.264 encoder: yes
[14:45:33]     - preferred implementation: hardware (any) via ANY
[14:45:33]     - capabilities (hardware):  lowpower breftype vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[14:45:33]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[14:45:33]     - preferred implementation: hardware (any) via ANY
[14:45:33]     - capabilities (hardware):  lowpower bpyramid vsinfo masteringinfo cllinfo opt1
[14:45:33]  - AV1 encoder: no
[14:45:33] hb_scan: path=/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[14:45:33] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[14:45:33] dvd: not a dvd - trying as a stream/file instead
[14:45:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:45:33] Found the following PIDS
[14:45:33]     Video PIDS : 
[14:45:33]       0x100 type H.264 (0x1b) (PCR)
[14:45:33]     Audio PIDS : 
[14:45:33]       0x101 type AAC (0xf)
[14:45:33]     Subtitle PIDS : 
[14:45:33]     Other PIDS : 
[14:45:33] stream id 0x101 (type 0xf substream 0x0) audio 0x101
[14:45:33] scan: decoding previews for title 1
[14:45:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:45:33] scan: audio 0x101: aac, rate=48000Hz, bitrate=128250 Unknown (AAC LC, 2.0 ch, 128 kbps)

Scanning title 1 of 1, preview 6, 60.00 %[14:45:33] stream: 150 good frames, 0 errors (0%)
[14:45:33] using bitstream PAR 1:1
[14:45:33] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[14:45:33] scan: supported video decoders: avcodec qsv
[14:45:33] libhb: scan thread found 1 valid title(s)
+ Using preset: H.264 QSV 1080p
+ title 1:
  + stream: /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts
  + duration: 01:55:14
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 01:55:14
  + audio tracks:
    + 1, Unknown (AAC LC, 2.0 ch, 128 kbps) (iso639-2: und)
  + subtitle tracks:
[14:45:33] Starting work at: Mon Jul 22 14:45:33 2024

[14:45:33] 1 job(s) to process
[14:45:33] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "none"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 1,
                    "Minutes": 55,
                    "Seconds": 14,
                    "Ticks": 622291719
                },
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "/output/.z7rDef/The Snapper 2024_07_21_23_00_00.mp4",
        "InlineParameterSets": false,
        "Mux": "m4v",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 11,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 20,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "/watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "qsv_h264",
        "HardwareDecode": 0,
        "Level": "auto",
        "MultiPass": false,
        "Options": "",
        "Preset": "balanced",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": true
        },
        "Quality": 15.0,
        "Tune": "",
        "Turbo": false
    }
}
[14:45:33] qsv: integrated qsv adapter with index 0 has been selected
[14:45:33] Starting Task: Encoding Pass
[14:45:33] work: skipping crop/scale filter
[14:45:33] job configuration:
[14:45:33]  * source
[14:45:33]    + /watch/The Snapper/The Snapper 2024_07_21_23_00_00.ts
[14:45:33]    + title 1, chapter(s) 1 to 1
[14:45:33]  * destination
[14:45:33]    + /output/.z7rDef/The Snapper 2024_07_21_23_00_00.mp4
[14:45:33]    + container: MPEG-4 (libavformat)
[14:45:33]  * video track
[14:45:33]    + decoder: h264_qsv 8-bit (yuv420p)
[14:45:33]      + bitrate 200 kbps
[14:45:33]    + filters
[14:45:33]      + Framerate Shaper (mode=0)
[14:45:33]        + frame rate: same as source (around 25.000 fps)
[14:45:33]      + Format (format=nv12)
[14:45:33]    + Output geometry
[14:45:33]      + storage dimensions: 1920 x 1080
[14:45:33]      + pixel aspect ratio: 1 : 1
[14:45:33]      + display dimensions: 1920 x 1080
[14:45:33]    + encoder: H.264 (Intel Media SDK)
[14:45:33]      + preset:  balanced
[14:45:33]      + profile: auto
[14:45:33]      + level:   auto
[14:45:33]      + quality: 15.00 (QP)
[14:45:33]      + color profile: 1-1-1
[14:45:33]      + color range: tv
[14:45:33]      + chroma location: left
[14:45:33]  * audio track 1
[14:45:33]    + decoder: Unknown (AAC LC, 2.0 ch, 128 kbps) (track 1, id 0x101)
[14:45:33]      + bitrate: 128 kbps, samplerate: 48000 Hz
[14:45:33]    + mixdown: Stereo
[14:45:33]    + encoder: AAC (libfdk_aac)
[14:45:33]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:45:33] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:45:33] sync: expecting 172858 video frames
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:34] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[14:45:34] Unknown Header.BufferId=1347637059
[14:45:34] encqsvInit: using encode-only via system memory path
[14:45:34] encqsvInit: H.264/AVC High profile @ level 4.0
[14:45:34] encqsvInit: TargetUsage 4 AsyncDepth 6
[14:45:34] encqsvInit: GopRefDist 4 GopPicSize 51 NumRefFrame 3 IdrInterval 0
[14:45:34] encqsvInit: BFramesMax 3 BRefType pyramid
[14:45:34] encqsvInit: RateControlMethod CQP with QPI 15 QPP 17 QPB 19
[h264_qsv @ 0x7f263f493c00] Invalid pkt_timebase, passing timestamps as-is.
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0

From my personal tests, using software decoding will use a little more the CPU but it won't be a bottleneck for your N100. I also doubt that it will add time to de conversion because generally the decoding is much faster than the encoding, even with hardware encoding enabled.

Also, the GUI only uses software decoding (and I don't really know why) so the ETA you will get in the GUI will be the same for software decoding in autoconverter.

For your problem, try firstly the software decoding to eliminate the most problem you could. If it don't work neither, your drivers may be faulty. Moreover, your file looks weird... Have you tried with another file with approximately the same specs ?

Keep me informed !

@Vibes1573
Copy link

That has worked for me, thank you. CPU usage didn't go above 60-70%.

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

No branches or pull requests

4 participants