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

For Encoder Preset lower than 8. Job Fails: Worker process exited! Worker process exit was not expected. #14

Closed
someonenameguy opened this issue Jan 11, 2025 · 4 comments

Comments

@someonenameguy
Copy link

When setting Video encoder to AV1 (SVT PSY) and setting the Encoder Preset to any level lower than 8, the job fails but if Multi-Pass is on the first pass runs fine but fails on the second pass.

Activity Log of Encoder Preset 7 [Fails]
HandBrake Nightly 20250110073833-e75ad6428-master (2025011001)
OS: Microsoft Windows NT 10.0.22631.0
CPU: 13th Gen Intel(R) Core(TM) i7-13700HX
Ram: 32487 MB, 
GPU Information:
  NVIDIA GeForce RTX 4060 Laptop GPU - 32.0.15.6636
  Intel(R) UHD Graphics - 31.0.101.4146
Screen: 2048x1280
Temp Dir: C:\Users\Kevan\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly\
Data Dir: C:\Users\Kevan\AppData\Roaming\HandBrake\Nightly

-------------------------------------------

 # Starting Encode ...

[15:50:13] base preset: Default HEVC Nivdia 5Mps (Modified)
[15:50:13] Remote Process started with Process ID: 3168 using port: 8041. Max Allowed Instances: 1
[15:50:13] Worker: Starting HandBrake Engine ...
[15:50:13] Worker: Parent Process Id 31056
[15:50:13] Worker: Starting Web Server on port 8041 ...
[15:50:13] Worker: Starting Listener: 1
[15:50:13] Worker: Server Started
[15:50:13] Worker: Disconnected worker monitoring enabled!
[15:50:13] Compile-time hardening features are enabled
[15:50:13] nvenc: version 12.2 is available
[15:50:13] nvdec: is available
[15:50:13] CUDA Version: 8.9
[15:50:13] vcn: not available on this system
[15:50:14] qsv: is available on this system
[15:50:14] hb_init: starting libhb thread

[15:50:14] Starting work at: Sat Jan 11 15:50:14 2025
[15:50:14] 1 job(s) to process
[15:50:14] CPU: 13th Gen Intel(R) Core(TM) i7-13700HX
[15:50:14]  - logical processor count: 24
[15:50:14] Intel Quick Sync Video support: yes, gpu list: 1
[15:50:14] Intel Quick Sync Video integrated adapter with index 1
[15:50:14] Impl mfx-gen library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_89db58ae936de7ec\libmfx64-gen.dll
[15:50:14]  - Intel Media SDK hardware: API 2.8 (minimum: 1.3)
[15:50:14]  - H.264 encoder: yes
[15:50:14]     - preferred implementation: hardware (2) via D3D11
[15:50:14]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[15:50:14]     - preferred implementation: hardware (2) via D3D11
[15:50:14]  - AV1 encoder: no
[15:50:14] hb_scan: path=C:\Users\Kevan\Videos\SPIR\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.DVR.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Kevan\Videos\SPIR\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.DVR.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2025-01-11T06:08:25.000000Z
    date            : 2025
  Duration: 00:05:00.38, start: 0.000000, bitrate: 50174 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m, progressive), 2560x1600 [SAR 1:1 DAR 8:5], 49972 kb/s, 60 fps, 60 tbr, 90k tbn (default)
      Metadata:
        creation_time   : 2025-01-11T06:08:25.000000Z
        handler_name    : VideoHandle
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
      Metadata:
        creation_time   : 2025-01-11T06:08:25.000000Z
        handler_name    : SoundHandle
        vendor_id       : [0][0][0][0]
        title           : System sounds
