RandomEngy / VidCoder

A Blu-ray, DVD and video file transcoder for Windows.
http://vidcoder.net
GNU General Public License v2.0
668 stars 42 forks source link

Unable to transcode h.265 video using intel qsv #1196

Closed Naivev closed 6 months ago

Naivev commented 6 months ago

Problem Description

Unable to transcode h.265 video using intel qsv,But trying to use handbrake works fine, the intel driver is up to date.

What version of VidCoder are you running?

9.13 beta

Encode Log

VC [15:25:27] VidCoder 9.13 Beta
VC [15:25:27] Starting job 1/1
VC [15:25:27]   Source path: D:\备份\GNI-002.mp4
VC [15:25:27]   Destination path: D:\迅雷下载\Gni-002 - 0.30.00-3.53.04.mp4
VC [15:25:27]   Title: 1
VC [15:25:27]   Seconds: 1800-13984.4157444
VC [15:25:27]   Preset: TG
VC [15:25:27]   Picker: TG
VC [15:25:27] Worker ready: Pipe 'VidCoderWorker.bc65b1c8-4733-47a0-8704-16f20c11c6dc' is open
VC [15:25:27] Connecting to process 16036 on pipe VidCoderWorker.bc65b1c8-4733-47a0-8704-16f20c11c6dc
HB [15:25:28] CPU: Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
[15:25:28]  - Intel microarchitecture Kaby Lake
[15:25:28]  - logical processor count: 8
[15:25:28] Intel Quick Sync Video support: yes, gpu list: 0
[15:25:28] Intel Quick Sync Video integrated adapter with index 0
[15:25:28] Impl mfxhw64 library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_b53c057d22ce6f37\libmfxhw64.dll
[15:25:28]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[15:25:28]  - H.264 encoder: yes
[15:25:28]     - preferred implementation: hardware (1) via D3D11
[15:25:28]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[15:25:28]     - preferred implementation: hardware (1) via D3D11
[15:25:28]  - AV1 encoder: no
[15:25:28] hb_scan: path=D:\备份\GNI-002.mp4, title_index=1
HB Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\澶囦唤\GNI-002.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 03:53:04.42, start: 0.000000, bitrate: 1529 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1392 kb/s, 29.75 fps, 30 tbr, 16k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[15:25:28] scan: decoding previews for title 1
[15:25:28] scan: audio 0x1: aac, rate=48000Hz, bitrate=127073 English (AAC LC, 2.0 ch, 127 kbps)
HB [15:25:29] using container PAR 1:1
[15:25:29] scan: 10 previews, 1280x720, 29.753 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[15:25:29] scan: supported video decoders: avcodec qsv
[15:25:29] libhb: scan thread found 1 valid title(s)
HB Calculating bitrate - Title length: 12184.4157444 seconds
HB Calculating bitrate - Available bytes: 1572864000
HB Calculating bitrate - Output framerate: 29.753148048358785
HB Calculating bitrate - Container overhead: 2175144 bytes
HB Calculating bitrate - Audio track 1 - Encoder: copy
HB Calculating bitrate - Audio track 1 - Track is auto passthrough. 15884 bytes/second
HB Calculating bitrate - Audio track 1 - Audio data is 193537259 bytes
HB Calculating bitrate - Audio track 1 - Overhead is 2278485 bytes
HB Calculating bitrate - Audio size: 195815744 bytes
HB Calculating bitrate - Available bytes minus container and audio: 1374873112
HB Calculating bitrate - Bitrate result (kbps): 902
HB [15:25:29] Starting work at: Sat Dec 23 15:25:29 2023
[15:25:29] 1 job(s) to process
[15:25:29] Starting Task: Encoding Pass
[15:25:29] work: skipping crop/scale filter
[15:25:29] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP2, MP3, FLAC, Opus
[15:25:29] Auto Passthru: fallback is AAC (avcodec)
[15:25:29] Auto Passthru: using AAC Passthru for track 1
[15:25:29] work: only 1 chapter, disabling chapter markers
[15:25:29] job configuration:
[15:25:29]  * source
[15:25:29]    + D:\备份\GNI-002.mp4
[15:25:29]    + title 1, start 00:30:0.00 stop 03:53:4.42
[15:25:29]    + container: mov,mp4,m4a,3gp,3g2,mj2
[15:25:29]    + data rate: 1529 kbps
[15:25:29]  * destination
[15:25:29]    + D:\迅雷下载\Gni-002 - 0.30.00-3.53.04.part.mp4
[15:25:29]    + container: MPEG-4 (libavformat)
[15:25:29]      + align initial A/V stream timestamps
[15:25:29]  * video track
[15:25:29]    + decoder: h264 8-bit (yuv420p)
[15:25:29]      + bitrate 1392 kbps
[15:25:29]    + filters
[15:25:29]      + Framerate Shaper (mode=1)
[15:25:29]        + frame rate: 29.753 fps -> constant 29.753 fps
[15:25:29]      + Format (format=nv12)
[15:25:29]    + Output geometry
[15:25:29]      + storage dimensions: 1280 x 720
[15:25:29]      + pixel aspect ratio: 1 : 1
[15:25:29]      + display dimensions: 1280 x 720
[15:25:29]    + encoder: H.265 (Intel Media SDK)
[15:25:29]      + preset:  balanced
[15:25:29]      + profile: auto
[15:25:29]      + level:   auto
[15:25:29]      + bitrate: 902 kbps, pass: 0
[15:25:29]      + color profile: 1-1-1
[15:25:29]      + chroma location: left
[15:25:29]  * audio track 1
[15:25:29]    + decoder: English (AAC LC, 2.0 ch, 127 kbps) (track 1, id 0x1)
[15:25:29]      + bitrate: 127 kbps, samplerate: 48000 Hz
[15:25:29]    + AAC Passthru
HB [15:25:29] sync: expecting 362554 video frames
HB E hb_qsv_create_mfx_session: Error creating a MFX session: -9.
HB E encqsvInit: MFXInit failed (-1313558101) with implementation 770
HB E Failure to initialise thread 'Quick Sync Video encoder (Intel Media SDK)'
HB [15:25:29] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[15:25:29] vfr: lost time: 0 (0 frames)
[15:25:29] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:25:29] aac-decoder done: 0 frames, 0 decoder errors
[15:25:29] h264-decoder done: 0 frames, 0 decoder errors
[15:25:29] sync: got 0 frames, 362554 expected
[15:25:29] Finished work at: Sat Dec 23 15:25:29 2023
[15:25:29] libhb: work result = 3
VC E [15:25:29] Encode failed with code ErrorInit
VC [15:25:29] Job completed (Elapsed Time: 2s)
Naivev commented 6 months ago

Manually replaced the hb.dll file in version 1.72 to solve the problem