[vlc-devel] commit: More verbose ffmpeg encoding failure ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Oct 22 16:19:39 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Oct 22 17:18:00 2008 +0300| [c60bc004b6316fb3c739f503402768f097261d50] | committer: Rémi Denis-Courmont
More verbose ffmpeg encoding failure
(cherry picked from commit 7bd6af3396320ab00dc7fa646f6d9764099495e8)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c60bc004b6316fb3c739f503402768f097261d50
---
modules/codec/avcodec/encoder.c | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 9e115b2..bd81231 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -244,9 +244,23 @@ int OpenEncoder( vlc_object_t *p_this )
p_codec = avcodec_find_encoder( i_codec_id );
if( !p_codec )
{
- msg_Err( p_enc, "cannot find encoder %s", psz_namecodec );
- intf_UserFatal( p_enc, false, _("Streaming / Transcoding failed"),
- _("VLC could not find encoder \"%s\"."), psz_namecodec );
+ msg_Err( p_enc, "cannot find encoder %s\n"
+"*** Your FFMPEG installation is crippled. ***\n"
+"*** Please check with your FFMPEG packager. ***\n"
+"*** This is NOT a VLC media player issue. ***\n", psz_namecodec );
+
+ intf_UserFatal( p_enc, false, _("Streaming / Transcoding failed"), _(
+/* I have had enough of all these MPEG-3 transcoding bug reports.
+ * Downstream packager, you had better not patch this out, or I will be really
+ * annoyed. Think about it - you don't want to fork the VLC translation files,
+ * do you? -- Courmisch, 2008-10-22 */
+"It seems your FFMPEG (libavcodec) installation lacks the following encoder:\n"
+"%s.\n"
+"If you don't know how to fix this, ask for support from your distribution.\n"
+"\n"
+"This is not an error inside VLC media player.\n"
+"Do not contact the VideoLAN project about this issue.\n"),
+ psz_namecodec );
return VLC_EGENERIC;
}
More information about the vlc-devel
mailing list