r/ffmpeg • u/ConsistentLove9843 • 5d ago
.mp4
is it possbile .mp4 to support pcm files like .wav and .aiff using -c:a copy?
4
u/autogyrophilia 5d ago
You probably want to use ALAC if you intend to use lossless audio in MP4 and be it playable with things that aren't FFMPEG based (VLC, MPV) . Otherwise I would either go with MKV as the container or FLAC as the codec.
3
u/_Gyan 5d ago
Yes. See, for example, https://www.gyan.dev/ffmpeg/resources/codecs.html#pcm_s16le
1
u/Larry-Icy85 4d ago
Also, I looked at Muxer MP4 FFmpeg muxer properties and codec support - codex ffmpeg @ gyan.dev
also I searched for "child muxers: mp4". The only parent muxer (if that is the phrase) is DASH.
Gyan, excellent resource!
4
u/naemorhaedus 5d ago
No. supported audio codecs can be reviewed on wikipedia
https://en.wikipedia.org/wiki/MP4_file_format#Data_streams
I don't see a useful reason to use WAV or AIFF anyway. AAC already sounds awesome. If you must insist on lossless, then there are several codecs like that which are supported. WAV/AIFF is incredibly inefficient at storing audio, and that should matter to you in an age where storage comes at a premium.