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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 21st November 2017, 09:54   #14501  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
Do you intend by any chance to update some " old DLL" (ffmpeg, flac, ...) to newer versions ?
For exemple, dcadec is now implemented into ffmpeg, so all improvements of it are not anymore in the standalone version.
jpsdr is offline  
Old 23rd November 2017, 23:55   #14502  |  Link
wiggaz
Registered User
 
Join Date: Feb 2011
Posts: 27
I still get a corrupt video (Passengers) with the latest version (3.34). Am I missing something?
Thanks in advance.
wiggaz is offline  
Old 24th November 2017, 10:35   #14503  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by wiggaz View Post
I still get a corrupt video (Passengers) with the latest version (3.34). Am I missing something?
Can you post a small video extract with which I could reproduce the problem? Thanks!
madshi is offline  
Old 24th November 2017, 15:39   #14504  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Invalid bitstream format on DTS

Sometimes I get Invalid bitstream format error with DTS to AC3 conversion and I have to use ffmpeg.

I want to supply you an example, so probably a fix will be out.

Code:
eac3to.exe eng.dts eng.ac3
DTS Master Audio, 5.1 channels, 24 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
Decoding with libDcaDec DTS Decoder...
Remapping channels...
Encoding AC3 <640kbps> with libAften...
Creating file "eng.ac3"...
libDcaDec reported the error "Invalid bitstream format".
Aborted at file position 372244480.
__________________
@turment on Telegram
tormento is offline  
Old 24th November 2017, 17:34   #14505  |  Link
wiggaz
Registered User
 
Join Date: Feb 2011
Posts: 27
Quote:
Originally Posted by madshi View Post
Can you post a small video extract with which I could reproduce the problem? Thanks!
First of all, thanks for your answer.
Since I thought maybe it was the source corrupted, I tried muxing the m2ts directly and it was flawless, so it couldn't be the disc.
And that's why there are two sample: one muxing the .h265 extract with eac3to [corrupted], and the second muxing directly the m2ts (only the video of course) [flawless].
They are 120s each.

http://www.mediafire.com/file/ts3fsb...sample-001.mkv
http://www.mediafire.com/file/6x3tli...sample-001.mkv


eac3to is update to 3.34 with Useac3to at 1.28 and mkvtoolnix is update to 18.0.0.
Thanks in advance again.
wiggaz is offline  
Old 24th November 2017, 18:12   #14506  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Thanks. But what I really need is to be able to reproduce the problem on my PC, so I can double check if the problem is really fixed. So I need an extract of the m2ts file.
madshi is offline  
Old 24th November 2017, 19:01   #14507  |  Link
wiggaz
Registered User
 
Join Date: Feb 2011
Posts: 27
Quote:
Originally Posted by madshi View Post
Thanks. But what I really need is to be able to reproduce the problem on my PC, so I can double check if the problem is really fixed. So I need an extract of the m2ts file.
The second file is the m2ts file muxed into mkv, with all the tracks disabled except of the video.
Or should I give you the mux with all the tracks, divided into a small piece (120sec like the others) with mkvtoolnix?
wiggaz is offline  
Old 24th November 2017, 19:26   #14508  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
I don't need the mux, I need the original m2ts file (a small part of it)!
madshi is offline  
Old 24th November 2017, 19:34   #14509  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
@wiggaz
You can use DGSplit to cut e.g. 50 MB from the beginning of the m2ts.
sneaker_ger is offline  
Old 24th November 2017, 20:10   #14510  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
That should work, but only if the corruption is right at the start of the movie?
madshi is offline  
Old 24th November 2017, 20:13   #14511  |  Link
wiggaz
Registered User
 
Join Date: Feb 2011
Posts: 27
Here's, splitted with DGSplit as suggested (thx sneaker_ger): http://www.mediafire.com/file/24om27...3/00001_0.m2ts

And this is an example:
wiggaz is offline  
Old 24th November 2017, 20:38   #14512  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Thanks! And the problem also occurs with this small m2ts file, correct? (Don't have time to test right now.)
madshi is offline  
Old 24th November 2017, 20:44   #14513  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
@wiggaz
I can't reproduce the problem with the "00001_0.m2ts". Only with "eac3to_sample-001.mkv". Please check again that you really are on eac3to 3.34 and not 3.32.

Last edited by sneaker_ger; 24th November 2017 at 20:47.
sneaker_ger is offline  
Old 24th November 2017, 23:20   #14514  |  Link
wiggaz
Registered User
 
Join Date: Feb 2011
Posts: 27
allright. I'm a moron.
I had two eac3to folders. One updated, and another one from which I extracted the movie, who wasn't.
Now I have only one folder, updated, and with it I extract the movie flawlessly.

Sorry I have wasted your time.
At least everything is fine now. Thanks anyway
wiggaz is offline  
Old 25th November 2017, 01:56   #14515  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by tormento View Post
Sometimes I get Invalid bitstream format error with DTS to AC3 conversion and I have to use ffmpeg.

I want to supply you an example, so probably a fix will be out.
Your example seems corrupted.

Using Arcsoft show the same message:

Quote:
The ArcSoft DTS Decoder reported an error while decoding. <ERROR>
Aborted at file position 372244480. <ERROR>
Using ffmpeg also show a error (but continue decoding):

