At some point the video stops moving for 3 seconds. The API may change.įfmpeg.exe -i h264source.mkv -vcodec libx265 -preset slower -threads 0 -crf 24 -an h265output.mkv The source h.264 video is a recording of a RTMP-stream. Note: libx265 is under heavy development. ffmpeg has support for HEVC encoding using the x265 encoder.
The good news for Linux users is that the H.265 codec is available in the popular encoding suite “ffmpeg.” Although ffmpeg probably exists in your distro’s repositories, it might be out of date or it might not have support for H.265 compiled in.įFmpeg and H.265 Encoding Guide ¶ H.265 (also known as HEVC) offers 50-75% more compression efficiency compared to H.264 video, while retaining the same visual quality. Now you can use ffmpeg directly to encode HEVC or use another encoder then manually mux that, or.mkv using FFmpeg. FFmpeg supports encoding HEVC/H.265 since with libx265.