Log in

View Full Version : Does ffmpeg actually support TrueHD or/and MLP encoding?


filler56789
13th January 2019, 19:33
According to ffmpeg -codecs, yes:

DEA..S truehd TrueHD
DEA..S mlp MLP (Meridian Lossless Packing)

but whenever I try to encode a "normal" stereo & 16-bit & 44.1 kHz .WAV file to MLP or TrueHD,
all I get is a useless "Conversion failed!"

¿Am I missing something? :confused:

microchip8
13th January 2019, 19:47
did you set -strict -2 ?

filler56789
13th January 2019, 20:32
did you set -strict -2 ?

Nope, I hadn't included that switch :thanks:

Now the program works as expected.

Too bad the ffmpeg team loves to complicate everything :-/

microchip8
13th January 2019, 20:33
that's because these are still considered experimental...

filler56789
15th January 2019, 14:33
Yes, regarding the final filesize, the experimental lossless audio encoders haven't been optimized (yet - ?)

Just as an example, a 4-minute Audio-CD track was converted to a 31-megabyte MLP stream through the certified commercial encoder, but resulted in a 38-megabyte file when I used ffmpeg.

microchip8
15th January 2019, 15:10
did you set the bitrate for TrueHD/MLP encoding?

-b:a <value>

nevcairiel
15th January 2019, 15:50
did you set the bitrate for TrueHD/MLP encoding?

-b:a <value>

Bitrate for lossless codecs makes no sense. It has to use as many bits as it needs to for the full lossless signal.

microchip8
15th January 2019, 17:21
Bitrate for lossless codecs makes no sense. It has to use as many bits as it needs to for the full lossless signal.

Thanks! brain fart :D