View Full Version : x264 error
Mrsash
13th September 2009, 11:59
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
Chengbin
13th September 2009, 12:26
You told us almost nothing.
Show us your settings and avs script.
What are your computer specs.
kemuri-_9
13th September 2009, 14:47
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.
LoRd_MuldeR
13th September 2009, 14:54
if it suddenly stops encoding without a message, then it's likely you ran out of memory
AFAIK x264 should never die unexpectedly without an error message, even if it runs out of memory. At least with r1201 and later...
kemuri-_9
13th September 2009, 15:15
AFAIK x264 should never die unexpectedly without an error message, even if it runs out of memory. At least with r1201 and later...
the catch for that there is that x264 itself requests memory and the allocation fails will it print a message and exit.
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.
LoRd_MuldeR
13th September 2009, 15:21
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...
Dark Shikari
13th September 2009, 18:50
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."Wants to quit"?
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?
Mrsash
14th September 2009, 13:57
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
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
Ok error message is bit of a problem. when I chose forceDS2 it gave me Visual basic C++ error message saying x264 wants to terminate. zonealarm popped up saying dwinn(usually comes up when a program crashes)
"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
Dark Shikari
14th September 2009, 14:01
AppName: x264.exe AppVer: 0.0.0.0 ModName: libavcodec.dllAgain, as it says in the error message, it isn't x264 that is crashing, it's your decoder.
Mrsash
14th September 2009, 14:26
Again, as it says in the error message, it isn't x264 that is crashing, it's your decoder.
Is there another decoder that I can use, if so which one? I installed a newer version of ffdshow . No one else complains that its not working!! Bluray plays fine etc. So am a bit confused how this is so?
Dark Shikari
14th September 2009, 14:32
No one else complains that its not working!!Then you're really not looking hard enough. libavcodec crashes represent 99% of all x264 "crashes" that people report.
Guest
14th September 2009, 14:32
Is there another decoder that I can use, if so which one? CoreAVC or DGAVCDecNV come to mind.
Mrsash
14th September 2009, 14:47
CoreAVC or DGAVCDecNV come to mind.
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
Mrsash
15th September 2009, 09:58
Just disabled multithread and it worked. Yay. Anyway how does that work now? I am a bit confused??
talen9
15th September 2009, 14:07
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:
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)
Mrsash
17th September 2009, 14:24
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:
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)
Thanks man looks like buzz is gonna have a look at it
roozhou
17th September 2009, 15:33
Always open your script in a media player before encoding it with x264.
buzzqw
17th September 2009, 16:19
the OP got a crash after some time.. not early..
BHH
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.