Log in

View Full Version : Convert MP3 to AC3 in AVI file


arendal
20th October 2004, 22:22
I have problems with burning a DVD converted from AVI.

After a lot of recarch I have found out that the problem is the sound.

The sound is MP3 and when coverting the AVI to DVD using AVI2DVD Beesveet converts the audio to MP2.

My standalone DVD player is not very happy about that.
The software plaers in my PC donæt mind BTW.

I understand that there must be at least 1 AC3 or PCM track on the DVD.

Therefore I need to convert the MP3 sound to AC3 but I have not found any software that has this feature.

I have made a small AVI file with Nandub for testing to save encoding time
;)

Here is my AVI2DVD log:

WNASPI32.DLL 4.6.0.1021
--------------------------------------------------------
- 20.10.2004 20:14:02
- AVI to SVCD Conversion
- AVI2DVD ver. 1.2.2 build 3
--------------------------------------------------------
Initializing
- C:\TEMP\test.avi
Initializing finished.

--------------------------------------------------------
- 20.10.2004 20:14:05
- Free on drive C: 8333.07 mb
- AUDIO Extraction
--------------------------------------------------------
AVIFileSize:=40130560
Audio extraction finished.

--------------------------------------------------------
- 20.10.2004 20:14:06
- Free on drive C: 8333.07 mb
- AUDIO conversion
--------------------------------------------------------
--------------------------------------------------------
- 20.10.2004 20:14:09
- Free on drive C: 8333.07 mb
- AUDIO conversion
--------------------------------------------------------

Converting MP2 to WAV. Filename: C:\TEMP\Extracted_audio_1.mpa
Executing MADPlay (mp2 to wav). Commandline:
"C:\Program Files\DVD2SVCD\MADPlay\madplay.exe" --quiet --output=wave:"C:\TEMP\Encoded_audio_1.mp2.wav" "C:\TEMP\Extracted_audio_1.mpa"
Conversion (mp2 to wav) of C:\TEMP\Extracted_audio_1.mpa finished.


Encoding Audio. Filename: C:\TEMP\Extracted_audio_1.mpa
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "C:\TEMP\Encoded_audio_1.mp2.wav" -output "C:\TEMP\Encoded_audio_1.mp2" -logfile "C:\TEMP\Encoded_audio_1.log" ) -ota( -g max -r 23976 25000 ) -shibatch( --rate 48000 ) -2lame( -e -b 192 -m s )
Audio conversion of C:\TEMP\Extracted_audio_1.mpa finished.

Audio conversion finished.

--------------------------------------------------------
- 20.10.2004 20:14:56
- Free on drive C: 8333.05 mb
- Video Encoding using TMPGEnc
--------------------------------------------------------
- Encoding C:\TEMP\AviSynth_Script_file.avs
StreamSectors: 289423988
AudioSectors: 7016156
VideoPAPO: 4374648
ScanOffsetBytes: 6444
SeqAligningBytes: 409552
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 277617184.00
Seconds: 288.40
CalcMPEGStream: 277617184.00
Frames: 7160
CDSize: 279.00
Number of CDs: 1
Cut point 275.00
Using CQ Value: 100.00
Executing TMPGEnc. Commandline:
"C:\Program Files\TMPG\TMPGEnc.exe" "C:\TEMP\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

--------------------------------------------------------
- 20.10.2004 20:26:40
- Free on drive C: 8350.08 mb
- Multiplexing Audio and Video
--------------------------------------------------------
Executing MPlex. Commandline:
"C:\Program Files\DVD2SVCD\DVDAuthor\mplex.exe" -f 8 -o "C:\TEMP\MPlex_Muxed_File00.mpg" "C:\TEMP\Encoded_Video_TMPGEnc_PAL.mpv" "C:\TEMP\Encoded_audio_1.mp2"
--------------------------------------------------------
- 20.10.2004 20:27:21
- Free on drive C: 8367.43 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: C:\TEMP\MPlex_Muxed_File00.mpg
285.830 seconds C:\TEMP\MPlex_Muxed_File00.mpg
Analyzing finished.

Saving Subtitle Timecodes.
SVCD subtitles.
Length of C:\TEMP\MPlex_Muxed_File00.mpg
285
--------------------------------------------------------
- 20.10.2004 20:27:30
- Free on drive C: 8643.13 mb
- Authoring DVD
--------------------------------------------------------
Executing DVDAuthor. Commandline:
"C:\Program Files\DVD2SVCD\DVDAuthor\dvdauthor.exe" -x "C:\TEMP\DVDAuthor.xml"
--------------------------------------------------------
- 20.10.2004 20:27:39
- Free on drive C: 8384.79 mb
- Creating DVD ISO Image
--------------------------------------------------------
Executing MkIsoFs. Commandline:
"C:\Program Files\DVD2SVCD\DVDAuthor\mkisofs.exe" -o "C:\TEMP\DVDImage.iso" -publisher "DVD2SVCD" -volid "" -dvd-video "C:\TEMP\DVD-Files"
Image creation finished.

--------------------------------------------------------
- 20.10.2004 20:27:46
- Free on drive C: 8125.63 mb
- Conversion done!
--------------------------------------------------------

Krismen
20th October 2004, 22:29
I understand that there must be at least 1 AC3 or PCM track on the DVD.

Therefore I need to convert the MP3 sound to AC3 but I have not found any software that has this feature.
You can use ffmpegGUI (http://www.free-codecs.com/download/ffmpegGUI.htm).

arendal
21st October 2004, 16:03
Ok, thanks!

That gives me a .mp3 file.

How do I use this file now?

I need to get back into the AVI somehow.

Krismen
21st October 2004, 17:02
That gives me a .mp3 file.
You mean .ac3.

How do I use this file now?

I need to get back into the AVI somehow.
Use VirtualDubMod to mux your ac3 file into avi. Set Direct stream copy in Video tab and go to Streams -> Stream list. Disable original track and add your ac3 file. Don't forget to set correct preload/interleave:
80ms/80ms (bitrate 192kbps or 224kbps)


Finally save avi under new file name.