Re: [linux-audio-user] AC3 file structure question

From: Florin Andrei <florin@email-addr-hidden>
Date: Wed Mar 29 2006 - 03:33:01 EEST

I've found this document:

According to it, 0x0B77 is the beginning of an AC3 frame. I opened up my
AC3 file in hexedit and, lo and behold, there were 0x0B77 strings at
regular intervals in the file.
Using dd, I cut a chunk of the file from the beginning until right
before the second occurrence of 0x0B77. Apparently, that chunk is a
single AC3 frame and a valid AC3 stream on its own.
Using cat and a bit of shell scripting, I concatenated this chunk 69
times at the beginning of the existing file. The result, according to
a52dec, mplayer and mplex, was a valid AC3 file with just the right
amount of delay at the beginning (69 times the duration of one frame was
what I determined experimentally to be needed).

Florin Andrei
Received on Wed Mar 29 04:15:21 2006

This archive was generated by hypermail 2.1.8 : Wed Mar 29 2006 - 04:15:21 EEST