Log in

View Full Version : x264 is crashing on screen captures.


junglemike
2nd May 2012, 22:02
Hello fellas.
Usually, I'm using x264 with no problem.
Recently I've tried to encode screen capture files from CamStudio (open source) and x264 is crashning.
Any Idea what could be wrong?
Here's file info:
General
Complete name : P:\rec\20120502_2312_24.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 1.52 GiB
Duration : 44s 170ms
Overall bit rate : 295 Mbps

Video
ID : 0
Format : RGB
Codec ID : 0x00000000
Codec ID/Info : Basic Windows bitmap format. 1, 4 and 8 bpp versions are palettised. 16, 24 and 32bpp contain raw RGB samples
Duration : 44s 170ms
Bit rate : 295 Mbps
Width : 1 681 pixels
Height : 1 051 pixels
Display aspect ratio : 1.599
Frame rate : 200.000 fps
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.834
Stream size : 1.52 GiB (100%)

First, x264 complaint that resolution is wrong, then I added a resize, here is the script i'm tying:
for %f in (*.avi) do start "encode" /b /low /wait c:\encode\x264.exe --profile high --crf 23 --nr 500 --preset slow --vf resize:1680,1056 --output "p:\rec\dis.mkv" "%f"
Here what x264 manages to write until it is crashing:
ffms [error]: could not create video source
lavf [info]: 1681x1051p 0:1 @ 0/0 fps (vfr)
resize [info]: resizing to 1680x1056
resize [warning]: converting from bgr24 to yuv420p
x264 [info]: using SAR=36982/36785

First, I thought that resolution is too high, and tried to resize to dvd-like resolutions, but it is still crashing.
Maybe I need to add some conversion in .avs script?

MasterNobody
2nd May 2012, 22:23
Most likely it crash not in x264's code but in lavf (decoding) or swscale (resize) but can't be sure without sample or gdb backtrace of debug build.