Log in

View Full Version : AC-3 mute frame?


temporance
15th October 2003, 11:11
Does anyone know how to generate an AC-3 mute frame with a give sample rate and framesize?

Or alternatively, how can I take an AC-3 frame with audio and then mute it?

TIA

Nic
17th October 2003, 13:28
Im not sure if this is any help what so ever, but look for jsoto's mdvdauth028.zip in this forum, in there he has C code to correct the Delay of an AC3 file. In there, I think he might have frames of silence you could see...

...But I could be completely wrong (sorry if I am)

-Nic

jsoto
20th October 2003, 22:25
Hi temporance,

I've answered your PM, but I would like to write it down here, other users could be interested..

----------------------------------------------------------
I've done a little program to correct delay in ac3 streams (add/cut frames), and it also fixes some common ac3 errors. My code uses a "silence frame" I've taken from Daniel Ache code (I do not know where this original frame came from). After, I've transcoded (using besweet/ac3enc) a file with this original frame repeated many times to other bitrates, and I've put the resulted frames in "sil48.h" file, used as a header file to delayac3.cpp

You can download both files from http://www.iespana.es/jsoto/mdvdauth027.zip (028 is the same, regarding to audio processing)
------------------------------------------------------------
Also, I have to say that crc calculations are part of Fabrice Bellard code I've taken from ac3enc.
BTW, both, Daniel and Fabrice are mentioned in readme.txt

jsoto