[FFmpeg-trac] #9311(ffmpeg:new): FLAC works in MP4 container but not in M4A
FFmpeg
trac at avcodec.org
Wed Jun 30 16:41:04 EEST 2021
#9311: FLAC works in MP4 container but not in M4A
-------------------------------------+-------------------------------------
Reporter: MAProsper | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: git-
Keywords: flac mp4 | master
m4a | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
FFmpeg can produce and process MP4s with FLAC audio but can't do the same
if the desination is a M4A (or M4B), which from what I understand is
basiclly the same container, so it should also be supported.
How to reproduce:
Create a MP4 with FLAC audio, works fine.
{{{
% ffmpeg -i audio.flac -strict experimental -codec copy sample.mp4
ffmpeg version N-57736-ga501d55905-static
https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg
developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-
debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
--cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
--enable-libgme --enable-gray --enable-libaom --enable-libfribidi
--enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt
--enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
--enable-libzvbi --enable-libzimg
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 1.101 / 59. 1.101
libavformat 59. 3.100 / 59. 3.100
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.102 / 8. 0.102
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, flac, from audio.flac':
Metadata:
ALBUM : title
TITLE : title
track : 01
TRACKTOTAL : 01
CDDB : 00000000
Duration: 00:39:14.25, start: 0.000000, bitrate: 966 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 2354.253333
Metadata:
title :
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
[mp4 @ 0x7377b80] track 0: codec frame size is not set
Output #0, mp4, to 'sample.mp4':
Metadata:
ALBUM : title
TITLE : title
track : 01
TRACKTOTAL : 01
CDDB : 7b09321b
encoder : Lavf59.3.100
Chapters:
Chapter #0:0: start 0.000000, end 2354.253333
Metadata:
title :
Stream #0:0: Audio: flac (fLaC / 0x43614C66), 44100 Hz, stereo, s16
Stream mapping:
Stream #0:0 -> #0:0 (copy)
size= 277701kB time=00:39:14.22 bitrate= 966.3kbits/s speed=3.26e+03x
video:0kB audio:277596kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.037897%
}}}
Create a M4A with FLAC audio, from the same source file, doesn't work.
{{{
% ffmpeg -i audio.flac -strict experimental -codec copy sample.m4a
ffmpeg version N-57736-ga501d55905-static
https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg
developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-
debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
--cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
--enable-libgme --enable-gray --enable-libaom --enable-libfribidi
--enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt
--enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
--enable-libzvbi --enable-libzimg
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 1.101 / 59. 1.101
libavformat 59. 3.100 / 59. 3.100
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.102 / 8. 0.102
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, flac, from 'audio.flac':
Metadata:
ALBUM : title
TITLE : title
track : 01
TRACKTOTAL : 01
CDDB : 00000000
Duration: 00:39:14.25, start: 0.000000, bitrate: 966 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 2354.253333
Metadata:
title :
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
[ipod @ 0x62b2b80] Could not find tag for codec flac in stream #0, codec
not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Error initializing output stream 0:0 --
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9311>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list