[x265] Piping very large frames to x265 fails

Michael Lackner michael.lackner at unileoben.ac.at
Mon May 15 08:44:07 CEST 2017


Hello,

On 05/13/2017 11:40 PM, Mateusz Brzostek wrote:
> W dniu 2017-05-11 o 15:21, Michael Lackner pisze:
>> Hello,
>>
>> Hate to nag you people again, but I ran into something interesting. I've been piping a 24p
>> 10-bit video in 8192x3428 to x265 from ffmpeg. Works fine.
>>
>> Now I tried with 16:9 content, so a larger 8192x4608 resolution. Works fine when it's
>> coming from a raw YUV file, but when I read from a pipe with x265, it would say:
>>
>> x265 [error]: unable to open input file <->
> In file source/input/input.h there is line #30:
> #define MAX_FRAME_HEIGHT 4320
> 
> You can change 4320 to 8640 for example and compile x265 (but HEVC max resolution is 8192x4320).
> 
> x265 checks this limit only for Y4M input.

After posting to the list (I know I should have done it beforehand, my apologies), I had
read about that. So I violated the standard.

Also explains why it worked for YUV input then.

I have adjusted my input to 8192x4320 now! If I really need/want to go beyond that I guess
I can just patch the code.

Thank you for clearing that up!

>> Piping from ffmpeg to cat works ok though. Just switching back the input files makes it
>> work. They've been created in the exact same way, just at a different scale.
>>
>> Reproducible like this for 10-bit, tried on Linux and FreeBSD:
>>
>> ffmpeg -r 24 -i input.h265 -strict -1 -f yuv4mpegpipe -pix_fmt yuv420p10le -r 24 - | x265
>> - --y4m -D10 -o out.h265
>>
>> Works with 8192x3428 input, fails with 8192x4608 input.
>>
>> I guess some kind of size limit is exceeded somewhere? Or am I doing something wrong again...
>>
>> Thanks!

-- 
Michael Lackner
Lehrstuhl für Informationstechnologie (CiT)
Montanuniversität Leoben
Tel.: +43 (0)3842/402-1505 | Mail: michael.lackner at unileoben.ac.at
Fax.: +43 (0)3842/402-1502 | Web: http://institute.unileoben.ac.at/infotech


More information about the x265-devel mailing list