Xiaopang
28th July 2014, 23:26
I stumbled over some 8k content and wanted to re-encode it with the latest x264. However, I always run into malloc-errors even though the memory usage doesn't really seem that high.
The video in question is only 1 second long (60 fps) and I have 8GB of memory. I tested this after a fresh reboot. Is it really possible that this is not enough for such a short encode or is it a limitation in x264?
According to this thread (http://forum.doom9.org/archive/index.php/t-167021.html) there's probably no resolution limitation in the encoder, yet it also says that Level 5.2 only supports up to 4k. Since the encoder resorts to using this level even though the video has a resolution of 7680 x 4320 could this be the reason for this error?
This is my command line btw:
--threads auto --crf 0 --keyint 600 --ref 16 --no-fast-pskip --bframes 16 --b-adapt 2 --direct auto --me tesa --merange 64 --subme 11 --trellis 2 --partitions all --rc-lookahead 100 --no-dct-decimate --input-range pc --range pc
I also tried it with a lookahead value of 10 to no avail.
If you're wondering why I'm wasting time with such an apparently useless endeavor: The creator of this file used Lagarith to compress it losslessly and the original file has a size of a whooping 2,4GB. I just want to see how much better x264's lossless mode fares against Lagarith.
The creator didn't use much compression so I was able to recompress the source to only 1,67 GB, saving 750MB. It looks like x264 could get this down to 500MB, but there's no way to find out other than trying :)
In case someone wants to give the video a shot, you can download it here. (http://www.perfecthandproductions.com/video-crysis-3-8k-render)
The video in question is only 1 second long (60 fps) and I have 8GB of memory. I tested this after a fresh reboot. Is it really possible that this is not enough for such a short encode or is it a limitation in x264?
According to this thread (http://forum.doom9.org/archive/index.php/t-167021.html) there's probably no resolution limitation in the encoder, yet it also says that Level 5.2 only supports up to 4k. Since the encoder resorts to using this level even though the video has a resolution of 7680 x 4320 could this be the reason for this error?
This is my command line btw:
--threads auto --crf 0 --keyint 600 --ref 16 --no-fast-pskip --bframes 16 --b-adapt 2 --direct auto --me tesa --merange 64 --subme 11 --trellis 2 --partitions all --rc-lookahead 100 --no-dct-decimate --input-range pc --range pc
I also tried it with a lookahead value of 10 to no avail.
If you're wondering why I'm wasting time with such an apparently useless endeavor: The creator of this file used Lagarith to compress it losslessly and the original file has a size of a whooping 2,4GB. I just want to see how much better x264's lossless mode fares against Lagarith.
The creator didn't use much compression so I was able to recompress the source to only 1,67 GB, saving 750MB. It looks like x264 could get this down to 500MB, but there's no way to find out other than trying :)
In case someone wants to give the video a shot, you can download it here. (http://www.perfecthandproductions.com/video-crysis-3-8k-render)