21.03.2025, 04:25
I've been using Hybrid for quite a while now, and for as long as I can remember, there have been occasional crashes when processing videos in a job queue, especially during 2-pass encoding jobs, regardless of the codec used.
For example, I'm currently processing a batch of 370 videos using aomenc, and some of them crash during the encoding process. Below, I’ve included the full command used and details about one of the videos that failed.
aomenc --passes=2 --pass=1 --target-bitrate=48 --end-usage=vbr --fpf="/media/ramdisk/hybrid_tmp/zBnFJjKqVM8_20200124.stats" --profile=0 --cpu-used=8 --min-q=1 --max-q=63 --lag-in-frames=25 --bias-pct=70 --minsection-pct=15 --maxsection-pct=10000 --drop-frame=0 --undershoot-pct=0 --overshoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=7 --arnr-strength=5 --sharpness=0 --static-thresh=0 --noise-sensitivity=0 --tune-content=default --tile-columns=0 --tile-rows=0 --mtu-size=0 --frame-boost=0 --aq-mode=1 --min-gf-interval=0 --max-gf-interval=0 --gf-min-pyr-height=0 --gf-max-pyr-height=5 --threads=32 --width=128 --height=72 --input-bit-depth=10 --bit-depth=10 --denoise-noise-level=0 --min-partition-size=4 --max-partition-size=128 --fp-mt=1 --sb-size=dynamic --max-reference-frames=7 --disable-trellis-quant=0 --enable-tpl-model=1 --enable-keyframe-filtering=0 --force-video-mode=1 --reduced-tx-type-set=1 --use-intra-dct-only=0 --use-inter-dct-only=0 --use-intra-default-tx-only=0 --quant-b-adapt=1 --coeff-cost-upd-freq=0 --mode-cost-upd-freq=0 --mv-cost-upd-freq=0 -o NUL -
aomenc --passes=2 --pass=2 --target-bitrate=48 --end-usage=vbr --fpf="/media/ramdisk/hybrid_tmp/zBnFJjKqVM8_20200124.stats" --profile=0 --cpu-used=8 --min-q=1 --max-q=63 --lag-in-frames=25 --bias-pct=70 --minsection-pct=15 --maxsection-pct=10000 --drop-frame=0 --undershoot-pct=0 --overshoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=7 --arnr-strength=5 --sharpness=0 --static-thresh=0 --noise-sensitivity=0 --tune-content=default --tile-columns=0 --tile-rows=0 --mtu-size=0 --frame-boost=0 --aq-mode=1 --min-gf-interval=0 --max-gf-interval=0 --gf-min-pyr-height=0 --gf-max-pyr-height=5 --threads=32 --width=128 --height=72 --input-bit-depth=10 --bit-depth=10 --denoise-noise-level=0 --min-partition-size=4 --max-partition-size=128 --fp-mt=1 --sb-size=dynamic --max-reference-frames=7 --disable-trellis-quant=0 --enable-tpl-model=1 --enable-keyframe-filtering=0 --force-video-mode=1 --reduced-tx-type-set=1 --use-intra-dct-only=0 --use-inter-dct-only=0 --use-intra-default-tx-only=0 --quant-b-adapt=1 --coeff-cost-upd-freq=0 --mode-cost-upd-freq=0 --mv-cost-upd-freq=0 -o "/media/ramdisk/hybrid_tmp/zBnFJjKqVM8_20200124.ivf" -
The video in question was downloaded directly from YouTube using yt-dlp without doing any extra modifications, via this link:
https://www.youtube.com/watch?v=zBnFJjKqVM8
As I mentioned, this issue occurs not only with AV1 encoding using aomenc, but also with other codecs like x265, other AV1 encoders, and even VPX. When I switch to single-pass quantized mode, the encoding usually completes without crashing. However, I really need fine control over the bitrate, so 2-pass encoding is important for me.
I'm using the last main version of Hybrid, my computer specs are the following:
i5-12500H
16GB RAM
RTX 3050 mobile 4GB
For example, I'm currently processing a batch of 370 videos using aomenc, and some of them crash during the encoding process. Below, I’ve included the full command used and details about one of the videos that failed.
aomenc --passes=2 --pass=1 --target-bitrate=48 --end-usage=vbr --fpf="/media/ramdisk/hybrid_tmp/zBnFJjKqVM8_20200124.stats" --profile=0 --cpu-used=8 --min-q=1 --max-q=63 --lag-in-frames=25 --bias-pct=70 --minsection-pct=15 --maxsection-pct=10000 --drop-frame=0 --undershoot-pct=0 --overshoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=7 --arnr-strength=5 --sharpness=0 --static-thresh=0 --noise-sensitivity=0 --tune-content=default --tile-columns=0 --tile-rows=0 --mtu-size=0 --frame-boost=0 --aq-mode=1 --min-gf-interval=0 --max-gf-interval=0 --gf-min-pyr-height=0 --gf-max-pyr-height=5 --threads=32 --width=128 --height=72 --input-bit-depth=10 --bit-depth=10 --denoise-noise-level=0 --min-partition-size=4 --max-partition-size=128 --fp-mt=1 --sb-size=dynamic --max-reference-frames=7 --disable-trellis-quant=0 --enable-tpl-model=1 --enable-keyframe-filtering=0 --force-video-mode=1 --reduced-tx-type-set=1 --use-intra-dct-only=0 --use-inter-dct-only=0 --use-intra-default-tx-only=0 --quant-b-adapt=1 --coeff-cost-upd-freq=0 --mode-cost-upd-freq=0 --mv-cost-upd-freq=0 -o NUL -
aomenc --passes=2 --pass=2 --target-bitrate=48 --end-usage=vbr --fpf="/media/ramdisk/hybrid_tmp/zBnFJjKqVM8_20200124.stats" --profile=0 --cpu-used=8 --min-q=1 --max-q=63 --lag-in-frames=25 --bias-pct=70 --minsection-pct=15 --maxsection-pct=10000 --drop-frame=0 --undershoot-pct=0 --overshoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=7 --arnr-strength=5 --sharpness=0 --static-thresh=0 --noise-sensitivity=0 --tune-content=default --tile-columns=0 --tile-rows=0 --mtu-size=0 --frame-boost=0 --aq-mode=1 --min-gf-interval=0 --max-gf-interval=0 --gf-min-pyr-height=0 --gf-max-pyr-height=5 --threads=32 --width=128 --height=72 --input-bit-depth=10 --bit-depth=10 --denoise-noise-level=0 --min-partition-size=4 --max-partition-size=128 --fp-mt=1 --sb-size=dynamic --max-reference-frames=7 --disable-trellis-quant=0 --enable-tpl-model=1 --enable-keyframe-filtering=0 --force-video-mode=1 --reduced-tx-type-set=1 --use-intra-dct-only=0 --use-inter-dct-only=0 --use-intra-default-tx-only=0 --quant-b-adapt=1 --coeff-cost-upd-freq=0 --mode-cost-upd-freq=0 --mv-cost-upd-freq=0 -o "/media/ramdisk/hybrid_tmp/zBnFJjKqVM8_20200124.ivf" -
The video in question was downloaded directly from YouTube using yt-dlp without doing any extra modifications, via this link:
https://www.youtube.com/watch?v=zBnFJjKqVM8
As I mentioned, this issue occurs not only with AV1 encoding using aomenc, but also with other codecs like x265, other AV1 encoders, and even VPX. When I switch to single-pass quantized mode, the encoding usually completes without crashing. However, I really need fine control over the bitrate, so 2-pass encoding is important for me.
I'm using the last main version of Hybrid, my computer specs are the following:
i5-12500H
16GB RAM
RTX 3050 mobile 4GB