View Full Version : how can i find real bitrate of DTS-HD audio file?
junior_l3oss
6th February 2014, 13:06
i have DTS HD audio file...
and i dont have bluray bd info....
because of i dont know this audio's bitrate info..
i know i have dts hd is includes dts core audio...
and now how can i find real bitrate of dts hd audio file?
nevcairiel
6th February 2014, 13:46
DTS-HD is variable bitrate, so all you can do is calculate an average bitrate, and thats simply filesize divided by duration.
junior_l3oss
6th February 2014, 18:31
DTS-HD is variable bitrate, so all you can do is calculate an average bitrate, and thats simply filesize divided by duration.
can you show me an example please.
i will try later.
i didnt understand all of your way.
tebasuna51
6th February 2014, 20:05
I have a Sample.dts:
DTS Master Audio, 5.1 channels, 16 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
We must know the duration.
Using LeeAudbi (http://forum.doom9.org/showthread.php?p=1522330#post1522330) we know some relevant data:
==========================================================
File ........: D:\Temp\t\completo\Sample.dts
Size ........: 1380326836 bytes
----------------------------------------- First Frame Info
Number of PCM Sample Blocks .: 15 ( 512 samples/frame)
Primary Frame Byte Size .....: 2011 ( 2012 bytes/frame)
Audio Channel Arrangement ...: 9 (5 C + L + R + SL + SR)
Core Audio Samp. Frequency ..: 13 (48 kHz)
Transmission Bit Rate .......: 24 (1536 Kb/s)
Low Frequency Effects Flag ..: 2 (Present, interpolation factor 64)
Source PCM Resolution .......: 0 (16 bits)
--------------------------------------------- Revised Info
Total Frames ......: 517996
Duration ..........: 5525,291 seconds. ( 1 h. 32 m. 5,291 s.)
Master A. min./max.: 68 / 2764 (HD-MA subframe bytes)
------------------------------------------------- End Info
The DTS core have always 2012 bytes/frame, each frame have 512 samples with 48000 samples/second.
We need 2012 x 8 bits for 512 / 48000 seconds
Then the core bitrate is:
(2012 x 8) / (512 / 48000) = 1509000 bits/sec or 1509 Kb/s
But after the core frame there are the HD-MA subframe with variable size, here the size change between 64 and 2764 bytes.
Then only can know the average bitrate of the full file like nevcairiel say.
Here (1380326836 bytes are 1380326836 x 8 bits):
(1380326836 x 8) / 5525,291 = 1998558 bits/sec or 1998,558 Kb/s
junior_l3oss
7th February 2014, 15:14
I have a Sample.dts:
DTS Master Audio, 5.1 channels, 16 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
We must know the duration.
Using LeeAudbi (http://forum.doom9.org/showthread.php?p=1522330#post1522330) we know some relevant data:
==========================================================
File ........: D:\Temp\t\completo\Sample.dts
Size ........: 1380326836 bytes
----------------------------------------- First Frame Info
Number of PCM Sample Blocks .: 15 ( 512 samples/frame)
Primary Frame Byte Size .....: 2011 ( 2012 bytes/frame)
Audio Channel Arrangement ...: 9 (5 C + L + R + SL + SR)
Core Audio Samp. Frequency ..: 13 (48 kHz)
Transmission Bit Rate .......: 24 (1536 Kb/s)
Low Frequency Effects Flag ..: 2 (Present, interpolation factor 64)
Source PCM Resolution .......: 0 (16 bits)
--------------------------------------------- Revised Info
Total Frames ......: 517996
Duration ..........: 5525,291 seconds. ( 1 h. 32 m. 5,291 s.)
Master A. min./max.: 68 / 2764 (HD-MA subframe bytes)
------------------------------------------------- End Info
The DTS core have always 2012 bytes/frame, each frame have 512 samples with 48000 samples/second.
We need 2012 x 8 bits for 512 / 48000 seconds
Then the core bitrate is:
(2012 x 8) / (512 / 48000) = 1509000 bits/sec or 1509 Kb/s
But after the core frame there are the HD-MA subframe with variable size, here the size change between 64 and 2764 bytes.
Then only can know the average bitrate of the full file like nevcairiel say.
Here (1380326836 bytes are 1380326836 x 8 bits):
(1380326836 x 8) / 5525,291 = 1998558 bits/sec or 1998,558 Kb/s
ok man that's ok...
working fine and real calculate.
worked...
thanks again.
but i wanna ask a question...
this is 6Ch 's audio's calculate or works on 2Ch audios too...
i have 2ch dts hd audio...
ok i tested again 2ch audio and worked for 2ch audio too....
tebasuna51
7th February 2014, 16:00
Work for all channels arrangement, from mono to 7.1
junior_l3oss
7th March 2014, 17:47
Work for all channels arrangement, from mono to 7.1
thanks again for your help...
but i have a problem...
this problem for some audio files...
Size ........:-1449023940 bytes
----------------------------------------- First Frame Info
Don't found any valid dts frame.
for example this audio...
why is this error for this audio?
dont found any valid dts frame...
tebasuna51
8th March 2014, 16:07
Yes, LeeAudBi is a very old soft without support for big audio files.
You must extract the core before using:
eac3to dts-hd.dts dts-core.dts -core
and then use dts-core.dts to know the duration.
junior_l3oss
8th March 2014, 20:30
Yes, LeeAudBi is a very old soft without support for big audio files.
You must extract the core before using:
eac3to dts-hd.dts dts-core.dts -core
and then use dts-core.dts to know the duration.
ok i understood...
this pro is not calculate duration...
because of program gives error...
but i saw you have writtten this program...
can you reupdate?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.