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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Audio encoding
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 23rd December 2011, 06:43   #81  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,991
btw. the MSVC project gives me:
Code:
1>c1 : fatal error C1083: Cannot open source file: '..\math_tables.c': No such file or directory
1>..\main.c(23): fatal error C1083: Cannot open include file: 'config.h': No such file or directory
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 23rd December 2011, 11:25   #82  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Not-So-Humble Suggestion: while neither Patrakov not amtm manage to improve the encoder itself, the file main.c should include the following "mandatory"...

Code:
WARNING:
Currently not all possible combinations of frequencies and bitrates are supported.
Midzuki is offline   Reply With Quote
Old 23rd December 2011, 13:23   #83  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,223
Quote:
Originally Posted by Selur View Post
btw. the MSVC project gives me:
Code:
1>c1 : fatal error C1083: Cannot open source file: '..\math_tables.c': No such file or directory
1>..\main.c(23): fatal error C1083: Cannot open include file: 'config.h': No such file or directory
Sure you have the solution/project file in the "vc_solution" sub-folder, as I have checked in the stuff?

If you put the project file into the "root" folder (i.e. where all the .c and .h files are located), you'll have to remove the "..\" from all paths (in the .vcprojx file)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 23rd December 2011 at 13:39.
LoRd_MuldeR is offline   Reply With Quote
Old 23rd December 2011, 15:33   #84  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,991
here's what I did
1. I checked out git://gitorious.org/~mulder/dtsenc/mulders-dtsenc.git to G:\workspace\dtsenc
2. went to the vc_solution subfolder and double clicked the vcproj file for MSVC to start up and import the content
3. changed 'Debug' to 'Release' and started the build process
4. ended up with the error message

moving the lsn and vcxproj file and editing it (removing the ../) just changed the error a bit:
Code:
1>  dcaenc.c
1>  main.c
1>  math_tables.c
1>  unicode_support.c
1>c1 : fatal error C1083: Cannot open source file: 'math_tables.c': No such file or directory
1>  wavfile.c
1>main.c(23): fatal error C1083: Cannot open include file: 'config.h': No such file or directory
Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 23rd December 2011, 17:57   #85  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,223
It seems "math_tables.c" and "config.h" are indeed missing from the repository.

The strange thing is, they don't even exist in the original repository. Well, the config file was probably created by the configure script.

Anyway, I will commit the missing files as soon as I return home...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 23rd December 2011, 18:08   #86  |  Link
nu774
Registered User
 
Join Date: Mar 2011
Posts: 16
Quote:
It seems "math_tables.c" and "config.h" are indeed missing from the repository.
As you know, config.h is usually generated by a configure script, and that's the main purpose of configure.
math_tables.c is automatically generated while making.
(At first, a program named gentables is compiled from gentables.c, and math_tables.c is generated by running it).

This means that you must to be able to run the target binary (gentables) while making.
This can be a problem when you do cross compilation.
nu774 is offline   Reply With Quote
Old 23rd December 2011, 18:55   #87  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,223
Quote:
Originally Posted by LoRd_MuldeR View Post
It seems "math_tables.c" and "config.h" are indeed missing from the repository.

The strange thing is, they don't even exist in the original repository. Well, the config file was probably created by the configure script.

Anyway, I will commit the missing files as soon as I return home...
Should be fixed now
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 23rd December 2011, 19:00   #88  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,991
Thanks! Works here now!

Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 23rd December 2011, 22:04   #89  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
@LoRd_MuldeR the MSVC builds are slow...can you also add a build with the previous method (MSYS+MinGW?)...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 23rd December 2011, 22:25   #90  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,223
Quote:
Originally Posted by b66pak View Post
MSVC builds are slow...
As I said...

Quote:
Originally Posted by b66pak View Post
can you also add a build with the previous method (MSYS+MinGW?)...
I posted MinGW/GCC builds earlier. Anyway, with MSVC+ICL the speed is approximately the same as with GCC - build attached.

Also tried to make x64 builds, but output is broken! I have no idea why that is yet...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 3rd January 2012 at 18:41.
LoRd_MuldeR is offline   Reply With Quote
Old 23rd December 2011, 22:29   #91  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
thanks a lot...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 24th December 2011, 09:09   #92  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
At last...

Code:
[F:\XPERIMENTS\mulder\.libs]
=>dcaenc
dcaenc-1 [Dec 24 2011]

Usage: dcaenc <input.wav> <output.dts> <bitrate_kbps>

NOTICE:
Input or output file name can be "-" for stdin/stdout.

* Valid sample rates (in kHz):

  8 11.025 12 16 22.05 24 32 44.1 48

* Valid bitrates (in kbps):

    32     56     64     96    112    128    192    224
   256    320    384    448    512    576    640  754.5
   960   1024   1152   1280   1344   1408 1411.2   1472
  1509   1920   2048   3072   3840   open    VBR   LOSSLESS

