Open justaplane opened 2 years ago
Add this below the response.preset =
if (['dca', 'truehd'].includes(audioCodec)) { response.preset += ' -strict -2'; }
However - This still results in a new error: [dca @ 000002abd564ed00] Specified channel layout '5.1' is not supported
Related error here: https://forum.videohelp.com/threads/386092-Encoding-audio-in-DTS-in-multi-channels-with-ffmpeg
Also here https://trac.ffmpeg.org/ticket/4835:
with 6 as number of channels, ffmpeg picks 5.1 channel layout. which is not supported by dcaenc. But 5.1(side) channel layout is suppported.
When adding audio stream, results in the following error message:
The encoder 'dca' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
Results of log located here: