wine problem with x264/x265.exe

Questions about Wine on Linux
Locked
Mayu
Newbie
Newbie
Posts: 1
Joined: Sun Feb 21, 2016 11:42 am

wine problem with x264/x265.exe

Post by Mayu »

Hi,

I have problems with x264/x265.exe under Deb Jessie & Wine 1.9.3 Staging
x264 is correct, but some errors are displayed.
wine64 avs2yuv.exe -raw active_01.avs - | wine64 x264-10Bit-x64.exe - --fps 24000/1001 --preset slow --crf 17 --profile high444 --input-depth 10 --input-res 1280x720 --deblock -1:-1 --bframes 8 --ref 4 --qcomp 0.70 --aq-mode 2 --aq-strength 0.5 --merange 32 --me umh --direct auto --subme 10 --partitions all --trellis 2 --psy-rd 0.75:0 --fade-compensate 0.40 --fgo 4 --no-dct-decimate --no-fast-pskip --sar 1:1 --colormatrix bt709 --output-csp i444 -o "/home/saguya/Schreibtisch/encode/active/01/active_wraw_01.264"
fixme:winediag:start_process Wine Staging 1.9.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
raw [info]: 1280x720p 1:1 @ 24000/1001 fps (cfr)
resize [warning]: converting from yuv420p16le to yuv444p16le
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High 4:4:4 Predictive, level 3.1, 4:4:4 10-bit
x264 [info]: cabac=1 ref=4 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=10 psy=1 fade_compensate=0.40 psy_rd=0.75:0.00 mixed_ref=1 me_range=32 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=0 interlaced=0 bluray_compat=0 constrained_intra=0 fgo=4 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=17.0000 qcomp=0.70 qpmin=0 qpmax=81 qpstep=4 ip_ratio=1.40 aq=2:0.50
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:ver:GetCurrentPackageId (0x32eed4 (nil)): stub

active_01.avs: 2560x720, 24000/1001 fps, 501 frames
frames fps kb/s elapsed size
fixme:msvcrt:__clean_type_info_names_internal (0x84991ac) stub
fixme:msvcrt:__clean_type_info_names_internal (0x50043c8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1d5a3bc) stub
fixme:msvcrt:__clean_type_info_names_internal (0x16e43ac) stub
fixme:msvcrt:__clean_type_info_names_internal (0x16c31a0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x16873dc) stub
fixme:msvcrt:__clean_type_info_names_internal (0x8f9b38) stub

501 4.32 1020.14 0:01:55 2.54 MB
x264 [info]: frame I:3 Avg QP:26.52 size:176319
x264 [info]: frame P:136 Avg QP:29.94 size: 9983
x264 [info]: frame B:362 Avg QP:34.43 size: 2149
x264 [info]: consecutive B-frames: 5.4% 2.4% 2.4% 70.3% 3.0% 3.6% 2.8% 4.8% 5.4%
x264 [info]: mb I I16..4: 10.6% 68.6% 20.8%
x264 [info]: mb P I16..4: 3.4% 2.6% 1.4% P16..4: 31.2% 2.5% 9.3% 0.0% 0.0% skip:49.6%
x264 [info]: mb B I16..4: 0.2% 0.3% 0.3% B16..8: 12.2% 1.4% 0.6% direct: 0.4% skip:84.5% L0:24.7% L1:71.9% BI: 3.4%
x264 [info]: 8x8 transform intra:41.6% inter:70.7%
x264 [info]: direct mvs spatial:98.3% temporal:1.7%
x264 [info]: coded y,u,v intra: 49.0% 21.8% 18.6% inter: 4.7% 1.1% 0.8%
x264 [info]: i16 v,h,dc,p: 19% 58% 1% 22%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 14% 6% 10% 11% 9% 12% 7% 12%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 20% 10% 7% 6% 7% 7% 5% 8%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 60.1% 26.7% 12.0% 1.2%
x264 [info]: ref B L0: 77.4% 19.1% 3.5%
x264 [info]: ref B L1: 90.7% 9.3%
x264 [info]: kb/s:1020.14

encoded 501 frames, 4.32 fps, 1020.14 kb/s, duration 0:01:55.90
and x265.exe crah to start complete
wine avs4x265.exe --x265-binary -o output.265 test.avs
fixme:winediag:start_process Wine Staging 1.9.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:ver:GetCurrentPackageId (0x60eedc (nil)): stub

