Hi
I need to convert DTS and PCM 2-Channel Audios to FLAC on Linux (command line) using FLAC 1.3.3 (not with in-built FLAC of ffmpeg).
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)
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)
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
Tried without ffmpeg -
test $ flac test1.dts -o test1_direct.flac
flac 1.3.3
Copyright (C) 2000-2009 Josh Coalson, 2011-2016 Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
ERROR: for encoding a raw file you must specify a value for --endian, --sign, --channels, --bps, and --sample-rate
Type "flac" for a usage summary or "flac --help" for all options
test $
Could anyone please advise proper CLI method on Linux? Many thanks!!