The syntax is quite similar so I am not going to describe it again.įfmpeg -r 25 -f image2 -i input_file%4d.tif -c:v libx264 -preset veryslow -x264-params crf=23 -strict experimental -f mpegts output_file.ts So, this are the commands that we are using to encode our video.
Here we are going to explain the syntax to encode a video with FFmpeg using the libx265 or libx264.įirstly, in order to use FFmpeg you can either compile it or download the binaries. We prefer the binaries and what is even more amazing is the cross-platform interoperability.
The advantages from H265 come in its filesize averaging just 61,648.88 Kilobytes whilst H264 was 103,183.18 KB. H264 averaged 23.91 encoding fps, whilst H265 averaged an encoding FPS speed of just 5.63. The tool that we are using to encode the video sequences is FFmpeg.įFmpeg is a opensource cross-platform solution to record, convert and stream audio and video. We find it very useful especially because of the x265 implementation. The average of all the H264 encode times in seconds was 144.42 whilst H265 was a much greater 590.65 seconds. With 51 file is 3 times smaller and quality is worther. This is the very beginning of the experiment. ffmpeg -i input.mp4 -vcodec h264nvenc -vcodec h264nvenc -cq 1 -acodec copy 25962-1.mp4 with values 0, 1 and 23 produce the same binary file having bad quality.