avs [info]: AviSynth+ 0.1 (r1576, x86)
avs [info]: Video colorspace: YV12
avs [info]: Video resolution: 2560x720
avs [info]: Video framerate: 24000/1001
avs [info]: Video framecount: 501
avs4x265 [info]: "-o" - --frames 501 --fps 24000/1001 --input-res 2560x720 --input-csp i420 output.265
Error: Failed to create process <2>!
fixme:msvcrt:__clean_type_info_names_internal (0x9e9b38) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17873dc) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17c31a0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17e43ac) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e4a3bc) stub
fixme:msvcrt:__clean_type_info_names_internal (0x50f43c8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x85891ac) stub
wine avs4x265.exe ./test.avs -o - | wine64 x265.exe - --input-res 1280x720 --crf 17 --input-depth 10 -o anime_01_x265.hevc
fixme:winediag:start_process Wine Staging 1.9.3 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
x265 [error]: yuv: width, height, and FPS must be specified
x265 [error]: unable to open input file <->
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:ver:GetCurrentPackageId (0x60eedc (nil)): stub
yuv [info]: 2560x720 fps 24000/1001 i420p8 unknown frame count
raw [info]: output file: -
x265 [info]: HEVC encoder version 1.9+32-c2228fb8151d
x265 [info]: build info [Windows][GCC 4.8.2][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main 10 profile, Level-4 (Main tier)
fixme:process:GetNumaHighestNodeNumber (0x33e9c0): semi-stub
fixme:process:GetNumaHighestNodeNumber (0x33e9c0): semi-stub
fixme:process:GetNumaHighestNodeNumber (0x33e8e0): semi-stub
wine: Call from 0x7fd04472023c to unimplemented function KERNEL32.dll.GetNumaNodeProcessorMaskEx, aborting
wine: Unimplemented function KERNEL32.dll.GetNumaNodeProcessorMaskEx called at address 0x7fd04472023c (thread 0045), starting debugger...
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 15
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 14
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 13
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 12
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 11
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 10
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 9
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 8
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 7
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 6
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 15
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 14
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 13
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 12
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 11
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 10
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 9
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 8
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 7
fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 6
avs [error]: Error occurred while writing frame 0
(Maybe x265.exe closed)
fixme:msvcrt:__clean_type_info_names_internal (0x9e9b38) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17873dc) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17c31a0) stub
fixme:msvcrt:__clean_type_info_names_internal (0x17e43ac) stub
fixme:msvcrt:__clean_type_info_names_internal (0x1e4a3bc) stub
fixme:msvcrt:__clean_type_info_names_internal (0x50f43c8) stub
fixme:msvcrt:__clean_type_info_names_internal (0x85891ac) stub
Unhandled exception: unimplemented function KERNEL32.dll.GetNumaNodeProcessorMaskEx called in 64-bit code (0x00007fdf5dc6023c).
Register dump:
rip:00007fdf5dc6023c rsp:000000000033e7e0 rbp:000000000033e8e0 eflags:00000202 ( - -- I - - - )
rax:00007fdf5dc601f0 rbx:000000000033e800 rcx:000000000033e800 rdx:0000000000517ed8
rsi:00000000008bdd22 rdi:00000000008be758 r8:0000000000000015 r9:00007fdf5e16399a r10:00007fdf5df0fa4d
r11:00007fdf5e2869d0 r12:0000000000000001 r13:0000000000340000 r14:000000000033e8f0 r15:0000000000000000
Stack dump:
0x000000000033e7e0: 000000000033e800 000000007b87ecf1
0x000000000033e7f0: 61657268745f5f00 00656c646e616864
0x000000000033e800: 0000000180000100 0000000000000000
0x000000000033e810: 00007fdf5dc6023c 0000000000000002
0x000000000033e820: 00000000008be758 00000000008bdd22
0x000000000033e830: 0000000000000000 0000000000000000
0x000000000033e840: 0000000000000000 0000000000000000
0x000000000033e850: 0000000000000000 ffffffffffffff00
0x000000000033e860: 0000000000000000 0000000000000000
0x000000000033e870: 0000000000000000 0000000000000000
0x000000000033e880: 0000000000000000 0000000000000000
0x000000000033e890: 0000000000000000 0000000000000008
Backtrace:
=>0 0x00007fdf5dc6023c in ntdll (+0x4023c) (0x000000000033e8e0)
1 0x0000000000517ed8 in x265 (+0x117ed7) (0x000000000033e8e0)
2 0x000000000051849c in x265 (+0x11849b) (0x00000000008e4380)
3 0x0000000000420e18 in x265 (+0x20e17) (0x00000000008d4300)
4 0x000000000085d020 in x265 (+0x45d01f) (0x000000000087a440)
0x00007fdf5dc6023c: addq $20,%rsp
Modules:
Module Address Debug info Name (20 modules)
PE 400000- 8c4000 Export x265
ELF 7b800000- 7bc87000 Deferred kernel32<elf>
\-PE 7b820000- 7bc87000 \ kernel32
ELF 7be00000- 7c102000 Deferred <wine-loader>
ELF 7fdf5c84a000- 7fdf5cb1b000 Deferred msvcrt<elf>
\-PE 7fdf5c870000- 7fdf5cb1b000 \ msvcrt
ELF 7fdf5ceb2000- 7fdf5d0be000 Deferred libnss_files.so.2
ELF 7fdf5d0be000- 7fdf5d2c9000 Deferred libnss_nis.so.2
ELF 7fdf5d2c9000- 7fdf5d4e1000 Deferred libnsl.so.1
ELF 7fdf5d4e1000- 7fdf5d6e9000 Deferred libnss_compat.so.2
ELF 7fdf5d6e9000- 7fdf5d8ff000 Deferred libgcc_s.so.1
ELF 7fdf5d8ff000- 7fdf5dc00000 Deferred libm.so.6
ELF 7fdf5dc00000- 7fdf5df11000 Dwarf ntdll<elf>
\-PE 7fdf5dc20000- 7fdf5df11000 \ ntdll
ELF 7fdf5df14000- 7fdf5e118000 Deferred libdl.so.2
ELF 7fdf5e118000- 7fdf5e4c3000 Deferred libc.so.6
ELF 7fdf5e4c3000- 7fdf5e6e0000 Deferred libpthread.so.0
ELF 7fdf5e6fb000- 7fdf5eabe000 Dwarf libwine.so.1
ELF 7fdf5eac0000- 7fdf5ece3000 Deferred ld-linux-x86-64.so.2
ELF 7ffe04b0d000- 7ffe04b0f000 Deferred [vdso].so
Threads:
process tid prio (all id:s are in hex)
0000000a avs4x265.exe
00000059 0
00000058 0
00000057 0
00000056 0
00000055 0
00000054 0
00000053 0
00000052 0
00000051 0
00000050 0
0000004f 0
0000004e 0
0000004d 0
0000004c 0
0000004b 0
0000004a 0
00000049 0
00000043 0
00000042 0
00000041 0
00000040 0
0000003f 0
0000003e 0
0000003d 0
0000003c 0
0000003b 0
0000000b 0
00000010 services.exe
00000022 0
00000021 0
0000001b 0
0000001a 0
00000018 0
00000014 0
00000011 0
00000012 explorer.exe
00000027 0
00000026 0
00000025 0
00000013 0
00000016 winedevice.exe
00000020 0
0000001d 0
0000001c 0
00000017 0
0000001e plugplay.exe
00000024 0
00000023 0
0000001f 0
00000044 (D) C:\windows\system32\x265.exe
00000046 0
00000045 0 <==
System information:
Wine build: wine-1.9.3 (Staging)
Platform: x86_64
Version: Windows 10
Host system: Linux
Host version: 3.16.0-4-amd64
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine problem with x264/x265.exe

Post by Bob Wya »

Code: Select all

Unhandled exception: unimplemented function KERNEL32.dll.GetNumaNodeProcessorMaskEx called in 64-bit code (0x00007fdf5dc6023c).
So it appears to be this stubbed function that's crashing x265...
GetNumaNodeProcessorMaskEx
Obviously a bit of new (??) code (in x265) to detect to make sure that the encoder operates efficiently on multi-socket CPU setups, etc.

So you could try to workaround that:
See x265 command line options
Specifically --pools
Try

Code: Select all

x265.exe ... --pools “none” ...
perhaps?

Also maybe the x265 encoder would use a fall back if you set your Wine Window version to one pre-Windows 7 (since it's not available in earlier versions of Windows)?? But I presume you are running with the default winxp setting anyway?
Minimum supported client Windows 7 [desktop apps only]
I keep meaning to try avs wrappers with Wine - but these days h264enc is good enough for most jobs that I need to do... So I can't say I've tried running the Windows x265 / x265 encoders through Wine.

Definitely file a bug against that missing Win32 API GetNumaNodeProcessorMaskEx - otherwise the Wine developers won't realise that someone needs it to be implemented!! Nothing pops up in a search of the Wine Bugzilla just now...

Bob
Locked