[FFmpeg-user] Copy Audio
ffmpeg at gyani.pro
Wed Dec 19 07:36:44 EET 2018
On 19-12-2018 09:51 AM, Chris wrote:
> The original audio is:
> ID : 2
> Format : PCM
> Format settings : Big / Signed
> Codec ID : twos
> Duration : 1 min 42 s
> Bit rate mode : Constant
> Bit rate : 1 536 kb/s
> Channel(s) : 2 channels
> Sampling rate : 48.0 kHz
> Bit depth : 16 bits
>>> This is writing invalid files. mp4 does not allow pcm_s16be.
> That is the audio ffmpeg is being told to copy. In v 4.0 it successfully copies the audio which can then be played back.
> In v 4.1 it does not copy the audio but rather throws errors.
Changed by commit 4cfb01d6ae5 : lavf/movenc: Fail when codec tag is
invalid for format
FWIW, PCM audio isn't allowed in MP4, only MOV, see
It was a regression in ffmpeg 3.4 - 40 that allowed this.
More information about the ffmpeg-user