Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 15th September 2020, 19:00   #1  |  Link
bjoker
Registered User
 
Join Date: Jan 2013
Posts: 50
How to convert DTS and PCM audios to FLAC on Linux

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?


Last edited by bjoker; 15th September 2020 at 19:16.
bjoker is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.