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

(non-critical) When cancelling encode with --colorrange auto or --colormatrix auto VCEEnc throws 0xC0000005 error before closing #111

Closed
DimkaTsv opened this issue Aug 3, 2024 · 3 comments

Comments

@DimkaTsv
Copy link

DimkaTsv commented Aug 3, 2024

Sorry, tapped Enter before properly creating issue, hence edits...

Issue:
When i use --colorrange auto or --colormatrix auto (either one of those) and use Ctrl+C to cancel encode, before closing VCEEnc throws exception with log. This doesn't affect encode (at least in theory) and only happens when you cancel it.

(i don't think it is something critical, and issue is very conditional, but i still reporting it as unexpected behaviour)
Hence, low-priority.

Source file doesn't matter (based on my experience)

Another moment (not sure if it is even a bug, but still) is that works similar way when you do --vpp-colorspace matrix=auto:auto and colorprim=auto:auto it will just throw an 0xC0000005 exception as soon as you try encode. If you use value matrix=x1:x2 and colorprim=x3:x4 it works fine (at least checked with matrix. Meaning both sides must be different from each other).

Logs:

Used commands:
C:\Users\-----\Videos\Processing>C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\\VCEEncC64.exe -i "C:\Users\-----\Videos\Processing\test.mkv" -o "test_processed.mkv" --codec hevc --profile main --tier high --level 6.2 --preset slow --vbr 10000 --max-bitrate 15000 --colormatrix auto --audio-copy --chapter-copy

And

C:\Users\-----\Videos\Processing>C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\\VCEEncC64.exe -i "C:\Users\-----\Videos\Processing\test.mkv" -o "test_processed.mkv" --codec hevc --profile main --tier high --level 6.2 --preset slow --vbr 10000 --max-bitrate 15000 --colorrange auto --audio-copy --chapter-copy

When cancelled with Ctrl+C throws this error:

Break in task AMFENC: operation aborted.. remain 0:12:29, est out size 5343.9MB
Terminating internal PA thread

encoded 686 frames, 180.67 fps, 7594.32 kbps, 25.90 MB
encode time 0:00:03, CPULoad: 0.1%
frame type IDR   3
frame type I     3,  avgQP  12.00,  total size   0.23 MB
frame type P   683,  avgQP  6.48,  total size  25.67 MB
Exception Code: 0xC0000005
0x00007FF79694F488, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x3F488 byte(s)
0x00007FF796954B6C, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x44B6C byte(s)
0x00007FF7969209D6, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x109D6 byte(s)
0x00007FF796920AB8, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x10AB8 byte(s)
0x00007FF7969490E7, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x390E7 byte(s)
0x00007FF796943CEF, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x33CEF byte(s)
0x00007FF796915378, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x5378 byte(s)
0x00007FF796915B40, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x5B40 byte(s)
0x00007FF796ACF300, C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\VCEEncC64.exe(0x00007FF796910000) + 0x1BF300 byte(s), clrngGetLibraryDeviceIncludes() + 0x8DA0 byte(s)
0x00007FFAAB6C257D, C:\WINDOWS\System32\KERNEL32.DLL(0x00007FFAAB6B0000) + 0x1257D byte(s), BaseThreadInitThunk() + 0x1D byte(s)
0x00007FFAAB98AF28, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0x5AF28 byte(s), RtlUserThreadStart() + 0x28 byte(s)

Or this

Exception Code: 0xC0000005
0x00007FFA4CE66FA3, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xE6FA3 byte(s)
0x00007FFA4CE8802D, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x10802D byte(s)
0x00007FFA4CE7CB98, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xFCB98 byte(s)
0x00007FFA4CE68FF4, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xE8FF4 byte(s)
0x00007FFA4CDBA88C, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x3A88C byte(s)
0x00007FFA4D3D4B26, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x654B26 byte(s), DllMain() + 0x238796 byte(s)
0x00007FFAAB6C257D, C:\WINDOWS\System32\KERNEL32.DLL(0x00007FFAAB6B0000) + 0x1257D byte(s), BaseThreadInitThunk() + 0x1D byte(s)
0x00007FFAAB98AF28, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0x5AF28 byte(s), RtlUserThreadStart() + 0x28 byte(s)
Exception Code: 0xC0000005
0x00007FFA4CE22E96, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xA2E96 byte(s)
0x00007FFA4D3BEA6A, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x63EA6A byte(s), DllMain() + 0x2226DA byte(s)
0x00007FFA4D3BE0C5, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x63E0C5 byte(s), DllMain() + 0x221D35 byte(s)
0x00007FFA4D3B90BD, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x6390BD byte(s), DllMain() + 0x21CD2D byte(s)
0x00007FFA4D3BD37D, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x63D37D byte(s), DllMain() + 0x220FED byte(s)
0x00007FFA4D3B9A61, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x639A61 byte(s), DllMain() + 0x21D6D1 byte(s)
0x00007FFA4D3B865C, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x63865C byte(s), DllMain() + 0x21C2CC byte(s)
0x00007FFAAB9D50CF, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0xA50CF byte(s), __chkstk() + 0x1AF byte(s)
0x00007FFAAB950154, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0x20154 byte(s), RtlUnwindEx() + 0x274 byte(s)
0x00007FFAAB9BF6AE, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0x8F6AE byte(s), __C_specific_handler() + 0xDE byte(s)
0x00007FFAAB9D504F, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0xA504F byte(s), __chkstk() + 0x12F byte(s)
0x00007FFAAB94E866, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0x1E866 byte(s), RtlFindCharInUnicodeString() + 0xA96 byte(s)
0x00007FFAAB9D403E, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0xA403E byte(s), KiUserExceptionDispatcher() + 0x2E byte(s)
0x00007FFA4CE66FA3, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xE6FA3 byte(s)
0x00007FFA4CE8802D, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x10802D byte(s)
0x00007FFA4CE7CB98, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xFCB98 byte(s)
0x00007FFA4CE68FF4, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0xE8FF4 byte(s)
0x00007FFA4CDBA88C, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x3A88C byte(s)
0x00007FFA4D3D4B26, C:\WINDOWS\System32\DriverStore\FileRepository\u0405203.inf_amd64_f475de4b004ff0ca\B405281\amfrtdrv64.dll(0x00007FFA4CD80000) + 0x654B26 byte(s), DllMain() + 0x238796 byte(s)
0x00007FFAAB6C257D, C:\WINDOWS\System32\KERNEL32.DLL(0x00007FFAAB6B0000) + 0x1257D byte(s), BaseThreadInitThunk() + 0x1D byte(s)
0x00007FFAAB98AF28, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFAAB930000) + 0x5AF28 byte(s), RtlUserThreadStart() + 0x28 byte(s)
@DimkaTsv DimkaTsv changed the title (non-critical) When cancelling encode with --colorrange auto or --colormatrix auto (non-critical) When cancelling encode with --colorrange auto or --colormatrix auto VCEEnc throws 0xC0000005 error before closing Aug 3, 2024
@rigaya
Copy link
Owner

rigaya commented Dec 3, 2024

Thank you for reporting, shall be fixed in next release (VCEEnc 8.24).

@rigaya
Copy link
Owner

rigaya commented Dec 10, 2024

The issue should have been fixed in VCEEnc 8.24.

@DimkaTsv
Copy link
Author

DimkaTsv commented Dec 10, 2024

Can confirm fix.

With sampled commands VCEEnc now gracefully cancels encode with Finished with error in VCEEncC. warning. (Which is default behaviour iirc).

On this, issue is most likely resolved. Closing.

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

2 participants