Hi,
I need to convert DTS and PCM audios to FLAC on Linux using libflac 1.3.3 (not with in-built FLAC of ffmpeg).
Quote:
test $ ffmpeg -version
ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
test $ flac --version
flac 1.3.3
test $
|
So I tried various ways and all of them throw errors (even with "-s" option)
Quote:
ffmpeg -i Test.dts -f wav - | flac - -o Test.flac
ffmpeg -i title_t01.mkv -vn -map 0:a:0 -f wav - | flac -s --ignore-chunk-sizes -8 - -o title.flac
ffmpeg -i title_t01.mkv -vn -map 0:a:0 -f wav - | flac -8 - -o title.flac
|
Getting various errors like - (even with different compression levels)
Quote:
WARNING: unexpected EOF; expected 1073741823 samples, got 549924864 samples
WARNING: skipping unknown chunk 'LIST' (use --keep-foreign-metadata to keep)
WARNING: 'data' chunk has non-zero size, using --ignore-chunk-sizes is probably a bad idea
|
Also, using flac without ffmpeg doesn't work for DTS audio as it can't figure --endian, --sign, --channels, --bps, and --sample-rate values on its own.
Able to do this on Windows using eac3to without any issues but not on Linux. It's a shame there's no eqc3to equivalent on Linux.
Could anyone please advise correct CLI method please?