[15:50:14] scan: decoding previews for title 1
[15:50:14] scan: audio 0x1: aac, rate=48000Hz, bitrate=191997 Unknown (AAC LC, 2.0 ch, 191 kbps)
[15:50:15] using container PAR 1:1
[15:50:15] scan: 10 previews, 2560x1600, 60.000 fps, autocrop = 0/0/0/0, aspect 1.60:1, PAR 1:1, color profile: 6-6-6, chroma location: left
[15:50:15] scan: supported video decoders: avcodec hwaccel
[15:50:15] libhb: scan thread found 1 valid title(s)
[15:50:15] Starting Task: Encoding Pass
[15:50:15] work: skipping crop/scale filter
[15:50:15] work: only 1 chapter, disabling chapter markers
[15:50:15] job configuration:
[15:50:15]  * source
[15:50:15]    + C:\Users\Kevan\Videos\SPIR\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.DVR.mp4
[15:50:15]    + title 1, start 00:04:40.00 stop 00:05:00.00
[15:50:15]    + container: mov,mp4,m4a,3gp,3g2,mj2
[15:50:15]    + data rate: 50174 kbps
[15:50:15]  * destination
[15:50:15]    + C:\Users\kevan\Videos\Encoded\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.Dvr.mp4
[15:50:15]    + container: MPEG-4 (libavformat)
[15:50:15]      + optimized for HTTP streaming (fast start)
[15:50:15]      + align initial A/V stream timestamps
[15:50:15]  * video track
[15:50:15]    + decoder: h264 8-bit (yuv420p)
[15:50:15]      + bitrate 49972 kbps
[15:50:15]    + filter
[15:50:15]      + Framerate Shaper (mode=1)
[15:50:15]        + frame rate: 60.000 fps -> constant 60.000 fps
[15:50:15]    + Output geometry
[15:50:15]      + storage dimensions: 2560 x 1600
[15:50:15]      + pixel aspect ratio: 1 : 1
[15:50:15]      + display dimensions: 2560 x 1600
[15:50:15]    + encoder: AV1 (SVT)
[15:50:15]      + preset:  7
[15:50:15]      + profile: auto
[15:50:15]      + level:   auto
[15:50:15]      + bitrate: 1000 kbps, pass: 0
[15:50:15]      + color profile: 6-6-6
[15:50:15]      + color range: tv
[15:50:15]      + chroma location: left
[15:50:15] sync: expecting 1260 video frames
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1-PSY Encoder Lib v2.3.0-A
Svt[info]: SVT [build]  :	Clang 19.1.6 (https://github.com/llvm/llvm-project.git e21dc4bd5474d04b8e62d7331362edcc5648d7e5)	 64 bit
Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 6
Svt[info]: Number of PPCS 178
Svt[info]: [asm level on system : up to avx2]
Svt[info]: [asm level selected : up to avx2]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 2560 / 1600 / 60 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 7 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 606 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / target bitrate (kbps)				: VBR / 1000
Svt[info]: SVT [config]: AQ mode / variance boost strength / octile / curve 		: 2 / 2 / 6 / regular
Svt[info]: SVT [config]: Sharpness / QP scale compress strength / Frame low-luma bias 	: 1 / 1 / 0
Svt[info]: SVT [config]: Temporal Filtering Strength 					: 1
Svt[info]: SVT [config]: Keyframe TF Strength 						: 1
Svt[info]: -------------------------------------------
[15:50:15] sync: first pts video is 0

[15:50:24] Worker process exited!
[15:50:24] Worker process exit was not expected.

 # Job Failed (-12)


Activity Log of Encoder Preset 8 [Passes]
HandBrake Nightly 20250110073833-e75ad6428-master (2025011001)
OS: Microsoft Windows NT 10.0.22631.0
CPU: 13th Gen Intel(R) Core(TM) i7-13700HX
Ram: 32487 MB, 
GPU Information:
  NVIDIA GeForce RTX 4060 Laptop GPU - 32.0.15.6636
  Intel(R) UHD Graphics - 31.0.101.4146
Screen: 2048x1280
Temp Dir: C:\Users\Kevan\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly\
Data Dir: C:\Users\Kevan\AppData\Roaming\HandBrake\Nightly

-------------------------------------------

 # Starting Encode ...

[15:52:16] base preset: Default HEVC Nivdia 5Mps (Modified)
[15:52:16] Remote Process started with Process ID: 34600 using port: 8043. Max Allowed Instances: 1
[15:52:16] Worker: Starting HandBrake Engine ...
[15:52:16] Worker: Parent Process Id 31056
[15:52:16] Worker: Starting Web Server on port 8043 ...
[15:52:16] Worker: Starting Listener: 1
[15:52:16] Worker: Server Started
[15:52:16] Worker: Disconnected worker monitoring enabled!
[15:52:16] Compile-time hardening features are enabled
[15:52:16] nvenc: version 12.2 is available
[15:52:16] nvdec: is available
[15:52:16] CUDA Version: 8.9
[15:52:16] vcn: not available on this system
[15:52:17] qsv: is available on this system
[15:52:17] hb_init: starting libhb thread

[15:52:17] Starting work at: Sat Jan 11 15:52:17 2025
[15:52:17] 1 job(s) to process
[15:52:17] CPU: 13th Gen Intel(R) Core(TM) i7-13700HX
[15:52:17]  - logical processor count: 24
[15:52:17] Intel Quick Sync Video support: yes, gpu list: 1
[15:52:17] Intel Quick Sync Video integrated adapter with index 1
[15:52:17] Impl mfx-gen library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_89db58ae936de7ec\libmfx64-gen.dll
[15:52:17]  - Intel Media SDK hardware: API 2.8 (minimum: 1.3)
[15:52:17]  - H.264 encoder: yes
[15:52:17]     - preferred implementation: hardware (2) via D3D11
[15:52:17]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[15:52:17]     - preferred implementation: hardware (2) via D3D11
[15:52:17]  - AV1 encoder: no
[15:52:17] hb_scan: path=C:\Users\Kevan\Videos\SPIR\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.DVR.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Kevan\Videos\SPIR\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.DVR.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2025-01-11T06:08:25.000000Z
    date            : 2025
  Duration: 00:05:00.38, start: 0.000000, bitrate: 50174 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m, progressive), 2560x1600 [SAR 1:1 DAR 8:5], 49972 kb/s, 60 fps, 60 tbr, 90k tbn (default)
      Metadata:
        creation_time   : 2025-01-11T06:08:25.000000Z
        handler_name    : VideoHandle
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
      Metadata:
        creation_time   : 2025-01-11T06:08:25.000000Z
        handler_name    : SoundHandle
        vendor_id       : [0][0][0][0]
        title           : System sounds
