Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
13th September 2009, 11:59 | #1 | Link |
Registered User
Join Date: Jan 2002
Posts: 210
|
x264 error
I use HDC and until now I have been ripping DVD's fine. I just moved to Bluray and problems galore. I have this problem where x264 wants to quit after a certain % in encoding. Wondering if someone here can tell me what I am doing wrong. I suppose I need to know if there is a test I can run on these m2ts files which will tell me if there is a problem with x264 or a problem with any of my settings....
thanks |
13th September 2009, 14:47 | #3 | Link |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
if it suddenly stops encoding without a message, then it's likely you ran out of memory,
which is understandable when dealing with high res video. some quick blind tips without having your settings are A. use an x64 version if your OS supports it B. decrease memory usage of avisynth (if you are using it) but yes, the encoding settings you are using would be helpful in the matter. |
13th September 2009, 14:54 | #4 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
AFAIK x264 should never die unexpectedly without an error message, even if it runs out of memory. At least with r1201 and later...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 13th September 2009 at 14:57. |
13th September 2009, 15:15 | #5 | Link | |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
Quote:
this does not catch say avisynth failing memory allocations nor any applications using libx264 failing due to memory allocations within the parent application. x264 has no control over checking for memory allocation failures outside of itself. |
|
13th September 2009, 15:21 | #6 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Sure. But any code that calls Malloc should check the return value before dereference it. If Avisynth doesn't do that, we could get a "hard" crash in out-of-memory situations indeed.
I have no information about Avisynth crashing with out-of-memory. So far we usually had the problem of x264 crashing, after Avisynth allocating too much memory...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 13th September 2009 at 15:24. |
13th September 2009, 18:50 | #7 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
We are not psychic; how about you post the actual error message? Or is this a problem where your crappy VC-1 decoder is crashing, and you're blaming it on x264? |
|
14th September 2009, 13:57 | #8 | Link |
Registered User
Join Date: Jan 2002
Posts: 210
|
Wow I almost am overwhelmed by the response. OK its about 11 pm and I will try to put as much information as I can. For testing purposes I will do one of the short videos in the bluray which is about 40 secs long. HDC settings use default decoder. Analyses fine. Using multithread avisynth
Core2 quad Q6600 2 GB DDR2 800MHZ corsair 9600GT etc Code:
HDConvertToX v.2.1.471.3569 "Isotta" report Input File: p:\bdmv\stream\00007.m2ts ( P:\BDMV\STREAM\00007.m2ts ) Codec Video: avc Width / Heigh : 1920 / 1080 Framerate / Framecount: 23.976 / 970 Duration(hh:mm:ss): 0:0:41 Aspect Ratio: 1.7778 Resized resolution: 1920 / 1072 Crop Values : 0:4:0:4 Start Video Configuration -> Encoding Settings: X264 Extreme Quality ; Bitrate= 10222 Encoding Preset: 6 Final Size: 50 Priority: idle Denoise Level: Super Light Video Handling: Use Best Decoder -> End Video Configuration Start Audio Configuration -> Audio Codec: No Audio Audio Bitrate/Quality: 128 Audio Channels: Original MP3 Mode: vbr Normalize: On Audio handling: Use Eac3to as demuxer Keep only core: On -> End Audio Configuration Full Audio List-> (*** mean selected) NONE *** 2: ac3, english, 5.1 channels, 448kbps, 48khz, d -> End Full Audio List Full Subtitle List-> (*** mean selected) *** NONE -> End Full Subtitle List Mux Subtitle in MP4/MKV file: On Start Advanced AviSynth -> ColorMatrix: On -> End Advanced AviSynth Start Queue -> prompt $d $t $_$P$G "F:\HDConvertToX\applications\eac3to.exe" "p:\bdmv\stream\00007.m2ts" 1:"F:\HDConvertToX\analysis\hdconverttox.h264" "F:\HDConvertToX\applications\DGAVCIndex.exe" -i "F:\HDConvertToX\analysis\hdconverttox.h264" -o "F:\HDConvertToX\analysis\movie.dga" -f 0 -e "F:\HDConvertToX\applications\x264.exe" --pass 1 --bitrate 10381 --preset medium --trellis 0 --ref 4 --deblock -1,-1 --subme 9 --direct auto --me umh --b-adapt 2 --no-chroma-me --sar 1:1 --output "F:\HDConvertToX\analysis\hdconverttox_00007.h264" "F:\HDConvertToX\analysis\hdconverttox_00007.avs" "F:\HDConvertToX\applications\x264.exe" --pass 2 --bitrate 10381 --preset medium --trellis 0 --ref 4 --deblock -1,-1 --subme 9 --direct auto --me umh --b-adapt 2 --no-chroma-me --sar 1:1 --output "F:\HDConvertToX\analysis\hdconverttox_00007.h264" "F:\HDConvertToX\analysis\hdconverttox_00007.avs" "F:\HDConvertToX\applications\mkvmerge.exe" -o "P:\BDMV\STREAM\1.MKV" --default-duration 0:23.976fps "F:\HDConvertToX\analysis\hdconverttox_00007.h264" --title "Done with HDConvertToX v.2.1.465.3552 _Isotta_" -> End Queue AviSynth Script -> Working with files: F:\HDConvertToX\analysis\hdconverttox_00007.avs SetMemoryMax(512) SetMTMode(2,0) AVCSource("F:\HDConvertToX\analysis\movie.dga") GaussResize(1920,1072,0,4,-0,-4,p=75) hqdn3d(1) -> End AviSynth Script "use best decoder" setting does the same but not a visual basic window x264.exe has encountered a problem and needs to close. We are sorry for the inconvenience. Error signature AppName: x264.exe AppVer: 0.0.0.0 ModName: libavcodec.dll ModVer: 0.0.0.0 Offset: 00243248 Task manger x264.exe process takes about 450MB initially which may go to 1.5GB that I have seen sometimes but atm its about 450MB when crashed #HDConvertToX Avisynth Script # #Input File = p:\bdmv\stream\00007.m2ts #Original Resolution = 1920x1080 #Aspect Ratio = 1.7778 #Frame rate =23.976 #Number of Frames = 970 #Lenght (hour:minutes:seconds) = 0:0:40 #Display Aspect Ratio = 1.7911 #Aspect Error = 0.0012 # #Resized resolution = 1920 / 1072 #Crop Left = 0 #Crop Top = 4 #Crop Right = 0 #Crop Bottom = 4 # LoadPlugin("F:\HDConvertToX\filters\AddGrain.dll") LoadPlugin("F:\HDConvertToX\filters\AddGrainC.dll") LoadPlugin("F:\HDConvertToX\filters\autocrop.dll") LoadPlugin("F:\HDConvertToX\filters\Average.dll") LoadPlugin("F:\HDConvertToX\filters\avss.dll") LoadPlugin("F:\HDConvertToX\filters\ColorMatrix.dll") LoadPlugin("F:\HDConvertToX\filters\deblock.dll") LoadPlugin("F:\HDConvertToX\filters\Decomb.dll") LoadPlugin("F:\HDConvertToX\filters\deen.dll") LoadPlugin("F:\HDConvertToX\filters\degrainmedian.dll") LoadPlugin("F:\HDConvertToX\filters\dfttest.dll") LoadPlugin("F:\HDConvertToX\filters\DGAVCDecode.dll") LoadPlugin("F:\HDConvertToX\filters\DGDecode.dll") LoadPlugin("F:\HDConvertToX\filters\DirectShowSource.dll") LoadPlugin("F:\HDConvertToX\filters\EEDI2.dll") LoadPlugin("F:\HDConvertToX\filters\ffms2.dll") LoadPlugin("F:\HDConvertToX\filters\FFT3DFilter.dll") LoadPlugin("F:\HDConvertToX\filters\FluxSmooth.dll") LoadPlugin("F:\HDConvertToX\filters\frfun7.dll") LoadPlugin("F:\HDConvertToX\filters\gradfun2db.dll") LoadPlugin("F:\HDConvertToX\filters\GrainOpt.dll") LoadPlugin("F:\HDConvertToX\filters\hqdn3d.dll") LoadPlugin("F:\HDConvertToX\filters\MSharpen.dll") LoadPlugin("F:\HDConvertToX\filters\mt_masktools-26.dll") LoadPlugin("F:\HDConvertToX\filters\mvtools.dll") LoadPlugin("F:\HDConvertToX\filters\mvtools2.dll") LoadPlugin("F:\HDConvertToX\filters\NicAudio.dll") LoadPlugin("F:\HDConvertToX\filters\nnedi.dll") LoadPlugin("F:\HDConvertToX\filters\RemoveDirtS.dll") LoadPlugin("F:\HDConvertToX\filters\RemoveGrainS.dll") LoadPlugin("F:\HDConvertToX\filters\RepairS.dll") LoadPlugin("F:\HDConvertToX\filters\SangNom.dll") LoadPlugin("F:\HDConvertToX\filters\SoundOut.dll") LoadPlugin("F:\HDConvertToX\filters\TBilateral.dll") LoadPlugin("F:\HDConvertToX\filters\TDeint.dll") LoadPlugin("F:\HDConvertToX\filters\TIVTC.dll") LoadPlugin("F:\HDConvertToX\filters\TTempSmooth.dll") LoadPlugin("F:\HDConvertToX\filters\UnDot.dll") LoadPlugin("F:\HDConvertToX\filters\UnFilter.dll") LoadPlugin("F:\HDConvertToX\filters\VSFilter.dll") LoadPlugin("F:\HDConvertToX\filters\yadifmod.dll") Import("F:\HDConvertToX\filters\BlindDeHalo3_mt2.avsi") Import("F:\HDConvertToX\filters\Deblock_QED_MT2.avsi") Import("F:\HDConvertToX\filters\GradFun2DBmod.v1.3.avsi") Import("F:\HDConvertToX\filters\Lem.avsi") Import("F:\HDConvertToX\filters\LSFmod.v1.8.avsi") Import("F:\HDConvertToX\filters\MCTemporalDenoise.v1.3.00.avsi") Import("F:\HDConvertToX\filters\QMLF_3_motions.avsi") Import("F:\HDConvertToX\filters\QMLF_5_motions.avsi") Import("F:\HDConvertToX\filters\QMLF_7_motions.avsi") Import("F:\HDConvertToX\filters\QMLF_9_motions.avsi") Import("F:\HDConvertToX\filters\seesaw.avsi") Import("F:\HDConvertToX\filters\spresso.avsi") Import("F:\HDConvertToX\filters\Srestore.avsi") #Enabling MT SetMemoryMax(512) SetMTMode(2,0) #Source File AVCSource("F:\HDConvertToX\temp\job0\movie.dga") #Applying Resizing GaussResize(1920,1072,0,4,-0,-4,p=75) #Insert Filters As Requested hqdn3d(1) in the temp folder Name Size hdconverttox.h264 184.1 MB movie.dga 0.0 MB hdconverttox_00007.avs 0.0 MB hdconverttox - Log.txt 0.0 MB hdconverttox.log 0.0 MB hdconverttox_00007.h264 0.0 MB x264_2pass.log.mbtree.temp 0.0 MB x264_2pass.log.temp 0.0 MB hope this helps will check tomorrow. thanks Last edited by Mrsash; 14th September 2009 at 14:00. |
14th September 2009, 14:47 | #13 | Link |
Registered User
Join Date: Jan 2002
Posts: 210
|
Thanks mate. I might have to post this info for buzz to check if I am only the one with this problem. I did post this problem in HDC forum but no one else mentioned about it. I am also concerned if I use CoreAVC or DGAVCDecNV if the multithread aspect will work.
Dark shikari: I understand people like me must ask stupid questions all the time but I am a noob and there use HDC. I would not even understand how the whole thing works. ATM I am just trying to fix what looks like a headache to me from one of the apps. Any way thanks for your assistance |
15th September 2009, 14:07 | #15 | Link |
Registered User
Join Date: Aug 2007
Location: Italy
Posts: 286
|
You only need to "disable" the multithreaded opening of the source material ... so your AVS script (taken from the one in the logfile) should read:
Code:
SetMemoryMax(512) SetMTMode(2,0) SetMTMode(5,0) AVCSource("F:\HDConvertToX\analysis\movie.dga") SetMTMode(2,0) GaussResize(1920,1072,0,4,-0,-4,p=75) hqdn3d(1) |
17th September 2009, 14:24 | #16 | Link | |
Registered User
Join Date: Jan 2002
Posts: 210
|
Quote:
|
|
17th September 2009, 16:19 | #18 | Link |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
the OP got a crash after some time.. not early..
BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
Thread Tools | Search this Thread |
Display Modes | |
|
|