Help - Search - Members - Calendar
Full Version: Can't encode ac3 to ogg
Hydrogenaudio Forums > Lossy Audio Compression > Other Lossy Codecs
AlexanderTG
Hi

I had 2 ac3 files which I joined together using the following script in cmd:

copy audio1.ac3 + audio2.ac3 /b

Now when I try to encode the new audio1.ac3 it gives me an error halfway through the encoding process?

Is there a fix or a way around this problem?

Ax
john33
I would guess that ac3 doesn't accomodate file chaining in that manner. However, ogg vorbis does, so why don't you just transcode the separate files and then chain the ogg files as you're trying to do with the ac3 files.
riggits
QUOTE(AlexanderTG @ Sep 4 2005, 02:58 PM)
Hi

I had 2 ac3 files which I joined together using the following script in cmd:

copy audio1.ac3 + audio2.ac3 /b

Now when I try to encode the new audio1.ac3 it gives me an error halfway through the encoding process?

Is there a fix or a way around this problem?

Ax
*



You concatenated two files, each with their own header information.....
An easy way to do it right: use foobar2000, select both files and convert with Single File Output.
AlexanderTG
I deleted the original 2 ac3 files, is it possible to extract them again from the 1 ac3 file I have now?
rjamorim
Yes, if you're really good at hex editing...
Gambit
I was bored, so I wrote this:
http://www.burrrn.net/stuff/AC3.exe

Select the joined file and click "Split". If successful, you will get the original two files.

It's just my modified AC3 test application, but it should work. It's pretty simple, it scans the file and splits from the frame that has a different bitrate/samplerate/channels number.
AlexanderTG
Thanks for that program.

I tried it and it does not seem to find the join. So I clicked "scan" instead and it gave the following results:

user posted image

Does this mean that it could not find the join?

Thanks again

Ax
Gambit
QUOTE(AlexanderTG @ Sep 18 2005, 11:34 AM)
Thanks for that program.

I tried it and it does not seem to find the join.  So I clicked "scan" instead and it gave the following results:

user posted image

Does this mean that it could not find the join?

Thanks again

Ax
*


Unfortunately yes, that's what it means. sad.gif Sorry, you will have to split it manually. Try decoding the file and split at the position where you get the error. You can use BeSplit, or I can upload a modified version of my tool that can split manually.
AlexanderTG
Please can you upload a modified version of your program! biggrin.gif

But don't do it if its gonna take to long. If its a simple thing for you to do then excellent! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.