[Ffmpeg-devel] integrating AVS decoding into MPlayer

Måns Rullgård mru
Fri Jul 14 10:05:43 CEST 2006


Reimar Doeffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> writes:

> Hello,
> On Thu, Jul 13, 2006 at 10:11:30PM +0100, M??ns Rullg??rd wrote:
>> "Stefan Gehrer" <stefan.gehrer at gmx.de> writes:
>> > Von: "M??ns Rullg??rd" 
>> >> I don't see how this fourcc gets used.  The files are MPEG PS, and the
>> >> lavf PS demuxer detects AVS video without consulting that table.
>
> And what about remuxing into e.g. avi?

There is no avi fourcc defined for avs, so it can't be done.

>> > MPlayer's demux_lavf.c calls codec_get_bmp_tag() to translate lavf's
>> > codec_id into a codec_tag, and it seems that it does things after that
>> > based on codec_tag only, but I might be wrong.
>> 
>> That's just plain wrong.  Someone needs to fix mplayer.
>
> What is so wrong about that?

You can't play files using codecs without a defined avi fourcc.

> And how should it be fixed? By duplicating the codec_get_bmp_tag and
> table?

Of course not.  That would accomplish nothing.

> By switching to codec id instead of fourcc? What would be the
> advantage of that?

A player that can handle more than one container format needs an
internal codec identification system, be it based on integers,
strings, or something else.  Each demuxer has to map whatever id
system its container uses to the internal id.  How does mplayer handle
mpeg ts codec ids anyway?  Or matroska?  Or ogg?  None of those use a
fourcc at all, so they can't possibly be looked up in the avi table.

There is *nothing* fundamental about those goddamn fourccs.  As soon
as you realize that, your life will become so much easier.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list