Nvidia Tegra K1 4K encode problem

Hello, I have a problem about TK1, I used TK1 to encode a 4k(40962160) video by x265 in ffmpeg(not by gstreamer hard encoding),then it will give me “killed” information and the code could not continue. Then I found the topic here and read the data sheet, now I know TK1 can’t support 4k video encoding, but support 2160p(38402160) video encoding. It is true because I tried a 2160p video and encoded successfully.

The problem is that when I use x264lib in gst command(hard encoding) to encode the 4k video which is unsuccessful in x265 of ffmpeg, the 4k video could encoded successfully.

Why TK1 can only support 4k video hard encoding and reject 4k video soft encoding?

Really need your help, thx a lot!

What is your gstreamer command?

The HW H264 encoder on TK1 is omxh264enc, which supports up to 1080p30. If you install x264lib manually, it is SW encoding.

Thx for giving me reply, I had a mistake in my topic description, sorry.
I have already installed x265lib by ffmpeg in TK1, my command in HW was by gstreamer omxh264enc(because TK1 doesn’t support omxh265enc), and my command in SW was by x265lib.

My gstreamer command is:

gst-launch-1.0 filesrc location=4k_video.yuv ! videoparse format=i420 width=4096 height=2160 ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! filesink location=4k_video.h264 -e

This is successful.

And my SW code is:

ffmpeg -s 4096x2160 -pix_fmt yuv420p -i 4k_video.yuv -vcodec libx265 -r 25 4k_video.h265 -psnr

This is unsuccessful(I have already installed x265lib by ffmpeg).

Since ffmpeg is from 3rdparty, we don’t have experience and please other users can share knowledge about it.

The HW H264 encoder on TK1 is omxh264enc, which supports up to 1080p30, why I encoded 4k(HW), it could also encode successful?

Anyway, thank you for your reply ^_^

It is not able to achieve 4Kp30.