[15:52:17] scan: decoding previews for title 1
[15:52:17] scan: audio 0x1: aac, rate=48000Hz, bitrate=191997 Unknown (AAC LC, 2.0 ch, 191 kbps)
[15:52:18] using container PAR 1:1
[15:52:18] scan: 10 previews, 2560x1600, 60.000 fps, autocrop = 0/0/0/0, aspect 1.60:1, PAR 1:1, color profile: 6-6-6, chroma location: left
[15:52:18] scan: supported video decoders: avcodec hwaccel
[15:52:18] libhb: scan thread found 1 valid title(s)
[15:52:18] Starting Task: Encoding Pass
[15:52:18] work: skipping crop/scale filter
[15:52:18] work: only 1 chapter, disabling chapter markers
[15:52:18] job configuration:
[15:52:18]  * source
[15:52:18]    + C:\Users\Kevan\Videos\SPIR\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.DVR.mp4
[15:52:18]    + title 1, start 00:04:40.00 stop 00:05:00.00
[15:52:18]    + container: mov,mp4,m4a,3gp,3g2,mj2
[15:52:18]    + data rate: 50174 kbps
[15:52:18]  * destination
[15:52:18]    + C:\Users\kevan\Videos\Encoded\Euro Truck Simulator 2\Euro Truck Simulator 2 2025.01.11 - 14.08.24.07.Dvr.mp4
[15:52:18]    + container: MPEG-4 (libavformat)
[15:52:18]      + optimized for HTTP streaming (fast start)
[15:52:18]      + align initial A/V stream timestamps
[15:52:18]  * video track
[15:52:18]    + decoder: h264 8-bit (yuv420p)
[15:52:18]      + bitrate 49972 kbps
[15:52:18]    + filter
[15:52:18]      + Framerate Shaper (mode=1)
[15:52:18]        + frame rate: 60.000 fps -> constant 60.000 fps
[15:52:18]    + Output geometry
[15:52:18]      + storage dimensions: 2560 x 1600
[15:52:18]      + pixel aspect ratio: 1 : 1
[15:52:18]      + display dimensions: 2560 x 1600
[15:52:18]    + encoder: AV1 (SVT)
[15:52:18]      + preset:  8
[15:52:18]      + profile: auto
[15:52:18]      + level:   auto
[15:52:18]      + bitrate: 1000 kbps, pass: 0
[15:52:18]      + color profile: 6-6-6
[15:52:18]      + color range: tv
[15:52:18]      + chroma location: left
[15:52:18] sync: expecting 1260 video frames
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1-PSY Encoder Lib v2.3.0-A
Svt[info]: SVT [build]  :	Clang 19.1.6 (https://github.com/llvm/llvm-project.git e21dc4bd5474d04b8e62d7331362edcc5648d7e5)	 64 bit
Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 6
Svt[info]: Number of PPCS 178
Svt[info]: [asm level on system : up to avx2]
Svt[info]: [asm level selected : up to avx2]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 2560 / 1600 / 60 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 8 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 606 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / target bitrate (kbps)				: VBR / 1000
Svt[info]: SVT [config]: AQ mode / variance boost strength / octile / curve 		: 2 / 2 / 6 / regular
Svt[info]: SVT [config]: Sharpness / QP scale compress strength / Frame low-luma bias 	: 1 / 1 / 0
Svt[info]: SVT [config]: Temporal Filtering Strength 					: 1
Svt[info]: SVT [config]: Keyframe TF Strength 						: 1
Svt[info]: -------------------------------------------
[15:52:19] sync: first pts video is 0
[15:52:33] reader: done. 1 scr changes
[15:52:34] sync: reached video pts 1800000, exiting early
[15:52:36] work: average encoding speed for job is 79.884163 fps
[15:52:36] vfr: 1200 frames output, 0 dropped and 0 duped for CFR/PFR
[15:52:36] vfr: lost time: 0 (0 frames)
[15:52:36] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:52:36] h264-decoder done: 1223 frames, 0 decoder errors
[15:52:36] sync: got 1200 frames, 1260 expected
[15:52:36] sync: framerate min 60.000 fps, max 60.000 fps, avg 60.000 fps
[15:52:36] mux: track 0, 1200 frames, 3955932 bytes, 1581.06 kbps, fifo 2048
[15:52:36] Finished work at: Sat Jan 11 15:52:36 2025
[15:52:36] libhb: work result = 0

 # Job Completed!


