[FFmpeg-devel] [PATCH] lavc/dnxhdenc: print valid dnxhd profiles when codec parameters are invalid

Michael Niedermayer michaelni at gmx.at
Sat Jan 19 14:42:37 CET 2013


On Sat, Jan 19, 2013 at 12:58:21PM +0100, Matthieu Bouron wrote:
> ---
>  libavcodec/dnxhdenc.c | 38 +++++++++++++++++++++++++++++++++++++-
>  1 file changed, 37 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
> index 690e64f..8a65f33 100644
> --- a/libavcodec/dnxhdenc.c
> +++ b/libavcodec/dnxhdenc.c
> @@ -247,6 +247,41 @@ static int dnxhd_init_rc(DNXHDEncContext *ctx)
>      return -1;
>  }
>  
> +static void dnxhd_print_profiles(AVCodecContext *avctx, int loglevel)
> +{
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 36Mbps;  pixel format: yuv422p;   framerate: 24000/1001\n");
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p;   framerate: 24000/1001\n");
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p;   framerate: 24000/1001\n");
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10; framerate: 24000/1001\n");
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p;   framerate: 25/1\n");
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p;   framerate: 25/1\n");
> +    av_log(avctx, loglevel, "Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1\n");

isnt there a table somewhere that can be pringted with a loop?
so that additions to that table would also update the prinout magically

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130119/e25716a9/attachment.asc>


More information about the ffmpeg-devel mailing list