2018-07-04 10:12:41 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2016-04-10 23:23:53.138440254 +0200
|
|
|
|
|
|
|
|
Improve the error messages a bit to say what's really going on
|
|
|
|
(in light of openSUSE's reduced build).
|
|
|
|
|
|
|
|
---
|
|
|
|
fftools/ffmpeg.c | 2 +-
|
|
|
|
fftools/ffmpeg_filter.c | 4 ++--
|
|
|
|
fftools/ffmpeg_opt.c | 2 +-
|
|
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
2019-03-02 08:38:30 +01:00
|
|
|
Index: ffmpeg-4.1.1/fftools/ffmpeg.c
|
2018-07-04 10:12:41 +02:00
|
|
|
===================================================================
|
2019-03-02 08:38:30 +01:00
|
|
|
--- ffmpeg-4.1.1.orig/fftools/ffmpeg.c 2019-02-09 21:56:07.000000000 +0100
|
|
|
|
+++ ffmpeg-4.1.1/fftools/ffmpeg.c 2019-03-01 09:04:20.287182857 +0100
|
|
|
|
@@ -2906,7 +2906,7 @@ static int init_input_stream(int ist_ind
|
2018-07-04 10:12:41 +02:00
|
|
|
if (ist->decoding_needed) {
|
|
|
|
AVCodec *codec = ist->dec;
|
|
|
|
if (!codec) {
|
|
|
|
- snprintf(error, error_len, "Decoder (codec %s) not found for input stream #%d:%d",
|
|
|
|
+ snprintf(error, error_len, "This build of ffmpeg does not include a \"%s\" decoder needed for input stream #%d:%d.",
|
|
|
|
avcodec_get_name(ist->dec_ctx->codec_id), ist->file_index, ist->st->index);
|
|
|
|
return AVERROR(EINVAL);
|
|
|
|
}
|
2019-03-02 08:38:30 +01:00
|
|
|
Index: ffmpeg-4.1.1/fftools/ffmpeg_filter.c
|
2018-07-04 10:12:41 +02:00
|
|
|
===================================================================
|
2019-03-02 08:38:30 +01:00
|
|
|
--- ffmpeg-4.1.1.orig/fftools/ffmpeg_filter.c 2019-02-09 21:56:02.000000000 +0100
|
|
|
|
+++ ffmpeg-4.1.1/fftools/ffmpeg_filter.c 2019-03-01 09:04:20.287182857 +0100
|
2019-02-05 13:16:42 +01:00
|
|
|
@@ -973,7 +973,7 @@ static int configure_input_filter(Filter
|
2018-07-04 10:12:41 +02:00
|
|
|
{
|
|
|
|
if (!ifilter->ist->dec) {
|
|
|
|
av_log(NULL, AV_LOG_ERROR,
|
|
|
|
- "No decoder for stream #%d:%d, filtering impossible\n",
|
|
|
|
+ "This build of ffmpeg does not have a suitable decoder for stream #%d:%d enabled, filtering impossible\n",
|
|
|
|
ifilter->ist->file_index, ifilter->ist->st->index);
|
|
|
|
return AVERROR_DECODER_NOT_FOUND;
|
|
|
|
}
|
2019-02-05 13:16:42 +01:00
|
|
|
@@ -1123,7 +1123,7 @@ int configure_filtergraph(FilterGraph *f
|
2018-07-04 10:12:41 +02:00
|
|
|
if (!ost->enc) {
|
|
|
|
/* identical to the same check in ffmpeg.c, needed because
|
|
|
|
complex filter graphs are initialized earlier */
|
|
|
|
- av_log(NULL, AV_LOG_ERROR, "Encoder (codec %s) not found for output stream #%d:%d\n",
|
|
|
|
+ av_log(NULL, AV_LOG_ERROR, "This build of ffmpeg does not include a \"%s\" encoder needed for output stream #%d:%d.\n",
|
|
|
|
avcodec_get_name(ost->st->codecpar->codec_id), ost->file_index, ost->index);
|
|
|
|
ret = AVERROR(EINVAL);
|
|
|
|
goto fail;
|
2019-03-02 08:38:30 +01:00
|
|
|
Index: ffmpeg-4.1.1/fftools/ffmpeg_opt.c
|
2018-07-04 10:12:41 +02:00
|
|
|
===================================================================
|
2019-03-02 08:38:30 +01:00
|
|
|
--- ffmpeg-4.1.1.orig/fftools/ffmpeg_opt.c 2019-02-09 21:56:02.000000000 +0100
|
|
|
|
+++ ffmpeg-4.1.1/fftools/ffmpeg_opt.c 2019-03-01 09:04:20.287182857 +0100
|
2019-02-05 13:16:42 +01:00
|
|
|
@@ -1306,7 +1306,7 @@ static int choose_encoder(OptionsContext
|
2018-07-04 10:12:41 +02:00
|
|
|
if (!ost->enc) {
|
|
|
|
av_log(NULL, AV_LOG_FATAL, "Automatic encoder selection failed for "
|
|
|
|
"output stream #%d:%d. Default encoder for format %s (codec %s) is "
|
|
|
|
- "probably disabled. Please choose an encoder manually.\n",
|
|
|
|
+ "probably disabled or this build of ffmpeg does not include that codec. Please choose an encoder manually.\n",
|
|
|
|
ost->file_index, ost->index, s->oformat->name,
|
|
|
|
avcodec_get_name(ost->st->codecpar->codec_id));
|
|
|
|
return AVERROR_ENCODER_NOT_FOUND;
|