![]() |
|
[HELP] Crash when trying to encode raw uncompressed avi - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: [HELP] Crash when trying to encode raw uncompressed avi (/thread-3900.html) |
Crash when trying to encode raw uncompressed avi - idbirch - 09.10.2024 Sample file (83MB) Hi Selur, please grab the above file and try encoding it with any settings at all, no matter what type of output I select, Hybrid just throws this error: "Helper(1) finished with exitCode: -22 and exitStatus: 0" instantly. The file is the result of some restoration work using Photoshop and I saved the result using the only lossless option I could see in Photoshop - QuickTime .mov Uncompressed. The resulting .mov plays fine in MPC-HC and the avisynth script Hybrid produces for it also plays fine in MPC-HC. When I got the crash, I used VirtualDub to make an actual .avi from the avisynth script (sample of this avi is what's posted above), which again plays fine in MPC-HC, but Hybrid cannot handle it. Is this because of the Photoshop output format? What about it is incompatible? P.S I also tried using the avi as input and disabling avisynth in Hybrid, still the same crash. RE: Crash when trying to encode raw uncompressed avi - Selur - 10.10.2024 "Helper(1) finished with exitCode: -22 and exitStatus: 0" happens when the decoder fails, without a debug output that is all I can say. Tried loading the source and processing it with Vapoursynth and Avisynth: no problem Not using either Avisynth or Vapoursynth, but only Vapoursynth does crash due to a bug int the ffmpeg call. => Will look at it after work, either configuring Hybrid to always use Avisynth or Vapoursynth does work fine as a workaround for me. No clue why, you would get a crash while using Avisynth, since you didn't share enough details (first thing would be a debug output) to reproduce the problem. Cu Selur RE: Crash when trying to encode raw uncompressed avi - idbirch - 10.10.2024 Thanks Selur, sorry about the lack of debug log, here it is: DebugLog RE: Crash when trying to encode raw uncompressed avi - Selur - 10.10.2024 Avisynth uses: ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\LSMASHSource.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\nnedi3.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\neo-fft3d.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\mvtools2.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\masktools2.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\RgTools.dll")
Import("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\mtmodes.avsi")
Import("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\Zs_RF_Shared.avsi")
Import("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\QTGMC.avsi")
# loading source: C:\temp\sample.avi
# color sampling RGB24@8, matrix: pc601, scantyp: bottom field first, luminance scale: full
LWLibavVideoSource("C:\temp\sample.avi",cache=false,format="RGB24", prefer_hw=0)
# current resolution: 720x576
# deinterlacing
ConvertToYV24(interlaced=true, matrix="PC.601")
AssumeBFF()
QTGMC(Preset="Very Slow", InputType=0, TR2=0, Sharpness=0.2, SourceMatch=2, Lossless=2, MatchPreset="Very Slow", EZKeepGrain=0.80, NoisePreset="Fast", ediThreads=4)
SelectEven()
# adjust color to YV12 (color matrix: PC.601)
ConvertToYV12()
# setting output fps to 25.000fps
AssumeFPS(25,1)
PreFetch(10)
# output: color sampling YV24@8, matrix: pc601, scantyp: progressive, luminance scale: full
return last"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\User\AppData\Local\Temp\encodingTempSynthSkript_2024-10-10@10_07_20_9710_0.avs" -an -sn -vf scale=out_color_matrix=rec.601 -sws_flags accurate_rnd+full_chroma_inp -pix_fmt yuv420p -vsync 0 -f rawvideo -not sure where the problem is. => looking into it ![]() Cu Selur RE: Crash when trying to encode raw uncompressed avi - Selur - 10.10.2024 Trying to reproduce the crash I:
Can't reproduce the problem here. I uploaded the current dev I used for testing to the 'experimental'-folder in my GoogleDrive which is linked on the download page. => Please try whether that dev version fixes the problem for you too. In case it does not: Does the Avisynth Preview work for you? If not: What cpu are you using? Also, please create another debugoutput of you opening the Avisynth Preview. If the Avisynth Preview does work: Please create another debug output with the dev version. Cu Selur Ps.: Unless you write your own Avisynth scripts or custom parts in Hybrid, I would recommend sticking with Vapoursynth instead of Avisynth. RE: Crash when trying to encode raw uncompressed avi - Selur - 10.10.2024 Updated the dev version again, now it should work with raw, even when not using Avisynth or Vapoursynth. Cu Selur RE: Crash when trying to encode raw uncompressed avi - idbirch - 10.10.2024 Thank you Selur for your help with this, your time is greatly appreciated. I've installed the Dev version and everything works fine now, whether I use avisynth/vapoursynth or neither - great work, thanks! |