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. |
6th February 2014, 13:06 | #1 | Link |
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? |
6th February 2014, 13:46 | #2 | Link |
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 |
6th February 2014, 20:05 | #4 | Link |
Moderator
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 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. |
7th February 2014, 15:14 | #5 | Link | |
Registered User
Join Date: Aug 2013
Posts: 11
|
Quote:
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. |
|
7th March 2014, 17:47 | #7 | Link |
Registered User
Join Date: Aug 2013
Posts: 11
|
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. why is this error for this audio? dont found any valid dts frame... |
8th March 2014, 16:07 | #8 | Link |
Moderator
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. |
8th March 2014, 20:30 | #9 | Link | |
Registered User
Join Date: Aug 2013
Posts: 11
|
Quote:
this pro is not calculate duration... because of program gives error... but i saw you have writtten this program... can you reupdate? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|