I have seen ffmpeg has some codecs (e.g. H.264) which are defined as lossless and lossy at the same time, and from my understanding, lossless and lossy are mutually exclusive: a compression algorithm either losses information or doesn't.
How is it possible to be lossless and lossy at the same time?
Running ffmpeg -codecs 2>/dev/null| grep h264
, I get:
DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [...]
DEV.LS
stands for Decoder, Encoder, Video, Not only intraframe compression, Lossy compression, Lossless compression.