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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th September 2009, 11:59   #1  |  Link
Mrsash
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
Mrsash is offline   Reply With Quote
Old 13th September 2009, 12:26   #2  |  Link
Chengbin
Registered User
 
Join Date: Oct 2007
Posts: 1,060
You told us almost nothing.

Show us your settings and avs script.

What are your computer specs.
Chengbin is offline   Reply With Quote
Old 13th September 2009, 14:47   #3  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
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.
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 13th September 2009, 14:54   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by kemuri-_9 View Post
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...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th September 2009 at 14:57.
LoRd_MuldeR is offline   Reply With Quote
Old 13th September 2009, 15:15   #5  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by LoRd_MuldeR View Post
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.
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 13th September 2009, 15:21   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
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.
LoRd_MuldeR is offline   Reply With Quote
Old 13th September 2009, 18:50   #7  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Mrsash View Post
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?
Dark Shikari is offline   Reply With Quote
Old 14th September 2009, 13:57   #8  |  Link
Mrsash
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
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

Last edited by Mrsash; 14th September 2009 at 14:00.
Mrsash is offline   Reply With Quote
Old 14th September 2009, 14:01   #9  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
AppName: x264.exe AppVer: 0.0.0.0 ModName: libavcodec.dll
Again, as it says in the error message, it isn't x264 that is crashing, it's your decoder.
Dark Shikari is offline   Reply With Quote
Old 14th September 2009, 14:26   #10  |  Link
Mrsash
Registered User
 
Join Date: Jan 2002
Posts: 210
Quote:
Originally Posted by Dark Shikari View Post
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?
Mrsash is offline   Reply With Quote
Old 14th September 2009, 14:32   #11  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Mrsash View Post
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.
Dark Shikari is offline   Reply With Quote
Old 14th September 2009, 14:32   #12  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Mrsash View Post
Is there another decoder that I can use, if so which one?
CoreAVC or DGAVCDecNV come to mind.
Guest is offline   Reply With Quote
Old 14th September 2009, 14:47   #13  |  Link
Mrsash
Registered User
 
Join Date: Jan 2002
Posts: 210
Quote:
Originally Posted by neuron2 View Post
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 is offline   Reply With Quote
Old 15th September 2009, 09:58   #14  |  Link
Mrsash
Registered User
 
Join Date: Jan 2002
Posts: 210
Just disabled multithread and it worked. Yay. Anyway how does that work now? I am a bit confused??
Mrsash is offline   Reply With Quote
Old 15th September 2009, 14:07   #15  |  Link
talen9
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)
talen9 is offline   Reply With Quote
Old 17th September 2009, 14:24   #16  |  Link
Mrsash
Registered User
 
Join Date: Jan 2002
Posts: 210
Quote:
Originally Posted by talen9 View Post
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)
Thanks man looks like buzz is gonna have a look at it
Mrsash is offline   Reply With Quote
Old 17th September 2009, 15:33   #17  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Always open your script in a media player before encoding it with x264.
roozhou is offline   Reply With Quote
Old 17th September 2009, 16:19   #18  |  Link
buzzqw
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
buzzqw is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:35.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.