[FFmpeg-user] ISSUE WITH LIBX265 CODEC

Ferdi Scholten ferdi at sttc-nlp.nl
Wed Feb 28 09:30:01 EET 2024


Here is the command line I used :
> ffmpeg.exe -loglevel error -sn -i "D:\temp\source_movie.mp4" -map 0:v:0 -map 0:a:0 -acodec libmp3lame -ar 48k -b:a 128k -q:a 3 -vcodec libx265 -vf scale=768:432 -sws_flags lanczos+accurate_rnd -b:v 1008k -minrate 1008k -maxrate 1008k -r 2997/100 -qscale:v 2 -x265-params "nal-hrd=cbr:force-cfr=1:vbv-maxrate=1008:vbv-bufsize=1512 "  -log_level -1 "C:\temp\re_encoded_movie.avi" -bufsize 1548288
>
> and here are the technical infos, displayed by the program, in the DOS window :
>
> [cid:145e4b32-21c1-476c-8105-fbdd5cb8372e]
>
> I hope those infos will help.
>
> Regards,
> HA
>
Although the avi container supports the X265 codec this is merely 
because it is not really critical about what Codec is used, By design 
avi has many limitations for modern Codecs. You cannot use B-frames for 
example and many of the other advantages of the HEVC format cannot be 
used in this ancient container format. Remember the avi container dates 
from the early 1990's when X265, X264 or any other modern codec did not 
exist yet! Use avi for the Codecs of that era and youĺl be fine! (xvid, 
divx etc.)

So please use a modern container format for X265 encoded video, such as 
MP4 or MKV. They are much more efficient and allow full use of all X265 
features.


More information about the ffmpeg-user mailing list