View Full Version : I'm having some problems with AC3, XVID, and my .AVS script
zeus163
6th June 2003, 02:58
If I simply drag my file into CCE 2.64 (anime fansub divx with 5.1 ac3 sound), CCE readily accepts it. However, I have a little script that I like to use to perform some simple re-sizing so that the subtitles aren't off the screen or too low. This basic script seems to work with all my other fansubs until today. I have two files that it simply does not work on. CCE just errors, but ffvfw (using makeavis) gives me the error--ACM failed to suggest a compatible PCM format. Virtual Dub gives me the same error. I opened up the files in GSpot and it tells me I have the codecs installed. What I'm wondering is if there is a way to possibly still encode these files without stripping out the audio first. which really isn't a problem, I'd just like to know how to solve this problem. Oh yeah, this is my super basic script. It works for me:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
AVISource("F:\anime\[NLA] Macross Zero OAV 01 - XviD - AC3 5.1.avi")
BicubicResize(704,440)
AddBorders(8,20,8,20)
AddAudio()
I also added the convert line, but that made no difference. Anyhelp with this would be appreciated.
Wilbert
6th June 2003, 10:45
Try
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
AVISource("F:\anime\[NLA] Macross Zero OAV 01 - XviD - AC3 5.1.avi", false)
BicubicResize(704,440)
AddBorders(8,20,8,20)
AC3Source("C:\file.ac3")
AC3 is an external plugin which downmixes to two channels, which can be downloaded in at faq at www.avisynth.org.
ffvfw (using makeavis) gives me the error--ACM failed to suggest a compatible PCM format. Virtual Dub gives me the same error.
This just means that there's no ACM codec, which can downmix 5.1ch wav to 2ch wav (and vdub needs that).
zeus163
6th June 2003, 19:27
Thanks for your response. I will try this when I get home. I quickly tried it this morning, but missed the false that you added.
However, I do have something that is in my mind. The AC3 source is embedded into the .avi file. So, I don't have an actual AC3 source unless I demux the two. Can the .avi file be used as my ac3 source for this? I wouldn't think so, but I'm not sure.
I think the easiest way for me is to actually just demux the files, but I'd like to make this work. Plus, it helps me in my quest to better understand what I'm doing.
Thanks!
Wilbert
7th June 2003, 10:50
Can the .avi file be used as my ac3 source for this? I wouldn't think so, but I'm not sure.
No, you will have to demux it (with vdubmod for example).
zeus163
7th June 2003, 16:27
Thanks. I actually tried that last night. I demuxed the AC3 (i thought it would give me two separate files and avi and an ac3, but it just gave me an ac3) using VirtualDubMod and then used this script:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
AVISource("F:\anime\[NLA] Macross Zero OAV 01 - XviD.avi, false")
BicubicResize(704,440)
AddBorders(8,20,8,20)
ConvertToYUY2()
AC3Source("F:\anime\[NLA] Macross Zero OAV 01 - XviD - AC3 5.1.ac3")
then I tried this:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ac3source.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
AVISource("F:\anime\[NLA] Macross Zero OAV 01 - XviD.avi, false")
BicubicResize(704,440)
AddBorders(8,20,8,20)
ConvertToYUY2()
AC3Source("F:\anime\[NLA] Macross Zero OAV 01 - XviD - AC3 5.1.ac3")
Neither of these worked. So, then I just dragged the file into normal virtual dub, and ripped the audio. I was then able to encode and mux the original .ac3 file back into the file after I ran CCE on it. It worked, I was just hoping to be able to solve the problem without having to demux the .ac3 first, then saving the .avi with no audio.
thanks for your help. i'm sure i'm just missing something obvious.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.