diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-07-28 18:29:28 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-07-29 16:13:07 +0200 |
commit | 5c81a9ff55d33c97cf62bd947c4faee96da85296 (patch) | |
tree | 881700bf71984e586a44bd6b9f251cd58cf8f853 /libavcodec/libx264.c | |
parent | e4f3a9693dd003393131f8e144ef3515e93fe6cd (diff) | |
download | ffmpeg-streaming-5c81a9ff55d33c97cf62bd947c4faee96da85296.zip ffmpeg-streaming-5c81a9ff55d33c97cf62bd947c4faee96da85296.tar.gz |
libx264: list possible profiles.
The values are listed if setting them fails.
Using "-profile help" or "-profile list" have that effect.
Similar to 3aba391.
Suggested by "rogerdpack" in trac ticket #1529.
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index dd74081..84e4935 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -447,7 +447,12 @@ static av_cold int X264_init(AVCodecContext *avctx) if (x4->profile) if (x264_param_apply_profile(&x4->params, x4->profile) < 0) { + int i; av_log(avctx, AV_LOG_ERROR, "Error setting profile %s.\n", x4->profile); + av_log(avctx, AV_LOG_INFO, "Possible profiles:"); + for (i = 0; x264_profile_names[i]; i++) + av_log(avctx, AV_LOG_INFO, " %s", x264_preset_names[i]); + av_log(avctx, AV_LOG_INFO, "\n"); return AVERROR(EINVAL); } |