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

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th February 2014, 13:06   #1  |  Link
junior_l3oss
Registered User
 
Join Date: Aug 2013
Posts: 11
how can i find real bitrate of DTS-HD audio file?

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?
junior_l3oss is offline   Reply With Quote
Old 6th February 2014, 13:46   #2  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
DTS-HD is variable bitrate, so all you can do is calculate an average bitrate, and thats simply filesize divided by duration.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 6th February 2014, 18:31   #3  |  Link
junior_l3oss
Registered User
 
Join Date: Aug 2013
Posts: 11
Quote:
Originally Posted by nevcairiel View Post
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.
junior_l3oss is offline   Reply With Quote
Old 6th February 2014, 20:05   #4  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
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 we know some relevant data:
Code:
==========================================================
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
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is online now   Reply With Quote
Old 7th February 2014, 15:14   #5  |  Link
junior_l3oss
Registered User
 
Join Date: Aug 2013
Posts: 11
Quote:
Originally Posted by tebasuna51 View Post
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 we know some relevant data:
Code:
==========================================================
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....

Last edited by junior_l3oss; 7th February 2014 at 15:50.
junior_l3oss is offline   Reply With Quote
Old 7th February 2014, 16:00   #6  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Work for all channels arrangement, from mono to 7.1
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is online now   Reply With Quote
Old 7th March 2014, 17:47   #7  |  Link
junior_l3oss
Registered User
 
Join Date: Aug 2013
Posts: 11
Quote:
Originally Posted by tebasuna51 View Post
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...

Code:
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...
junior_l3oss is offline   Reply With Quote
Old 8th March 2014, 16:07   #8  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
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.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is online now   Reply With Quote
Old 8th March 2014, 20:30   #9  |  Link
junior_l3oss
Registered User
 
Join Date: Aug 2013
Posts: 11
Quote:
Originally Posted by tebasuna51 View Post
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?
junior_l3oss is offline   Reply With Quote
Reply

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 11:49.


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