[FFmpeg-devel] [PATCH] avfilter: Enable in MP4 container both AMR-NB and AMR-WB

Bob Kirnum bkirnum at gmail.com
Wed May 17 15:05:30 EEST 2017


Backwards compatibility tested running complete FATE testing.

Our media server can record to and play from MP4 containing H.264 and / or
AMR-NB / WB.  The codecs are proprietary implementations.  We use
libavformat for MP4 containers.  The recorded containers can be played back
using third party tools (open source implementations).

On Wed, May 17, 2017 at 7:52 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com>
wrote:

> 2017-05-17 13:04 GMT+02:00 Bob Kirnum <bkirnum at gmail.com>:
> > ---
> >  libavformat/isom.c   | 2 ++
> >  libavformat/movenc.c | 2 ++
> >  2 files changed, 4 insertions(+)
> >
> > diff --git a/libavformat/isom.c b/libavformat/isom.c
> > index 5522115..49ba735 100644
> > --- a/libavformat/isom.c
> > +++ b/libavformat/isom.c
> > @@ -69,6 +69,8 @@ const AVCodecTag ff_mp4_obj_type[] = {
> >      { AV_CODEC_ID_QCELP       , 0xE1 },
> >      { AV_CODEC_ID_MPEG4SYSTEMS, 0x01 },
> >      { AV_CODEC_ID_MPEG4SYSTEMS, 0x02 },
> > +    { AV_CODEC_ID_AMR_NB      , MKTAG('s', 'a', 'm', 'r') }, /* AMR-NB
> 3gp
> > */
> > +    { AV_CODEC_ID_AMR_WB      , MKTAG('s', 'a', 'w', 'b') }, /* AMR-WB
> 3gp
> > */
>
> Can you provide short samples (not produced with FFmpeg)?
>
> > +    else if (track->par->codec_id == AV_CODEC_ID_AMR_NB)    tag =
> > MKTAG('s','a','m','r');
> > +    else if (track->par->codec_id == AV_CODEC_ID_AMR_WB)    tag =
> > MKTAG('s','a','w','b');
>
> How did you test these?
>
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list