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 24th February 2004, 22:14   #1  |  Link
jsoto
Just a Member
 
Join Date: Nov 2002
Location: Spain
Posts: 2,067
ac3/dts/mpa/wav delay+cut tool: v1.2.1.0

Hi all,
I've written a tool able to manage dts and ac3 for:
- cutting
- delay correction
- fix crc errors (only in ac3)

May be someone finds it useful...

[EDIT]: Deleted the links, not updated
Web sites
http://www.videohelp.com/~jsoto
http://jsoto.posunplugged.com/

[/EDIT]

Any bug report will be welcome

jsoto

Last edited by jsoto; 1st January 2006 at 20:41.
jsoto is offline   Reply With Quote
Old 25th February 2004, 03:04   #2  |  Link
patja
Registered User
 
Join Date: Jan 2003
Posts: 29
Cool. I record HDTV programming and there are often errors in the AC3 audio that I've had to run through ac3fix. But then the audio would get out of synch with the video. Would I be correct in hoping that using this tool, with the option to replace CRC errors with Silience, would keep the audio in synch with the video?

I am trying it now.

What does the message "some basic parameters changed between frame #1 and this frame" mean? I get row after row of this message.
patja is offline   Reply With Quote
Old 25th February 2004, 03:40   #3  |  Link
imel6
Registered User
 
Join Date: Mar 2002
Posts: 25
Nice. Lookign forward to more development -

multiple cuts at once
cut by frame

Thanks for the tool
imel6 is offline   Reply With Quote
Old 25th February 2004, 09:56   #4  |  Link
daphy
Miles Freak
 
daphy's Avatar
 
Join Date: Apr 2003
Location: Europe
Posts: 652
new developments are always welcome on this board

so letīs check it out

CYA Daphy
__________________
CYA Daphy
daphy is offline   Reply With Quote
Old 25th February 2004, 10:17   #5  |  Link
irulat
Registered User
 
Join Date: Sep 2002
Posts: 15
Excellent work. Excuse the naievity, but would it be a big jump in capabilities for a tool to allow a volume change?
irulat is offline   Reply With Quote
Old 25th February 2004, 12:05   #6  |  Link
UNICO
Registered User
 
Join Date: Nov 2002
Posts: 14
Great tool!

What about "delaycut.dll"? I'm afraid I wouldn't be the only one that would merge it into his own DVD->DivX app... or am I???

Thanks

Joan

Last edited by UNICO; 25th February 2004 at 15:15.
UNICO is offline   Reply With Quote
Old 25th February 2004, 13:47   #7  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
Fab tool!

Just used it to create a 000ms AC3 clip from a -300ms AC3 clip.

I then converted the AC3 stream to AAC stream prior to muxing with an XviD Mpeg4 video stream into an MP4 container!

Everything was very nicely in sync!

Over the past few weeks I've been experimenting with converting Mpeg2/AC3 .TS HiDef TV captures to anamorphic Mpeg4/AAC .MP4 and this tool looks like it can do the business!

However, you may not be aware that a lot of HiDef TV broadcasts in Japan use AAC audio (not AC3). And, when the AAC audio stream is demuxed from the Mpeg2 video stream the AAC stream becomes delayed....

So it would really be great if your tool could fix the delay in AAC audio streams too!

Cheers and many thanks
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is online now   Reply With Quote
Old 25th February 2004, 17:25   #8  |  Link
depressya
Registered User
 
Join Date: Aug 2002
Location: slovakia
Posts: 56
cool tool and what about normalizing tool for ac3 files? it could be useful tool like this for videoclip compilations from different dvd's
depressya is offline   Reply With Quote
Old 25th February 2004, 20:13   #9  |  Link
gizmau
Registered User
 
Join Date: Apr 2002
Posts: 88
@SeeMoreDigital

are you sure that your cutted track came out at 0ms?
afaik ac3 has fixed frame duration of 32ms, which would result in an offset of 12ms, which is virtually a zero-delay due to the frame duration of 40ms (pal).

i am if i remember right, but didnt besplit allready cut dts and aac, too? maybe its worth a try (again...).
gizmau is offline   Reply With Quote
Old 25th February 2004, 20:56   #10  |  Link
jsoto
Just a Member
 
Join Date: Nov 2002
Location: Spain
Posts: 2,067
Too much interest for this little prog (I found the reason, it was mentioned in doom9 news...)

Well, some clarifications:
- I've written this tool just to be able to cut dts tracks. The rest of features are already supported by freeware (ac3 delay corrector, BeSweet). I didn't know besplit was able to cut dts...
- This is a simple tool, which only manages frames.

@patja
Quote:
"some basic parameters changed between frame #1 and this frame.."
This message advices about a major change (bitrate, framesize, etc) between first frame and the current one. I know I have to modify this, only one message per change..
Target file calculations are done using framelength (taken from the first frame) so if there is a major change on this, probably the output file will be unuseful.
Quote:
with the option to replace CRC errors with Silence
This is the "normal" behavior of a tool like this (IIRC BeSweet does the same). But in the case of an uncompleted frame, you really do not know how many frames have been lost, and there is no way to recover the synch.

@imel6
multiple cuts at once: You can use CLI support. Seeking is fast.
cut by frame: I'll look into it, but I'm now busy in other stuff..

@irulat
Quote:
to allow a volume change?
delaycut is a very SIMPLE tool. Only cuts/adds frames, it is unable to decode, sorry. The maximum it could do is to change some BSI parameters (but IMHO it has no sense)

jsoto

Last edited by jsoto; 25th February 2004 at 20:59.
jsoto is offline   Reply With Quote
Old 26th February 2004, 03:53   #11  |  Link
xixi2000
Registered User
 
