PDA

View Full Version : x264 crashing with x264 v1181 when encoding 1080i Bluray VC-1 to 720p x264 - HELP!


hajj_3
14th July 2009, 14:12
here's my .avs file made using avsp 2.02:

DirectShowSource("E:\1080p\00154.m2ts", Audio=false, Fps=25.000)

ConvertToYV12()

Crop(4,2,-6,-2)

Spline36resize(1280,720)

LeakKernelDeint(order=1,sharp=true)

here's the crash:

http://i26.tinypic.com/mct4l2.jpg


I also tried this:

DirectShowSource("E:\1080p\docu.grf", Audio=false, Fps=25)

ConvertToYV12()

Crop(4,2,-6,-2)

Spline36resize(1280,720)

LeakKernelDeint(order=1,sharp=true)

but when i dont have VC-1's default decoder in ffdshow set to libavcodec it gives me an error message:

http://i27.tinypic.com/28rcft5.jpg

and when i do have vc-1 set to libavcodec i get a timeout when loading the .avs into megui:

http://i31.tinypic.com/2q1hti0.jpg

hope someone can help.

roozhou
14th July 2009, 14:20
You problem has nothing to do with x264. Can you post a screenshot of your dshow graph?

hajj_3
14th July 2009, 14:28
this the graph u want to see?

http://i27.tinypic.com/2ewljzb.jpg

also should i use leakkerneldeint to de-interlace 1080i bluray VC-1 video to 720p x264 or should i use another deinterlacer or some other method?

roozhou
14th July 2009, 14:42
Can you play the avs script in mplayerc.exe?
And plz always do deinterlacing BEFORE resizing.

hajj_3
14th July 2009, 14:48
no it wont play with MPC, i get this error message:

http://i26.tinypic.com/r726wn.jpg

The audio plays fine with MPC by the way.

roozhou
14th July 2009, 14:55
Have you tried WMV Decoder DMO instead of ffdshow?

hajj_3
14th July 2009, 15:01
no, do you have a url for information about that?

neuron2
14th July 2009, 15:01
If you have an Nvidia card, then there's DGVC1DecNV as well.

roozhou
14th July 2009, 15:06
no, do you have a url for information about that?

It's shipped with WMP 11. Once you installed WMP11, WMV Decoder DMO becomes the default decoder for VC1.

hajj_3
14th July 2009, 15:17
roozhou, when i disable VC-1 in ffdshow i get the error message show in an earlier post. When i select WMV9 in ffdshow megui does open the .avs but the video is all pixelated and there is a green bar on the right side:

http://i27.tinypic.com/2mrb6mv.jpg

I'm on xp pro sp3 and have installed media player 11. The only codecs and related apps i have installed are wmp11, xvid 1.2.2, ac3filter, powerdvd9, ffdshow, coreavc, haali media splitter, avisynth 2.58.

roozhou
14th July 2009, 16:30
Try disabling VC1 in ffdshow

hajj_3
14th July 2009, 16:38
i already tried that, thats when i got this error message when loading the .avs into megui:

http://i27.tinypic.com/28rcft5.jpg

when i load the other .avs that has the .m2ts file as the source instead of a .grf file it has video glitches and green bar on the right as seen in the screenshot earlier.

Adub
14th July 2009, 17:25
You shouldn't have to use a .grf file to load up this blurary. Directshowsource should be able to load the m2ts file on it's own.

hajj_3
14th July 2009, 18:04
yeah i only tried a .grf file as loading the .m2ts file gives a glitchy picture in megui and a green bar at the right side.

Any ideas how i can fix this problem?

a4840639
14th July 2009, 18:06
VC1 decoder in FFDSHOW looks like really unstable, try MPC Video Decoder(VC1/FFMPEG) instead, it is much better.
I'm not sure if MPC Video Decoder can handle interlaced source properly.
WMVdec DMO is ok, but DMO is relly annoying in Directshow.

If you have an Nvidia card, then there's DGVC1DecNV as well.
I do think DGVC1DecNV is the most reliable solution, but it requires a graphic card which supports CUDA, the software itself is not free additionally.

Dark Shikari
14th July 2009, 18:18
VC1 decoder in FFDSHOW looks like really unstable, try MPC Video Decoder(VC1/FFMPEG) instead, it is much better.Spoiler: they're the same decoder :p

a4840639
14th July 2009, 18:22
Spoiler: they're the same decoder :p

