[FFmpeg-devel] Meaningful return codes (was [PATCH 7/9] Replace AVERROR_NOTSUPP by AVERROR(ENOSYS))

Víctor Paesa wzrlpy
Tue Jul 31 20:44:15 CEST 2007


>>> Furthermore, I'm not sure it's possible to do what you are
>>> suggesting. Let's say you want to express things like the allowed
>>> framesize. Some codecs accept only a fixed list of resolutions,
>>> others might only accept even resolutions, of maybe some resolutions
>>> within some range.
>> max + multiple + fixed list would be enough ...
> Yes, for the contraints I mentioned that would be enough.
> Slightly OT: But sometimes you need even more complex contraints.   Some
> time ago I was looking into ways for describing some kind of   profile
> for specific devices. And it turned out to be quite hard imho   as some
> of the constraints weren't simple statements like
> "resolutions A,B,C are supported" but more like, "resolution A is
> supported with framerate < B and bitrate < C" etc.. I couldn't find a
> _simple_ way to describe such constraints.

You could describe such constraints using a FFMpeg evaluable expression

For example, full size DVD restrictions might be stated as:


More information about the ffmpeg-devel mailing list