[Ffmpeg-devel] [PATCH] flv muxer metadata

Aurelien Jacobs aurel
Fri Dec 8 15:34:59 CET 2006


On Thu, 7 Dec 2006 16:22:25 -0800
allan at counterpop.net (Allan Hsu) wrote:

> >From the secret journal of Baptiste Coudurier:
> [...]
> > > [...]
> > > +
> > > +            switch(enc->codec_id) {
> > > +                case    CODEC_ID_PCM_S8:
> > > +                case CODEC_ID_PCM_S16BE:
> > > +                    audiocodecid = FLV_CODECID_PCM_BE >> FLV_AUDIO_CODECID_OFFSET; break;
> > > +                case CODEC_ID_ADPCM_SWF:
> > > +                    audiocodecid = FLV_CODECID_ADPCM  >> FLV_AUDIO_CODECID_OFFSET; break;
> > > +                case       CODEC_ID_MP3:
> > > +                    audiocodecid = FLV_CODECID_MP3    >> FLV_AUDIO_CODECID_OFFSET;
> > > +                    samplesize = 16;
> > > +                    break;
> > > +                case CODEC_ID_PCM_S16LE:
> > > +                    audiocodecid = FLV_CODECID_PCM_LE >> FLV_AUDIO_CODECID_OFFSET; break;
> > > +                default:
> > > +                    //unsupported format, but the get_audio_flags check below will catch it.
> > > +                    break;
> > > +            }
> > 
> > lookup table for CODEC_ID -> FLV_CODEC_ID.
> 
> I'm not sure exactly what you mean by this. My interpretation of this
> suggestion doesn't make much sense. Please explain?

For an example of how you could implement lookup table grep for
voc_codec_tags and it's use with codec_get_tag().

Aurel




More information about the ffmpeg-devel mailing list