kierank / x262

x264 with MPEG-2 support. Part of the Open Broadcast Encoder project - http://www.ob-encoder.com/
GNU General Public License v2.0
54 stars 10 forks source link

x262 hangs and produces a 0 KB file if intrinsics are turned on #13

Open FranceBB opened 3 years ago

FranceBB commented 3 years ago

On an Intel Xeon Gold 6238R CPU 56c/112th AVX512 capable, when using all the intrinsics the encode hangs and then eventually crashes. This is an example:

AVS Script:

ColorBars(1920, 1080, pixel_type="YV12")
Converttoyv16()
ChangeFPS(25)

BAT File:

x262_64.exe "D:\Temp\AVS Script.avs" --mpeg2 --preset medium --level high --profile 422 --bitrate 50000 --vbv-maxrate 50000 --vbv-bufsize 17825792 --keyint 12 --bframes 2 --no-scenecut --open-gop --deblock -1:-1 --overscan show --colormatrix bt709 --range tv --transfer bt709 --colorprim bt709 --videoformat component --nal-hrd cbr --output-csp i422 --output "\\mibctvan000\Ingest\MEDIA\temp\raw_video.m2v"

image

Disabling intrinsics makes it work.

In other words, adding --asm 1 makes it work correctly:

x262_64.exe "D:\Temp\AVS Script.avs" --mpeg2 --preset medium --level high --profile 422 --bitrate 50000 --vbv-maxrate 50000 --vbv-bufsize 17825792 --keyint 12 --bframes 2 --no-scenecut --open-gop --deblock -1:-1 --overscan show --colormatrix bt709 --range tv --transfer bt709 --colorprim bt709 --videoformat component --nal-hrd cbr --output-csp i422 --asm 1 --output "\\mibctvan000\Ingest\MEDIA\temp\raw_video.m2v"

image

and it goes on normally

image