@Sergio00166
Copy link

Sergio00166 commented Jan 11, 2025

I have the same issue on windows using presets lower than 3 using VBR it crashes, using multipass the first part works bc that part runs using the highest (and fastest) preset number 13.

@someonenameguy
Copy link
Author

someonenameguy commented Jan 12, 2025

Issue may be related to upstream: psy-ex/svt-av1-psy#115 and/or psy-ex/svt-av1-psy#114

@gitoss
Copy link

gitoss commented Jan 13, 2025

I have the same issue on windows using presets lower than 3 using VBR it crashes, using multipass the first part works bc that part runs using the highest (and fastest) preset number 13.

If this is the same instability bug (links above), you can try lowering --lp or use an older release like 2.3.0 w/o -A. Afaik the underlying cause(s) haven't been identified yet.

Alas, since the main dev left the team, an alternative might be to switch back to mainline after the pull requests from -psy have been merged - if and when that happens. https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests

@Nj0be
Copy link
Owner

Nj0be commented Jan 13, 2025

With the latest commit, I reverted the SVT-AV1-PSY version from 2.3.0-A to 2.3.0. The issue should now be resolved. I will upgrade it again when the PSY team addresses the instability with the necessary fixes. Thank you all for letting me know.

@Nj0be Nj0be closed this as completed Jan 13, 2025
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

4 participants