Quote:
[dca @ 000000000050fb40] Invalid bit allocation index
Error while decoding stream #0:0: Invalid data found when processing input
Don't exist a fix for that.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 25th November 2017, 06:08   #14516  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 12
Does anyone know if it is still necessary to do eac3to in.dtshd out.dtshd -21ms after converting PCM > DTS-HD with DTS Master Suite?
pstn is offline  
Old 25th November 2017, 12:57   #14517  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Like all encoders DTS Master Suite can add a initial delay to the encoded stream, but the output have a special global header than show some global info than include the delay used.

Whith my tool LeeAudBi4 can read that info, for instance:

Code:
File ........: D:\tmp\DTSENC.dtshd
Size ........:  3330600 bytes

---------------------------------------------- Header Info
ChunkID .....: DTSHDHDR (Length: 16)
SubchunkID ..: CORESSMD (Length: 12)
Core SampleR :  48000
Core Bitrate :  1509
Core ChMask  :  2059 (L,R,C,LFE,Lss,Rss)
Core FrameLen:  2012
SubchunkID ..: EXTSS_MD (Length: 8)
Ext. Avg. Bit:  388
SubchunkID ..: AUPR-HDR (Length: 24)
Samplerate...:  48000
Num. frames..:  1315
Samples frame:  512
Num samp. ori:  671919
Channel Mask.:  2123 (L,R,C,LFE,Lss,Rss,Lsr,Rsr)
Samples Delay:  1024                                 [1]
SubchunkID ..: STRMDATA (Length: 3324188)
Offset data .:  140 (Extrachunks at end of file: 6272 bytes)  [2]
------------------------------------------ End Header Info
Delay .......:  21.333 ms., (2 frames)               [1]
Duration ....:  14.027 sec., (0h. 0m. 14.027s.)
Avg. Bitrate :  1896 Kb/s.
------------------------------------------------- End Info
eac3to remove the global header DTSHDHDR and also the final Extrachunks [2], but don't apply the delay [1].
Then yes you can remove it with the parameter -21ms
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 25th November 2017, 15:31   #14518  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 12
Quote:
Originally Posted by tebasuna51 View Post
Like all encoders DTS Master Suite can add a initial delay to the encoded stream, but the output have a special global header than show some global info than include the delay used.

Whith my tool LeeAudBi4 can read that info, for instance:

eac3to remove the global header DTSHDHDR and also the final Extrachunks [2], but don't apply the delay [1].
Then yes you can remove it with the parameter -21ms
That's great thanks,

I just tried it on a DTS HD file made with DTS Master Suite,

this is what I got :

Code:
File ........: C:\Users\pstn\Desktop\track2_eng.dts
Size ........: 691429400 bytes

----------------------------------------- First Frame Info
CRC present .................: 0 (Not)
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)
Embedded Down Mix Enabled ...: 0 (Not)
Embedded Dynamic Range Flag .: 0 (Not)
Embedded Time Stamp Flag ....: 0 (Not)
Auxiliary Data Flag .........: 0 (Not)
Mastered in HDCD format .....: 0 (Not)
Extension Audio Descr. Flag .: 0 (Channel Extension XCh)   
Extended Coding Flag ........: 0 (Not)
Audio Sync Word Insert. Flag : 1 (Sub-sub-frame)
Low Frequency Effects Flag ..: 2 (Present, interpolation factor 64)
Predictor History Flag Switch: 1 (Yes)
Multirate Interpolator Switch: 0 (Non-perfect Reconstruction)
Encoder Software Revision ...: 7 (Current)
Copy History ................: 1 (Definition deliberately omitted)
Source PCM Resolution .......: 0 (16 bits)
Front Sum/Difference Flag ...: 0 (Not)
Surrounds Sum/Difference Flag: 0 (Not)
Dialog Normalization Param. .: - 0 dB
--------------------------------------------- Revised Info
Final bytes after core: 716 
Total Frames ......: 236770 
Duration ..........: 2525.547 seconds. ( 0 h. 42 m. 5.547 s.)
Master A. min./max.: 68 / 2620 (HD-MA subframe bytes)
------------------------------------------------- End Info
For some reason it doesn't show me the delay, but it was made with DTS Master Suite, so it should have one I think right? I used "extended info" in your app.

Last edited by pstn; 25th November 2017 at 15:59.
pstn is offline  
Old 25th November 2017, 17:58   #14519  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by pstn View Post
I just tried it on a DTS HD file made with DTS Master Suite:

File ........: C:\Users\pstn\Desktop\track2_eng.dts
You need use a .dtshd just encoded with DTS Master Suite, after mixed in a container the global header DTSHDHDR disapear.

EDIT:
MkvMerge and tsMuxer remove the global header (and end Extrachunks) of a .dtshd just created with DTS Master Suite, but don't apply the delay.
You can't know if you need apply the -21ms or not.
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 25th November 2017 at 18:19.
tebasuna51 is offline  
Old 25th November 2017, 19:23   #14520  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 12
Quote:
Originally Posted by tebasuna51 View Post
You need use a .dtshd just encoded with DTS Master Suite, after mixed in a container the global header DTSHDHDR disapear.

EDIT:
MkvMerge and tsMuxer remove the global header (and end Extrachunks) of a .dtshd just created with DTS Master Suite, but don't apply the delay.
You can't know if you need apply the -21ms or not.
I see, thank you
pstn is offline  
Closed Thread

Tags
eac3to

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 09:40.


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