ok, I have not noticed that there is a libavcodec docoder for vc1 in FFDSHOW before(Maybe I was using an older version of FFDSHOW which only has wmv9 decoder for vc1 or I'm totally wrong)

Atak_Snajpera
14th July 2009, 18:52
@hajj_3
Can you upload sample?

hajj_3
14th July 2009, 19:05
just cut a 20s (46mb) sample with tsmuxer: http://www.sendspace.com/file/u7alib

This sample has the sample problem for me, green bar on the right and if you skip to the beginning or end using the preview window that opens in megui you will see video corruption.

Atak_Snajpera
14th July 2009, 20:05
I encoded your sample in RipBot and this is result
http://www.mediafire.com/file/xytl2eqzylc/sample3.mkv

hajj_3
14th July 2009, 20:17
i decided to ignore the glitches and green bar from the video preview and encoded it hoping that it was a megui problem, unfortunately the .mkv file has the sample problem: http://www.sendspace.com/file/me61e9

hope someone else can try with megui using this .avs script and see if they have the same problem:

DirectShowSource("E:\1080p\00154.m2ts", Audio=false, Fps=25.000)

ConvertToYV12()

Crop(4,2,-6,-2)

LeakKernelDeint(order=1,sharp=true)

Spline36resize(1280,720)

Atak_Snajpera
14th July 2009, 20:35
No green bars in MeGUI.

http://img21.imageshack.us/img21/1189/new1esn.th.jpg (http://img21.imageshack.us/i/new1esn.jpg/)

a4840639
14th July 2009, 20:42
i decided to ignore the glitches and green bar from the video preview and encoded it hoping that it was a megui problem, unfortunately the .mkv file has the sample problem: http://www.sendspace.com/file/me61e9

hope someone else can try with megui using this .avs script and see if they have the same problem:

DirectShowSource("E:\1080p\00154.m2ts", Audio=false, Fps=25.000)

ConvertToYV12()

Crop(4,2,-6,-2)

LeakKernelDeint(order=1,sharp=true)

Spline36resize(1280,720)

Your problem is totally about the using of avs, no relationship with AVC encoding.
Deinterlacing should be used firstlly.
In fact you don't need to deinterlace you source, since I think it is shot in 25P (blu-ray only supports 25i, so your source is encoded in 25i)

hajj_3
14th July 2009, 20:46
the bluray is interlaced, UK BBC blurays are filmed in 25fps 1080i as they air on BBCHD in 25fps 1080i, even mediainfo says this when you open the .m2ts file:

Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 25.000 fps
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.549

atak, you used avisynth script creator in megui, can you try with the .avs i pasted and open that with megui and see if you have the video problems please.

Atak_Snajpera
14th July 2009, 20:49
Use MeGUI to create script because you did ugly mistake. Deinterlacer MUST be put before ANY other filter!

hajj_3
14th July 2009, 20:55
so i should use the following?

DirectShowSource("E:\1080p\00154.m2ts", Audio=false, Fps=25.000)

LeakKernelDeint(order=1,sharp=true)

ConvertToYV12()

Crop(4,2,-6,-2)

Spline36resize(1280,720)

Atak_Snajpera
14th July 2009, 20:58
Why don't you just try Megui's avs creator? At least we will be on the same page.

a4840639
14th July 2009, 21:10
the bluray is interlaced, UK BBC blurays are filmed in 25fps 1080i as they air on BBCHD in 25fps 1080i, even mediainfo says this when you open the .m2ts file:

Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 25.000 fps
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.549

atak, you used avisynth script creator in megui, can you try with the .avs i pasted and open that with megui and see if you have the video problems please.
I have said that blu-ray only supports 25i, 25P is not allowed.
If you can't find any interlacing, interlaced source is actually progressive.

FFMPEG baesd vc1 decoder seems doesn't work with this source(both MPC and FFDSHOW), WMV9 decoder in FFDSHOW will cause bloking, WMVDEC DMO works just fine.

hajj_3
14th July 2009, 21:28
just tried avisynth script creator and opened the .m2ts file and there was no green so i moved the slider to navigate at different timecodes and then the video corruption happened and then megui itself crashed completely:(

when i move the deinterlace part in the .avs to the line after the directshowsource line there is no green bar however some frames are pixelated in the video:(

EDIT: i forgot to disable VC-1 in ffdshow, i set it to WMV9. It APPEARS to work fine now, i'll let you guys know if there are any more problems.

hajj_3
14th July 2009, 22:50
x264.exe crashes after 2.72% of the 1st pass each time, i used megui avisynth script creator.

hajj_3
15th July 2009, 20:52
any ideas? I would try DGvc1decNV but there is no trial, i don't wanna spend $15 for something that might not work. Hoping that I have a setting wrong somewhere that will fix my problem.

kemuri-_9
15th July 2009, 21:17
find out what is causing your crash then.
getting a debug build of x264 and using gdb will be helpful.

Anacletus
15th July 2009, 21:21
any ideas? I would try DGvc1decNV but there is no trial, i don't wanna spend $15 for something that might not work. Hoping that I have a setting wrong somewhere that will fix my problem.

1st. use eac3to and put the vc1 stream of the m2ts in a mkv container

2nd. create a graph with Haali Media Splitter --> WMVideo Decoder DMO

3rd. go to sleep while you encode :)

neuron2
15th July 2009, 21:30
i don't wanna spend $15 for something that might not work. I already tried it on your sample. It works just fine.

hajj_3
15th July 2009, 22:43
find out what is causing your crash then.
getting a debug build of x264 and using gdb will be helpful.

i've managed to download gdb .tar.gz file, i don't have a clue how to use it though. Where can i get a debug build of x264 from?

laserfan
15th July 2009, 22:46
Where can i get a debug build of x264 from?I think you're barking up the wrong tree. The problem is with decoding, not x264.

There seem to be some VC1's for which the only reliable decoding is DG's NV tools.

hajj_3
15th July 2009, 22:50
i'm 99.9% sure the problem will be on my end but the crash report may tell me what i'm doing wrong.

Something strange i've just found... I just used eac3to to put the vc1 file into a .mkv container, i then opened this with avisynth script creator in megui and it has now encoded 7.5% so far without crashing, before it would get to 2.7% each time. Any ideas why?

kemuri-_9
16th July 2009, 02:11
x264_debug.exe (http://kemuri9.net/dev/x264/x264_debug.exe)


gdb --args x264_debug.exe <x264_options>
run
*crash occurs*
bt


the backtrace (bt) you see should tell you where the crash occurred and how it got there.