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

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed May 17 14:52:08 EEST 2017


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


More information about the ffmpeg-devel mailing list