Join Date: Oct 2003
Posts: 29
Cool,2DISK DVD black frame ok?
try
xixi2000 is offline   Reply With Quote
Old 26th February 2004, 10:03   #12  |  Link
irulat
Registered User
 
Join Date: Sep 2002
Posts: 15
@jsoto
Quote:
delaycut is a very SIMPLE tool. Only cuts/adds frames, it is unable to decode, sorry. The maximum it could do is to change some BSI parameters (but IMHO it has no sense)
Thank's for the reply, all the same!

Last edited by irulat; 26th February 2004 at 10:06.
irulat is offline   Reply With Quote
Old 26th February 2004, 21:08   #13  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
Quote:
Originally posted by gizmau
@SeeMoreDigital

are you sure that your cutted track came out at 0ms?
afaik ac3 has fixed frame duration of 32ms, which would result in an offset of 12ms, which is virtually a zero-delay due to the frame duration of 40ms (pal)...
You're right. It was just a fluke that I managed to get the audio in sync with the video!

Anyway, speaking as a total beginner to this sort of application. Do you have any tips on how I can convert an AC3 file with -504ms delay to 000ms?

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is online now   Reply With Quote
Old 27th February 2004, 18:24   #14  |  Link
jsoto
Just a Member
 
Join Date: Nov 2002
Location: Spain
Posts: 2,067
@xixi2000
Quote:
2DISK DVD black frame ok?
What does it mean?

@SeeMoreDigital
Quote:
Do you have any tips on how I can convert an AC3 file with -504ms delay to 000ms?
Using this tool (or any other loseless one) you will be able to correct delay in frame steps (32 msec). This method gives a maximum of 1/2 frame (+-16 msec) of delay error. (Delaycut shows this error in the parameter NotFixedDelay of target file info).
For an exact delay correction you will need to reencode, which, IMHO, is a worse solution in terms of quality.

BTW, delay can also be corrected in a loseless way during DVD authoring (if this is final destination of the ac3 file).

jsoto
jsoto is offline   Reply With Quote
Old 2nd March 2004, 05:48   #15  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,269
Your app has a hard time with files fixed with the old ac3 delay corrector. It isnt able to detect the ac3/dts settings and therefor wont process the file. It does fine with files that ac3 corrector makes no correction on (ie you create a 'fix' file but without setting a delay) but with a delay , delaycut doesnt read it. the format might be slightly off after the delay, but everything else (scenarist, ac3 correcter itself, dvd lab etc) has no problem with the file. Just wondering if you can take a look at adding something so it can handle these files.

Thanx for the great app, btw.
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 2nd March 2004, 23:51   #16  |  Link
jsoto
Just a Member
 
Join Date: Nov 2002
Location: Spain
Posts: 2,067
@Trahald
Quote:
the old ac3 delay corrector.
Which one?. I've tested v2.0 and v2.1b1 without any problems.
Could you give me more detailed info?
jsoto
jsoto is offline   Reply With Quote
Old 3rd March 2004, 20:20   #17  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,269
2.1.b.1

so far.. if i take an ac3.. and with 2.1.b.1 i set -212ms delay (made up a number for the example).. then i load that file into delaycut. delay cut will not pull any info about the ac3/dts and there for will fail to process the file

now if i take the new ac3 that 2.1.b.1 delay corrected, and run it through 2.1.b.1 again but with 0 delay (so essentially it just rewrites the file with a new name) .. the new file loads into delaycut fine.. shows all ac3 info and will perform any requested operations

it does it on every file ive tried it on that 2.1.b.1 has delay fixed. shows this message

Code:
====== INPUT FILE INFO ========================
File is          	unknown
=============================================
====== TARGET FILE INFO ======================
=============================================
if i load the same file through 2.1.b.1, it it shows all the details and if i make a new file from that file but with delay 0 - then rerun the new file with delay cut, delaycut shows the full ac3 details

example
Code:
====== INPUT FILE INFO ========================
File is          	ac3
Bitrate  (kbit/s) 	192
Act rate (kbit/s) 	192.000
File size (bytes)	139385088
Channels mode    	1/0: C
Low Frec Effects 	LFE: Not present
Duration         	01:36:47.712
Frame length (ms)	32.000000
Frames/second    	31.250000
Num of frames    	181491
Bytes per Frame  	768
Size % Framesize 	0
CRC present: 	YES
=============================================
====== TARGET FILE INFO ======================
Start Frame   	0
End Frame     	181490
Num of Frames 	181491
Duration      	01:36:47.712
NotFixedDelay 	0.0000
=============================================
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 3rd March 2004, 20:46   #18  |  Link
jsoto
Just a Member
 
Join Date: Nov 2002
Location: Spain
Posts: 2,067
Humm, it's a mono track...

I never tested one, and not sure if I have access to one, could you cut one second and send it to me?

jsoto
jsoto is offline   Reply With Quote
Old 4th March 2004, 01:32   #19  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,269
that just happened to be one i picked.. same thing happens with DTS or 5.1 ac3

also the version i use is the one that is included with doitfast4u.. i dont know if its been altered at all.. i dont thing so.. but if you may want to use that version if your not already .. thanx

__________________
...yeah...but...why on earth would I compare apples with apples?

Last edited by Trahald; 4th March 2004 at 01:52.
Trahald is offline   Reply With Quote
Old 4th March 2004, 01:58   #20  |  Link
jsoto
Just a Member
 
Join Date: Nov 2002
Location: Spain
Posts: 2,067
May be it's a little bit stupid, but delaycut needs file extensions .ac3 or .dts, are you changing it with ac3 delay corrector?.

I've tested several dts, 5.1 ac3 and 2/0 ac3 without any problems...

jsoto
jsoto 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 15:26.


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