Jibri - possible to use H.265?

Is it possible to use H.265 format in Jibri (instead of the current H.264)? Tried just changing the parameter, but that didn’t work. Any suggestions on how to would be appreciated.

You mean have Jibri encode in h265? That’s just a function of ffmpeg and finding the right arguments (but I don’t know them offhand).

Yes - encode in H265. I tried to replace libx264 with libx265, which should do it, but I got a file that couldn’t be opened and I noticed a huge memory spike on the server (which may or may not have been due to the change). Are parameters just passed in Jibri or are they baked into other equations?

Alternatively, do you think I might be able to get an uncompressed file from Jibri?

Hmm…mm looks like H.265 doesn’t come by default. Let me go research this some more. I’ll be back.

@bbaldino any chance you could help with the ffmpeg arguments? I’ve tried all kinds of permutations with no luck - either the (libx265) arguments get ignored or the produced file runs in fast motion.

What have you tried? What sort of errors are you seeing?

@bbaldino If I just change libx264 to x265, no change whatsoever:

> ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720 -i :0.0+0,0 -f alsa -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx264 -preset veryfast -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 21 -g 60 -tune zerolatency -f mp4 test.mp4 ([ffmpeg, -y, -v, info, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1280x720, -i, :0.0+0,0, -f, alsa, -acodec, aac, -strict, -2, -ar, 44100, -b:a, 128k, -af, aresample=async=1, -c:v, libx264, -preset, veryfast, -profile:v, main, -level, 3.1, -pix_fmt, yuv420p, -r, 30, -crf, 21, -g, 60, -tune, zerolatency, -f, mp4, test.mp4])

If I try to add x265 params, I get a file in fast motion:

ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1600x900 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx265 -preset veryfast -x265-params profile=main:level=3.1:crf=21 pix_fmt yuv420p -r 30 -crf 21 -g 60 -tune zerolatency -f mp4 sHD.mp4

Have you tried those commands manually (not in Jibri)? Do they work there? I’m no expert on ffmpeg args, so don’t think I have anything for you that Google wouldn’t, I’m afraid.

Yeah, these were all run manually - wanted to confirm they work before making the changes in Jibri code.

Ok, no worries. Thanks!

Hi!
Any progress on h265 for Jirbi?
We want to record in h265 codec, because this is little size video, then h264

You can use a fake ffmpeg