[FFmpeg-user] Copy Audio

Chris c319chris at aol.com
Wed Dec 19 09:22:52 EET 2018


FWIW, PCM audio isn't allowed in MP4, only MOV,

FWIW both my Sony and Canon camcorders put out PCM audio in .mp4 containers. ffmpeg is merely being asked to copy the existing audio.

-----Original Message-----
From: Gyan <ffmpeg at gyani.pro>
To: ffmpeg-user <ffmpeg-user at ffmpeg.org>
Sent: Tue, Dec 18, 2018 9:37 pm
Subject: Re: [FFmpeg-user] Copy Audio



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 
http://mp4ra.org/#/codecs
It was a regression in ffmpeg 3.4 - 40 that allowed this.

Gyan

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list