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. |
26th February 2013, 18:39 | #1 | Link | |
Registered User
Join Date: Nov 2005
Posts: 583
|
dcaenc and eac3to
Quote:
Can anyone help with the correct syntax when piping from eac3to? It's 6-channel 24/48 LPCM, >4G. Code:
eac3to "E:\BDMV\STREAM\00003.m2ts" 3: A.11.wav +11000ms | dcaenc -i - -o a.dts -l -b 1510 dcaenc-2 [Apr 19 2012] Copyright (c) 2008-2012 Alexander E. Patrakov <patrakov@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License <http://www.gnu.org/>. Note that this program is distributed with ABSOLUTELY NO WARRANTY. Source: - Output: a.dts KBit/s: 1510.000 Could not open or parse "-". Error: RIFF header not found! |
|
1st March 2013, 19:18 | #2 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
Support for reading/writing from/to the stdin/stdout is only added in my version (unless it got backported in the meantime). Also: Are you sure that eac3to is actually writing WAVE/PCM data to its stdout?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 1st March 2013 at 19:21. |
|
2nd March 2013, 03:59 | #4 | Link | |
Registered User
Join Date: Nov 2005
Posts: 583
|
Quote:
1. I use your 2012-04-19 build posted above. 2. I presume the command line instruction posted by b66pak worked for him? 3. Are you suggesting if A.11.wav used in my command line is replaced by stdout.wav, it should work? 4. Is it necessary to include -down16, as suggested by b66pak? 5. eac3to failed to write to stdout.wav (see next post). How do I get it to work? Many thanks and best regards. |
|
2nd March 2013, 04:02 | #5 | Link | |
Registered User
Join Date: Nov 2005
Posts: 583
|
Quote:
Seems to be a problem with eac3to writing to stdout.wav. Code:
F:\dcaenc>eac3to "E:\BDMV\STREAM\00003.m2ts" 3: stdout.wav +11000ms | dcaenc -i - -o a.dts -l -b 1509 dcaenc-2 [Apr 19 2012] Copyright (c) 2008-2012 Alexander E. Patrakov <patrakov@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License <http://www.gnu.org/>. Note that this program is distributed with ABSOLUTELY NO WARRANTY. Source: - Output: a.dts KBit/s: 1509.000 Could not open or parse "-". Error: Unsupported bits per sample (only 16 and 32 for now)! Code:
eac3to v3.27 command line: eac3to "E:\BDMV\STREAM\00003.m2ts" 3: stdout.wav +11000ms ------------------------------------------------------------------------------ M2TS, 1 video track, 1 audio track, 1:34:04, 60i /1.001 1: Chapters, 12 chapters 2: h264/AVC, 1080i60 /1.001 (16:9) 3: RAW/PCM, English, 5.1 channels, 24 bits, 48kHz [a03] Extracting audio track number 3... [a03] Reading RAW/PCM... [a03] Swapping endian... [a03] Applying RAW/PCM delay... [a03] Remapping channels... [a03] Writing WAV... [a03] Creating file "stdout.wav"... [a03] Writing the destination file failed. <ERROR> Aborted at file position 1048576. <ERROR> |
|
2nd March 2013, 09:21 | #6 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
Sounds like its writing 24-bit PCM, which dcaenc doesn't support, so -down16 could help. Not sure if there is an option to upsample to 32 instead?
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
2nd March 2013, 12:19 | #7 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Quote:
"Error: Unsupported bits per sample (only 16 and 32 for now)!" Then: eac3to "E:\BDMV\STREAM\00003.m2ts" 3: stdout.wav -down16 +11000ms | dcaenc -i - -o a.dts -l -b 1509
__________________
BeHappy, AviSynth audio transcoder. |
|
5th March 2013, 04:51 | #8 | Link | ||
Registered User
Join Date: Nov 2005
Posts: 583
|
Quote:
Quote:
1. The 94min dts output is about 1GB, twice the size mentioned by Selur. Is this correct? 2. Is there a reason not to use the 1510 bit rate recommended by Selur? 3. Is there a significant improvement of quality over AC3, which is about 450MB in size, and probably has better compression ratio? Many thanks and best regards. |
||
5th March 2013, 05:18 | #9 | Link | |
SuperVirus
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
|
Quote:
2) IF your SAP's firmware is *fully* DCA-compliant and is not artificially-limited to certain bitrate values only, then you can go up to 1536kbps, or you can try lower values (1344, 1280, whatever). Software decoders don't care about bitrates at all. 3) Lossy compression never means "improvement" quality-wise. And "DTS Coherent Acoustics" always requires more bitrate than AC3 for the same level of "perceived (loss of) quality". |
|
5th March 2013, 14:07 | #12 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Quote:
Then the exact bitrate (less than Transmission Bit Rate) is: (2013 x 8 x 48000) / 512 = 2013 x 750 = 1509750 b/s = 1509.75 Kb/s rounded by some info soft to 1510 Kb/s When you use dcaenc and select 1509 Kb/s the Frame Length obtained is 2012, then the bitrate is: 2012 x 750 = 1509000 b/s = 1509 Kb/s (exact) When you use dcaenc and select bitrates between 1510 Kb/s and 1512, the Frame Length obtained is always 2016, then the bitrate is always: 2016 x 750 = 1512000 b/s = 1512 Kb/s With dcaenc you can obtain bitrates: ...,1509,1512,1515,1518,1521,1524,1527,... My receiver play fine until 1524, but I don't know if this bitrate can be supported always. I use 1509 because is near to the commercial encoders.
__________________
BeHappy, AviSynth audio transcoder. |
|
|
|