WARNING:
Currently not all possible combinations of frequencies and bitrates are supported.
... and ......

Code:
[F:\XPERIMENTS\mulder\.libs]
=>dcaenc --version
dcaenc-1 [Dec 24 2011]
dcaenc-1
http://aepatrakov.narod.ru/dcaenc/
Binaries will be available "very soon" , BUT,
quite probably,
not on my Skydrive folder

[ E D I T ]

P.S.: That's not good-enough yet One must clearly state,
"this is an experimental DCA compressor" or something -.-

P.P.S.: Last but not least,

"original code by Patrakov",

"major improvements by Lord_Mulder",

whatever.

Last edited by Midzuki; 24th December 2011 at 11:42. Reason: add P.S.
Midzuki is offline   Reply With Quote
Old 24th December 2011, 09:33   #93  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,991
What's the meaning/effect of 'open' and 'VBR' for bitrates?

Quote:
Currently not all possible combinations of frequencies and bitrates are supported.
if anyone has a list please share
48kHz 2 Channel works with: 320 384 448 512 576 640 (I would recommend 576 since at least my receiver doesn't like 640 )
48kHz 5.1 Channel works with: 755 1280 1509 3072 (I would recommend 1510 since 3072 seems like overkill )

Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 24th December 2011, 09:44   #94  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
^

Quote:
Originally posted by THE .PDF :

The open mode allows for bit rates not defined by the table.

Variable and loss-less modes imply that the data rate changes from frame to frame.
Quote:
if anyone has a list please share
That's a W.I.P. , please be patient
Midzuki is offline   Reply With Quote
Old 24th December 2011, 10:12   #95  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Quote:
Originally Posted by Selur View Post
...
48kHz 5.1 Channel works with: 755 1280 1509 3072 (I would recommend 1510 since 3072 seems like overkill )
Just my useless thoughts:

Many people think/say 5.1 DTS @ 44.1kHz @ 1234.8kbps is [ place your favorite superlative here ]. However, that's mathemagically-equivalent to 1344kbps @ 48kHz. In other words, 1509kbps has been overkill since the very-beginning

And considering movie soundtracks ARE N0T Audio-CDs ,
probably in most cases 1280, 1152, 1024, or even 960, kbps would have been more-than-adequate for them.
Midzuki is offline   Reply With Quote
Old 24th December 2011, 12:45   #96  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,991
Since my Hardware decoder only supports 576kBit/s for stereo, I'll stick to the standard 1510 to be save.
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 24th December 2011, 13:02   #97  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Hummm, maybe you should SUE the manufacturer of your audio receiver --- they surely didN'T warn you that you were buying crippled firmware.

As for DTS, Inc. ...

you just give them some tons of money,
and they give you the right to use their logo

Last edited by Midzuki; 24th December 2011 at 13:23.
Midzuki is offline   Reply With Quote
Old 24th December 2011, 14:41   #98  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
@ Selur: you've been using only the modded build, right?

Or not?

Because I have just tested the "unpatched" dcaenc on two short 5.1 .WAVs (at both 44.1kHz and 48kHz), and there were NO errors for all the valid bitrates between 754.5kbps and 1509kbps. And all the resulting samples played correctly with foobar2000.

Midzuki is offline   Reply With Quote
Old 24th December 2011, 15:00   #99  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,991
I tried both, but I never said that there's a problem with 5.1wav -> dts withc 41./48kHz and bitrates between 754.5kbps and 1509kbps,..
I stated:
1. 48kHz 5.1 Channel works with: 755 1280 1509 3072
2. 48kHz 2 Channel works with: 320 384 448 512 576 640
3. 48kHz 2 Channel with 3072 does not work (freezes)
4. I would recommend 576 since at least my receiver doesn't like 640 dts for 2.0
5. I would recommend to use 1509 for 5.1 dts

Than you insinuated that 1509 might be overkill and I replied that I stick with 1509 due to the fact that my receiver is picky.
(and it's probably not the only hardware receiver that only accepts specific bit rates; mine also does accept all the bit rates (755+) for 5.1 audio, but since it's picky with 2.0 material I will stay with the common 1509kBit/s for 5.1 audio)

Cu Selur
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 24th December 2011, 15:14   #100  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Honestly, I don't know who is misunderstanding who -.-

Quote:
Originally Posted by Selur View Post
@midzuki: did you try the bitrates&frequencies?
for me with 48kHz
for 5.1 only 755, 1280, 1510 and 3072 worked
for 2.0 only 320, 384, 448, 512, 576, 640, 755, 1280 and 1510 worked
worked = did not cause a freeze, crash and were really created

Cu Selur

Last edited by Midzuki; 24th December 2011 at 15:18.
Midzuki is offline   Reply With Quote
Reply


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 20:17.


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