[x265] Segfault when trying to encode yuv444p raw input file

Manjunath Sripadarao manjunaths at gmail.com
Mon Jan 27 12:49:17 CET 2014


Hello,
 I was trying to encode a file in the yuv444p format. x265 crashes when I
give this file as input, it works correctly if I convert the raw file to
yuv420p format through ffmpeg.

This is the command-line I am using

./x265 piece.y4m -o piece.h265
y4m  [info]: 960x540 50Hz C444, frames 0 - 2952 of 2953
x265 [info]: using cpu capabilities: MMX2 SSE SSE2Fast SSSE3 SSE4.2 AVX
x265 [warning]: Assembly not supported in this binary
x265 [info]: HEVC encoder version unknown
x265 [info]: build info [Linux][GCC 4.4.6][64 bit] 8bpp
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: WPP streams / pool / frames  : 9 / 24 / 5
x265 [info]: CU size                             : 64
x265 [info]: Max RQT depth inter / intra         : 1 / 1
x265 [info]: ME / range / subpel / merge         : hex / 60 / 2 / 2
x265 [info]: Keyframe min / max                  : 250 / 250
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-28.0 / 1.0 / 1
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / refs          : 1 / 1 / 3
x265 [info]: tools: rect amp rd=3 lft sao-lcu sign-hide

I am using the head of the hg trunk.

This is backtrace I was able to collect.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2aaaac452700 (LWP 55598)]
0x0000000000000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.132.el6.x86_64 libgcc-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.x86_64
(gdb) where
#0  0x0000000000000000 in ?? ()
#1  0x000000000059d4af in
x265::TComYuv::copyFromPicChroma(x265::TComPicYuv*, unsigned int, unsigned
int) ()
#2  0x000000000056a031 in
x265::TEncCu::xCompressIntraCU(x265::TComDataCU*&, x265::TComDataCU*&,
unsigned int) ()
#3  0x000000000056abbe in x265::TEncCu::compressCU(x265::TComDataCU*) ()
#4  0x000000000050a19a in x265::CTURow::processCU(x265::TComDataCU*,
x265::TComSlice*, x265::TEncSbac*, bool) ()
#5  0x0000000000504494 in x265::FrameEncoder::processRowEncoder(int) ()
#6  0x00000000005648de in x265::WaveFront::findJob() ()
#7  0x00000000004f1fd2 in x265::PoolThread::threadMain() ()
#8  0x00000000004f187a in x265::ThreadShim(void*) ()
#9  0x0000003d606079d1 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003d602e8b6d in clone () from /lib64/libc.so.6


I tried a raw yuv file too and get the same error

[manju at hestian59 Video]$ ./x265/build/linux/x265 --input-res 960x540 --fps
50 --input-csp 3 --input /ltmp/manju/Moonshot/piece.yuv --output
/ltmp/manju/Moonshot/piece.h265
yuv  [info]: 960x540 50Hz C444, frames 0 - 2952 of 2953
x265 [info]: using cpu capabilities: MMX2 SSE SSE2Fast SSSE3 SSE4.2 AVX
x265 [warning]: Assembly not supported in this binary
x265 [info]: HEVC encoder version 0.6+329-b59b1e579f78
x265 [info]: build info [Linux][GCC 4.4.7][64 bit] 8bpp
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: WPP streams / pool / frames  : 9 / 24 / 5
x265 [info]: CU size                             : 64
x265 [info]: Max RQT depth inter / intra         : 1 / 1
x265 [info]: ME / range / subpel / merge         : hex / 58 / 2 / 2
x265 [info]: Keyframe min / max                  : 250 / 250
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-28.0 / 1.0 / 1
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / refs          : 1 / 1 / 3
x265 [info]: tools: rect amp rd=3 lft sao-lcu sign-hide
Segmentation fault (core dumped)

Is there a fix for this bug ?

Thanks,
- Manju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140127/4c433d1a/attachment.html>


More information about the x265-devel mailing list