Like this: mkfifo /dev/shm/renderfarm.y4m <-- random name from previous test cin /home/admin/huawei_matepad_t/sdcard1/video/20200101_000443A.mp4 ............
encoded 397 frames in 400.09s (0.99 fps), 4154.67 kb/s, Avg QP:32.22 ===== Initially i set cingg cache to low value like 16 Mb and render aborted at around 8 sec, then I set cache to 256 Mb and it finished for complete 13 seconds/ 397 frames.... So, you can use external ffmpeg (and its array of encoders), or x265 directly this way. (if you use normal file it will be 4.7 Gb per 13 seconds of 4k30 video ...)
ffmpeg -hide_banner -encoders | grep qsv
V..... av1_qsv AV1 (Intel Quick Sync Video acceleration) (codec av1)
V..... h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
V..... hevc_qsv HEVC (Intel Quick Sync Video acceleration) (codec hevc)
V..... mjpeg_qsv MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg)
V..... mpeg2_qsv MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)
V..... vp9_qsv VP9 video (Intel Quick Sync Video acceleration) (codec vp9)