[MPlayer-cvslog] CVS: main mencoder.c,1.326,1.327

Rich Felker dalias at aerifal.cx
Tue Dec 27 04:57:51 CET 2005


On Mon, Dec 26, 2005 at 10:45:16PM +0100, Aurelien Jacobs wrote:
> On Mon, 26 Dec 2005 14:15:54 -0500
> Rich Felker <dalias at aerifal.cx> wrote:
> 
> > On Mon, Dec 26, 2005 at 11:21:29AM -0600, Joey Parrish wrote:
> > > >This was discussed to death already and there's really no sane way to
> > > >do it.. Just drop it.
> > > 
> > > Not true.  Sane way: in absence of -of, of is guessed.  If you don't 
> > > give an extension we recognize, either fail with warning or default to 
> > > avi.  Add of=avi to your config for the old behavior.  What's wrong with 
> > > that?
> > 
> > And what happens if you use -o foo.mpg? Does it use muxer_mpg or
> > muxer_lavf with mpeg format selected??
> 
> Then why does `mplayer file.mpeg` works ?? why doesn't it require the
> -demuxer option ? There is also multiple demuxer available for the
> same format. But for every format, there is a prefered one.

This is totally different. You get same results regardless of which
demuxer you use unless one has a bug. Not so for muxers. There are
countless ways to mux a valid mpeg file.

> > Should it be mpeg-ps, mpeg-pes, or mpeg-ts???
> 
> The same as when you simply specify -of mpeg.

muxer_mpeg is ps-only. afaik lavf supports multiple mpeg formats, but
maybe that's only for demuxing.

> > Extension is simply not enough to know the desired
> > format to use.
> 
> Sure. It's also not enough to deduce the desired video bitrate, etc...
> But when no format is specified, and that a well know extension
> is used, we can decide to automaticaly select the most common format
> for this extension, instead of simply failing.

When encoding, failing right away is MUCH BETTER than silently
guessing something that may be incorrect and having the user only
realize after completing a 30-hour encode job...

Anyway this issue was already discussed to death in one of the hugest
most pointless threads on mplayer-dev-eng in a long time. If you cared
about it you should have joined the discussion then rather than
complaining after the conclusion was reached and the changes were
committed.

Rich




More information about the MPlayer-cvslog mailing list