Page 1 of 1

FLAC in FLAC out

Posted: Tue Jun 27, 2023 2:34 pm
by TEHK
I'd love to be able to use the raw audio I input directly in the Magic output video.

For example, I use a FLAC file as the input audio, place that FLAC directly inside of the mp4 container Magic renders.

At the moment, post-processing involves swapping out the AAC audio for the original FLAC like this :

Code: Select all

ffmpeg \
  -i magic-out-video.mp4 \
  -i original-audio.flac \
  -c:v copy -map 0:v:0 \
  -c:a copy -map 1:a:0 \
  magic-out-video-with-original-audio.mp4
A 1:1 flac in to flac out of the audio will also improve render times since the audio does not need to be re-encoded.

Re: FLAC in FLAC out

Posted: Wed Jun 28, 2023 10:45 pm
by Magic
The audio would need to be re-encoded if more than one audio track were used.

Magic's mp4 export is intended to have maximum compatibility, thus the options are limited.

If you use the ProRes format instead of mp4, the audio is uncompressed and therefore the highest quality possible.