[FFmpeg-devel] [PATCH] Remove extensions from MPEG-PS muxers.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Nov 17 16:30:34 CET 2013


On Sun, Nov 17, 2013 at 04:18:27PM +0100, Michael Niedermayer wrote:
> On Sun, Nov 17, 2013 at 01:25:32PM +0100, Reimar Döffinger wrote:
> > diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
> > index 0a9d69b..3c6cef2 100644
> > --- a/libavformat/mpegenc.c
> > +++ b/libavformat/mpegenc.c
> > @@ -1173,7 +1173,6 @@ AVOutputFormat ff_mpeg1system_muxer = {
> >      .name              = "mpeg",
> >      .long_name         = NULL_IF_CONFIG_SMALL("MPEG-1 Systems / MPEG program stream"),
> >      .mime_type         = "video/mpeg",
> > -    .extensions        = "mpg,mpeg",
> >      .priv_data_size    = sizeof(MpegMuxContext),
> >      .audio_codec       = AV_CODEC_ID_MP2,
> >      .video_codec       = AV_CODEC_ID_MPEG1VIDEO,
> > @@ -1204,7 +1203,6 @@ AVOutputFormat ff_mpeg2vob_muxer = {
> >      .name              = "vob",
> >      .long_name         = NULL_IF_CONFIG_SMALL("MPEG-2 PS (VOB)"),
> >      .mime_type         = "video/mpeg",
> > -    .extensions        = "vob",
> >      .priv_data_size    = sizeof(MpegMuxContext),
> >      .audio_codec       = AV_CODEC_ID_MP2,
> >      .video_codec       = AV_CODEC_ID_MPEG2VIDEO,
> 
> breaks fate and any script that encodes mpeg ps, dvds, .vob, .mpg

As far as I can tell rather "fixes any script that encodes dvds".
Going by the description I concluded this muxer isn't suitable for
creating vobs for DVDs, which is why I propose removing the extension,
considering it _preferable_ to break those scripts to having them
continue produce bad files, even though it might have worked...
I was thinking about moving the extensions, but that would then
for _some_ people probably break scripts silently and without
warning.
What else could/should be done?


More information about the ffmpeg-devel mailing list