I'm having a hard time with x264 CLI encoding.

I'm trying to encode a Blu-Ray source (8GB .m2ts file) into an MP4 video, but x264.exe keeps crashing at approximately 20% progress.

This is the Avisynth script I'm using:

Source="C:\Ithilion\Temp\Editing\Anime\input.m2ts"
V=FFVideoSource(Source,fpsnum=24000,fpsden=1001)
A=FFAudioSource(Source)
AudioDub(V,A)

GradFun2DBmod(str=1.2)

aWarpSharp2(depth=20)
LimitedSharpenFaster(strength=255)

TextSub("C:\Ithilion\Temp\Editing\Anime\subs1.ass")
TextSub("C:\Ithilion\Temp\Editing\Anime\subs2.ass")

These are the commands I'm using for the encode:

x264 --profile high10 --level 5.1 --crf 23 --bframes 10 --b-adapt 2 --direct auto
--me umh --merange 24 --partitions all --rc-lookahead 60 --ref 16 --subme 10 
--trellis 2 --deblock -2:-2 --psy-rd 0.6:0.0 --aq-strength 1 --acodec aac 
--abitrate 256 --output "output.mp4" "input.avs"

This is the error I get:

Name of the application that generated the error: x264.exe, Version: 0.0.0.0, time stamp: 0x4e427829
Module name that generated the error: KERNELBASE.dll, Version: 6.1.7601.17651, time stamp: 0x4e211319
Exception Code: 0xc00000fd
Fault offset 0x0000b9bc
Process ID that generated the error: 0xaac
Start time of the application that generated the error: 0x01cc64e7f962548a
Path to the application that generated the error: C:\Ithilion\Temp\Editing\x264\x264.exe
Path of the module that generated the error: C:\Windows\syswow64\KERNELBASE.dll
ID alert: a702ec4e-d0e7-11e0-b4d3-0023547ccfc5

I'm running Windows 7 64-bit on a Q9400 @3200mHz with 4GB RAM.

Any ideas why it keeps crashing, and how I can fix it?

link|improve this question
feedback

migrated from stackoverflow.com Aug 28 '11 at 20:10

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown