[x265] Piping very large frames to x265 fails

Mateusz Brzostek mateusz at msystem.waw.pl
Sat May 13 23:40:57 CEST 2017


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.




> 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!
>



More information about the x265-devel mailing list