Log in

View Full Version : My little, fast AC3 syncing tool


Okraml
8th May 2006, 18:42
I wrote a little program, that can change the length of an AC3 file.
For example to transform an PAL (25.000 fps) Audio to match an NTSC (23.976 fps) Video or the other way around.
The program i used till now was besweet, but it takes 1/2 hour for a conversion. My little program just needs some seconds (so, if the framerate matches not exactly, you can just try some other frameratesettings, without wasting to much time).

It is written in java and only 92kb small.
Before you use it with an ac3-file you have to load the file in delaycut, to get the "Bytes per Frame" of the ac3-file (my program is at the beginning).

I'd like to get some feedback, what you think of the program.
Should i improve it a little more, or would it be a waste of time?

Or maybe the coder of besweet or delaycut can insert my algorithm into there program?

:-) Okraml

edit: "Bytes per Frame" not "Framesize"
edit2: http://www.mytempdir.com/652385 (while Attachment Pending Approval)

tebasuna51
8th May 2006, 20:17
Use http://www.mytempdir.com/ or similar to share your file.

Okraml
8th May 2006, 20:24
Use http://www.mytempdir.com/ or similar to share your file.
thx
i edited my post again.

:-) Okraml

tebasuna51
9th May 2006, 02:44
Sorry, .jar don't run in my system.

Maybe if you explain the method to change the length ...,
because I think isn't possible without re-encoding.

Okraml
9th May 2006, 05:43
Sorry, .jar don't run in my system.

Maybe if you explain the method to change the length ...,
because I think isn't possible without re-encoding.
An AC3 file consists of Audioframes with a fixed length (for Example 448kb 5.1 = 1792 byte length). Every second there are 31,25 Audioframes.
My little tool symple copies the Audioframes and deletes or doubles one Audioframe every x Audioframes (depends on the two framerates you want to convert from and to).
I didnt notice any errors in the resulting AC3 file.

:-) Okraml

daphy
9th May 2006, 06:44
@ Okraml

-> see PM ;)

killerhex
13th May 2006, 22:42
any chance you could make this a multi format syncing

aac ogg mp3 wav

Okraml
14th May 2006, 09:29
any chance you could make this a multi format syncing

aac ogg mp3 wav
For now, i don't have any positiv feedback, that it works without problems for ac3 files.

I don't know how aac, ogg, mp3 or wav works, but i think, my algorithm won't work for them.

:-) Okraml

tebasuna51
14th May 2006, 10:34
If you delete frames in ac3 streams there aren't errors in new stream, but can produce audible clicks when play.