[FFmpeg-devel] [PATCH 2/2] lavc/libaomenc: Support lossless encoding

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Apr 5 12:05:52 EEST 2020


Am Sa., 4. Apr. 2020 um 18:46 Uhr schrieb Ryo Hirafuji
<ryo.hirafuji at link-u.co.jp>:
>
> > In an ideal world, crf 0 would force all other settings for a lossless
> > encoding.
>
> I forgot to say that if "-lossless 1" is set, "crf" will also be 0 (in
> libaom, internally).
>
> All those conditions will be forced (ot at least checked by libaom) if we
> execute this line:
>
> > codecctl_int(avctx, AV1E_SET_LOSSLESS, ctx->lossless);
>
> So, how about executing this line if the "-crf 0" is set?

I would prefer this but I am not the maintainer.

See also:
https://patchwork.ffmpeg.org/project/ffmpeg/patch/CAB0OVGr6o6yR3bVAgJix7R7mZCRRVruw=jqA7wGJb+hQ2BvZUQ@mail.gmail.com/

Carl Eugen


More information about the ffmpeg-devel mailing list